支付失败提示
This commit is contained in:
parent
495e2a20dc
commit
e532b9e288
@ -119,48 +119,48 @@
|
|||||||
//缴纳保证金
|
//缴纳保证金
|
||||||
paydecimal() {
|
paydecimal() {
|
||||||
|
|
||||||
let that = this
|
let that = this
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳保证金',
|
content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳保证金',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
|
|
||||||
// console.log('用户点击确定');
|
// console.log('用户点击确定');
|
||||||
paymerchant().then((res) => {
|
paymerchant().then((res) => {
|
||||||
|
|
||||||
uni.requestPayment({
|
uni.requestPayment({
|
||||||
provider: 'wxpay',
|
provider: 'wxpay',
|
||||||
orderInfo: res.data
|
orderInfo: res.data
|
||||||
.config, //微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
|
.config, //微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
that.$util.Tips({
|
that.$util.Tips({
|
||||||
title: '支付成功'
|
title: '支付成功'
|
||||||
});
|
});
|
||||||
that.decimal()
|
that.decimal()
|
||||||
that.list(true)
|
that.list(true)
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
that.$util.Tips({
|
that.$util.Tips({
|
||||||
title: '支付失败'
|
title: '支付失败'
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('fail:' + JSON.stringify(err));
|
console.log('fail:' + JSON.stringify(err));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
this.$util.Tips(()=>{
|
that.$util.Tips({
|
||||||
|
title: err
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else if (res.cancel) {
|
} else if (res.cancel) {
|
||||||
console.log('用户点击取消');
|
console.log('用户点击取消');
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -491,7 +491,7 @@
|
|||||||
.boundingClientRect(rect => {
|
.boundingClientRect(rect => {
|
||||||
// console.log(this.cartTagInfo, 6666)
|
// console.log(this.cartTagInfo, 6666)
|
||||||
that.cartTagInfo = rect
|
that.cartTagInfo = rect
|
||||||
console.log(rect)
|
|
||||||
})
|
})
|
||||||
.exec();
|
.exec();
|
||||||
// console.log(that.headtop)
|
// console.log(that.headtop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user