优化
This commit is contained in:
@@ -126,9 +126,9 @@ Page({
|
||||
funbox_height = rpxTopx(funbox_height);
|
||||
// 147 userinfo的高度
|
||||
// 155 认证部分的高度
|
||||
// 150 广告部分的高度
|
||||
// 168 广告部分的高度
|
||||
// 40 自定义适配
|
||||
funbox_height = funbox_height - 147 - 20 - 30 - 20 - 155 - 30 - 150 - 20 - 30 - 30 - 30 - 30 - 40;
|
||||
funbox_height = funbox_height - 147 - 20 - 30 - 20 - 155 - 30 - 168 - 20 - 30 - 30 - 30 - 30 - 40;
|
||||
funbox_height = funbox_height / 3;
|
||||
if(funbox_height > 150) funbox_height = 150
|
||||
this.setData({
|
||||
@@ -173,9 +173,32 @@ Page({
|
||||
console.log("index onHide() onHide() ");
|
||||
this.setData({
|
||||
swiperList: [],
|
||||
contactKeFu: false
|
||||
contactKeFu: false,
|
||||
info:{
|
||||
user_name: "医师姓名",
|
||||
not_accepted_inquiry_num: 0,
|
||||
accepting_inquiry_num: 0,
|
||||
info_shiming_status_txt: "未认证",
|
||||
info_shiming_status: "info_shiming_status_no",
|
||||
show_info_note: false,
|
||||
praise_rate: "100%",
|
||||
avg_response_time: 0,
|
||||
number_of_fans: 0,
|
||||
avatar: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png",
|
||||
reject_prescription_number: false,//处方管理小红点
|
||||
},
|
||||
iden_auth_status_txt: "未认证",
|
||||
multi_point_status_txt: "未认证",
|
||||
shiming_status_url: "",
|
||||
iden_auth_status_url: "/Pages/yishi/identity/index",
|
||||
multi_point_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
skeleton_loading: true
|
||||
})
|
||||
wx.offCopyUrl(this.Copylistener) // 需传入与监听时同一个的函数对象
|
||||
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().stopInterval()
|
||||
}
|
||||
},
|
||||
Copylistener(res){
|
||||
setTimeout(()=>{
|
||||
@@ -197,6 +220,8 @@ Page({
|
||||
this.getTabBar().setData({
|
||||
active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1
|
||||
})
|
||||
|
||||
this.getTabBar().startInterval()
|
||||
}
|
||||
this.getMenuButtonBound();
|
||||
this.getFunboxHeight();
|
||||
@@ -282,9 +307,7 @@ Page({
|
||||
})
|
||||
},
|
||||
onTapAD(e) {
|
||||
const { index } = e.detail;
|
||||
console.log(index);
|
||||
let item = this.data.banner[index];
|
||||
let item = e.currentTarget.dataset.item;
|
||||
console.log(item);
|
||||
let open_with = item.open_with;
|
||||
let banner_link = item.banner_link;
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
"van-image": "@vant/weapp/image/index",
|
||||
"t-skeleton": "tdesign-miniprogram/skeleton/skeleton"
|
||||
},
|
||||
"enablePullDownRefresh": true,
|
||||
"enablePullDownRefresh": false,
|
||||
"backgroundTextStyle":"dark"
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
<page-meta page-style="{{ true ? 'overflow: hidden;' : '' }}" />
|
||||
<view class="container" id="container">
|
||||
<!-- 顶部背景 -->
|
||||
<view class="top_bk"></view>
|
||||
@@ -19,7 +20,7 @@
|
||||
<view class="info_mobile" wx:if="{{!skeleton_loading}}">{{info.user_name}}</view>
|
||||
<t-skeleton theme="text" row-col="{{[1]}}" animation="gradient" loading="{{skeleton_loading}}" />
|
||||
</view>
|
||||
<view class="info_shiming" bindtap="go" data-url="{{shiming_status_url}}">
|
||||
<view class="info_shiming" bindtap="go" data-url="{{shiming_status_url}}" wx:if="{{!skeleton_loading}}">
|
||||
<view class="info_shiming_status {{info.info_shiming_status}}" wx:if="{{!skeleton_loading}}">{{info.info_shiming_status_txt}}</view>
|
||||
<t-skeleton theme="text" row-col="{{[1]}}" animation="gradient" loading="{{skeleton_loading}}" />
|
||||
</view>
|
||||
@@ -93,7 +94,7 @@
|
||||
</view>
|
||||
<!-- 广告版块 -->
|
||||
<view class="ad">
|
||||
<t-swiper
|
||||
<!-- <t-swiper
|
||||
height="110rpx"
|
||||
duration="{{duration}}"
|
||||
interval="{{interval}}"
|
||||
@@ -104,7 +105,16 @@
|
||||
data-url="123"
|
||||
wx:if="{{!skeleton_loading}}"
|
||||
>
|
||||
</t-swiper>
|
||||
</t-swiper> -->
|
||||
<swiper class="swiper" indicator-dots="{{true}}" circular="{{true}}" indicator-active-color="#3CC7C0" autoplay="{{true}}" interval="3000">
|
||||
<block wx:for="{{banner}}" wx:key="*this">
|
||||
<swiper-item>
|
||||
<view class="swiper-item">
|
||||
<image class="swiperimg" src="{{item.banner_path}}" data-item="{{item}}" bindtap="onTapAD"></image>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</block>
|
||||
</swiper>
|
||||
</view>
|
||||
<!-- 功能模块 -->
|
||||
<view class="fun_box">
|
||||
|
||||
@@ -22,7 +22,6 @@ page{
|
||||
font-size: 35rpx;
|
||||
color: #fff;
|
||||
background-color: #3CC7C0;
|
||||
width: 100%;
|
||||
z-index: 999;
|
||||
}
|
||||
.info_box{
|
||||
@@ -105,6 +104,7 @@ page{
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
margin-top: 20rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.info_note_txt{
|
||||
font-size: 28rpx;
|
||||
@@ -160,24 +160,20 @@ page{
|
||||
.renzheng_content_right_img{
|
||||
width: 100%;
|
||||
}
|
||||
.ad{
|
||||
padding: 20rpx 20rpx 0 20rpx;
|
||||
width: calc(90vw - 40rpx);
|
||||
height: 150rpx;
|
||||
margin: 0 auto;
|
||||
box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.1);
|
||||
.ad {
|
||||
width: calc(92vw - 40rpx);
|
||||
border-radius: 10rpx;
|
||||
background-color: rgb(255, 255, 255);
|
||||
|
||||
margin: 0 auto;
|
||||
background-color: #fff;
|
||||
padding: 20rpx 20rpx 0 20rpx;
|
||||
}
|
||||
.t-swiper-nav--bottom {
|
||||
bottom: -24rpx !important;
|
||||
.swiper{
|
||||
height:168rpx;
|
||||
}
|
||||
.t-swiper-nav__dots-item {
|
||||
background: var(--td-swiper-nav-dot-color, var(--td-font-white-2, rgb(107, 106, 106))) !important;
|
||||
}
|
||||
.t-swiper-nav__dots-item--active {
|
||||
background-color: var(--td-swiper-nav-dot-active-color, var(--td-font-white-1, #3CC7C0)) !important;
|
||||
.swiper-item .swiperimg{
|
||||
width:100%;
|
||||
border-radius: 10rpx;
|
||||
height:110rpx;
|
||||
}
|
||||
.fun_box{
|
||||
width: 90vw;
|
||||
|
||||
Reference in New Issue
Block a user