优化
This commit is contained in:
@@ -361,6 +361,11 @@ Component({
|
||||
onCityShow(e) {
|
||||
console.log("onCityShow");
|
||||
this.setData({ city_show: true });
|
||||
this.triggerEvent('showPageMeta');
|
||||
},
|
||||
onCloseCity(e){
|
||||
console.log("onCloseCity");
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onChangeCity(e) {
|
||||
this.setData({
|
||||
@@ -496,20 +501,19 @@ Component({
|
||||
icon: "error"
|
||||
})
|
||||
}
|
||||
|
||||
this.triggerEvent('showPageMeta');
|
||||
},
|
||||
onYiYuanClose(e) {
|
||||
console.log("onYiYuanClose");
|
||||
this.setData({ yiyuan_show: false });
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onYiYuanCancel(event) {
|
||||
console.log("onYiYuanCancel");
|
||||
const { picker, value, index } = event.detail;
|
||||
Toast(`当前值:${value}, 当前索引:${index}`);
|
||||
this.setData({
|
||||
yiyuan_show: false
|
||||
});
|
||||
|
||||
this.setData({yiyuan_show: false});
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onYiYuanConfirm(event) {
|
||||
console.log("onYiYuanConfirm");
|
||||
@@ -527,7 +531,7 @@ Component({
|
||||
icon: "error"
|
||||
})
|
||||
}
|
||||
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onYiYuanChange(event) {
|
||||
console.log("onYiYuanChange");
|
||||
@@ -537,12 +541,14 @@ Component({
|
||||
onKeshiShow(e) {
|
||||
console.log("onKeshiShow");
|
||||
this.setData({ keshi_show: true });
|
||||
this.triggerEvent('showPageMeta');
|
||||
},
|
||||
onKeshiCancel(event) {
|
||||
console.log("onKeshiCancel");
|
||||
const { picker, value, index } = event.detail;
|
||||
Toast(`当前值:${value}, 当前索引:${index}`);
|
||||
this.setData({ keshi_show: false });
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onKeshiConfirm(event) {
|
||||
console.log("onKeshiConfirm");
|
||||
@@ -553,6 +559,7 @@ Component({
|
||||
select_keshi_id: `${value.value}`,
|
||||
keshi_note: `${value.text}`,
|
||||
});
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onKeshiChange(event) {
|
||||
console.log("onKeshiChange");
|
||||
@@ -560,16 +567,19 @@ Component({
|
||||
onKeshiClose(e) {
|
||||
console.log("onKeshiClose");
|
||||
this.setData({ keshi_show: false });
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onZhiChengShow(e) {
|
||||
console.log("onKeshiShow");
|
||||
this.setData({ zhicheng_show: true });
|
||||
this.triggerEvent('showPageMeta');
|
||||
},
|
||||
onZhiChengCancel(event) {
|
||||
console.log("onKeshiCancel");
|
||||
const { picker, value, index } = event.detail;
|
||||
Toast(`当前值:${value}, 当前索引:${index}`);
|
||||
this.setData({ zhicheng_show: false });
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onZhiChengConfirm(event) {
|
||||
console.log("onZhiChengConfirm");
|
||||
@@ -580,6 +590,7 @@ Component({
|
||||
select_zhicheng_id: `${value.value}`,
|
||||
zhicheng_note: `${value.text}`,
|
||||
});
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onZhiChengChange(event) {
|
||||
console.log("onZhiChengChange");
|
||||
@@ -587,9 +598,11 @@ Component({
|
||||
onZhiChengClose(e) {
|
||||
console.log("onZhiChengClose");
|
||||
this.setData({ zhicheng_show: false });
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onZhuanChangShow(){
|
||||
this.setData({ zhuanchang_show: true });
|
||||
this.triggerEvent('showPageMeta');
|
||||
},
|
||||
onZhuanChangVisibleChange(e) {
|
||||
this.setData({
|
||||
@@ -599,57 +612,59 @@ Component({
|
||||
onshowJianJieNote(e){
|
||||
e.detail // 自定义组件触发事件时提供的 detail 对象
|
||||
console.log("onshowJianJieNote");
|
||||
this.setData({
|
||||
jianjie_show: true,
|
||||
});
|
||||
this.setData({jianjie_show: true});
|
||||
this.triggerEvent('showPageMeta');
|
||||
},
|
||||
onJianjieClose(e){
|
||||
e.detail // 自定义组件触发事件时提供的 detail 对象
|
||||
console.log("onshowJianJieNote");
|
||||
this.setData({
|
||||
jianjie_show: false,
|
||||
});
|
||||
this.setData({jianjie_show: false});
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onshowShanChangNote(e){
|
||||
e.detail // 自定义组件触发事件时提供的 detail 对象
|
||||
console.log("onshowShanChangNote");
|
||||
this.setData({
|
||||
shanchang_show: true,
|
||||
});
|
||||
this.setData({shanchang_show: true});
|
||||
this.triggerEvent('showPageMeta');
|
||||
},
|
||||
onshowShanChangNoteClose(e){
|
||||
e.detail // 自定义组件触发事件时提供的 detail 对象
|
||||
console.log("onshowShanChangNote");
|
||||
this.setData({
|
||||
shanchang_show: false,
|
||||
});
|
||||
this.setData({shanchang_show: false});
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onshowZhiYeNote(e){
|
||||
e.detail // 自定义组件触发事件时提供的 detail 对象
|
||||
console.log("onshowZhiYeNote");
|
||||
this.setData({ zhiye_show: true });
|
||||
this.triggerEvent('showPageMeta');
|
||||
},
|
||||
onZhiYeClose(){
|
||||
console.log("onZhiYeClose");
|
||||
this.setData({ zhiye_show: false });
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onshowZiGeNote(e){
|
||||
e.detail // 自定义组件触发事件时提供的 detail 对象
|
||||
console.log("onshowZiGeNote");
|
||||
this.setData({ zige_show: true });
|
||||
this.triggerEvent('showPageMeta');
|
||||
},
|
||||
onZiGeClose(){
|
||||
console.log("onZhiYeClose");
|
||||
this.setData({ zige_show: false });
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onshowZhiChengImgNote(e){
|
||||
e.detail // 自定义组件触发事件时提供的 detail 对象
|
||||
console.log("onshowZhiChengNote");
|
||||
this.setData({ zhicheng_img_show: true });
|
||||
this.triggerEvent('showPageMeta');
|
||||
},
|
||||
onZhiChengImgClose(){
|
||||
console.log("onZhiChengClose");
|
||||
this.setData({ zhicheng_img_show: false });
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
onCustomKeshiChange(){
|
||||
this.setData({
|
||||
@@ -719,9 +734,11 @@ Component({
|
||||
},
|
||||
zhuanchangConfirm(e){
|
||||
this.setData({ zhuanchang_show: false });
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
zhuanchangConcle(e){
|
||||
this.setData({ zhuanchang_show: false });
|
||||
this.triggerEvent('hidePageMeta');
|
||||
},
|
||||
addDoctorAuthIden(e){
|
||||
console.log("addDoctorAuthIden addDoctorAuthIden")
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-icon": "@vant/weapp/icon/index",
|
||||
"van-search": "@vant/weapp/search/index",
|
||||
"van-empty": "@vant/weapp/empty/index"
|
||||
"van-empty": "@vant/weapp/empty/index",
|
||||
"van-image": "@vant/weapp/image/index"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
<view class="{{avatar_reason!=''?'photo':'photo_reason'}}">
|
||||
<view class="title">头像 <text class="required"> *</text></view>
|
||||
<van-uploader disabled="{{ indentity && iden_auth_disabled }}" bind:after-read="doUploadPhoto" data-scene="1" data-field_name="avatar" data-file_multiple="false">
|
||||
@@ -28,7 +29,8 @@
|
||||
options="{{ areaList }}"
|
||||
title="请选择地址"
|
||||
sub-titles="{{area_sub_titles}}"
|
||||
bind:change="onChangeCity"
|
||||
bind:change="onChangeCity"
|
||||
bind:close="onCloseCity"
|
||||
></t-cascader>
|
||||
|
||||
<t-cell title="医院" hover required arrow note="{{ yiyuan_note }}" bindtap="{{(indentity && iden_auth_disabled)?'':'onYiYuanShow'}}"/>
|
||||
@@ -114,13 +116,18 @@
|
||||
show="{{ zhiye_show }}"
|
||||
closeable
|
||||
round
|
||||
lock-scroll
|
||||
position="bottom"
|
||||
bind:close="onZhiYeClose"
|
||||
>
|
||||
<view class="zhiye_popup">
|
||||
<view class="zhiye_popup_title">医师执业证示例</view>
|
||||
<view class="zhiye_popup_img"></view>
|
||||
<view class="zhiye_popup_img"></view>
|
||||
<view class="zhiye_popup_img">
|
||||
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/zhiye1.png" />
|
||||
</view>
|
||||
<view class="zhiye_popup_img">
|
||||
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/zhiye2.png" />
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
|
||||
@@ -128,12 +135,18 @@
|
||||
show="{{ zige_show }}"
|
||||
closeable
|
||||
round
|
||||
lock-scroll
|
||||
position="bottom"
|
||||
bind:close="onZiGeClose"
|
||||
>
|
||||
<view class="zhiye_popup">
|
||||
<view class="zhiye_popup_title">医师资格证示例</view>
|
||||
<view class="zhiye_popup_img"></view>
|
||||
<view class="zhiye_popup_img">
|
||||
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/zige1.png" />
|
||||
</view>
|
||||
<view class="zhiye_popup_img">
|
||||
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/zige2.png" />
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
|
||||
@@ -141,12 +154,15 @@
|
||||
show="{{ zhicheng_img_show }}"
|
||||
closeable
|
||||
round
|
||||
lock-scroll
|
||||
position="bottom"
|
||||
bind:close="onZhiChengImgClose"
|
||||
>
|
||||
<view class="zhiye_popup">
|
||||
<view class="zhiye_popup_title">职称证示例</view>
|
||||
<view class="zhiye_popup_img"></view>
|
||||
<view class="zhiye_popup_img">
|
||||
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/zhicheng.png" />
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
|
||||
|
||||
@@ -131,7 +131,8 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
height: 600rpx;
|
||||
padding-bottom: 20rpx;
|
||||
min-height: 550rpx;
|
||||
}
|
||||
.zhiye_popup_title{
|
||||
margin-top: 16px;
|
||||
@@ -141,9 +142,6 @@
|
||||
}
|
||||
.zhiye_popup_img{
|
||||
margin-top: 30rpx;
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
background-color: cadetblue;
|
||||
}
|
||||
|
||||
.zhuanchang_box{
|
||||
|
||||
Reference in New Issue
Block a user