Browse Source

删除无用代码

master
zq 4 months ago
parent
commit
b2fa84704b
  1. 14
      components/bookBox.vue
  2. 13
      pages/book_detail/book_detail.vue
  3. 7
      pages/prebook/prebook.vue
  4. 3
      pages/prebook_list/prebook_list.vue
  5. 6
      pages/user_modify/user_modify.vue
  6. 17
      pages/visitors/visitors.vue
  7. 2
      pages/visitors_new/visitors_new.vue
  8. 7
      pages/waiting_method/waiting_method.vue

14
components/bookBox.vue

@ -9,9 +9,6 @@
<view :class="'bot'+((item.work_desc !== '不出诊')?' active':'')+(key==0?' PfScMedium':'')">
{{item.work_desc}}
</view>
<!-- <view :class="'bot'+((item.date.type!=1 && item.date.type!=5)?' active':'')+(key==0?' PfScMedium':'')">
{{item.work_desc}}
</view> -->
</view>
</view>
@ -61,11 +58,6 @@
export default {
name: "bookBox",
props: {
// RegistrationTimeList:Object,
// RegistrationTimeList:{
// type:Object,
// default:()=>{}
// },
visitorList:{
type:Array,
default:()=>[]
@ -74,7 +66,6 @@ export default {
data() {
return {
cssUrl:this.cssUrl,
workDate:[],
time2remain:[],
bookTimeList:false,
timeList:true,
@ -87,16 +78,13 @@ export default {
},
methods: {
dataInit(allDate,chooseDate) {//
// dataInit(firstRegistrationTime,time2remain,chooseDate) {//
let firstRegistrationTime = allDate['date2time']
this.RegistrationTimeList = allDate['date2work']
this.nowtime = allDate['nowtime']
this.time2remain = allDate['time2remain'];
for (var key in this.time2remain) {
if (this.time2remain.hasOwnProperty(key)) {
var element = this.time2remain[key];
var times = key.split('-')
var start_times = chooseDate+' '+times[0]
var end_times = chooseDate+' '+times[1]
this.time2remainExpire[key] = 0
if(this.nowtime >= end_times) this.time2remainExpire[key] = 1
@ -119,8 +107,6 @@ export default {
this.selectDay = date
this.bookTimeList = false
this.$emit('getAvailabletRegistrationTime', true,this.selectDay)
// if(book.am.length > 0 || book.pm.length > 0) this.bookTimeList = true
// this.timeList = book
},
confirmSubmit(time_interval, type){
let param = new Object()

13
pages/book_detail/book_detail.vue

@ -21,7 +21,6 @@
<view class="submit">
<view :class="'btn cancel'+(showCancelBook?' btn1':' btn3')" hover-class="hover" @click="reback">返回</view>
<view class="btn primary btn1" hover-class="hover" v-if="showCancelBook" @click="cancelBook">取消预约</view>
<!-- <view class="btn primary btn1" hover-class="hover" v-if="showReBook && !showCancelBook" @click="rebook">重新预约</view> -->
</view>
</view>
@ -50,12 +49,8 @@
export default {
data() {
return {
statusList:['status_wait', 'status_ing', 'status_down', 'status_out_num', 'status_expire', 'status_cancle'],
statusStyleList:{'0':'status_wait', '1':'status_ing', '2':'status_down', '3':'status_out_num', '4':'status_expire','5':'status_cancle'},
statusDescList:['候诊', '就诊中', '已完成','过号', '已过期', '已取消'],
status:'',
queueNum:88,
bookDate:"2024.01.09 周二 09:30-12:00",
notice:"",
list:[
{'leftTitle':'候诊状态','custom':"",show:true,edit:true},
@ -72,7 +67,6 @@
bookId:false,
depart_id:false,
bookInfo:false,
showReBook:false,
cssUrl:this.cssUrl,
visitorList:[
{name:'张三',type:1,showuinfo:false}
@ -82,7 +76,6 @@
}
},
onLoad(option) {
// if(option.index) this.redirect = '/pages/index/index'
if(option.id) this.bookId = option.id
if(option.depart_id) this.depart_id = option.depart_id
@ -157,10 +150,6 @@
}
var bookInfo = data
// if(bookInfo && bookInfo.length <= 0){
// this.$pop.modelShow('')
// return
// }
bookInfo = data
this.bookInfo = bookInfo
this.status = this.statusStyleList[bookInfo.status]
@ -178,8 +167,6 @@
this.list[3].rightTitle = bookInfo.hospital_name
this.list[4].rightTitle = bookInfo.depart_name
this.list[5].rightTitle = bookInfo.doctor_name ? bookInfo.doctor_name : '无'
// this.list[5].custom = "<view class='queue-text'><text class='queue-num-txt PfScSemibold'>"+bookInfo.wait_visit_count+"</text></view>"
// if(bookInfo.wait_visit_count<=0 || bookInfo.status!=0) this.list[5].show = false
this.list[6].show = false
this.list[7].custom = "<view class='book-date"+(bookInfo.status==0?' wait':' expire')+"'>"+bookInfo.visit_date+' '+bookInfo.week_desc+' '+bookInfo.visit_time+"</view>"
this.notice = bookInfo.notice;

7
pages/prebook/prebook.vue

@ -56,9 +56,6 @@
return {
cssUrl:this.cssUrl,
needSelectMembers:false,
doctorId:false,
RegistrationTimeList:[],
hospitalId:false,
hospital:false,
activeVisitors:[],
nums:['①','②','③','④','⑤','⑥','⑦','⑧','⑨','⑩'],
@ -201,10 +198,6 @@
this.times.time_desc = '下午';
if(times.type == 1) this.times.time_desc = '上午';
this.$http.req('user/check_appoint_nums', param,'POST').then(data=>{
// if(data == -1) {
// this.getAvailabletRegistrationTime(false, chooseDay)
// return
// }
if(data.remain < this.activeVisitors.length){
this.needSelectMembers = true
this.$set(this.times, 'remain', data.remain)

3
pages/prebook_list/prebook_list.vue

@ -45,9 +45,6 @@
uni.hideLoading()
if(data == -1) return
this.bookList = data;
// if(this.userSelectIndex === 0){
// this.vistors = JSON.parse(JSON.stringify(data))
// }
});
},
pageInit() {

6
pages/user_modify/user_modify.vue

@ -46,9 +46,6 @@
tempFiles:''
}
},
onLoad() {
// this.getUser()
},
methods: {
getUser(){
this.$http.req('user/get_user_info', {}, 'GET').then(data=>{
@ -94,7 +91,6 @@
});
},
copyUid(uid) {
var that = this
uni.setClipboardData({
data: uid,
success: function () {
@ -106,13 +102,11 @@
uni.chooseImage({
count: 1,
success: function(res) {
console.log(res,'res---');
var tempFilePaths = res.tempFilePaths
let tempFiles = res.tempFiles;
that.tempFilePaths = tempFilePaths[0]
that.tempFiles = tempFiles[0]
that.uinfo.user_avatar = that.tempFilePaths
console.log(that.uinfo,'=uinfo');
}
});
}

17
pages/visitors/visitors.vue

@ -12,9 +12,7 @@
<view :class="'item block'+(item.select?' active':'')" v-for="(item,key) in visitUsers" @click="chooseVisitor(item, key)">
<view class="top flex">
<view class="name PfScSemibold over2">{{item.name}}</view>
<!-- <view class="aam_times" v-if="item.remain_num > 0">剩余{{item.remain_num}}</view> -->
<view class="book-date" v-if="type == 0 && item.visit_time && !is_preview">已预约今日 {{ item.visit_time.split('-')[0] }} 就诊</view>
<!-- <view class="book-date" v-if="type == 3">已预约今日 12:30 就诊</view> -->
</view>
<view class="bot line36">
身份证号{{item.idcard_txt}}
@ -68,7 +66,6 @@
<view class="bt-item flex">
<view class="left flex">
<view class="over">{{ item.hospital?item.hospital:'暂无剩余针灸次数'}}</view>
<!-- <view :class="(!item.doctor_status && !item.weeks)? 'over' : ''">{{ item.hospital}}</view> -->
<view class="over depart">{{item.depart }}</view>
<view class="status2" v-if="item.doctor_status !== '出诊' && item.hospital">{{ item.doctor_status }}</view>
<view class="status2" v-else-if="item.weeks && item.hospital">{{ item.weeks }}周未看病</view>
@ -100,20 +97,16 @@
data() {
return {
cssUrl:this.cssUrl,
type:-1,
res:true,
popContent:'删除张杨明后,就诊记录还可以查到,确定删除吗?',
popTitle:'确认删除',
popShowCancel:true,
visitUsers:false,
selectCount:0,
hospitalId:false,
activeVisitors:[],
popMsgs:[],
popIndex:0,
depart_id:0,
hospital_depart_name:'',
hasBaoDaoData:false,
type:-1,
pageshow:false,
is_preview:false,
@ -177,9 +170,6 @@
},
methods: {
reback(){
// uni.navigateTo({
// url:'/'
// })
this.$nav.navToPath('/')
},
// --
@ -313,13 +303,6 @@
}
}
},
showNotice(popmshIndex){
var popinfo = this.popMsgs[popmshIndex]
this.popContent = popinfo.popContent
this.popTitle = popinfo.popTitle
this.popShowCancel = popinfo.popShowCancel
this.showPopCom()
},
popCancel(e){
},
addVisitor(){

2
pages/visitors_new/visitors_new.vue

@ -19,9 +19,7 @@
return {
cssUrl:this.cssUrl,
depart_id:0,
hospital_depart_name:'',
visitor_list:false,
value:'',
visitor_id:0,
}
},

7
pages/waiting_method/waiting_method.vue

@ -27,10 +27,6 @@
active_visitors:[],
hospital_depart_name:'',
submitting:false,
visitorList:[
{name:'张三',type:1},
{name:'李四', type:1},
]
}
},
components:{
@ -99,9 +95,6 @@
this.$http.req('user/checkin', obj, 'POST').then(data => {
//
if(data == -1) return
// uni.navigateTo({
// url: '/pages/prebook_list/prebook_list'
// });
this.$nav.navToPath('/pages/prebook_list/prebook_list')
}).catch(err => {
this.$pop.msg('提交失败,请重试');

Loading…
Cancel
Save