Commit 3e824f6f authored by 郭志伟's avatar 郭志伟

fix: 第三方支付兼容处理

parent 68773159
......@@ -4,7 +4,7 @@
<script>
import detailPayMixin from "@/views/Goods/Detail/modules/detailPay.mixin";
import qs from "qs";
// import qs from "qs";
import { isXyqb } from "@/service/validation";
export default {
name: "PayWaiting",
......@@ -15,15 +15,15 @@ export default {
};
},
mounted() {
if (document.referrer.length > 0) {
window.location.href =
window.location.origin +
"/payWaiting" +
qs.stringify(this.$route.query, { encode: true, addQueryPrefix: true });
}
// if (document.referrer.length > 0) {
// window.location.href =
// window.location.origin +
// "/payWaiting" +
// qs.stringify(this.$route.query, { encode: true, addQueryPrefix: true });
// }
this.setIsPayWait(true);
this.orderInfo = this.$route.query;
if (this.orderInfo.isXyqb == 1 && !isXyqb) {
if (this.orderInfo.isXyqb == 1 && (!isXyqb || this.orderInfo.third)) {
window.location.href = "xyqb://my";
return;
}
......
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