Browse Source

增加就诊人页面

master
kuaileWu 1 year ago
parent
commit
84128e0670
  1. 2
      components/inputBox.vue
  2. 2
      components/preBookList.vue
  3. 8
      manifest.json
  4. 12
      pages.json
  5. 10
      pages/modify_visitor/modify_visitor.vue
  6. 11
      pages/prebook_list/prebook_list.vue
  7. 9
      pages/visitors/visitors.vue

2
components/inputBox.vue

@ -113,7 +113,7 @@ export default {
.left{
display: flex;
min-width: 133rpx;
max-width: 232rpx;
max-width: 238rpx;
text{
color: #F55555;
margin-right: 16rpx;

2
components/preBookList.vue

@ -9,7 +9,7 @@
</view>
<view class="right">
<view :class="statusList[item.status]+' status'"><view class="over">候诊</view></view>
<view class="queue-num" v-if="statusList[item.status]=='status_wait' && item.queue_num"><view>前方<text class="PfScSemibold">{{item.queue_num}}</text></view> </view>
<view class="queue-num" v-if="statusList[item.status]=='status_wait' && item.wait_count"><view>前方<text class="PfScSemibold">{{item.wait_count}}</text></view> </view>
</view>
</view>
</view>

8
manifest.json

@ -92,13 +92,7 @@
}
},
"sdkConfigs" : {
"maps" : {
"amap" : {
"key" : "1249ab0e0ef6a1d276e279cf7b51a3a2",
"securityJsCode" : "4f881fcb7709c8acbfb55c3708f7176b",
"serviceHost" : ""
}
}
"maps" : {}
}
}
}

12
pages.json

@ -7,26 +7,26 @@
}
},
{
"path" : "pages/map/map",
"path" : "pages/prebook_list/prebook_list",
"style" :
{
"navigationBarTitleText": "",
"navigationBarTitleText": "预约列表",
"enablePullDownRefresh": false
}
},
{
"path" : "pages/book_detail/book_detail",
"path" : "pages/map/map",
"style" :
{
"navigationBarTitleText": "预约详情",
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path" : "pages/prebook_list/prebook_list",
"path" : "pages/book_detail/book_detail",
"style" :
{
"navigationBarTitleText": "预约列表",
"navigationBarTitleText": "预约详情",
"enablePullDownRefresh": false
}
},

10
pages/modify_visitor/modify_visitor.vue

@ -34,6 +34,15 @@
InputBox
},
methods: {
add() {
var param = new Object()
param.real_name = this.name
param.id_no = this.idcardExt
param.mobile = this.phone
this.$http.req('client/user/visit_user/', param, 'POST').then(data=>{
if(data == -1) return
});
},
nameBlurEvent(value, res){
this.name = value
this.nameRule = res
@ -57,6 +66,7 @@
submit(){
this.checkSubmit()
if(!this.canSubmit) return
this.add()
}
}
}

11
pages/prebook_list/prebook_list.vue

@ -33,7 +33,18 @@
components:{
preBookList
},
onShow(){
this.getBookData()
},
methods: {
getBookData() {
var param = new Object()
param.doctor_id = getApp().globalData.doctorId
this.$http.req('client/user/appoint/', param, 'POST', true).then(data=>{
if(data == -1) return
});
},
pageInit() {
}

9
pages/visitors/visitors.vue

@ -88,8 +88,17 @@
},
onLoad(option) {
if(option.type) this.type = option.type
this.getVisitors()
},
methods: {
getVisitors() {
var param = new Object()
param.page = 1
param.limit = 10000
this.$http.req('client/user/visit_user/', param, 'GET').then(data=>{
if(data == -1) return
});
},
showPopCom() {
this.$refs.popcom.open()
},

Loading…
Cancel
Save