| xqd
@@ -42,26 +42,31 @@
|
|
|
<view @click="gotoxuanze" data-index="1">
|
|
|
<u-grid-item>
|
|
|
<u-image width="120rpx" height="120rpx" src="https://cdn.uviewui.com/uview/example/fade.jpg" shape="circle"></u-image>
|
|
|
- <view class="grid-text">电话咨询</view>
|
|
|
+ <view class="grid-text margin-top-sm">电话咨询</view>
|
|
|
</u-grid-item>
|
|
|
</view>
|
|
|
<view class="" @click="gotoxuanze" data-index="2">
|
|
|
<u-grid-item>
|
|
|
<u-image width="120rpx" height="120rpx" src="https://cdn.uviewui.com/uview/example/fade.jpg" shape="circle"></u-image>
|
|
|
- <view class="grid-text">图文咨询</view>
|
|
|
+ <view class="grid-text margin-top-sm">图文咨询</view>
|
|
|
</u-grid-item>
|
|
|
</view>
|
|
|
<view class="" @click="gotoxuanze" data-index="3">
|
|
|
<u-grid-item>
|
|
|
<u-image width="120rpx" height="120rpx" src="https://cdn.uviewui.com/uview/example/fade.jpg" shape="circle"></u-image>
|
|
|
- <view class="grid-text">门诊预约</view>
|
|
|
+ <view class="grid-text margin-top-sm">门诊预约</view>
|
|
|
</u-grid-item>
|
|
|
</view>
|
|
|
</u-grid>
|
|
|
<u-line color="#efefef" :hair-line="true" />
|
|
|
- <view class="text-lg text-center margin-top-sm" style="color: rgb(238, 170, 63);">
|
|
|
+ <view v-if="!isjigou" class="text-lg text-center margin-top-sm" style="color: rgb(238, 170, 63);">
|
|
|
平均回复低至1分钟
|
|
|
</view>
|
|
|
+ <view v-else class="text-lg margin-top-sm" style="color: rgb(238, 170, 63);border-bottom: 3rpx solid rgb(238, 170, 63);"
|
|
|
+ @click="xuantime">
|
|
|
+ 已选时间{{daytime}}
|
|
|
+ <u-picker mode="multiSelector" v-model="show" @confirm="test" safe-area-inset-bottom :params="params"></u-picker>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view v-if="isjigou" bindtap="goAdrPostion" class="pr pt10 pb10 margin-lr-sm margin-top-sm m-bg-white" style="border-radius: 16rpx;box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);">
|
|
|
<view class="pr pt15 pb15">
|
| xqd
@@ -124,9 +129,11 @@
|
|
|
export default {
|
|
|
onLoad(options) {
|
|
|
this.doctorid = options.id
|
|
|
+ console.log(this.doctorid)
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getdoctorInfo()
|
|
|
+ this.gettime()
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
| xqd
@@ -140,7 +147,17 @@
|
|
|
backgroundImage: "none"
|
|
|
},
|
|
|
isjigou: false,
|
|
|
- barindex: 1 //显示按钮
|
|
|
+ barindex: 1, //显示按钮
|
|
|
+ params: {
|
|
|
+ year: false,
|
|
|
+ month: true,
|
|
|
+ day: true,
|
|
|
+ hour: true,
|
|
|
+ minute: true,
|
|
|
+ second: false
|
|
|
+ },
|
|
|
+ show: false,
|
|
|
+ daytime: ""
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
| xqd
@@ -174,6 +191,12 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ gettime: async function() {
|
|
|
+ let res = await this.$request.post("/api/v1/docter/schedulePeriodList", {
|
|
|
+ docter_id: this.doctorid,
|
|
|
+ })
|
|
|
+ console.log(res)
|
|
|
+ },
|
|
|
gotoxuanze(e) {
|
|
|
this.barindex = e.currentTarget.dataset.index
|
|
|
if (e.currentTarget.dataset.index == 3) {
|
| xqd
@@ -181,6 +204,12 @@
|
|
|
} else {
|
|
|
this.isjigou = false
|
|
|
}
|
|
|
+ },
|
|
|
+ xuantime() {
|
|
|
+ this.show = !this.show
|
|
|
+ },
|
|
|
+ test(arr) {
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
};
|