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

修改登录跳转问题

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