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{ .left{
display: flex; display: flex;
min-width: 133rpx; min-width: 133rpx;
max-width: 232rpx; max-width: 238rpx;
text{ text{
color: #F55555; color: #F55555;
margin-right: 16rpx; margin-right: 16rpx;

2
components/preBookList.vue

@ -9,7 +9,7 @@
</view> </view>
<view class="right"> <view class="right">
<view :class="statusList[item.status]+' status'"><view class="over">候诊</view></view> <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> </view>
</view> </view>

2
main.js

@ -224,7 +224,7 @@ function req(url, data={}, method = 'POST', header={}) {
try{ try{
var rdata = res.data; var rdata = res.data;
if(rdata.code != CODE_SUCCESS) { 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) { if(headerObj.Authorization) {
console.log(headerObj.Authorization, url) console.log(headerObj.Authorization, url)
return return

8
manifest.json

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

16
pages.json

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

12
pages/modify_visitor/modify_visitor.vue

@ -33,7 +33,16 @@
components:{ components:{
InputBox 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){ nameBlurEvent(value, res){
this.name = value this.name = value
this.nameRule = res this.nameRule = res
@ -57,6 +66,7 @@
submit(){ submit(){
this.checkSubmit() this.checkSubmit()
if(!this.canSubmit) return if(!this.canSubmit) return
this.add()
} }
} }
} }

13
pages/prebook_list/prebook_list.vue

@ -32,8 +32,19 @@
}, },
components:{ components:{
preBookList 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() { pageInit() {
} }

9
pages/visitors/visitors.vue

@ -88,8 +88,17 @@
}, },
onLoad(option) { onLoad(option) {
if(option.type) this.type = option.type if(option.type) this.type = option.type
this.getVisitors()
}, },
methods: { 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() { showPopCom() {
this.$refs.popcom.open() this.$refs.popcom.open()
}, },

Loading…
Cancel
Save