Commit 370871e2 authored by 郭志伟's avatar 郭志伟

fix: 支付追加isWxH5标识

parent 084a3270
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: 支付微信h5, jsapi, 第三方收银台,跳转) * @Description: 支付微信h5, jsapi, 第三方收银台,跳转)
* @Date: 2020-07-28 15:03:52 * @Date: 2020-07-28 15:03:52
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-28 21:19:45 * @LastEditTime: 2020-08-28 22:07:04
*/ */
import qs from "qs"; import qs from "qs";
...@@ -57,6 +57,7 @@ function payByWeixinJsapi(info = {}, callback) { ...@@ -57,6 +57,7 @@ function payByWeixinJsapi(info = {}, callback) {
function payByWeixinH5(info) { function payByWeixinH5(info) {
if (!info.url) return; if (!info.url) return;
info.params.isXyqb = isXyqb ? 1 : 0; info.params.isXyqb = isXyqb ? 1 : 0;
info.params.isWxH5 = 1;
const currentPath = encodeURIComponent( const currentPath = encodeURIComponent(
window.location.origin + window.location.origin +
"/payWaiting" + "/payWaiting" +
......
...@@ -106,8 +106,9 @@ export default { ...@@ -106,8 +106,9 @@ export default {
this.$router.replace(`/policy/success/${orderNo}`); this.$router.replace(`/policy/success/${orderNo}`);
return; return;
} }
this.$router.replace({
this.$router.replace({ path: "/policy/detail/" + orderNo }); path: "/policy/detail/" + orderNo + "?isWxH5=" + this.orderInfo.isWxH5 || ""
});
} }
}); });
}, },
......
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