|
@ -42,8 +42,6 @@ |
|
|
depart_info = JSON.parse(depart_info) |
|
|
depart_info = JSON.parse(depart_info) |
|
|
this.hospital_depart_name = depart_info.hospital_name + ' ' + depart_info.depart_name |
|
|
this.hospital_depart_name = depart_info.hospital_name + ' ' + depart_info.depart_name |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.getVisitors() |
|
|
|
|
|
this.depart_id = uni.getStorageSync('depart_id') |
|
|
this.depart_id = uni.getStorageSync('depart_id') |
|
|
if(!this.depart_id) { |
|
|
if(!this.depart_id) { |
|
|
this.$pop.modelShow('请先选择要预约的医院科室', '/pages/index/index') |
|
|
this.$pop.modelShow('请先选择要预约的医院科室', '/pages/index/index') |
|
@ -51,17 +49,6 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
getVisitors() { |
|
|
|
|
|
this.$http.req('api/user/get_visitors', {}, 'POST').then(data=>{ |
|
|
|
|
|
this.visitUsers = data; |
|
|
|
|
|
this.visitUsers = [...this.visitUsers] |
|
|
|
|
|
this.popMsgs = [] |
|
|
|
|
|
for (var i = 0; i < this.visitUsers.length; i++) { |
|
|
|
|
|
this.visitUsers[i].select = false |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
changeType(info) { |
|
|
changeType(info) { |
|
|
// 存储每一项的候诊方式 |
|
|
// 存储每一项的候诊方式 |
|
|
this.active_visitors[info.key].type = info.type; |
|
|
this.active_visitors[info.key].type = info.type; |
|
|