优化页面

This commit is contained in:
haomingming
2023-03-17 10:13:35 +08:00
parent dea1555b9b
commit 589c2cf823
81 changed files with 894 additions and 524 deletions
+22 -2
View File
@@ -104,6 +104,8 @@ Component({
},
lifetimes: {
attached(){
console.log("myprofile attached")
let _this = this;
console.log(_this.data.zhicheng_columns);
_this.setData({
@@ -317,15 +319,33 @@ Component({
console.log("keshi_huixian: ", keshi_huixian)
console.log("zhicheng_huixian: ", zhicheng_huixian)
console.log("area_huixian: ", area_huixian)
if((keshi_huixian && zhicheng_huixian && area_huixian) || huixian_try_count > 100){
if((keshi_huixian && zhicheng_huixian && area_huixian) || huixian_try_count > 50){
clearInterval(data_replay);
}
console.log("计时器");
}, 100);
}, 500);
},
},
methods: {
hospitalSearch(e){
console.log(e.detail)
},
hospitalSearchChange(e){
console.log(e.detail);
let params = {
hospital_name: e.detail.trim(),
province_id: this.data.select_province_id,
city_id: this.data.select_city_id,
county_id: this.data.select_county_id,
}
api.getBasicHospital(params).then(response => {// 请求医院列表】
this.setData({
yiyuan_columns: this.formatYiYuan(response),
yiyuan_show: true
})
}).catch(errors => {console.error(errors); })
},
onCityShow(e) {
console.log("onCityShow");
this.setData({ city_show: true });
+2 -1
View File
@@ -18,6 +18,7 @@
"van-picker": "@vant/weapp/picker/index",
"van-toast": "@vant/weapp/toast/index",
"van-button": "@vant/weapp/button/index",
"van-icon": "@vant/weapp/icon/index"
"van-icon": "@vant/weapp/icon/index",
"van-search": "@vant/weapp/search/index"
}
}
+13 -2
View File
@@ -38,6 +38,8 @@
bind:close="onYiYuanClose"
round
>
<van-picker
show-toolbar
title="请选择医院"
@@ -46,6 +48,15 @@
bind:cancel="onYiYuanCancel"
bind:confirm="onYiYuanConfirm"
bind:change="onYiYuanChange" />
<van-search
value="{{ hospital_search_val }}"
shape="round"
placeholder="请输入搜索关键词"
clearable
bind:change="hospitalSearchChange"
bind:search="hospitalSearch"
/>
</van-popup>
<t-cell title="科室" hover required arrow note="{{keshi_note}}" bindtap="onKeshiShow" bordered="{{ select_keshi_id == '' }}"/>
@@ -200,7 +211,7 @@
bind:showNote="onshowJianJieNote"
textarea_cell_content_placeholder="您的从业经历,职称,所获荣誉等信息(10~1000字)"
textarea_val="{{textarea_jianjie}}"
has_error_content="{{ be_good_at_reason }}"
has_error_content="{{ brief_introduction_reason }}"
data-textarea_name="textarea_jianjie" bindTextAreaBlur="getTextAreaVal" />
<m-textarea-cell
@@ -208,7 +219,7 @@
t_icon_name="view-module"
bind:showNote="onshowShanChangNote"
textarea_val="{{textarea_shanchang}}"
has_error_content="{{ brief_introduction_reason }}"
has_error_content="{{ be_good_at_reason }}"
textarea_cell_content_placeholder="您的专业领域、擅长疾病、研究方法等信息(10~1000字)"
textarea_cell_note="查看示例" data-textarea_name="textarea_shanchang" bindTextAreaBlur="getTextAreaVal" />
+8
View File
@@ -212,4 +212,12 @@
margin-left: 32rpx;
padding-bottom: 20rpx;
border-bottom: 1rpx solid #e7e7e7;
}
.van-picker__columns {
height: 264px !important;
top: 40px !important;
}
.van-search {
top: -270px !important;
position: relative !important;
}