Commit d2e7b505 authored by zhengke's avatar zhengke

修改

parent 119ad12a
...@@ -182,7 +182,6 @@ ...@@ -182,7 +182,6 @@
class="jz_Zailai" class="jz_Zailai"
@click.stop="goZhifu(item)" @click.stop="goZhifu(item)"
style="width: 110rpx; margin-right: 10rpx; margin-left: 0rpx" style="width: 110rpx; margin-right: 10rpx; margin-left: 0rpx"
:disabled="disabledBtn"
> >
付款 付款
</button> </button>
...@@ -251,8 +250,7 @@ export default { ...@@ -251,8 +250,7 @@ export default {
}, },
status: "加载中", status: "加载中",
price: 0, price: 0,
showBar: true, showBar: true
disabledBtn: false,
}; };
}, },
created() { created() {
...@@ -404,7 +402,6 @@ export default { ...@@ -404,7 +402,6 @@ export default {
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
goZhifu(item) { goZhifu(item) {
console.log(item, "item"); console.log(item, "item");
this.disabledBtn = true;
let url = "/api/WeChatPay/GetTravlePayInfo"; let url = "/api/WeChatPay/GetTravlePayInfo";
let GoodsName = item.title; let GoodsName = item.title;
GoodsName = GoodsName.slice(0, 10); GoodsName = GoodsName.slice(0, 10);
...@@ -435,7 +432,6 @@ export default { ...@@ -435,7 +432,6 @@ export default {
signType: orderInfo.signType, signType: orderInfo.signType,
paySign: orderInfo.sign, paySign: orderInfo.sign,
success: function (res) { success: function (res) {
this.disabledBtn = false;
console.log("success", res); console.log("success", res);
uni.showToast({ uni.showToast({
title: "支付成功", title: "支付成功",
...@@ -449,7 +445,6 @@ export default { ...@@ -449,7 +445,6 @@ export default {
}); });
}, },
fail: function (err) { fail: function (err) {
this.disabledBtn = false;
console.log("fail:", err); console.log("fail:", err);
uni.showToast({ uni.showToast({
title: "支付失败", title: "支付失败",
...@@ -460,7 +455,6 @@ export default { ...@@ -460,7 +455,6 @@ export default {
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
goZhifuAli(item) { goZhifuAli(item) {
this.disabledBtn = true;
uni.showLoading({ uni.showLoading({
title: "支付中", title: "支付中",
}); });
...@@ -514,7 +508,6 @@ export default { ...@@ -514,7 +508,6 @@ export default {
}, },
fail: function (err) { fail: function (err) {
console.log("fail:", err); console.log("fail:", err);
this.disabledBtn = false;
uni.hideLoading(); uni.hideLoading();
uni.showToast({ uni.showToast({
title: "支付失败", title: "支付失败",
...@@ -539,7 +532,6 @@ export default { ...@@ -539,7 +532,6 @@ export default {
(res) => { (res) => {
console.log("cb", res); console.log("cb", res);
uni.hideLoading(); uni.hideLoading();
this.disabledBtn = false;
uni.redirectTo({ uni.redirectTo({
url: url:
"/pages/jiuzhai/paysuccess?PreferPrice=" + "/pages/jiuzhai/paysuccess?PreferPrice=" +
...@@ -549,7 +541,6 @@ export default { ...@@ -549,7 +541,6 @@ export default {
}, },
(err) => { (err) => {
console.log("cb2", err); console.log("cb2", err);
this.disabledBtn = false;
uni.hideLoading(); uni.hideLoading();
uni.showToast({ uni.showToast({
title: "支付失败", title: "支付失败",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment