|
@@ -1,9 +1,9 @@
|
|
<template>
|
|
<template>
|
|
<view class="main">
|
|
<view class="main">
|
|
- <view>
|
|
|
|
|
|
+ <view class="u-skeleton">
|
|
<view class="pr det-body">
|
|
<view class="pr det-body">
|
|
<image class="det-bg-img" mode="scaleToFill" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/doctorbanner.png"></image>
|
|
<image class="det-bg-img" mode="scaleToFill" src="https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/img/doctorbanner.png"></image>
|
|
- <view class="det-head pr plr15 bdr8 m-bg-white mlr15 pt25">
|
|
|
|
|
|
+ <view class="det-head pr plr15 bdr8 m-bg-white mlr15 pt25 u-skeleton-fillet">
|
|
<view class="m-xstart pr m-bottom-line pb25 margin-bottom-sm">
|
|
<view class="m-xstart pr m-bottom-line pb25 margin-bottom-sm">
|
|
<view class="m-flex overflow mr10">
|
|
<view class="m-flex overflow mr10">
|
|
<view class="flex align-center">
|
|
<view class="flex align-center">
|
|
@@ -37,7 +37,7 @@
|
|
</u-read-more>
|
|
</u-read-more>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="gridstyle padding-sm margin-lr-sm">
|
|
|
|
|
|
+ <view class="gridstyle padding-sm margin-lr-sm u-skeleton-fillet">
|
|
<u-grid :col="3" :border="false">
|
|
<u-grid :col="3" :border="false">
|
|
<view @click="gotoxuanze" data-index="1" data-name="电话咨询">
|
|
<view @click="gotoxuanze" data-index="1" data-name="电话咨询">
|
|
<u-grid-item>
|
|
<u-grid-item>
|
|
@@ -90,7 +90,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view> -->
|
|
</view> -->
|
|
- <view class="margin-lr-sm mt15 bg-white" style="border-radius: 16rpx; box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);"
|
|
|
|
|
|
+ <view class="margin-lr-sm mt15 bg-white u-skeleton-fillet" style="border-radius: 16rpx; box-shadow: 0 0 50rpx 0 rgba(0, 0, 0, 0.1);"
|
|
v-if="doctor.evaluate.length!=0">
|
|
v-if="doctor.evaluate.length!=0">
|
|
<view class="f18 fb flex align-center plr15 pt15">患者评价 <text class="f12 m-gray-letter margin-left-xs">({{doctor.evaluate.length}})</text>
|
|
<view class="f18 fb flex align-center plr15 pt15">患者评价 <text class="f12 m-gray-letter margin-left-xs">({{doctor.evaluate.length}})</text>
|
|
</view>
|
|
</view>
|
|
@@ -128,6 +128,7 @@
|
|
<button v-else class="submit text-white" @click="phonezixun" :disabled="ismenzhen" :style="!ismenzhen?'background-color: rgb(11,115,186);font-size: 26rpx;':'font-size: 26rpx;color:gray'">门诊预约</button>
|
|
<button v-else class="submit text-white" @click="phonezixun" :disabled="ismenzhen" :style="!ismenzhen?'background-color: rgb(11,115,186);font-size: 26rpx;':'font-size: 26rpx;color:gray'">门诊预约</button>
|
|
</view>
|
|
</view>
|
|
<u-no-network></u-no-network>
|
|
<u-no-network></u-no-network>
|
|
|
|
+ <u-skeleton :loading="loading" el-color="#ddd" :animation="true" bgColor="#FFF"></u-skeleton>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -140,10 +141,11 @@
|
|
console.log(options)
|
|
console.log(options)
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
|
|
+ this.gettime()
|
|
this.getdoctorInfo()
|
|
this.getdoctorInfo()
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.gettime()
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -166,7 +168,8 @@
|
|
yearid: "",
|
|
yearid: "",
|
|
isphone: false,
|
|
isphone: false,
|
|
istuwen: false,
|
|
istuwen: false,
|
|
- ismenzhen: false
|
|
|
|
|
|
+ ismenzhen: false,
|
|
|
|
+ loading: true,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -176,6 +179,9 @@
|
|
latitude: uni.getStorageSync("latitude"),
|
|
latitude: uni.getStorageSync("latitude"),
|
|
longitude: uni.getStorageSync("longitude")
|
|
longitude: uni.getStorageSync("longitude")
|
|
})
|
|
})
|
|
|
|
+ if (res) {
|
|
|
|
+ this.loading = false;
|
|
|
|
+ }
|
|
this.doctor = res
|
|
this.doctor = res
|
|
this.doctor.is_chat != 0 ? this.istuwen = false : this.istuwen = true,
|
|
this.doctor.is_chat != 0 ? this.istuwen = false : this.istuwen = true,
|
|
this.doctor.is_phone != 0 ? this.isphone = false : this.isphone = true,
|
|
this.doctor.is_phone != 0 ? this.isphone = false : this.isphone = true,
|
|
@@ -241,7 +247,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
phonezixun() {
|
|
phonezixun() {
|
|
-
|
|
|
|
|
|
+
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: "info_write?doctor=" + JSON.stringify(this.doctor) + "&type=" + this.barindex + "&time=" + this.daytime +
|
|
url: "info_write?doctor=" + JSON.stringify(this.doctor) + "&type=" + this.barindex + "&time=" + this.daytime +
|
|
"&hospital=" + this.hospital + "&jigou=" + this.jigouid + "&year=" + this.year + "&yearid=" + this.yearid
|
|
"&hospital=" + this.hospital + "&jigou=" + this.jigouid + "&year=" + this.year + "&yearid=" + this.yearid
|