| | |
| | | async onShow() { |
| | | // 支付回调 |
| | | // #ifdef PUB_CUSTOMER_DEV |
| | | if (this.sign['cache_topay']) { |
| | | let options = wx.getEnterOptionsSync(); |
| | | if (options.scene == '1038' && options.referrerInfo.appId=='wxef277996acc166c3') { |
| | | // 代表从收银台小程序返回 |
| | |
| | | tmp.$store.dispatch('cache_coupon_select', {}) |
| | | tmp.$store.dispatch('cache_goods_select', []) |
| | | |
| | | await tmp.$message.showToast('支付成功',{ |
| | | duration:500 |
| | | }) |
| | | // await tmp.$message.showToast('支付操作', { |
| | | // duration: 500 |
| | | // }) |
| | | uni.navigateBack() |
| | | await tmp.$store.dispatch('sign_clear', 'cache_topay') |
| | | return |
| | | } |
| | | |
| | | } |
| | | |
| | | // #endif |
| | | //优惠券 |
| | |
| | | // sign: "签名,参考2.1", |
| | | ...data, |
| | | } |
| | | await tmp.$store.dispatch('sign_add', 'cache_topay') |
| | | |
| | | wx.openEmbeddedMiniProgram({ |
| | | appId: 'wxef277996acc166c3', |
| | | extraData: param |