Browse Source

增加就诊人页面

master
kuaileWu 1 year ago
parent
commit
84128e0670
  1. 2
      components/inputBox.vue
  2. 2
      components/preBookList.vue
  3. 2
      main.js
  4. 8
      manifest.json
  5. 16
      pages.json
  6. 12
      pages/modify_visitor/modify_visitor.vue
  7. 13
      pages/prebook_list/prebook_list.vue
  8. 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>

2
main.js

@ -224,7 +224,7 @@ function req(url, data={}, method = 'POST', header={}) {
try{
var rdata = res.data;
if(rdata.code != CODE_SUCCESS) {
if(rdata.code==CODE_LOGIN_EXIPRE && data.xcx_scource == Vue.prototype.USER_SOURCE_WX_H5 && url != getWxH5LoginConfigUri && data.repeat != 1){
if(rdata.code==CODE_LOGIN_EXIPRE && data.xcx_scource == Vue.prototype.USER_SOURCE_WX_H5 && url != getWxH5LoginConfigUri && data.repeat != 1){
if(headerObj.Authorization) {
console.log(headerObj.Authorization, url)
return

8
manifest.json

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

16
pages.json

@ -7,26 +7,26 @@
}
},
{
"path" : "pages/map/map",
"style" :
"path" : "pages/prebook_list/prebook_list",
"style" :
{
"navigationBarTitleText": "",
"navigationBarTitleText": "预约列表",
"enablePullDownRefresh": false
}
},
{
"path" : "pages/book_detail/book_detail",
"style" :
"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
}
},

12
pages/modify_visitor/modify_visitor.vue

@ -33,7 +33,16 @@
components:{
InputBox
},
methods: {
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()
}
}
}

13
pages/prebook_list/prebook_list.vue

@ -32,8 +32,19 @@
},
components:{
preBookList
},
onShow(){
this.getBookData()
},
methods: {
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