This commit is contained in:
haomingming
2023-03-31 13:48:32 +08:00
parent edff2d3c05
commit 52742fdbd9
16 changed files with 148 additions and 60 deletions
+14 -1
View File
@@ -23,7 +23,8 @@ Page({
next_btn_disabled: false,
next_btn_txt: "下一步",
realname: "",
idcard: ""
idcard: "",
page_meta_show: false
},
getMenuButtonBound() {
let stateHeight = 0; // 接收状态栏高度
@@ -729,4 +730,16 @@ Page({
// }).catch(errors => {console.error(errors);})
// }
showPageMeta(){
console.log("showPageMeta from indenity");
this.setData({
page_meta_show: true
})
},
hidePageMeta(){
console.log("hidePageMeta from indenity");
this.setData({
page_meta_show: false
})
}
})
+10 -2
View File
@@ -1,4 +1,6 @@
<!-- <nav-bar navbar-data='{{navbarData}}' style="margin-bottom: {{height*2 + 20}}px;"></nav-bar> -->
<!-- 设置滚动穿透 -->
<page-meta page-style="{{ page_meta_show ? 'overflow: hidden;' : '' }}" />
<te-nav-bar navbar-data='{{navbarData}}'></te-nav-bar>
<view class="container">
<view class="tabs">
@@ -63,12 +65,18 @@
<!-- 医师身份认证 -->
<t-tab-panel label="医师身份认证" value="1" disabled style="{{tabPanelstyle}}" wx:if="{{panel_2_disabled}}">
<myprofile wx:if="{{selected_tab == 1}}" />
<myprofile wx:if="{{selected_tab == 1}}"
bind:showPageMeta="showPageMeta"
bind:hidePageMeta="hidePageMeta"
/>
<view style="height: 50rpx;"></view>
</t-tab-panel>
<t-tab-panel label="医师身份认证" value="1" style="{{tabPanelstyle}}" wx:if="{{!panel_2_disabled}}">
<myprofile wx:if="{{selected_tab == 1}}" />
<myprofile wx:if="{{selected_tab == 1}}"
bind:showPageMeta="showPageMeta"
bind:hidePageMeta="hidePageMeta"
/>
<view style="height: 50rpx;"></view>
</t-tab-panel>
+1 -12
View File
@@ -94,24 +94,13 @@
width: 95vw;
margin: 0 auto 30rpx auto;
}
.zhiye_popup{
display: flex;
flex-direction: column;
align-items: center;
height: 600rpx;
}
.zhiye_popup_title{
margin-top: 16px;
font-size: 32rpx;
font-weight: 600;
letter-spacing: 5rpx;
}
.zhiye_popup_img{
margin-top: 30rpx;
width: 300rpx;
height: 300rpx;
background-color: cadetblue;
}
.zhuanchang_box{
display: flex;
+20 -5
View File
@@ -155,8 +155,24 @@ Page({
this.setData({
swiperList: []
})
wx.offCopyUrl(this.Copylistener) // 需传入与监听时同一个的函数对象
},
Copylistener(res){
setTimeout(()=>{
wx.setClipboardData({
data: '暂不支持分享',
success (res) {
},
complete(){
wx.hideToast()
}
})
},1000)
return
},
onShow: function () {
wx.onCopyUrl(this.Copylistener);
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({
active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
@@ -175,12 +191,11 @@ Page({
"info.avg_response_time": response.data.info.avg_response_time,
"info.number_of_fans": response.data.info.number_of_fans,
})
if(avatar && (avatar.indexOf("http") == -1)){
avatar = api.getStaticHost() + avatar;
if(avatar){
this.setData({
"info.avatar": avatar
})
}
this.setData({
"info.avatar": avatar
})
//实名认证
let idcard_status = response.data.info.idcard_status;
+8 -6
View File
@@ -54,12 +54,14 @@ Page({
wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
wx.setStorageSync('user_id_'+usertype, "");
wx.setStorageSync('client_user_id_'+usertype, "");
let promise = wx.$TUIKit.logout();
promise.then(function(imResponse) {
console.log(imResponse.data); // 登出成功
}).catch(function(imError) {
console.warn('logout error:', imError);
});
if(wx.$TUIKit){
let promise = wx.$TUIKit.logout();
promise.then(function(imResponse) {
console.log(imResponse.data); // 登出成功
}).catch(function(imError) {
console.warn('logout error:', imError);
});
}
app.go("/Pages/index/index");
} else if (res.cancel) {
console.log('用户点击取消')
+13 -1
View File
@@ -5,9 +5,21 @@ Page({
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '我的简介', //导航栏 中间的标题
},
page_meta_show: false
},
goBack(){
wx.navigateBack();
},
showPageMeta(){
console.log("showPageMeta from indenity");
this.setData({
page_meta_show: true
})
},
hidePageMeta(){
console.log("hidePageMeta from indenity");
this.setData({
page_meta_show: false
})
}
})
+6 -1
View File
@@ -1,5 +1,10 @@
<!-- 设置滚动穿透 -->
<page-meta page-style="{{ page_meta_show ? 'overflow: hidden;' : '' }}" />
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
<myprofile indentity="{{false}}" />
<myprofile indentity="{{false}}"
bind:showPageMeta="showPageMeta"
bind:hidePageMeta="hidePageMeta"
/>
<view style="height: 50rpx;"></view>
</view>