| xqd
@@ -2,12 +2,12 @@
|
|
|
<view class="main">
|
|
|
<view class="cu-list menu-avatar">
|
|
|
<view class="cu-item">
|
|
|
- <view class="cu-avatar round lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg);"></view>
|
|
|
+ <view class="cu-avatar round lg" :style="'background-image:url('+doctor.avatar+');'"></view>
|
|
|
<view class="content">
|
|
|
- <view class="text-grey">医生姓名</view>
|
|
|
+ <view class="text-grey">{{doctor.name}}</view>
|
|
|
<view class="text-gray text-sm flex">
|
|
|
<text class="text-cut">
|
|
|
- 科室名称 医生资质
|
|
|
+ {{doctor.office.name}} {{doctor.qualification.name}}
|
|
|
</text>
|
|
|
</view>
|
|
|
</view>
|
| xqd
@@ -38,7 +38,7 @@
|
|
|
<text class="text-grey">咨询时间</text>
|
|
|
</view>
|
|
|
<view class="action">
|
|
|
- <text class="text-grey text-sm">10分钟</text>
|
|
|
+ <text class="text-grey text-sm">{{doctor.phone_minutes}}分钟</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="cu-item">
|
| xqd
@@ -46,7 +46,7 @@
|
|
|
<text class="text-grey">咨询费用</text>
|
|
|
</view>
|
|
|
<view class="action">
|
|
|
- <text class="text-grey text-sm">19.9元</text>
|
|
|
+ <text class="text-grey text-sm">{{doctor.phone_price}}元</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
| xqd
@@ -63,11 +63,11 @@
|
|
|
<view class="popup_title_text">选择就诊人</view>
|
|
|
</view>
|
|
|
<scroll-view style="height: 70%;" scroll-y="true">
|
|
|
- <view class="popup_list" v-for="(item, index) in list" @click="value=item.name,showpeople=false">
|
|
|
+ <view class="popup_list" v-for="(item, index) in patientList" :key="index" :data-index="index" @click="value=item.name,showpeople=false">
|
|
|
<view class="popup_list_title">
|
|
|
<view class="title">{{item.name}}</view>
|
|
|
<view class="body">
|
|
|
- 男 18天
|
|
|
+ {{item.sex==1?'男':'女'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="popup_list_button flex align-center">
|
| xqd
@@ -122,32 +122,16 @@
|
|
|
export default {
|
|
|
onLoad(options) {
|
|
|
this.phonenum = this.phoneList[0].num
|
|
|
+ this.doctor = JSON.parse(options.doctor)
|
|
|
+ console.log(this.doctor)
|
|
|
+ },
|
|
|
+ onShow() {
|
|
|
+ this.getarchives()
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
/* 就诊人 */
|
|
|
showpeople: false,
|
|
|
- list: [{
|
|
|
- name: '测试1',
|
|
|
- disabled: false
|
|
|
- },
|
|
|
- {
|
|
|
- name: '测试2',
|
|
|
- disabled: false
|
|
|
- },
|
|
|
- {
|
|
|
- name: '测试3',
|
|
|
- disabled: false
|
|
|
- },
|
|
|
- {
|
|
|
- name: '测试4',
|
|
|
- disabled: false
|
|
|
- },
|
|
|
- {
|
|
|
- name: '测试5',
|
|
|
- disabled: false
|
|
|
- }
|
|
|
- ],
|
|
|
// u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
|
|
|
value: '',
|
|
|
/* 接听号码 */
|
| xqd
@@ -168,7 +152,9 @@
|
|
|
phoneValue: '',
|
|
|
showinput: '其他手机号',
|
|
|
phonenum: "",
|
|
|
- phonedata: ""
|
|
|
+ phonedata: "",
|
|
|
+ patientList: [],
|
|
|
+ doctor: {}
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
| xqd
@@ -208,7 +194,13 @@
|
|
|
confirmphone() {
|
|
|
this.phonenum = this.phonedata
|
|
|
this.showphone = !this.showphone
|
|
|
- }
|
|
|
+ },
|
|
|
+ getarchives: async function() {
|
|
|
+ let res = await this.$request.post("/api/v1/patient/patientList")
|
|
|
+ if (res.status == 0) {
|
|
|
+ this.patientList = res.data.data
|
|
|
+ }
|
|
|
+ },
|
|
|
|
|
|
}
|
|
|
};
|