master
2023-02-10 17:55:52 +08:00
parent dc15439861
commit fc5a6a6f7f
1 changed files with 12 additions and 24 deletions

View File

@ -228,7 +228,7 @@ export default {
uni.closeSocket();
}
},
onReady (options) {
onLoad (options) {
// goodsid
this.showHideModel = options.goodsid
// localimGoodId
@ -283,9 +283,6 @@ export default {
onHide () {
uni.closeSocket();
},
onUnload () {
uni.closeSocket();
},
onPullDownRefresh () {
this.params.pageNumber = this.params.pageNumber + 1
this.getTalkMessage()
@ -363,17 +360,12 @@ export default {
let data = JSON.stringify(msg);
uni.sendSocketMessage({
data: data,
success: () => {
this.msgList.push({
"text": this.msg,
"my": true,
"messageType": 'MESSAGE'
})
},
fail: () => {
this.sokcet()
}
});
this.msgList.push({
"text": this.msg,
"my": true,
"messageType": 'MESSAGE'
})
let type = 'down';
this.msgGo(type)
this.msg = ""
@ -390,17 +382,12 @@ export default {
let data = JSON.stringify(msg);
uni.sendSocketMessage({
data: data,
success: () => {
this.msgList.push({
"text": JSON.stringify(this.goodListData),
"my": true,
"messageType": 'GOODS'
})
},
fail: () => {
this.sokcet()
}
});
this.msgList.push({
"text": JSON.stringify(this.goodListData),
"my": true,
"messageType": 'GOODS'
})
this.showHide = false
// #ifdef H5
uni.setStorageSync("imGoodId", 1111111);
@ -442,6 +429,7 @@ export default {
} else {
uni.closeSocket();
}
this.count++
});
}
//