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

fix(pay.service): 问题调试

parent cd7e1b8f
......@@ -4,7 +4,7 @@
* @Description: 支付微信h5, jsapi, 第三方收银台,跳转)
* @Date: 2020-07-28 15:03:52
* @LastEditors: gzw
* @LastEditTime: 2021-11-08 19:19:28
* @LastEditTime: 2021-11-08 19:36:02
*/
import qs from 'qs';
......@@ -65,7 +65,7 @@ function payByWeixinH5(info) {
info.params.vccToken = vccToken;
info.params.orderNo = orderNo;
info.params.isWx = true;
const redirectUrl = window.location.origin;
const redirectUrl = localStorage.get('redirectUrl') || window.location.origin;
const currentPath = encodeURIComponent(
redirectUrl +
// eslint-disable-next-line prettier/prettier
......
......@@ -22,7 +22,6 @@
</div>
</template>
<script>
import qs from 'qs';
import { queryPayStatus } from '@/api/pay.api';
import cookies from '@/service/cookieStorage.service';
import { goUrlExtends } from './extends';
......@@ -35,7 +34,7 @@ export default {
timer: null,
time: 10,
init: false,
hasRedirectUrl: localStorage.get('redirectUrl'),
hasRedirectUrl: !!localStorage.get('redirectUrl'),
returnUrl: ''
};
},
......@@ -43,13 +42,6 @@ export default {
this.orderNo = this.$route.query.orderNo || cookies.get('orderNo')?.orderNo;
},
mounted() {
if (this.hasRedirectUrl) {
window.location.href = `${this.hasRedirectUrl}/payWaiting${qs.stringify(this.$route.query, {
encode: true,
addQueryPrefix: true
})}`;
return;
}
this.getQuery();
this.$track.registeredEvents('h5_RechargeResultPageExposure', {
pay_status: '正在支付'
......
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