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

1

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