This commit is contained in:
haomingming
2023-04-08 09:51:45 +08:00
parent 6fa2a5eaa9
commit 3f40c4c237
69 changed files with 1274 additions and 338 deletions
+29 -7
View File
@@ -32,7 +32,7 @@ Page({
banner: [],
default_dialog_show: false,//只弹框一次
dialog_visible: false,
dialog_content: "请您先实名认证",
dialog_content: "请您先完成实名认证",
/*
case_module取值
新问诊 0
@@ -57,7 +57,7 @@ Page({
{
case_status: 0,
case_module: [0,1,2,3,4,5,6,7,8],
case_text: "请您先实名认证"
case_text: "请您先完成实名认证"
},
{
case_status: 1,
@@ -94,7 +94,11 @@ Page({
jiesuan_dialog_show: false,
jiesuan_dialog_visible: false,
funbox_height: 100,
skeleton_loading: true
skeleton_loading: true,
confirmBtn: {
"openType": "contact",
"content": "确认",
}
},
// 获取状态栏信息
getMenuButtonBound() {
@@ -141,6 +145,21 @@ Page({
jiesuan_dialog_visible: false
})
},
confirmContactDialog(){
this.setData({
contactKeFu: false
})
},
cancelContactDialog(){
console.log("cancelContactDialogcancelContactDialogcancelContactDialog");
this.setData({
contactKeFu: false
})
},
onPullDownRefresh(){
console.log("用户下拉动作")
this.onShow();
},
onLoad(){
},
@@ -153,7 +172,8 @@ Page({
onHide(){
console.log("index onHide() onHide() ");
this.setData({
swiperList: []
swiperList: [],
contactKeFu: false
})
wx.offCopyUrl(this.Copylistener) // 需传入与监听时同一个的函数对象
},
@@ -245,6 +265,8 @@ Page({
this.setData({
skeleton_loading: false
})
}).then(res => {
wx.stopPullDownRefresh()
}).catch(errors => {
console.error(errors);
})
@@ -295,7 +317,7 @@ Page({
let iden_auth_status = this.data.info.iden_auth_status;
if(idcard_status != 1){
this.setData({
dialog_content: "请您先实名认证",
dialog_content: "请您先完成实名认证",
shiming_status_url: "/Pages/yishi/identity/index",
dialog_visible: true,
});
@@ -345,7 +367,7 @@ Page({
});
}
this.setData({
dialog_content: "请您先实名认证",
dialog_content: "请您先完成实名认证",
shiming_status_url: "/Pages/yishi/identity/index",
default_dialog_show: true
});
@@ -490,7 +512,7 @@ Page({
"info.info_shiming_status_txt": "开启在线问诊",
"info.info_shiming_status": "info_shiming_status_yes",
shiming_status_url: "/Pages/yishi/onlinesetup/index",
dialog_content: "请您先前往在线问诊管理中开通在线问诊",
dialog_content: "请您点击[在线问诊管理],开通在线问诊",
default_dialog_show: true
})
return false;
+3 -2
View File
@@ -3,11 +3,12 @@
"usingComponents": {
"t-avatar": "tdesign-miniprogram/avatar/avatar",
"van-button": "@vant/weapp/button/index",
"van-dialog": "@vant/weapp/dialog/index",
"t-swiper": "tdesign-miniprogram/swiper/swiper",
"t-badge": "tdesign-miniprogram/badge/badge",
"t-dialog": "tdesign-miniprogram/dialog/dialog",
"van-image": "@vant/weapp/image/index",
"t-skeleton": "tdesign-miniprogram/skeleton/skeleton"
}
},
"enablePullDownRefresh": true,
"backgroundTextStyle":"dark"
}
+22 -8
View File
@@ -3,11 +3,10 @@
<view class="top_bk"></view>
<!-- 顶部标题 -->
<view class="title"
style="top:0;padding-top: {{stateHeight}}px;height: {{navHeight + 10}}px;line-height: {{navHeight}}px;">{{ title }}</view>
style="top:0;padding-top: {{stateHeight}}px;height: {{navHeight + 10}}px;line-height: {{navHeight}}px;position: relative;">{{ title }}</view>
<!-- 用户信息 -->
<view class="info_box" style="margin-top: {{stateHeight+navHeight+10}}px;">
<!-- <view class="info_box" style="margin-top: {{stateHeight+navHeight+10}}px;"> -->
<view class="info_box">
<view class="info">
<view class="info_top">
<view class="info_photo" bindtap="go" data-url="/Pages/yishi/myinfo/index">
@@ -30,7 +29,7 @@
<t-skeleton theme="text" row-col="{{[{ width: '70%' }]}}" animation="gradient" loading="{{skeleton_loading}}" />
</view>
<view class="info_wenzhen_new" bindtap="go" data-url="/Pages/yishi/wenzhen_v2/wenzhen" data-moudle="0" wx:if="{{!skeleton_loading}}">
新问诊:{{info.not_accepted_inquiry_num}}
待接诊:{{info.not_accepted_inquiry_num}}
<t-skeleton theme="text" row-col="{{[1]}}" animation="gradient" loading="{{skeleton_loading}}" />
</view>
<view class="info_wenzhen_ing" bindtap="go" data-url="/Pages/yishi/wenzhen_v2/wenzhen" data-moudle="1" wx:if="{{!skeleton_loading}}">接诊中:{{info.accepting_inquiry_num}}</view>
@@ -115,7 +114,7 @@
height="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/jianjie.png"
/>
<text class="fun_box_item_txt">简介管理</text>
<text class="fun_box_item_txt">个人简介管理</text>
</view>
<view bindtap="go" data-moudle="4" data-url="/Pages/yishi/onlinesetup/index" class="fun_box_item" style="height: {{funbox_height}}rpx;">
<van-image class="fun_box_item_img"
@@ -191,13 +190,28 @@
</t-dialog>
<van-dialog
<t-dialog
visible="{{ contactKeFu }}"
title="立即联系客服"
confirm-btn="{{confirmBtn}}"
close-on-overlay-click="{{true}}"
close="cancelContactDialog"
>
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelContactDialog">
取消
</view>
<!-- <view slot="confirm-btn" class="dialog dialog_confirm_btn" open-type="contact">
<t-button theme="primary" size="large" open-type="contact">确认</t-button>
</view> -->
</t-dialog>
<!-- <van-dialog
title="立即联系客服"
show="{{ contactKeFu }}"
show-cancel-button
confirm-button-color="#3CC7C0"
confirm-button-open-type="contact"
/>
/> -->
</view>
+5 -2
View File
@@ -18,7 +18,7 @@ page{
.title{
position: fixed;
letter-spacing: 3rpx;
margin-left: 5vw;
padding-left: 5vw;
font-size: 35rpx;
color: #fff;
background-color: #3CC7C0;
@@ -27,7 +27,7 @@ page{
}
.info_box{
width: 90vw;
margin: 30rpx auto;
margin: 0 auto;
display: flex;
padding: 20rpx 0;
flex-direction: column;
@@ -229,3 +229,6 @@ page{
border-top: 1px solid #E9E9E9;
color: #3CC7C0;
}
.t-button__content{
color: #3CC7C0 !important;
}