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,6 +22,9 @@ function request(url, method = 'GET', data = {}) {
if (res.data.code == 10103) { if (res.data.code == 10103) {
wx.removeStorageSync('access_token'); wx.removeStorageSync('access_token');
if (!isNavigatingToLogin) { if (!isNavigatingToLogin) {
const pages = getCurrentPages();
const currentRoute = pages[pages.length - 1]?.route;
if (currentRoute !== 'pages/login/login') {
isNavigatingToLogin = true; isNavigatingToLogin = true;
wx.navigateTo({ wx.navigateTo({
url: '/pages/login/login', url: '/pages/login/login',
@ -30,6 +33,7 @@ function request(url, method = 'GET', data = {}) {
} }
}); });
} }
}
reject(res.data); reject(res.data);
} }
reject(res.data); reject(res.data);

View File

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

View File

@ -20,13 +20,13 @@
<t-row gutter="12"> <t-row gutter="12">
<t-col span="12"> <t-col span="12">
<view class="input-example"> <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> <text class="tip">—</text>
</view> </view>
</t-col> </t-col>
<t-col span="12"> <t-col span="12">
<view class="input-example"> <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> </view>
</t-col> </t-col>
</t-row> </t-row>

View File

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

View File

@ -11,7 +11,7 @@
</view> </view>
<view class="input-example"> <view class="input-example">
<view class="custom-label">随访日期</view> <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" data-tips="isTime"
status="error" status="error"
tips="{{isTime ? '':'请选择随访日期'}}" /> tips="{{isTime ? '':'请选择随访日期'}}" />

View File

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

View File

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

View File

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

View File

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

View File

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