儿科医生端

This commit is contained in:
@zuopngfei 2025-07-04 20:51:07 +08:00
parent 9da15d0c7d
commit 343981a0a5
3 changed files with 10 additions and 7 deletions

View File

@ -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);
}

View File

@ -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)
}

View File

@ -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
});
},