Fix(商城小程序):[#5175] 用户在小程序客服页面发送商品卡片后,点击进入该商品卡片详情页,再返回客服页面时,系统会自动重复弹出一条相同的商品卡片。
This commit is contained in:
@@ -137,6 +137,7 @@ export default {
|
|||||||
onShow() {
|
onShow() {
|
||||||
this.content = uni.getStorageSync(this.merName+this.uid+this.storeId)
|
this.content = uni.getStorageSync(this.merName+this.uid+this.storeId)
|
||||||
this.connectSocketInit();
|
this.connectSocketInit();
|
||||||
|
this.list = []
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
if (this.socketOpen) {
|
if (this.socketOpen) {
|
||||||
@@ -158,7 +159,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toGoods(item) {
|
toGoods(item) {
|
||||||
console.log(item);
|
|
||||||
const itemJson = JSON.parse(item.msg_content)
|
const itemJson = JSON.parse(item.msg_content)
|
||||||
if(!itemJson.goodsId) {
|
if(!itemJson.goodsId) {
|
||||||
// 提示数据错误
|
// 提示数据错误
|
||||||
|
|||||||
Reference in New Issue
Block a user