|
|
@@ -106,12 +106,23 @@ export default {
|
|
|
methods: {
|
|
|
// 延期支付
|
|
|
postponePay () {
|
|
|
- purchaseDebtPay({ orderSn: this.orderSn }).then(res => {
|
|
|
- console.log(res)
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pagesPurchase/particulars'
|
|
|
- })
|
|
|
- }).catch(err => { console.log(err) })
|
|
|
+ let that = this
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '确认下单?',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ console.log(that.orderSn)
|
|
|
+ purchaseDebtPay({ orderSn: that.orderSn }).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pagesPurchase/particulars'
|
|
|
+ })
|
|
|
+ }).catch(err => { console.log(err) })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
// getWeChat () {
|
|
|
// purchaseClearCreateOrder({ id: this.options.id }).then(res => {
|
|
|
@@ -148,10 +159,10 @@ export default {
|
|
|
},
|
|
|
// 设置支付密码
|
|
|
hideAlert () {
|
|
|
+ this.setPassModal = false
|
|
|
uni.navigateTo({
|
|
|
url: '/pagesPurchase/setPsd'
|
|
|
})
|
|
|
- this.setPassModal = false
|
|
|
},
|
|
|
// 点击数字键盘
|
|
|
clickKeyFn (val) {
|