Commit fa9a80ca authored by 郭志伟's avatar 郭志伟

Merge branch 'fix/goods' into 'master'

fix: 第三方支付兼容处理

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