优化页面
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
top: 0;
|
||||
width: 750rpx;
|
||||
height: 170rpx;
|
||||
background-color: #bae46b;
|
||||
background-color: #e94d4d;
|
||||
z-index: 99;
|
||||
}
|
||||
.tui-navigatorbar-back{
|
||||
@@ -23,7 +23,7 @@
|
||||
height: 88rpx;
|
||||
line-height: 56rpx;
|
||||
font-size: 36rpx;
|
||||
color: #e68080;
|
||||
color: #000000;
|
||||
bottom: 0;
|
||||
left: 200rpx;
|
||||
display: flex;
|
||||
|
||||
@@ -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 });
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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" />
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -48,6 +48,10 @@ Component({
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
inquiry_type: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
note: {
|
||||
type: String,
|
||||
value: '不接诊24小时后自动取消',
|
||||
@@ -80,14 +84,18 @@ Component({
|
||||
})
|
||||
},
|
||||
goChat(e){
|
||||
this.setData({
|
||||
show: false
|
||||
})
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['jhYUf91ULCTX_f69hazqAYwImdFf8ELasRAwB6X-MTM'],
|
||||
success (res) {
|
||||
console.log(res);
|
||||
let from_account = e.currentTarget.dataset.from_account;
|
||||
let order_inquiry_id = e.currentTarget.dataset.order_inquiry_id;
|
||||
let inquiry_type = e.currentTarget.dataset.inquiry_type;
|
||||
wx.navigateTo({
|
||||
url: e.currentTarget.dataset.url+"?from_account="+from_account+"&order_inquiry_id="+order_inquiry_id
|
||||
url: e.currentTarget.dataset.url+"?from_account="+from_account+"&order_inquiry_id="+order_inquiry_id+"&inquiry_type="+inquiry_type
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<view class="pop_note">为保障服务质量,请您查看患者病历信息在选择是否接诊。</view>
|
||||
<view class="pop_btn">
|
||||
<view class="pop_btn_left" bindtap="go" data-from_account="{{from_account}}" data-url="/Pages/yishi/case/index?order_inquiry_id={{order_inquiry_id}}" >去查看</view>
|
||||
<view class="pop_btn_right" bindtap="goChat" data-from_account="{{from_account}}" data-order_inquiry_id="{{order_inquiry_id}}" data-url="/Pages/yishi/chat/index" >去接诊</view>
|
||||
<view class="pop_btn_right" bindtap="goChat" data-from_account="{{from_account}}" data-inquiry_type="{{inquiry_type}}" data-order_inquiry_id="{{order_inquiry_id}}" data-url="/Pages/yishi/chat/index" >去接诊</view>
|
||||
</view>
|
||||
</view>
|
||||
</van-popup>
|
||||
Reference in New Issue
Block a user