diff --git a/App.vue b/App.vue
index 14f3f86..bac732c 100644
--- a/App.vue
+++ b/App.vue
@@ -5,6 +5,7 @@
doctoridStorageKey:'doctor_id'
},
onLaunch: function(option) {
+ console.log(option,'option====');
if(!(option.query && option.query.did)){
var doctor_id = uni.getStorageSync(this.globalData.doctoridStorageKey)
if(doctor_id){
@@ -71,8 +72,8 @@
padding: 0;
background: #F8F6F9;
-webkit-text-size-adjust: 100%;
- font-family: PingFangSC-Regular,sans-serif;
- font-weight: 400;
+ font-family: "PingFang SC","Helvetica Neue", Helvetica, Arial, sans-serif;
+ font-weight: normal;
height: 100%;
}
.fl {
@@ -135,31 +136,22 @@
font-size:50rpx;
line-height: 50rpx;
}
- .PfScRegular{
- font-family: PingFangSC-Regular, sans-serif !important;
- font-weight: 400 !important;
- }
- .PfScUltralight{
- font-family: PingFangSC-Ultralight, sans-serif !important;
- }
- .PfScLight{
- font-family: PingFangSC-Light, sans-serif !important;
- }
- .PfScThin{
- font-family: PingFangSC-Thin, sans-serif !important;
- }
.PfScMedium{
- font-family: PingFangSC-Medium, sans-serif !important;
- font-weight: 500 !important;
+ font-weight: 600;
}
.PfScSemibold{
- font-family: PingFangSC-Semibold, sans-serif !important;
- font-weight: 600 !important;
+ font-weight: 700;
}
- .PfScHeavy{
- font-family: PingFangSC-Heavy, sans-serif !important;
- font-weight: 800 !important;
+
+ @supports (-webkit-touch-callout: none) {
+ .PfScMedium{
+ font-weight: 500;
+ }
+ .PfScSemibold{
+ font-weight: 600;
+ }
}
+
.over{
overflow: hidden;
text-overflow: ellipsis;
@@ -234,4 +226,36 @@
line-height: 40rpx !important;
height: 40rpx !important;
}
-
+
+ .pages-visitors-visitors /deep/ .uni-actionsheet__cell{
+ color:#31333B !important;
+ font-size: 34rpx;
+ line-height: 112rpx;
+ height: 112rpx;
+ padding: 0rpx 6rpx;
+ }
+ .pages-visitors-visitors /deep/ uni-actionsheet .uni-actionsheet {
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background: #F6F6F6;
+ border-radius: 20rpx 20rpx 0 0;
+ padding-bottom: constant(safe-area-inset-bottom);
+ padding-bottom: env(safe-area-inset-bottom);
+ }
+ .pages-visitors-visitors /deep/ .uni-actionsheet__menu{
+ border-radius: 20rpx 20rpx 0 0;
+ }
+
+ .pages-visitors-visitors /deep/ uni-actionsheet .uni-actionsheet__cell:before {
+ border-top: 2rpx solid #EEEEEE;
+ color: #EEEEEE;
+ }
+ .pages-visitors-visitors /deep/ uni-actionsheet .uni-actionsheet__action{
+ margin-top: 24rpx;
+ margin-bottom: 10rpx;
+ }
+
+
+
+
diff --git a/components/bookBox.vue b/components/bookBox.vue
index 4348faf..63eac5c 100644
--- a/components/bookBox.vue
+++ b/components/bookBox.vue
@@ -1,14 +1,17 @@
-
+
-
-
- {{item.date.date.substring(8,10)}}
- {{item.date.weekday}}
-
-
- {{item.date.type_text}}
-
+
+
+ {{item.month}}.{{ item.day }}
+ {{item.week_desc}}
+
+
+ {{item.work_desc}}
+
+
@@ -16,9 +19,9 @@
上午预约
-
- {{item.start}}-{{item.end}}
- ({{item.bed_count>0?item.bed_count:'满'}})
+
+ {{item}}
+ ({{time2remain[item]>0?time2remain[item]:'满'}})
@@ -31,9 +34,9 @@
下午预约
-
- {{item.start}}-{{item.end}}
- ({{item.bed_count?item.bed_count:'满'}})
+
+ {{item}}
+ ({{time2remain[item]?time2remain[item]:'满'}})
@@ -51,54 +54,70 @@
-
-
-
-
+
diff --git a/components/inputBox.vue b/components/inputBox.vue
index 271d293..2dec23d 100644
--- a/components/inputBox.vue
+++ b/components/inputBox.vue
@@ -1,4 +1,4 @@
-
+
@@ -11,12 +11,12 @@
*{{errormsg}}
-
-
-
-
+
diff --git a/components/preBookList.vue b/components/preBookList.vue
index c9df6f7..034e329 100644
--- a/components/preBookList.vue
+++ b/components/preBookList.vue
@@ -1,52 +1,58 @@
-
-
-
+
+
+
- {{item.visitor_name}}无
- {{item.visit_date}} {{getDayOfWeek(item.visit_date)}} {{item.visit_time}}
- {{item.h_name}} {{item.depart_name}}
+ {{item.name}}无
+ {{item.date}} {{item.week_desc}} {{item.time_interval}}
+
+ {{item.hospital_name}} {{item.depart_name}}
+
- {{statusDescList[item.status]}}
- 前方{{item.wait_visit_count}}人
+ {{item.status_desc}}
+ 前方{{item.wait_visit_count}}人
+
-
-
-
-
+
diff --git a/index.html b/index.html
index c3ff205..2651985 100644
--- a/index.html
+++ b/index.html
@@ -1,7 +1,9 @@
-
+
+
+
-
+ }
+ }
+ }
+
+
+}
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index a2b88df..f9f1c56 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -3,19 +3,18 @@
@@ -91,7 +94,49 @@
doctor_dept:false,
hospitals:false,
recentAppoint:[],
- loginToken:false
+ loginToken:false,
+ state:'',
+ workdate:[],
+ workPlan:{
+ 1:'上午',
+ 2:'下午',
+ 3:'全天',
+ },
+ visitlist:[
+ {
+ "id": "16",
+ "depart_id": "18",
+ "name": "暴富喽",
+ "date": "2024-09-28",
+ "week_desc": "六",
+ "time_interval": "08:00-08:30",
+ "status_desc": "就诊完成",
+ "hospital_name": "北京LY暴富",
+ "depart_name": "针灸科"
+ },
+ {
+ "id": "15",
+ "depart_id": "18",
+ "name": "刘老铁",
+ "date": "2024-09-28",
+ "week_desc": "六",
+ "time_interval": "08:30-09:00",
+ "status_desc": "候诊",
+ "hospital_name": "北京LY暴富",
+ "depart_name": "针灸科"
+ },
+ {
+ "id": "14",
+ "depart_id": "18",
+ "name": "首富哈",
+ "date": "2024-09-28",
+ "week_desc": "六",
+ "time_interval": "08:00-08:30",
+ "status_desc": "过号",
+ "hospital_name": "北京LY暴富",
+ "depart_name": "针灸科"
+ },
+ ]
}
},
components:{
@@ -99,12 +144,9 @@
preBookList,
},
onLoad(option) {
- if(option.code) this.code = option.code
- if(option.token) {
- this.loginToken = option.token
- uni.setStorageSync('token', this.loginToken)
- // var rebackPagePath = uni.getStorageSync('rebackPagePath')
- // if(!rebackPagePath)
+ if(option.code && option.state) {
+ this.code = option.code
+ this.state = option.state
}
},
async onShow() {
@@ -116,30 +158,37 @@
uni.setNavigationBarTitle({
title:title
})
-
- // var token = uni.getStorageSync('token')
- // if(this.code && !token) {
- // var rebackPagePath = uni.getStorageSync('rebackPagePath')
- // this.login()
- // return
- // }
+ var token = this.$token.getToken()
+ if(this.code && this.state && !token) {
+ var rebackPagePath = uni.getStorageSync('rebackPagePath')
+ this.login()
+ return
+ }
await this.getDoctorInfo()
},
+ // onReady() {
+ // // console.log(this.doctorInfo,'this.doctorInfo');
+ // uni.setNavigationBarTitle({
+ // title: + '医生预约就诊'
+ // })
+ // },
+ // "navigationBarTitleText": "预约就诊"
+
methods: {
toLocation(hospital){
var that = this
uni.showActionSheet({
itemList: ['腾讯地图', '百度地图', '高德地图'],
success: function (res) {
- var lngLat = hospital.h_pos.toString().split(',')
+ var lngLat = hospital.hospital_pos.toString().split(',')
var lng = lngLat[0].toString()
, lat = lngLat[1].toString()
var baiduLngLat = that.qqMapTransBMap(lng, lat)
var mapList = [
- 'http://apis.map.qq.com/uri/v1/marker?marker=coord:'+ lat+','+lng+';addr:'+hospital.h_name,
- 'http://api.map.baidu.com/marker?location='+baiduLngLat.lat+','+baiduLngLat.lng+'&title='+hospital.h_name+'&content=即将前往目的地&output=html&src=webapp.baidu.openAPIdemo',
- 'https://m.amap.com/share/index/lnglat='+hospital.h_pos+'&name='+hospital.h_name+'&src=uriapi&innersrc=uriapi',
+ 'http://apis.map.qq.com/uri/v1/marker?marker=coord:'+ lat+','+lng+';addr:'+hospital.hospital_name,
+ 'http://api.map.baidu.com/marker?location='+baiduLngLat.lat+','+baiduLngLat.lng+'&title='+hospital.hospital_name+'&content=即将前往目的地&output=html&src=webapp.baidu.openAPIdemo',
+ 'https://m.amap.com/share/index/lnglat='+hospital.hospital_pos+'&name='+hospital.hospital_name+'&src=uriapi&innersrc=uriapi',
]
// return;
location.href = mapList[res.tapIndex]
@@ -148,35 +197,75 @@
}
});
},
+ setLoginUserInfo(info) {
+ var uinfo = new Object();
+ this.$setuinfo.setUinfo(JSON.stringify(info))
+ },
login() {
- // this.$http.req('login', {code:this.code}, 'POST').then(data=>{
- // if(data == -1) return
- // uni.setStorageSync('token', data.token)
- // var rebackPagePath = uni.getStorageSync('rebackPagePath')
- // if(rebackPagePath){
- // uni.navigateTo({
- // url:rebackPagePath
- // })
- // }
- // });
+ this.$http.req('common/get_user_info', {code:this.code,state:this.state}, 'POST').then(data=>{
+ if(data == -1) return
+ this.$settoken.setToken(data.jwttoken)
+
+ this.setLoginUserInfo(data)
+ this.getDoctorInfo()
+ // var rebackPagePath = uni.getStorageSync('rebackPagePath')
+ // if(rebackPagePath){
+ // uni.navigateTo({
+ // url:rebackPagePath
+ // })
+ // }
+ });
+
},
async getDoctorInfo() {
- // if(this.loginToken) return;
- await this.$http.req('index_info', {}, 'GET').then(data=>{
+ await this.$http.req('user/index_info', {}, 'GET').then(data=>{
if(data == -1) return
- this.pageShow = true
- this.doctorInfo = data
- if(this.doctorInfo.doctor_info && this.doctorInfo.doctor_info.depart_name.length>0){
- this.doctor_dept = this.doctorInfo.doctor_info.depart_name
+ this.pageShow = true;
+ let visitFlag = true;
+ this.doctorInfo = data;
+ console.log(data)
+ if(this.doctorInfo.doctor_info && this.doctorInfo.doctor_info.depart_name && this.doctorInfo.doctor_info.depart_name.length>0){
+ this.doctor_dept = this.doctorInfo.doctor_info.depart_name;
}
-
- if(this.doctorInfo.hospital_list && this.doctorInfo.hospital_list.length>0){
- this.hospitals = this.doctorInfo.hospital_list
+ if(this.doctorInfo.hospital_departs && this.doctorInfo.hospital_departs.length>0){
+ this.hospitals = this.doctorInfo.hospital_departs;
+ this.doctor_dept = this.doctorInfo.hospital_departs[0]['depart_name'];
+ this.doctorInfo.doctor_info.depart_name = this.doctor_dept;
+ }else{
+ visitFlag = false;
+ }
+ if(this.doctorInfo.visit_list && this.doctorInfo.visit_list.length>0){
+ this.recentAppoint = this.doctorInfo.visit_list;
}
- var docname = this.doctorInfo.doctor_info.name
- if(this.doctorInfo.appoint_list && this.doctorInfo.appoint_list.length>0){
- this.recentAppoint = this.doctorInfo.appoint_list
+ if(this.doctorInfo.workdate && Object.keys(this.doctorInfo.workdate).length > 0){
+ this.workdate = this.doctorInfo.workdate;
+ }else{
+ visitFlag = false;
}
+ // if(visitFlag){//暂时注释
+ // let workDatKeyArr = Object.keys(this.workdate);
+ // let workDateValArr = Object.values(this.workdate);
+ // let timeList = [];
+ this.hospital_departs = this.doctorInfo.hospital_departs.map((item,index)=>{
+ item.workdate_desc = this.doctorInfo.workdate_desc[item.depart_id]
+ // let indexofNum = workDatKeyArr.indexOf(item.depart_id);
+ // if(indexofNum > -1){
+ // let departCurItem = workDateValArr[indexofNum];
+ // let flag = Array.isArray(departCurItem)
+ // if(flag){
+ // item.visit_time = data.workdate_desc[item.depart_id]
+ // item.plan =0
+ // }else{
+ // for(let key in departCurItem){
+ // let dateItem = departCurItem[key];
+ // if(Number(dateItem.plan) === 0)continue
+ // timeList.push(dateItem.week_desc+this.workPlan[dateItem.plan])
+ // item.visit_time = timeList.join('、')
+ // }
+ // }
+ // }
+ return item
+ })
});
},
enlargePicture(imgUrl) {
@@ -244,7 +333,7 @@
width: auto;
padding: 0 15rpx;
min-width: 125rpx;
- margin-top: 14rpx;
+ margin-top: 5rpx;
line-height: 42rpx;
text-align: center;
font-size: 28rpx;
@@ -285,7 +374,9 @@
font-size: 30rpx;
line-height: 50rpx;
.con{
- height: auto;
+ // height: auto;
+ overflow-y: auto;
+ max-height: 200rpx;
}
}
.title-wrapper{
@@ -338,6 +429,7 @@
.right{
width: 200rpx;
height: 100%;
+ color: #666666;
img{
width: 52rpx;
height: 52rpx;
@@ -374,7 +466,7 @@
img{
width: 20rpx;
height: 32rpx;
- margin-top: 8rpx;
+ // margin-top: 8rpx;
margin-left: 8rpx;
}
}
@@ -385,4 +477,4 @@
margin: 0 auto;
}
}
-
+
diff --git a/pages/modify_visitor/modify_visitor.vue b/pages/modify_visitor/modify_visitor.vue
index 92c8e9d..6c4b5c3 100644
--- a/pages/modify_visitor/modify_visitor.vue
+++ b/pages/modify_visitor/modify_visitor.vue
@@ -1,37 +1,44 @@
-
+
就诊人信息
-
+
-
+
确认就诊人
-
-
-
+
+
+ 取消
+ 确认
+
+
+
+
+
-
+ }
+ }
+ }
+
+
+ .fixedBot{
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ width: 100%;
+ height: 124rpx;
+ background: #FFFFFF;
+ box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(181,181,181,0.13);
+ backdrop-filter: blur(20rpx);
+ display: flex;
+ .submit{
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ column-gap: 50rpx;
+ }
+ }
+ }
+
+
diff --git a/pages/prebook/prebook.vue b/pages/prebook/prebook.vue
index 2114723..59b63a3 100644
--- a/pages/prebook/prebook.vue
+++ b/pages/prebook/prebook.vue
@@ -1,19 +1,19 @@
-
-
+
+
- {{depart.h_name}} {{depart.depart_name}}
+ {{depart.hospital_name}} {{depart.depart_name}}
-
+
预约信息确认
- 当前时段余号不足,只能预约{{times.remain_num}}人
+ 当前时段余号不足,只能预约{{times.remain}}人
- {{item.visitor_name}}
+ {{item.name}}
@@ -21,39 +21,39 @@
就诊人:
- {{nums[key]}}n.{{item.visitor_name}}
+ {{nums[key]}}n.{{item.name}}
医生姓名:
- {{doctorInfo.doctor_info.name}}
+ {{doctorInfo.doctor_info.doctor_name}}
就诊医院:
- {{depart.h_name}} {{depart.depart_name}}
+ {{depart.hospital_name}} {{depart.depart_name}}
看诊时间:
- {{times.date}} {{times.time_desc}} {{times.start_time}}-{{times.end_time}}
+ {{times.date}} {{times.time_desc}} {{times.time_interval}}
我再想想
确认预约
-
-
-
-
+
+
+
+
-
-
+ }
+
diff --git a/pages/prebook_list/prebook_list.vue b/pages/prebook_list/prebook_list.vue
index e0bf99b..aefe447 100644
--- a/pages/prebook_list/prebook_list.vue
+++ b/pages/prebook_list/prebook_list.vue
@@ -1,311 +1,118 @@
-
- 全部
- {{item.visitor_name}}
-
-
+
+ 全部
+ {{item.name}}
+
+
-
diff --git a/pages/user_modify/user_modify.vue b/pages/user_modify/user_modify.vue
index 5ecf4f0..1c527ae 100644
--- a/pages/user_modify/user_modify.vue
+++ b/pages/user_modify/user_modify.vue
@@ -1,12 +1,12 @@
-
+
-
+
头像
-
-
+
+
点击上传照片
@@ -28,27 +28,30 @@
保存
-
-
-
-
-
-
+ }
+ }
+ }
+
+
+ }
+
diff --git a/pages/usercenter/usercenter.vue b/pages/usercenter/usercenter.vue
index af736e0..67bf2bb 100644
--- a/pages/usercenter/usercenter.vue
+++ b/pages/usercenter/usercenter.vue
@@ -1,9 +1,9 @@
-
+
-
+
- {{uinfo.uid}}
+ {{uinfo.user_nick}}
-
-
-
-
+
+
+
+
-
-
+ }
+
diff --git a/pages/visitors/visitors.vue b/pages/visitors/visitors.vue
index 1c914b7..99416a0 100644
--- a/pages/visitors/visitors.vue
+++ b/pages/visitors/visitors.vue
@@ -1,16 +1,16 @@
-
-
+
+
- {{item.visitor_name}}
- {{item.remain_desc}}
+ {{item.name}}
+ 剩余{{item.remain_num}}次
- 身份证尾号:{{item.idcard_ext}}
+ 身份证尾号:{{item.idcard}}
@@ -26,21 +26,35 @@
- {{item.visitor_name}}
- 身份证尾号:{{item.idcard_ext}}
+ {{item.name}}
+ 身份证尾号:{{item.idcard}}
-
-
+
+
+
+
+
+ {{ item.hospital?item.hospital:'暂无剩余针灸次数'}}
+
+ {{item.depart }}
+ {{ item.doctor_status }}
+ {{ item.weeks }}周未看病
+
+ 剩余{{item.remain_num}}次
+ 超{{-item.remain_num}}次
+
@@ -53,15 +67,15 @@
@confirm="popConfirm"
@cancel="popCancel"
>
-
-
-
+
+
+
-
-
+}
+
diff --git a/static/images/frontend/list_empty.svg b/static/images/frontend/list_empty.svg
new file mode 100644
index 0000000..d8650b6
--- /dev/null
+++ b/static/images/frontend/list_empty.svg
@@ -0,0 +1 @@
+
\ No newline at end of file