Browse Source

就诊人页面改造

master
kuaileWu 7 months ago
parent
commit
94af8242a5
  1. 2
      components/inputBox.vue
  2. 3
      manifest.json
  3. 18
      pages/modify_visitor/modify_visitor.vue

2
components/inputBox.vue

@ -2,7 +2,7 @@
<view class="input-com"> <view class="input-com">
<view :class="'input-wrapper'+(errormsg?' error':'')"> <view :class="'input-wrapper'+(errormsg?' error':'')">
<view class="left"> <view class="left">
<text :class="!required?'hide-start':''"><img :src="cssUrl+'hua.svg'" class="hua"></text> <!-- <text :class="!required?'hide-start':''"><img :src="cssUrl+'hua.svg'" class="hua"></text> -->
<view>{{label}}</view> <view>{{label}}</view>
</view> </view>
<view class="right"> <view class="right">

3
manifest.json

@ -69,7 +69,8 @@
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
}, },
"vueVersion" : "2", "vueVersion" : "2",
/* "target" : "http://jasonyizherenxin.checkcopy.com",*/
"h5" : { "h5" : {
"router" : { "router" : {
"mode" : "history", "mode" : "history",

18
pages/modify_visitor/modify_visitor.vue

@ -8,8 +8,11 @@
</view> </view>
<view class="submit-wrapper btPadding" v-if="!vid"> <view class="submit-wrapper btPadding" v-if="!vid">
<view :class="'btn btn3 submit'+(canSubmit?' primary':' noclick')" :hover-class="(canSubmit?'hover':'')" @click="submit"> <view :class="'btn btn3 submit'+(canSubmit?' primary':' noclick')" :hover-class="(canSubmit?'hover':'')" @click="submit" v-if="!vid">
确认就诊人 确认添加
</view>
<view :class="'btn btn3 submit'+(canSubmit?' primary':' noclick')" :hover-class="(canSubmit?'hover':'')" @click="submit" v-else>
确认修改
</view> </view>
</view> </view>
<view class="fixedBot btPadding" v-if="vid"> <view class="fixedBot btPadding" v-if="vid">
@ -45,7 +48,16 @@
}, },
onLoad(option) { onLoad(option) {
if(option.type) this.type = option.type if(option.type) this.type = option.type
if(option.vid) this.vid = option.vid if(option.vid) {
this.vid = option.vid
uni.setNavigationBarTitle({
title: '修改就诊人'
});
}else{
uni.setNavigationBarTitle({
title: '添加就诊人'
});
}
}, },
onShow() { onShow() {
if(this.vid) this.getVisitorInfo() if(this.vid) this.getVisitorInfo()

Loading…
Cancel
Save