儿科医生端
This commit is contained in:
parent
9da15d0c7d
commit
343981a0a5
@ -1,4 +1,4 @@
|
||||
const baseUrl = 'http://1.15.53.35:9998/';
|
||||
const baseUrl = 'https://ddbs.1024tool.vip/';
|
||||
|
||||
function request(url, method = 'GET', data = {}) {
|
||||
const header = {
|
||||
@ -21,8 +21,11 @@ function request(url, method = 'GET', data = {}) {
|
||||
if (res.data.code) {
|
||||
if (res.data.code == 10103) {
|
||||
wx.removeStorageSync('access_token');
|
||||
wx.switchTab({
|
||||
url: '/pages/my/index',
|
||||
// wx.switchTab({
|
||||
// url: '/pages/my/index',
|
||||
// })
|
||||
wx.navigateTo({
|
||||
url: '/pages/login/login',
|
||||
})
|
||||
reject(res.data);
|
||||
}
|
||||
|
||||
@ -153,7 +153,7 @@ Page({
|
||||
|
||||
let totalList = []
|
||||
standardHeight.forEach(item => {
|
||||
props.xAxis.forEach(item2 => {
|
||||
this.data.xAxis.forEach(item2 => {
|
||||
if(item.age == item2) {
|
||||
totalList.push(item.value)
|
||||
}
|
||||
@ -224,7 +224,7 @@ Page({
|
||||
|
||||
let totalList = []
|
||||
standardWeight.forEach(item => {
|
||||
props.xAxis.forEach(item2 => {
|
||||
this.data.xAxis.forEach(item2 => {
|
||||
if(item.age == item2) {
|
||||
totalList.push(item.value)
|
||||
}
|
||||
|
||||
@ -56,8 +56,8 @@ Page({
|
||||
mobile: this.data.mobile
|
||||
});
|
||||
await wx.setStorageSync('access_token', res.token);
|
||||
wx.switchTab({
|
||||
url: `/pages/my/index`,
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user