|
|
@@ -233,7 +233,7 @@ tools.setLoginData = function(data, type) {
|
|
|
if (data.status * 1 === 0) {
|
|
|
//审核状态跳转至待审核页面
|
|
|
uni.reLaunch({
|
|
|
- url: '/pages/login/module/await-audit'
|
|
|
+ url: '/pages/login/await-audit'
|
|
|
});
|
|
|
} else {
|
|
|
let excelPath = uni.getStorageSync('excelPath');
|
|
|
@@ -519,16 +519,15 @@ tools.weiXinLogin=async function () {
|
|
|
}).then((res) => {
|
|
|
if (res.code === 403) {
|
|
|
tools.error('当前用户未注册')
|
|
|
- uni.setStorageSync('openid', res.data.openid)
|
|
|
- setTimeout(() => {
|
|
|
- //跳转至注册页面
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/login/register'
|
|
|
- });
|
|
|
- }, 1500)
|
|
|
+ resolve( -1)
|
|
|
} else if (res.code === 1) {
|
|
|
- tools.setLoginData(res.data, false)
|
|
|
- resolve( true)
|
|
|
+ if(res.data.status===0){
|
|
|
+ tools.setLoginData(res.data, false)
|
|
|
+ resolve( true)
|
|
|
+ }else {
|
|
|
+ tools.error('信息正在审核...')
|
|
|
+ resolve( false)
|
|
|
+ }
|
|
|
} else {
|
|
|
resolve( false)
|
|
|
}
|