联系客服
This commit is contained in:
parent
ec1fa523a7
commit
e860b422c6
|
@ -447,10 +447,9 @@
|
|||
class="eject-btns">
|
||||
去投诉
|
||||
</view>
|
||||
<view :custom-style="customStyle2" shape="circle" :plain="true" @click="goMsg(order)" class="eject-btns">
|
||||
|
||||
<view :custom-style="customStyle2" shape="circle" :plain="true" @click="goChat" class="eject-btns">
|
||||
联系客服</view>
|
||||
<!-- <view :custom-style="customStyle2" shape="circle" :plain="true" @click="goChat" class="eject-btns">
|
||||
联系客服</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view v-else>
|
||||
|
|
|
@ -162,6 +162,10 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="prompt-text">-当你累了 想起盛安到家-</view>
|
||||
<view class="kefu" @click="goMsg">
|
||||
<image src="../../static/kefu.png" mode=""></image>
|
||||
<span>联系客服</span>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
@ -244,6 +248,23 @@
|
|||
|
||||
},
|
||||
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
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
getDataX(){
|
||||
this.$Request.get("/app/massage/package/findPackageAndMassagePage",{
|
||||
city:'',
|
||||
|
@ -657,6 +678,29 @@
|
|||
</script>
|
||||
|
||||
<style 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;
|
||||
}
|
||||
.shop_label{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
@ -1086,6 +1130,7 @@
|
|||
background-size: cover;
|
||||
/* background: #f7f7f7; */
|
||||
overflow: auto;
|
||||
position: relative;
|
||||
}
|
||||
.div-with-background {
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Loading…
Reference in New Issue