|
|
@@ -72,6 +72,7 @@
|
|
|
<sms-alert ref="smsAlert" @exchange="cmccVote"></sms-alert>
|
|
|
<vote-success ref="voteSuccess" @support="skipShop"></vote-success>
|
|
|
<home-btn></home-btn>
|
|
|
+ <payPopup></payPopup>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -82,6 +83,7 @@
|
|
|
import votePopup from '@/components/alert/votePopup.vue'
|
|
|
import poster from "@/components/poster/poster.vue"
|
|
|
import smsAlert from "@/components/alert/smsAlert.vue"
|
|
|
+ import payPopup from "@/components/alert/payPopup.vue"
|
|
|
export default {
|
|
|
components: {
|
|
|
voteSuccess,
|
|
|
@@ -90,6 +92,7 @@
|
|
|
timelinePopup,
|
|
|
votePopup,
|
|
|
poster,
|
|
|
+ payPopup
|
|
|
},
|
|
|
async onLoad(props) {
|
|
|
// #ifdef MP-WEIXIN
|
|
|
@@ -124,6 +127,14 @@
|
|
|
|
|
|
this.getActivitySetting();
|
|
|
},
|
|
|
+ onShow() {
|
|
|
+ let that = this
|
|
|
+ uni.$on('updateData',function(payStatus){
|
|
|
+ that.payStatus = payStatus;
|
|
|
+ that.voteSuccess();
|
|
|
+ console.log('监听到事件来自 updateData ,携带参数为:' + payStatus);
|
|
|
+ })
|
|
|
+ },
|
|
|
computed: {
|
|
|
content() {
|
|
|
return decodeURIComponent(this.activity.content)
|
|
|
@@ -185,6 +196,8 @@
|
|
|
},
|
|
|
//活动设置
|
|
|
activitySetting: {},
|
|
|
+ //支付状态
|
|
|
+ payStatus: ''
|
|
|
}
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
@@ -397,7 +410,10 @@
|
|
|
}
|
|
|
let res = await this.$api.order.cashExchange(params)
|
|
|
if (res.data.success) {
|
|
|
- console.log("res", res);
|
|
|
+ this.payStatus = ''; //创建新订单,清空订单状态
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/webview/payOrder?url=${res.data.data.qrCodeUrl}&orderId=${res.data.data.id}`
|
|
|
+ })
|
|
|
} else {
|
|
|
this.$refs.toast.error(res.data.msg)
|
|
|
}
|