@@ -70,11 +70,11 @@ | |||
} | |||
if (state.userType === "1") { | |||
uni.navigateTo({ | |||
uni.redirectTo({ | |||
url: `/applyCard/opening-account-people?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}`, | |||
}); | |||
} else { | |||
uni.navigateTo({ | |||
uni.redirectTo({ | |||
url: `/applyCard/opening-account-unit?orderId=${state.orderId}&vehiclePlateColor=${state.vehiclePlateColor}`, | |||
}); | |||
} |
@@ -354,6 +354,7 @@ | |||
if (result.accessToken && result.openId) { | |||
setItem('token', result.accessToken) | |||
setItem('openId', result.openId) | |||
state.form.opId = result.openId; | |||
let data = state.form; | |||
const options = { | |||
@@ -459,6 +460,7 @@ | |||
state.form.orderId = option.orderId; | |||
state.orderId = option.orderId; | |||
state.vehiclePlateColor = option.vehiclePlateColor; | |||
state.form.opId = getItem('openId')??''; | |||
//state.fromOrder = option.fromOrder //是否来自订单-修改资料 | |||
}); | |||
@@ -250,6 +250,7 @@ import { | |||
state.form.orderId = option.orderId; | |||
state.orderId = option.orderId; | |||
state.vehiclePlateColor = option.vehiclePlateColor; | |||
state.form.opId = getItem('openId')??''; | |||
}); | |||
//监听页面滚动 |
@@ -391,9 +391,15 @@ | |||
const toCreatOrder = (val: any) => { | |||
state.userType = val; | |||
if (val === "1") { | |||
navTo(`/applyCard/essential-information?type=${state.type}&&userType=${state.userType}`) | |||
// navTo(`/applyCard/essential-information?type=${state.type}&&userType=${state.userType}`) | |||
uni.redirectTo({ | |||
url:`/applyCard/essential-information?type=${state.type}&&userType=${state.userType}` | |||
}) | |||
} else { | |||
navTo(`/applyCard/essential-information?type=${state.type}&&userType=${state.userType}`) | |||
// navTo(`/applyCard/essential-information?type=${state.type}&&userType=${state.userType}`) | |||
uni.redirectTo({ | |||
url:`/applyCard/essential-information?type=${state.type}&&userType=${state.userType}` | |||
}) | |||
} | |||
closeMask(); | |||
}; |
@@ -66,7 +66,7 @@ export function request(code, options = {}) { | |||
options.success = (res) => { | |||
// 请求返回后,隐藏loading(如果请求返回快的话,可能会没有loading) | |||
wx.hideLoading() | |||
if (res.data.statusCode !== 0 && res.data.statusCode !== 200) { | |||
if (res.data.statusCode !== 0) { | |||
if (res.data.statusCode == 600) { | |||
resolve(res.data) | |||
} else if(res.data.statusCode == 401){ |