This commit is contained in:
@zuopngfei 2025-08-11 16:44:45 +08:00
parent 7a79249535
commit e01d46d64c
6 changed files with 40 additions and 43 deletions

View File

@ -25,11 +25,7 @@ function request(url, method = 'GET', data = {}) {
wx.removeStorageSync('access_token'); wx.removeStorageSync('access_token');
wx.navigateTo({ wx.navigateTo({
url: '/pages/login/login', url: '/pages/login/login',
complete: () => {
isNavigatingToLogin = false;
}
}); });
}
reject(res.data); reject(res.data);
return; return;
} }

View File

@ -73,6 +73,12 @@ Page({
imageVisible: true imageVisible: true
}) })
}, },
onClose(){
this.setData({
imageVisible: false
})
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */

View File

@ -8,12 +8,7 @@ const app = getApp();
Page({ Page({
onShareAppMessage: function (res) { onShareAppMessage: function (res) {
return {
title: 'ECharts 可以在微信小程序中使用啦!',
path: '/pages/index/index',
success: function () {},
fail: function () {}
}
}, },
data: { data: {
ec: { ec: {

View File

@ -9,7 +9,7 @@
<image src="{{userInfo.avatar}}" /> <image src="{{userInfo.avatar}}" />
</view> </view>
<view class="text-group_1"> <view class="text-group_1">
<text lines="1" class="text_2">{{userInfo.username}}<text lines="1" decode="true" class="text_4">{{userInfo.sex == 1 ? '男':'女'}}&nbsp;·&nbsp;{{ userInfo.age }}</text></text> <text lines="1" class="text_2">{{userInfo.username ? userInfo.username : '患者信息未完善'}}<text wx:if="{{userInfo.username}}" lines="1" decode="true" class="text_4">{{userInfo.sex == 1 ? '男':'女'}}&nbsp;·&nbsp;{{ userInfo.age }}</text></text>
<text lines="1" class="text_3">下次随访时间:{{ userInfo.next_follow_date }}</text> <text lines="1" class="text_3">下次随访时间:{{ userInfo.next_follow_date }}</text>
</view> </view>

View File

@ -30,8 +30,8 @@
<text lines="1" class="text_4">登录</text> <text lines="1" class="text_4">登录</text>
</view> </view>
<view class="text-wrapper_2"> <view class="text-wrapper_2">
<text lines="1" class="text_6">登录或注册完成即代表您同意</text> <!-- <text lines="1" class="text_6">登录或注册完成即代表您同意</text>
<text lines="1" class="text_7">《用户服务协议》</text> <text lines="1" class="text_7">《用户服务协议》</text> -->
</view> </view>
</view> </view>
</view> </view>

View File

@ -19,8 +19,8 @@
</view> </view>
<view class="text-group_2"> <view class="text-group_2">
<view class="text-wrapper_1"> <view class="text-wrapper_1">
<text class="text_2">{{item.username}}</text> <text class="text_2">{{item.username ? item.username : '患者信息未完善'}}</text>
<text decode="true" class="text_3"> <text wx:if="{{item.username}}" decode="true" class="text_3">
{{item.sex == 1 ? '男':'女'}}&nbsp;·&nbsp;{{item.age}} {{item.sex == 1 ? '男':'女'}}&nbsp;·&nbsp;{{item.age}}
</text> </text>
</view> </view>