diff --git a/common/config.js b/common/config.js index dd53ce3..f578eb2 100644 --- a/common/config.js +++ b/common/config.js @@ -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, diff --git a/pages/my/index.vue b/pages/my/index.vue index c510fdb..4b871a2 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -198,7 +198,7 @@ 常用功能 - + + + + 联系客服 + @@ -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 @@