|
|
@@ -16,9 +16,9 @@
|
|
|
<block>
|
|
|
<div class="price">
|
|
|
<span>¥</span>
|
|
|
- <span class="app-size-36 app-bold">{{ options.actPrice || ''}}</span>
|
|
|
+ <span class="app-size-36 app-bold">{{ actPrice || ''}}</span>
|
|
|
</div>
|
|
|
- <div class="order-num app-color-3">订单号: {{ options.orderSn || ''}}</div>
|
|
|
+ <div class="order-num app-color-3">订单号: {{ orderSn || ''}}</div>
|
|
|
</block>
|
|
|
<block>
|
|
|
<div class="call-one-btn">
|
|
|
@@ -87,12 +87,15 @@ export default {
|
|
|
},
|
|
|
psdKey: '',
|
|
|
orderSn: '',
|
|
|
- setPassModal: false,
|
|
|
+ actPrice: '',
|
|
|
+ setPassModal: false,
|
|
|
_type: '1'
|
|
|
};
|
|
|
},
|
|
|
onLoad (options) {
|
|
|
- this.getWeChat(options.id)
|
|
|
+ this.orderSn = options.orderSn;
|
|
|
+ this.actPrice = options.actPrice;
|
|
|
+ // this.getWeChat(options.orderSn)
|
|
|
this.type = options.type
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -108,12 +111,12 @@ export default {
|
|
|
})
|
|
|
}).catch(err => { console.log(err) })
|
|
|
},
|
|
|
- getWeChat (id) {
|
|
|
- purchaseClearCreateOrder({ id }).then(res => {
|
|
|
- this.options = res.data
|
|
|
- this.orderSn = res.data.orderSn
|
|
|
- }).catch(err => { console.log(err) })
|
|
|
- },
|
|
|
+ // getWeChat (id) {
|
|
|
+ // purchaseClearCreateOrder({ id }).then(res => {
|
|
|
+ // this.options = res.data
|
|
|
+ // this.orderSn = res.data.orderSn
|
|
|
+ // }).catch(err => { console.log(err) })
|
|
|
+ // },
|
|
|
_wxPay () {
|
|
|
let Fn = this.type === '1' ? purchaseClearWxPay({ orderSn: this.orderSn }) : this.type === '2' ? purchaseWxPay({ orderSn: this.orderSn }) : null
|
|
|
Fn.then(res => {
|