Browse Source

文案修改、跳转页面修改

master
zq 9 months ago
parent
commit
d50896e499
  1. 9
      pages/book_detail/book_detail.vue
  2. 38
      pages/index/index.vue
  3. 2
      pages/modify_visitor/modify_visitor.vue
  4. 12
      pages/prebook_list/prebook_list.vue
  5. 2
      pages/user_modify/user_modify.vue

9
pages/book_detail/book_detail.vue

@ -89,8 +89,9 @@
mask:true,
image:that.cssUrl+'gou.svg',
times:false,
duration: 1500,
success() {
that.$func.toPage('/pages/prebook_list/prebook_list')
}
})
});
@ -119,7 +120,11 @@
bookInfo = data
this.bookInfo = bookInfo
this.status = this.statusStyleList[bookInfo.status]
if(bookInfo.status==0 || bookInfo.status==2) this.showCancelBook = true
if(bookInfo.status==0 || bookInfo.status==2){
this.showCancelBook = true
}else{
this.showCancelBook = false
}
this.list[0].custom = "<view class='"+this.status+" status'><view class='over status_text'>"+bookInfo.status_desc+"</view></view>"
this.list[1].rightTitle = bookInfo.name
this.list[2].rightTitle = bookInfo.hospital_name

38
pages/index/index.vue

@ -247,27 +247,27 @@
visitFlag = false;
}
// if(visitFlag){//
let workDatKeyArr = Object.keys(this.workdate);
let workDateValArr = Object.values(this.workdate);
let timeList = [];
// 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('、')
}
}
}
// 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
})
});

2
pages/modify_visitor/modify_visitor.vue

@ -139,7 +139,7 @@
overflow-y: scroll;
.block{
min-height: 50vh;
min-height: 562rpx;
min-height: 662rpx;
background: #FFFFFF;
box-shadow: 0rpx 2rpx 24rpx 0rpx rgba(0,0,0,0.03);
border-radius: 8rpx;

12
pages/prebook_list/prebook_list.vue

@ -22,7 +22,7 @@
preBookList
},
onShow(){
this.getBookData()
this.getVisitors()
},
methods: {
selectUser(key){
@ -34,7 +34,7 @@
param.page = 1
param.limit = 10000
if(this.userSelectIndex-1 >= 0){
param.visitor_id = this.vistors[this.userSelectIndex-1].visitor_id
param.visitor_id = this.vistors[this.userSelectIndex-1].id
console.log(this.vistors)
}else{
param.visitor_id = '0'
@ -51,9 +51,9 @@
uni.hideLoading()
if(data == -1) return
this.bookList = data;
if(this.userSelectIndex === 0){
this.vistors = JSON.parse(JSON.stringify(data))
}
// if(this.userSelectIndex === 0){
// this.vistors = JSON.parse(JSON.stringify(data))
// }
});
},
getVisitors() {
@ -62,8 +62,8 @@
param.limit = 10000
this.$http.req('user/get_visitors', {}, 'GET').then(data=>{
if(data == -1) return
this.getBookData()
this.vistors = data
this.getBookData()
});
},
pageInit() {

2
pages/user_modify/user_modify.vue

@ -80,7 +80,7 @@
return
}
uni.showToast({
title:data.msg
title:'修改成功'
})
if(that.tempFilePaths) that.uinfo.user_avatar = that.tempFilePaths
}catch(e){

Loading…
Cancel
Save