修复小程序订阅消息问题

This commit is contained in:
hupeng
2023-12-06 17:14:32 +08:00
parent 3e08136bfa
commit 583c1b8d81
3 changed files with 42 additions and 18 deletions

View File

@ -310,7 +310,11 @@ export default {
this.computedPrice()
},
},
onLoad: function() {
onLoad: function() {
// #ifdef MP-WEIXIN
subscribeMessage()
// #endif
let that = this
this.$store.dispatch('getUser', true)
that.getCartInfo()
@ -511,8 +515,9 @@ export default {
from.from = 'app'
}
console.log(this.$deviceType)
// #ifdef MP-WEIXIN
subscribeMessage()
// #ifdef MP-WEIXIN
// subscribeMessage()
// #endif
createOrder(this.orderGroupInfo.orderKey, {
realName: this.contacts,