This commit is contained in:
左哥 2025-07-04 22:09:48 +08:00
parent c04555d8a8
commit 428c0064f8
10 changed files with 25 additions and 19 deletions

View File

@ -22,13 +22,17 @@ function request(url, method = 'GET', data = {}) {
if (res.data.code == 10103) {
wx.removeStorageSync('access_token');
if (!isNavigatingToLogin) {
isNavigatingToLogin = true;
wx.navigateTo({
url: '/pages/login/login',
complete: () => {
isNavigatingToLogin = false;
}
});
const pages = getCurrentPages();
const currentRoute = pages[pages.length - 1]?.route;
if (currentRoute !== 'pages/login/login') {
isNavigatingToLogin = true;
wx.navigateTo({
url: '/pages/login/login',
complete: () => {
isNavigatingToLogin = false;
}
});
}
}
reject(res.data);
}

View File

@ -343,7 +343,7 @@ Page({
},
handleUpload(e) {
wx.chooseMessageFile({
wx.chooseImage({
count: 1, // 选择一个文件
type: 'all', // 支持所有类型的文件
success: (res) => {

View File

@ -20,13 +20,13 @@
<t-row gutter="12">
<t-col span="12">
<view class="input-example">
<t-input placeholder="开始时间" bindtap="showPicker" value="{{start_date}}" data-mode="start_date" borderless="{{true}}" />
<t-input placeholder="开始时间" readonly bindtap="showPicker" value="{{start_date}}" data-mode="start_date" borderless="{{true}}" />
<text class="tip">—</text>
</view>
</t-col>
<t-col span="12">
<view class="input-example">
<t-input placeholder="结束时间" bindtap="showPicker" value="{{end_date}}" data-mode="end_date" borderless="{{true}}" />
<t-input placeholder="结束时间" readonly bindtap="showPicker" value="{{end_date}}" data-mode="end_date" borderless="{{true}}" />
</view>
</t-col>
</t-row>

View File

@ -287,7 +287,7 @@ Page({
},
handleUpload(e) {
wx.chooseMessageFile({
wx.chooseImage({
count: 1, // 选择一个文件
type: 'all', // 支持所有类型的文件
success: (res) => {

View File

@ -11,7 +11,7 @@
</view>
<view class="input-example">
<view class="custom-label">随访日期</view>
<t-input placeholder="请选择" bindtap="showPicker" size="small" borderless="{{true}}" style="{{style}}" data-mode="birth" suffixIcon="{{ { name: 'calendar-1'} }}" note="'请选择'" value="{{form.follow_date}}"
<t-input placeholder="请选择" bindtap="showPicker" readonly size="small" borderless="{{true}}" style="{{style}}" data-mode="birth" suffixIcon="{{ { name: 'calendar-1'} }}" note="'请选择'" value="{{form.follow_date}}"
data-tips="isTime"
status="error"
tips="{{isTime ? '':'请选择随访日期'}}" />

View File

@ -27,10 +27,11 @@
.item-title-img{
height: 36rpx;
// width: auto;
width: auto;
}
.item-title-img-2{
height: 96rpx;
width: auto;
position: relative;
left: -24rpx;
// margin-top: -28rpx;

View File

@ -22,8 +22,8 @@
</view>
<text class="echarts-title">{{activeIndex == 0 ? '身高cm':'体重g'}}</text>
<view class="echarts-canvas-container">
<ec-canvas wx:if="{{ activeIndex == 0 }}" id="mychart-dom-height" canvas-id="mychart-height" ec="{{ ec }}" force-use-old-canvas="true"></ec-canvas>
<ec-canvas wx:else id="mychart-dom-weight" canvas-id="mychart-weight" ec="{{ ec2 }}" force-use-old-canvas="true"></ec-canvas>
<ec-canvas wx:if="{{ activeIndex == 0 }}" id="mychart-dom-height" canvas-id="mychart-height" ec="{{ ec }}" ></ec-canvas>
<ec-canvas wx:else id="mychart-dom-weight" canvas-id="mychart-weight" ec="{{ ec2 }}" ></ec-canvas>
</view>
</view>
<view class="item-content item-content-1">

View File

@ -1,7 +1,7 @@
/* pages/clockIn/index.wxss */
.clockin{
padding: 28rpx;
padding-bottom: 160rpx;
padding-bottom: 130rpx;
position: relative;
.clockin-img{
@ -73,6 +73,7 @@
justify-content: center;
width: 100%;
left: 0;
z-index: 2;
view{
width: 246rpx;
height: 82rpx;

View File

@ -81,7 +81,7 @@ handleUpload(e) {
const { mode } = e.currentTarget.dataset;
wx.chooseMessageFile({
wx.chooseImage({
count: 1, // 选择一个文件
type: 'all', // 支持所有类型的文件
success: (res) => {

View File

@ -352,8 +352,8 @@ Page({
icon: 'success',
duration: 2000,
complete: () => {
wx.navigateBack({
delta: 1
wx.switchTab({
url: '/pages/my/index'
})
}
})