|
| xqd
@@ -6,9 +6,14 @@
|
|
|
</view>
|
|
|
<view class="pr pt20" style="z-index:2">
|
|
|
<view class="plr15">
|
|
|
+
|
|
|
+
|
|
|
<!-- 登录切换 -->
|
|
|
- <view v-if="true" class="m-bg-white bdr4 pb20 header-box" style="border-radius: 32rpx;">
|
|
|
- <view class="plr20 pt20 m-dpflex m-justify-start " style="margin-bottom: 20rpx;">
|
|
|
+ <view class="m-bg-white bdr4 pb20 header-box" style="border-radius: 32rpx;">
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 登录的时候,信息卡片显示 -->
|
|
|
+ <view class="plr20 pt20 m-dpflex m-justify-start " style="margin-bottom: 20rpx;" v-if="hasLogin">
|
|
|
<view>
|
|
|
<image binderror="_binderror" mode="scaleToFill" :src="src" style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
|
|
|
|
| xqd
@@ -19,12 +24,9 @@
|
|
|
<view v-if="hasLogin&&docterInfo.is_then!='1'" style="border-radius:30rpx ;font-size: 20rpx;padding: 10rpx 20rpx;background-color: #EEAA3F;color: #FFFFFF;position: relative;">未认证</view>
|
|
|
<view v-else-if="hasLogin&&docterInfo.is_then!='2'" style="border-radius:30rpx ;font-size: 20rpx;padding: 10rpx 20rpx;background-color: #84BB43;color: #FFFFFF;position: relative;">已认证</view>
|
|
|
</view>
|
|
|
- <view style="color:#666666 ;font-size:22rpx;" v-if="hasLogin">
|
|
|
+ <view style="color:#666666 ;font-size:22rpx;">
|
|
|
{{docterInfo.sign}}
|
|
|
</view>
|
|
|
- <view v-else @click="judgerenzheng" style="color: #007AFF;">
|
|
|
- 前去登录
|
|
|
- </view>
|
|
|
</view>
|
|
|
<view class="pr tr m-flex" style="height: 100%;">
|
|
|
<navigator hoverClass="none">
|
|
| xqd
@@ -32,10 +34,21 @@
|
|
|
@click="grxx"></image>
|
|
|
</navigator>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
+ <!-- 没登录显示 -->
|
|
|
+ <view v-else class="flex align-center justify-center" style="width: 100%;height: 200rpx;">
|
|
|
+ <view>
|
|
|
+ <view class="flex justify-center" style="margin-bottom: 10rpx;">
|
|
|
+ <image binderror="_binderror" mode="scaleToFill" :src="src" style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
|
|
+ </view>
|
|
|
+ <view @click="judgerenzheng" style="color: #007AFF;font-size: 24rpx;">
|
|
|
+ 立即登录 / 注册
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<!-- 标签 -->
|
|
|
- <view style="height: 60rpx;padding-left: 40rpx;padding-right: 40rpx;display: flex;">
|
|
|
+ <view style="height: 60rpx;padding-left: 40rpx;padding-right: 40rpx;display: flex;" v-if="hasLogin">
|
|
|
<view v-for="item,index in doctorlabel" :key="index">
|
|
|
<u-tag :show="index<4" style="margin-left: 10rpx;" :text="item.label_name" bg-color="#E5F5FF" color="#0B73B9"
|
|
|
border-color="#ffffff" shape="circle " size="mini" />
|
|
| xqd
@@ -52,15 +65,15 @@
|
|
|
</view>
|
|
|
<view bindtap="" class="m-flex tl f14 m-ycenter">
|
|
|
<view class="m-gray-big f20 fb">{{docterInfo.eva_num}}</view>
|
|
|
- <view class="m-gray-letter mt5 f12">评价</view>
|
|
|
+ <view class="m-gray-letter mt5 f12">用户评价</view>
|
|
|
</view>
|
|
|
<view bindtap="" class="m-flex tl f14 m-ycenter">
|
|
|
<view class="m-gray-big f20 fb">{{docterInfo.score}}</view>
|
|
|
- <view class="m-gray-letter mt5 f12">评分</view>
|
|
|
+ <view class="m-gray-letter mt5 f12">医生评分</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-else class="m-bg-white bdr4 pb20 header-box" style="border-radius: 32rpx;">
|
|
|
+ <!-- <view v-else class="m-bg-white bdr4 pb20 header-box" style="border-radius: 32rpx;">
|
|
|
<view class="plr20 pt20 m-dpflex m-justify-start m-align-center">
|
|
|
<image binderror="_binderror" mode="scaleToFill" :src="nosrc" style="width: 60px;height: 60px;border-radius: 50%;"></image>
|
|
|
<view class="">
|
|
| xqd
@@ -82,14 +95,14 @@
|
|
|
</view>
|
|
|
<view bindtap="" class="m-flex tl f14 m-ycenter">
|
|
|
<view class="m-gray-big f20 fb">0</view>
|
|
|
- <view class="m-gray-letter mt5 f12">评价(张)</view>
|
|
|
+ <view class="m-gray-letter mt5 f12">用户评价</view>
|
|
|
</view>
|
|
|
<view bindtap="" class="m-flex tl f14 m-ycenter">
|
|
|
<view class="m-gray-big f20 fb">5.0</view>
|
|
|
- <view class="m-gray-letter mt5 f12">评分</view>
|
|
|
+ <view class="m-gray-letter mt5 f12">医生评分</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="padding-lr">
|
|
| xqd
@@ -139,12 +152,12 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="tltleStyle">
|
|
|
- <view class="flex justify-between">
|
|
|
+ <view class="flex justify-between" v-if="hasLogin">
|
|
|
<u-section title="通知" font-size="40" :show-line="false" :bold="true" :right="false"></u-section>
|
|
|
<u-button size="mini" @click="allread" shape="circle">全部已读</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="padding-lr">
|
|
|
+ <view class="padding-lr" v-if="hasLogin">
|
|
|
<view v-for="(item,index) in docterMessageList" :key="index" @longpress="touchstart(index)" @click="navt(item)"
|
|
|
class="padding-lr-sm padding-tb-sm bg-white margin-top-sm" style="border-radius: 32rpx;">
|
|
|
<view class="flex justify-start align-center">
|
|
| xqd
@@ -187,7 +200,7 @@
|
|
|
</view>
|
|
|
<view class="cu-tabbar-height"></view>
|
|
|
</view>
|
|
|
- <view class="lianxiwomen" @click="lxwm">
|
|
|
+ <view class="lianxiwomen" @click="lxwm" v-if="hasLogin">
|
|
|
<view class="">
|
|
|
联系
|
|
|
</view>
|
|
| xqd
@@ -273,8 +286,8 @@
|
|
|
this.getDocterMessage();
|
|
|
|
|
|
this.getStatus();
|
|
|
- console.log('hasLogin',this.hasLogin)
|
|
|
- getApp().globalData.text = this.hasLogin
|
|
|
+ console.log('hasLogin', this.hasLogin)
|
|
|
+ this.getlogin()
|
|
|
},
|
|
|
mounted() {
|
|
|
|
|
| xqd
@@ -301,12 +314,13 @@
|
|
|
this.docterInfo.service_days = res.data.service_days;
|
|
|
this.docterInfo.service_persons = res.data.service_persons;
|
|
|
this.setPassword()
|
|
|
+
|
|
|
console.log('医生信息', res.data)
|
|
|
}
|
|
|
},
|
|
|
// 跳到新增密码
|
|
|
setPassword() {
|
|
|
- if (this.password != '' || this.password != null) {
|
|
|
+ if (this.password == '' || this.password == null) {
|
|
|
uni.showModal({
|
|
|
content: '您未设置密码,为了保证账户安全,建议前去设置密码',
|
|
|
confirmText: '前去设置',
|
|
| xqd
@@ -321,6 +335,20 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ //判断有没有登录,然后执行
|
|
|
+ getlogin() {
|
|
|
+ // getApp().globalData.login = this.hasLogin
|
|
|
+ if (!this.hasLogin) {
|
|
|
+ console.log("没有登录,屏蔽会话")
|
|
|
+ uni.hideTabBar({
|
|
|
+ animation: false
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.showTabBar({
|
|
|
+ animation: true
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
//通知数据
|
|
|
getDocterMessage: async function() {
|
|
|
|
|
| xqd
@@ -427,7 +455,7 @@
|
|
|
* @param {Object} e
|
|
|
*/
|
|
|
navt(e) {
|
|
|
-
|
|
|
+ console.log("点击了订单", e)
|
|
|
this.readTong(e.id);
|
|
|
e.status = 2;
|
|
|
// 1.确认接单通知 2.订单逾期通知 3.订单完成通知 4.评价通知 5.服务包通知
|
|
| xqd
@@ -444,9 +472,15 @@
|
|
|
title: '错误!'
|
|
|
})
|
|
|
}
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/zixun/xiangqing?data=' + id
|
|
|
- })
|
|
|
+ if (e.order_type == 3) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/menzhen/menzhenxq?data=' + id
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/zixun/xiangqing?data=' + id
|
|
|
+ })
|
|
|
+ }
|
|
|
} else if (e.type == 2) {
|
|
|
// 2.订单逾期通知 跳转订单详情
|
|
|
id = e.relation_id
|
|
| xqd
@@ -457,9 +491,15 @@
|
|
|
title: '错误!'
|
|
|
})
|
|
|
}
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/zixun/xiangqing?data=' + id
|
|
|
- })
|
|
|
+ if (e.order_type == 3) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/menzhen/menzhenxq?data=' + id
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/zixun/xiangqing?data=' + id
|
|
|
+ })
|
|
|
+ }
|
|
|
} else if (e.type == 3) {
|
|
|
// 2.订单完成通知 跳转订单详情
|
|
|
id = e.relation_id
|
|
| xqd
@@ -470,9 +510,15 @@
|
|
|
title: '错误!'
|
|
|
})
|
|
|
}
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/zixun/xiangqing?data=' + id
|
|
|
- })
|
|
|
+ if (e.order_type == 3) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/menzhen/menzhenxq?data=' + id
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/zixun/xiangqing?data=' + id
|
|
|
+ })
|
|
|
+ }
|
|
|
} else if (e.type == 4) {
|
|
|
// 4.评价通知 跳转评价详情
|
|
|
id = e.relation_id
|
|
| xqd
@@ -581,11 +627,14 @@
|
|
|
title: "提示",
|
|
|
content: "尚未登录,请前往登录",
|
|
|
confirmText: "去登录",
|
|
|
- showCancel: false,
|
|
|
- success() {
|
|
|
- uni.navigateTo({
|
|
|
- url: "../login/login"
|
|
|
- })
|
|
|
+ showCancel: true,
|
|
|
+ success(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "../login/login"
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
return false;
|
|
| xqd
@@ -723,19 +772,7 @@
|
|
|
},
|
|
|
//点击认证中心
|
|
|
gorz() {
|
|
|
- if (!this.hasLogin) {
|
|
|
- uni.showModal({
|
|
|
- title: "提示",
|
|
|
- content: "尚未登录,请前往登录",
|
|
|
- confirmText: "去登录",
|
|
|
- showCancel: false,
|
|
|
- success() {
|
|
|
- uni.navigateTo({
|
|
|
- url: "../login/login"
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
+ if (this.judgerenzheng()) {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/login/doctorRenzheng'
|
|
|
})
|