no message

master
mabo 2021-05-28 11:29:17 +08:00
parent b5722c27b6
commit 9c5bf7f854
2 changed files with 32 additions and 19 deletions

View File

@ -14,28 +14,29 @@
methods: {
},
onLoad () {
onLoad (e) {
const params = JSON.parse((decodeURIComponent(e.params)))
chat.init({
sign: '4a971f4f4ff9637cd9286a0197b0573bf2f65de052c21791f90d4235fca41456e1cc145075567f5f47b8e13c895f3fc8cacec5789f9afee8df670f7cbe5c0f82', //
token: '', //
uid: '', //
title: 'lilishop自营店', //
sign: params.mpSign, //
token: params.token, //
uid: params.uuid, //
title: params.storageName, //
isRMB: '', //,false
data: { //c1,c2,c3,c4,c5d1,d2,d3,d4,d5,d6
c1: '1',
c2: '2',
c3: '3',
c4: '4',
c5: '5',
d1: '这是描述', //
d2: '122.00', //
d3: '150.00', //
d4: '', //
c1: '',
c2: '',
c3: '',
c4: '',
c5: '',
d1: params.goodsName, //
d2: params.price, //
d3: '', //
d4: params.goodsImg, //
d5: '', //
d6: '', //id
d6: params.goodsId, //id
data: ''//,
},
viewUrl(res){ //web-view
viewUrl(res){ //web-view
if (res) {
wx.navigateTo({
url: '/pages/webview/index?href=' + res

View File

@ -472,7 +472,7 @@ export default {
//
this.getstoreBaseInfoFun(this.goodsDetail.storeId);
//
//
this.cartCount();
//
@ -486,9 +486,21 @@ export default {
this.getGoodsCollectionFun(this.goodsDetail.id);
}
},
linkMsgDetail () {
linkMsgDetail () { //
const params = {
storeName: this.storeDetail.storeName,
goodsName: this.goodsDetail.goodsName,
goodsId: this.goodsDetail.goodsId,
goodsImg: this.goodsDetail.thumbnail,
price: this.goodsDetail.promotionPrice || this.goodsDetail.price,
// originalPrice: this.goodsDetail.original || this.goodsDetail.price,
uuid: storage.getUuid(),
token: storage.getAccessToken(),
sign: this.storeDetail.yzfSign || '37ef9b97807d03c6741298ed4eb5b536d2d238e08a3c00fb01fe48f03a569974c99ad767e72c04b3165ef29aca2c488b505fe4ca',
mpSign: this.storeDetail.yzfMpSign || '32b8ff6f8d1c240be8d7fe51bdd6d44a6776ea86930afbe5c3c342825e942c914fc6126b6be1f003ab04aee1af9f442d2c33e1427529300671588866edaa4b12'
}
uni.navigateTo({
url: '/pages/product/customerservice/index'
url: '/pages/product/customerservice/index?params=' + encodeURIComponent(JSON.stringify(params))
})
},
// 1999 --> [1999,00]