From 84128e06700a44d0e3c96a6c1b77d69b94045f33 Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Fri, 12 Apr 2024 19:15:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B0=B1=E8=AF=8A=E4=BA=BA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/inputBox.vue | 2 +- components/preBookList.vue | 2 +- main.js | 2 +- manifest.json | 8 +------- pages.json | 16 ++++++++-------- pages/modify_visitor/modify_visitor.vue | 12 +++++++++++- pages/prebook_list/prebook_list.vue | 13 ++++++++++++- pages/visitors/visitors.vue | 9 +++++++++ 8 files changed, 44 insertions(+), 20 deletions(-) diff --git a/components/inputBox.vue b/components/inputBox.vue index 1531cc1..271d293 100644 --- a/components/inputBox.vue +++ b/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; diff --git a/components/preBookList.vue b/components/preBookList.vue index 3d7ab8d..2cd8443 100644 --- a/components/preBookList.vue +++ b/components/preBookList.vue @@ -9,7 +9,7 @@ 候诊 - 前方{{item.queue_num}} + 前方{{item.wait_count}} diff --git a/main.js b/main.js index 0c20158..3f0bca2 100644 --- a/main.js +++ b/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 diff --git a/manifest.json b/manifest.json index d1118a7..ef58cd6 100644 --- a/manifest.json +++ b/manifest.json @@ -92,13 +92,7 @@ } }, "sdkConfigs" : { - "maps" : { - "amap" : { - "key" : "1249ab0e0ef6a1d276e279cf7b51a3a2", - "securityJsCode" : "4f881fcb7709c8acbfb55c3708f7176b", - "serviceHost" : "" - } - } + "maps" : {} } } } diff --git a/pages.json b/pages.json index f078ce8..6170386 100644 --- a/pages.json +++ b/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 } }, diff --git a/pages/modify_visitor/modify_visitor.vue b/pages/modify_visitor/modify_visitor.vue index 0e75b50..f7defce 100644 --- a/pages/modify_visitor/modify_visitor.vue +++ b/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() } } } diff --git a/pages/prebook_list/prebook_list.vue b/pages/prebook_list/prebook_list.vue index 2d2ca61..9142d01 100644 --- a/pages/prebook_list/prebook_list.vue +++ b/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() { } diff --git a/pages/visitors/visitors.vue b/pages/visitors/visitors.vue index 8a2d79e..4f2e54e 100644 --- a/pages/visitors/visitors.vue +++ b/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() },