This commit is contained in:
haomingming
2023-03-22 09:01:58 +08:00
parent 589c2cf823
commit cfa69efd15
71 changed files with 1300 additions and 588 deletions
+15 -2
View File
@@ -46,7 +46,13 @@ Page({
"stickyProps.offsetTop": this.data.stateHeight + this.data.navHeight + 10
})
},
onLoad(){
onLoad(options){
let selected_tab = options.selected_tab;
if(selected_tab){
this.setData({
selected_tab: selected_tab
})
}
let _this = this;
//获取实名认证信息
api.getDoctorAuthReal().then(response => {
@@ -373,9 +379,16 @@ Page({
}
api.postDoctorAuthReal(params).then(response => {
console.log(response);
wx.showToast({
title: '认证成功',
icon: 'none',
duration: 2000
})
_this.setData({
panel_2_disabled: false,
selected_tab: 1
selected_tab: 1,
next_btn_disabled: true,
next_btn_txt: '已认证,不可修改'
})
}).catch(errors => {
console.error(errors);
+12 -7
View File
@@ -20,26 +20,29 @@
<van-cell-group>
<van-field
model:value="{{ realname }}"
label="真实姓名"
type="text"
placeholder="请填写真实姓名,提交后不能修改"
placeholder-style="font-size:28rpx; color: #C5C8CB;"
input-align="right"
required
clearable
custom-style="font-size:30rpx;"
/>
disabled="{{next_btn_disabled}}"
>
<text slot="label">真实姓名 <text style="color: #e34d59;">*</text> </text>
</van-field>
<van-field
model:value="{{ idcard }}"
type="idcard"
label="身份证号"
placeholder="请填写身份证号"
placeholder-style="font-size:28rpx; color: #C5C8CB;"
input-align="right"
required
clearable
custom-style="font-size:30rpx;"
/>
disabled="{{next_btn_disabled}}"
>
<text slot="label">身份证号 <text style="color: #e34d59;">*</text> </text>
</van-field>
</van-cell-group>
<!-- <t-cell title="真实姓名" hover required arrow note="请填写真实姓名,提交后不能修改"/> -->
@@ -59,14 +62,16 @@
<!-- 医师身份认证 -->
<t-tab-panel label="医师身份认证" value="1" disabled style="{{tabPanelstyle}}" wx:if="{{panel_2_disabled}}">
<myprofile wx:if="{{selected_tab == 1}}" />
<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}}" />
<view style="height: 50rpx;"></view>
</t-tab-panel>
</t-tabs>
</view>
<van-toast id="van-toast" />
<!-- <van-toast id="van-toast" /> -->
</view>
+1 -5
View File
@@ -109,10 +109,7 @@
height: 300rpx;
background-color: cadetblue;
}
/* 自定义 vant required 小红点位置 */
.van-cell--required::before {
left: 4.7rem !important;
}
.zhuanchang_box{
display: flex;
flex-wrap: wrap;
@@ -132,7 +129,6 @@
}
.zhuanchang_block {
width: 100vw;
height: 240px;
background: #fff;
border-top-left-radius: 16rpx;
border-top-right-radius: 16rpx;