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, mask:true,
image:that.cssUrl+'gou.svg', image:that.cssUrl+'gou.svg',
times:false, times:false,
duration: 1500,
success() { success() {
that.$func.toPage('/pages/prebook_list/prebook_list')
} }
}) })
}); });
@ -119,7 +120,11 @@
bookInfo = data bookInfo = data
this.bookInfo = bookInfo this.bookInfo = bookInfo
this.status = this.statusStyleList[bookInfo.status] 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[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[1].rightTitle = bookInfo.name
this.list[2].rightTitle = bookInfo.hospital_name this.list[2].rightTitle = bookInfo.hospital_name

38
pages/index/index.vue

@ -247,27 +247,27 @@
visitFlag = false; visitFlag = false;
} }
// if(visitFlag){// // if(visitFlag){//
let workDatKeyArr = Object.keys(this.workdate); // let workDatKeyArr = Object.keys(this.workdate);
let workDateValArr = Object.values(this.workdate); // let workDateValArr = Object.values(this.workdate);
let timeList = []; // let timeList = [];
this.hospital_departs = this.doctorInfo.hospital_departs.map((item,index)=>{ this.hospital_departs = this.doctorInfo.hospital_departs.map((item,index)=>{
item.workdate_desc = this.doctorInfo.workdate_desc[item.depart_id] item.workdate_desc = this.doctorInfo.workdate_desc[item.depart_id]
let indexofNum = workDatKeyArr.indexOf(item.depart_id); // let indexofNum = workDatKeyArr.indexOf(item.depart_id);
if(indexofNum > -1){ // if(indexofNum > -1){
let departCurItem = workDateValArr[indexofNum]; // let departCurItem = workDateValArr[indexofNum];
let flag = Array.isArray(departCurItem) // let flag = Array.isArray(departCurItem)
if(flag){ // if(flag){
item.visit_time = data.workdate_desc[item.depart_id] // item.visit_time = data.workdate_desc[item.depart_id]
item.plan =0 // item.plan =0
}else{ // }else{
for(let key in departCurItem){ // for(let key in departCurItem){
let dateItem = departCurItem[key]; // let dateItem = departCurItem[key];
if(Number(dateItem.plan) === 0)continue // if(Number(dateItem.plan) === 0)continue
timeList.push(dateItem.week_desc+this.workPlan[dateItem.plan]) // timeList.push(dateItem.week_desc+this.workPlan[dateItem.plan])
item.visit_time = timeList.join('、') // item.visit_time = timeList.join('')
} // }
} // }
} // }
return item return item
}) })
}); });

2
pages/modify_visitor/modify_visitor.vue

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

12
pages/prebook_list/prebook_list.vue

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

2
pages/user_modify/user_modify.vue

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

Loading…
Cancel
Save