3.22医生

This commit is contained in:
zoujiandong
2024-03-22 16:10:50 +08:00
parent 2454bafd78
commit bdc8abf326
34 changed files with 437 additions and 137 deletions
+17 -1
View File
@@ -107,7 +107,7 @@ Page({
})
},
openPreview(){
let {process_message,content_message,}=this.data;
let {process_message,content_message,cycle,rounds}=this.data;
if(content_message.length<10){
wx.showToast({
title: '服务内容不少于10个字符',
@@ -122,9 +122,25 @@ Page({
})
return false
};
if(!cycle){
wx.showToast({
title: '请设置服务周期',
icon:'none'
})
return false
}
if(!rounds && rounds!=0){
wx.showToast({
title: '请设置服务回合数',
icon:'none'
})
return false
}
wx.setStorageSync('config_message', {
content_message,
process_message,
rounds,
cycle
})
this.setData({
showPreview:true
+1 -1
View File
@@ -35,7 +35,7 @@
<view class="cell" bindtap="openRound">
<view class="name">服务回合数</view>
<view class="right">
<view class="msg" wx:if="{{rounds || rounds===0}}">{{rounds}}</view>
<view class="msg" wx:if="{{rounds || rounds===0}}">{{rounds==0?'不限次':rounds}}</view>
<view class="msg" wx:else>去设置</view>
<van-icon name="arrow" class="icon" />
</view>
+1 -1
View File
@@ -104,7 +104,7 @@
}
.btnbox {
margin-bottom: 20rpx;
margin-bottom: 80rpx;
}
.btn {