联系客服
This commit is contained in:
parent
d17b4b4f0f
commit
66968f8db0
|
@ -64,7 +64,7 @@ module.exports = {
|
||||||
APIHOST1: ROOTPATH1,
|
APIHOST1: ROOTPATH1,
|
||||||
WSHOST: ROOTPATH2,
|
WSHOST: ROOTPATH2,
|
||||||
UPLOAD_PATH,
|
UPLOAD_PATH,
|
||||||
// WSHOST1: ROOTPATH3
|
WSHOST1: ROOTPATH3,
|
||||||
TX_MAP_KEY,
|
TX_MAP_KEY,
|
||||||
WS_BASE_PATH,
|
WS_BASE_PATH,
|
||||||
WS_UPLOAD_MAP_PATH,
|
WS_UPLOAD_MAP_PATH,
|
||||||
|
|
|
@ -198,7 +198,7 @@
|
||||||
<view class="wode-title" style="margin-bottom: 26rpx;">
|
<view class="wode-title" style="margin-bottom: 26rpx;">
|
||||||
常用功能
|
常用功能
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between margin-top" style="width: 100%;flex-wrap: wrap;">
|
<view class="flex margin-top" style="width: 100%;flex-wrap: wrap;justify-content: end;">
|
||||||
<!-- <view class="box">
|
<!-- <view class="box">
|
||||||
<image src="../../static/images/my/yjian.png"></image>
|
<image src="../../static/images/my/yjian.png"></image>
|
||||||
<view class="box_text">我的项目</view>
|
<view class="box_text">我的项目</view>
|
||||||
|
@ -320,6 +320,10 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
<view class="kefu" @click="goMsg">
|
||||||
|
<image src="../../static/kefu.png" mode=""></image>
|
||||||
|
<span>联系客服</span>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
@ -407,7 +411,23 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
goMsg() {//客服聊天
|
||||||
|
let data = {
|
||||||
|
userId: uni.getStorageSync('userId'),
|
||||||
|
focusedUserId: '0',
|
||||||
|
// userName:this.order.userName
|
||||||
|
}
|
||||||
|
// app/chat/insertChatConversation
|
||||||
|
this.$Request.postJson('/app/chat/insertChatConversation', data).then(res => {
|
||||||
|
if (res.data) {
|
||||||
|
let id = this.ordersId == res.data.userId ? res.data.focusedUserId : this.ordersId
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/msg/im?chatConversationId=' + res.data.chatConversationId +
|
||||||
|
'&byUserId=' + res.data.userId
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
shangjia(e){//获取商家信息
|
shangjia(e){//获取商家信息
|
||||||
var that=this;
|
var that=this;
|
||||||
|
|
||||||
|
@ -812,6 +832,29 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.kefu span{
|
||||||
|
font-size: 14px;
|
||||||
|
color: #1296db;
|
||||||
|
}
|
||||||
|
.kefu image{
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
.kefu{
|
||||||
|
width: 75px;
|
||||||
|
height: 75px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
position: fixed;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
margin-bottom: 20%;
|
||||||
|
margin-right: 20px;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
.logon{
|
.logon{
|
||||||
background:#fff;
|
background:#fff;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
Loading…
Reference in New Issue