qwew
This commit is contained in:
parent
c04555d8a8
commit
428c0064f8
@ -22,6 +22,9 @@ function request(url, method = 'GET', data = {}) {
|
||||
if (res.data.code == 10103) {
|
||||
wx.removeStorageSync('access_token');
|
||||
if (!isNavigatingToLogin) {
|
||||
const pages = getCurrentPages();
|
||||
const currentRoute = pages[pages.length - 1]?.route;
|
||||
if (currentRoute !== 'pages/login/login') {
|
||||
isNavigatingToLogin = true;
|
||||
wx.navigateTo({
|
||||
url: '/pages/login/login',
|
||||
@ -30,6 +33,7 @@ function request(url, method = 'GET', data = {}) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
reject(res.data);
|
||||
}
|
||||
reject(res.data);
|
||||
|
||||
@ -343,7 +343,7 @@ Page({
|
||||
|
||||
},
|
||||
handleUpload(e) {
|
||||
wx.chooseMessageFile({
|
||||
wx.chooseImage({
|
||||
count: 1, // 选择一个文件
|
||||
type: 'all', // 支持所有类型的文件
|
||||
success: (res) => {
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -287,7 +287,7 @@ Page({
|
||||
|
||||
},
|
||||
handleUpload(e) {
|
||||
wx.chooseMessageFile({
|
||||
wx.chooseImage({
|
||||
count: 1, // 选择一个文件
|
||||
type: 'all', // 支持所有类型的文件
|
||||
success: (res) => {
|
||||
|
||||
@ -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 ? '':'请选择随访日期'}}" />
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -81,7 +81,7 @@ handleUpload(e) {
|
||||
const { mode } = e.currentTarget.dataset;
|
||||
|
||||
|
||||
wx.chooseMessageFile({
|
||||
wx.chooseImage({
|
||||
count: 1, // 选择一个文件
|
||||
type: 'all', // 支持所有类型的文件
|
||||
success: (res) => {
|
||||
|
||||
@ -352,8 +352,8 @@ Page({
|
||||
icon: 'success',
|
||||
duration: 2000,
|
||||
complete: () => {
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
wx.switchTab({
|
||||
url: '/pages/my/index'
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user