|
@@ -20,7 +20,7 @@
|
|
|
</block>
|
|
</block>
|
|
|
<block>
|
|
<block>
|
|
|
<div class="call-one-btn">
|
|
<div class="call-one-btn">
|
|
|
- <button class="button-com green pay-wx" v-if="orderTime>0" @click="_wxPay" >微信支付</button>
|
|
|
|
|
|
|
+ <button class="button-com green pay-wx" v-if="orderTime>0" @click="wxPayFn" >微信支付</button>
|
|
|
<button class="button-com disable pay-wx" v-else>微信支付</button>
|
|
<button class="button-com disable pay-wx" v-else>微信支付</button>
|
|
|
</div>
|
|
</div>
|
|
|
</block>
|
|
</block>
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
this.orderTimeFun();
|
|
this.orderTimeFun();
|
|
|
},1000)
|
|
},1000)
|
|
|
},
|
|
},
|
|
|
- _wxPay () {
|
|
|
|
|
|
|
+ wxPayFn () {
|
|
|
let currentMiniOpenId = uni.getStorageSync('currentMiniOpenId')
|
|
let currentMiniOpenId = uni.getStorageSync('currentMiniOpenId')
|
|
|
let that = this
|
|
let that = this
|
|
|
if(!this.$util.isEmpty(currentMiniOpenId)){
|
|
if(!this.$util.isEmpty(currentMiniOpenId)){
|
|
@@ -99,10 +99,29 @@ export default {
|
|
|
}).catch(err => { console.log(err) })
|
|
}).catch(err => { console.log(err) })
|
|
|
},
|
|
},
|
|
|
getSuccess () {
|
|
getSuccess () {
|
|
|
- this.pageTo({
|
|
|
|
|
- url: '/pagesPurchase/gatherResult',
|
|
|
|
|
- type: 2
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
|
+ that.pageTo({ url: '/pagesPurchase/gatherResult', type: 2 })
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ // #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)
|
|
|
|
|
+ that.pageTo({ url: '/pagesPurchase/gatherResult', type: 2 })
|
|
|
|
|
+ },
|
|
|
|
|
+ fail(err) {
|
|
|
|
|
+ console.log(err)
|
|
|
|
|
+ },
|
|
|
|
|
+ complete() {
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }else{
|
|
|
|
|
+ that.pageTo({ url: '/pagesPurchase/gatherResult', type: 2 })
|
|
|
|
|
+ }
|
|
|
|
|
+ // #endif
|
|
|
},
|
|
},
|
|
|
getError () {
|
|
getError () {
|
|
|
},
|
|
},
|