Commit d2e7b505 authored by zhengke's avatar zhengke

修改

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