命令行提交
This commit is contained in:
@@ -14,6 +14,7 @@ import pageUrl from './pageUrl'
|
||||
// #ifdef H5
|
||||
import api from '../api/api.js'
|
||||
import cookie from './cookie.js'
|
||||
import navTo from "./navTo.js";
|
||||
// #endif
|
||||
//const BASE_URL=host+"/api"
|
||||
export const request = (url, data = {}, method = 'post', loading = false, contentType = 'application/x-www-form-urlencoded') => {
|
||||
@@ -103,6 +104,29 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
|
||||
}
|
||||
})
|
||||
n(res)
|
||||
}else if(res.data.code==10007){
|
||||
uni.showToast({
|
||||
title: "待补充资料",
|
||||
icon: 'none',
|
||||
|
||||
})
|
||||
let H5url = 'https://dev-wx.igandan.com';
|
||||
if(window.location.href.indexOf('//dev-casedata.igandan.com') == -1) {
|
||||
H5url = 'https://wx.igandan.com'
|
||||
}
|
||||
let link=H5url+"/hcp/perfect?mobile="+$("#phonenumber").val().trim();
|
||||
navTo({
|
||||
url:'/pages/register/register?src='+link
|
||||
})
|
||||
|
||||
n(res)
|
||||
}else if(res.data.code==10005){
|
||||
uni.showToast({
|
||||
title: "待审核",
|
||||
icon: 'none',
|
||||
|
||||
})
|
||||
n(res)
|
||||
}else if (res.data.code == 401 || res.data.code == 403 || res.data.code == 405 || res.data.code == 406) {
|
||||
if(process.env.UNI_PLATFORM =="h5"){
|
||||
let video_token = cookie.readCookie('video_token');
|
||||
|
||||
Reference in New Issue
Block a user