3.22医生
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
}
|
||||
|
||||
.btnbox {
|
||||
margin-bottom: 20rpx;
|
||||
margin-bottom: 80rpx;
|
||||
}
|
||||
|
||||
.btn {
|
||||
|
||||
Reference in New Issue
Block a user