联系客服

This commit is contained in:
Mr.jiang 2024-07-25 09:26:27 +08:00
parent d17b4b4f0f
commit 66968f8db0
4 changed files with 46 additions and 3 deletions

View File

@ -64,7 +64,7 @@ module.exports = {
APIHOST1: ROOTPATH1,
WSHOST: ROOTPATH2,
UPLOAD_PATH,
// WSHOST1: ROOTPATH3
WSHOST1: ROOTPATH3,
TX_MAP_KEY,
WS_BASE_PATH,
WS_UPLOAD_MAP_PATH,

View File

@ -198,7 +198,7 @@
<view class="wode-title" style="margin-bottom: 26rpx;">
常用功能
</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">
<image src="../../static/images/my/yjian.png"></image>
<view class="box_text">我的项目</view>
@ -320,6 +320,10 @@
</view>
</view>
</view> -->
<view class="kefu" @click="goMsg">
<image src="../../static/kefu.png" mode=""></image>
<span>联系客服</span>
</view>
</view>
</template>
@ -407,7 +411,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
})
}
})
},
shangjia(e){//
var that=this;
@ -812,6 +832,29 @@
</script>
<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{
background:#fff;
border-radius: 30rpx;

BIN
static/kefu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB