|
|
@@ -105,29 +105,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
weixinPay(){
|
|
|
+ let that = this
|
|
|
let currentMiniOpenId = uni.getStorageSync('currentMiniOpenId')
|
|
|
purchaseClearWxPay({ orderSn: this.orderSn,currentMiniOpenId:currentMiniOpenId }).then(res => {
|
|
|
+ that.orderSn = res.data.orderSn
|
|
|
wexinPay(res.data, this.getSuccess, this.getError)
|
|
|
- }).catch(err => { console.log(err) })
|
|
|
+ })
|
|
|
},
|
|
|
getSuccess () {
|
|
|
let that = this
|
|
|
that.pageTo({ url: '/pagesPurchase/gatherResult', type: 2 })
|
|
|
- // #ifdef MP-WEIXIN
|
|
|
- if(this.getDictionariesInfo && this.getDictionariesInfo.subscribeMessage && this.getDictionariesInfo.subscribeMessage == 1 && this.getDictionariesInfo.hdMiniMessage && this.getDictionariesInfo.hdMiniMessage.cgSuccess && this.getDictionariesInfo.hdMiniMessage.remindHdClear && this.getDictionariesInfo.hdMiniMessage.giveCoupon){
|
|
|
- uni.requestSubscribeMessage({
|
|
|
- tmplIds: [this.getDictionariesInfo.hdMiniMessage.cgSuccess.msgId,this.getDictionariesInfo.hdMiniMessage.giveCoupon.msgId,this.getDictionariesInfo.hdMiniMessage.remindHdClear.msgId],
|
|
|
- success(res) {
|
|
|
- console.log(res)
|
|
|
- },
|
|
|
- fail(err) {
|
|
|
- console.log(err)
|
|
|
- },
|
|
|
- complete() {
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- // #endif
|
|
|
},
|
|
|
getError () {
|
|
|
},
|