Commit 3bbb9234 authored by 罗超's avatar 罗超

1

parent cdc707b6
......@@ -559,13 +559,13 @@ export default {
},
(res) => {
console.log("cb", res);
uni.hideLoading();
uni.redirectTo({
url:
"/pages/jiuzhai/paysuccess?PreferPrice=" +
obj.preferPrice +
"&isFrom=1",
});
uni.hideLoading();
},
(err) => {
console.log("cb2", err);
......
......@@ -899,6 +899,9 @@ export default {
//支付宝支付
querenAli(data) {
let that = this;
uni.showLoading({
title: "支付中",
});
let url = "/api/WeChatPay/GetTravlePayInfo";
let GoodsName = this.currentPriceInfo.title;
this.request2(
......@@ -918,6 +921,7 @@ export default {
that.PayAli(res.data, data);
});
} else {
uni.hideLoading();
uni.showToast({
title: "获取交易号失败",
duration: 2000,
......@@ -942,6 +946,7 @@ export default {
};
that.payAliCallback(cbObj);
} else {
uni.hideLoading();
uni.showToast({
title: "支付失败",
icon: "none",
......@@ -955,6 +960,7 @@ export default {
},
fail: function (err) {
console.log("fail:", err);
uni.hideLoading();
uni.showToast({
title: "支付失败",
icon: "none",
......@@ -989,10 +995,12 @@ export default {
obj.preferPrice +
"&isFrom=1",
});
uni.hideLoading();
},
(err) => {
this.submit = false;
console.log("cb2", err);
uni.hideLoading();
uni.showToast({
title: "支付失败",
icon: "none",
......
......@@ -951,13 +951,13 @@ export default {
},
(res) => {
that.submit = false;
uni.hideLoading();
uni.redirectTo({
url:
"/pages/jiuzhai/paysuccess?PreferPrice=" +
obj.preferPrice +
"&isFrom=1",
});
uni.hideLoading();
},
(err) => {
console.log("err", err);
......
......@@ -84,9 +84,6 @@
</template>
<script>
// #ifdef MP-ALIPAY
import { SubscribeMsgAli } from "../../plugin/utils";
// #endif
import guest from "./components/guestList.vue";
export default {
components: {
......
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