Commit cd086c0d authored by FE-安焕焕's avatar FE-安焕焕 👣

修改登录跳转问题

parent d1f496a3
...@@ -8,7 +8,7 @@ const http = new HttpRequest( ...@@ -8,7 +8,7 @@ const http = new HttpRequest(
{ {
headers: { headers: {
'x-user-terminal': 'H5', 'x-user-terminal': 'H5',
version: appVersion || '7.9.0' version: appVersion || '7900'
} }
}, },
function(msg) { function(msg) {
......
...@@ -215,7 +215,7 @@ export default { ...@@ -215,7 +215,7 @@ export default {
/* 查询支付信息 */ /* 查询支付信息 */
async queryPayInfo() { async queryPayInfo() {
const [data, error] = await queryPayInfo({ orderNo: this.orderNo }); const [data, error] = await queryPayInfo({ orderNo: this.orderNo });
if (error) { if (error && codeArr.indexOf(error?.response?.businessCode) < 0) {
this.payResult('Fail'); this.payResult('Fail');
return; return;
} }
...@@ -525,15 +525,16 @@ export default { ...@@ -525,15 +525,16 @@ export default {
}, },
/* 走h5活体流程 */ /* 走h5活体流程 */
async goOcr() { async goOcr() {
const [{ url }] = await ocrFaceId({ const [res] = await ocrFaceId({
isH5: true, isH5: true,
type: 'xyqb', type: 'xyqb',
orderNo: this.orderNo, orderNo: this.orderNo,
flowOrderNo: this.flowOrderNo, flowOrderNo: this.flowOrderNo,
callBackUrl: window.location.href callBackUrl: window.location.href
}); });
if (url) return; if (!res.url) return;
window.location.href = url; console.log(res);
window.location.href = res.url;
}, },
selectCouponItem(isSelected, couponInfo) { selectCouponItem(isSelected, couponInfo) {
registeredEvents('PD_YXMMACP_UserClickCouponPopupWindowCoupon', { registeredEvents('PD_YXMMACP_UserClickCouponPopupWindowCoupon', {
......
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