diff --git a/my/order/pay.vue b/my/order/pay.vue index de618c5..c44d738 100644 --- a/my/order/pay.vue +++ b/my/order/pay.vue @@ -447,10 +447,9 @@ class="eject-btns"> 去投诉 - + + 联系客服 - diff --git a/pages/my/index.vue b/pages/my/index.vue index 8c5c91f..535cb9a 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -162,6 +162,10 @@ -当你累了 想起盛安到家- + + + 联系客服 + @@ -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 @@