|
@@ -282,7 +282,6 @@ export default {
|
|
bid: this.bid,
|
|
bid: this.bid,
|
|
send_order_id: this.send_order_id
|
|
send_order_id: this.send_order_id
|
|
})
|
|
})
|
|
- // console.log('al111111111111111111111111',res);
|
|
|
|
this.trade_no = ret.order
|
|
this.trade_no = ret.order
|
|
this.showToastByCode(ret.code)
|
|
this.showToastByCode(ret.code)
|
|
} else {
|
|
} else {
|
|
@@ -294,13 +293,9 @@ export default {
|
|
this.trade_no = ret.order
|
|
this.trade_no = ret.order
|
|
this.pay_order_id = ret.order
|
|
this.pay_order_id = ret.order
|
|
this.need_check_order = true
|
|
this.need_check_order = true
|
|
- // this.back_click = 0;
|
|
|
|
- // console.log('wx111111111111111111111',res);
|
|
|
|
- // if (fb && typeof fb === 'object')
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
- // this.pay_order_id =ret.order;
|
|
|
|
- // console.log('00000000000000000',ret,"paytype d",cur_pay_type);
|
|
|
|
return false
|
|
return false
|
|
// 成功支付后的回调操作
|
|
// 成功支付后的回调操作
|
|
if (ret.code === '9000') this.showWaitingWrap(ret)
|
|
if (ret.code === '9000') this.showWaitingWrap(ret)
|
|
@@ -398,8 +393,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async checkOrderNew(order) {
|
|
async checkOrderNew(order) {
|
|
- console.log('需要查询订单', order)
|
|
|
|
- // this.showLoading = true;
|
|
|
|
let fb = await checkWxOrder(order)
|
|
let fb = await checkWxOrder(order)
|
|
console.log('查询结果:', fb)
|
|
console.log('查询结果:', fb)
|
|
if (fb && typeof fb === 'object') {
|
|
if (fb && typeof fb === 'object') {
|
|
@@ -483,7 +476,6 @@ export default {
|
|
}
|
|
}
|
|
} catch (e) {
|
|
} catch (e) {
|
|
backPage = {}
|
|
backPage = {}
|
|
- // console.log('back err',e);
|
|
|
|
}
|
|
}
|
|
console.log(backPage, backPage.length, typeof backPage)
|
|
console.log(backPage, backPage.length, typeof backPage)
|
|
if (JSON.stringify(backPage) === '{}') {
|
|
if (JSON.stringify(backPage) === '{}') {
|
|
@@ -492,37 +484,6 @@ export default {
|
|
router.back(backPage)
|
|
router.back(backPage)
|
|
}
|
|
}
|
|
return true
|
|
return true
|
|
- },
|
|
|
|
- onBackPressOld() {
|
|
|
|
- if (this.pay_back) {
|
|
|
|
- prompt.showDialog({
|
|
|
|
- title: '温馨提示',
|
|
|
|
- message: '每日完成任务,可以免费获取书币~',
|
|
|
|
- buttons: [
|
|
|
|
- {
|
|
|
|
- text: '去做任务',
|
|
|
|
- color: '#EF5952'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: '我知道了',
|
|
|
|
- color: '#999'
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
- success: function(data) {
|
|
|
|
- if (data.index === 1) {
|
|
|
|
- router.back()
|
|
|
|
- } else {
|
|
|
|
- router.push({
|
|
|
|
- uri: '/views/Task'
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- cancel: function() {
|
|
|
|
- console.log('取消前往')
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- return true
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|