bug 11.4
This commit is contained in:
parent
1aedefd3dc
commit
e3b8724b61
@ -48,7 +48,7 @@ Page({
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
goH5:throttle(function(event){
|
goH5:throttle(function(event){
|
||||||
let {url,name,type}=event.currentTarget.dataset;
|
let {url,name,type,title}=event.currentTarget.dataset;
|
||||||
if(url.indexOf("http")!=-1){
|
if(url.indexOf("http")!=-1){
|
||||||
let urlName=(decodeURIComponent(url))
|
let urlName=(decodeURIComponent(url))
|
||||||
if(this.verifySuffix(urlName)){
|
if(this.verifySuffix(urlName)){
|
||||||
@ -64,7 +64,7 @@ Page({
|
|||||||
}else{
|
}else{
|
||||||
if(type==4){
|
if(type==4){
|
||||||
app.method.navigateTo({
|
app.method.navigateTo({
|
||||||
url:'/'+url
|
url:'/'+url+'?title='+title
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
wx.navigateToMiniProgram({
|
wx.navigateToMiniProgram({
|
||||||
|
|||||||
@ -128,11 +128,11 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="ad">
|
<view class="ad">
|
||||||
<swiper class="swiper" indicator-dots="{{true}}" circular="{{true}}" indicator-active-color="#3CC7C0" autoplay="{{true}}" interval="5000">
|
<swiper class="swiper" indicator-dots="{{banner.length>1}}" circular="{{true}}" indicator-active-color="#3CC7C0" autoplay="{{true}}" interval="5000">
|
||||||
<block wx:for="{{banner}}" wx:key="banner_id">
|
<block wx:for="{{banner}}" wx:key="banner_id">
|
||||||
<swiper-item>
|
<swiper-item>
|
||||||
<view class="swiper-item">
|
<view class="swiper-item">
|
||||||
<image class="swiperimg" src="{{item.banner_path}}" data-url="{{item.banner_link}}" data-name="{{item.banner_name}}" data-type="{{item.open_with}}" bindtap="goH5" ></image>
|
<image class="swiperimg" src="{{item.banner_path}}" data-url="{{item.banner_link}}" data-name="{{item.banner_name}}" data-type="{{item.open_with}}" bindtap="goH5" data-title="{{item.title}}"></image>
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</block>
|
</block>
|
||||||
@ -172,7 +172,7 @@
|
|||||||
<view class="titlebox">
|
<view class="titlebox">
|
||||||
<!-- <view class="title"></view> -->
|
<!-- <view class="title"></view> -->
|
||||||
<van-tabs v-model:active="active" line-width="25rpx" shrink ellipsis="{{false}}" color="#3CC7C0" bind:change="onChange">
|
<van-tabs v-model:active="active" line-width="25rpx" shrink ellipsis="{{false}}" color="#3CC7C0" bind:change="onChange">
|
||||||
<van-tab title="在线医生" name="0"></van-tab>
|
<van-tab title="在线推荐" name="0"></van-tab>
|
||||||
<van-tab title="我的医生" name="1"></van-tab>
|
<van-tab title="我的医生" name="1"></van-tab>
|
||||||
</van-tabs>
|
</van-tabs>
|
||||||
<!-- <view class="more" bindtap="goquickExpert">更多<van-icon name="arrow" style="margin-top: 4rpx;"/></view> -->
|
<!-- <view class="more" bindtap="goquickExpert">更多<van-icon name="arrow" style="margin-top: 4rpx;"/></view> -->
|
||||||
@ -235,7 +235,7 @@
|
|||||||
<view class="price" wx:else></view> -->
|
<view class="price" wx:else></view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="nonedata" wx:if="{{my_doctor.length==0}}">暂无医生!</view>
|
<view class="nonedata" wx:if="{{my_doctor.length==0}}" style="background:#fff">暂无医生!</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@ -119,8 +119,8 @@
|
|||||||
.cellbox .cell {
|
.cellbox .cell {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
width:130rpx;
|
width:150rpx;
|
||||||
height:124rpx;
|
height:144rpx;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -139,9 +139,9 @@
|
|||||||
margin-left: 0rpx;
|
margin-left: 0rpx;
|
||||||
}
|
}
|
||||||
.cellbox .cellimg{
|
.cellbox .cellimg{
|
||||||
margin-top: 14rpx;
|
margin-top: 14rpx;
|
||||||
width:68rpx;
|
width:72rpx;
|
||||||
height:68rpx;
|
height:72rpx;
|
||||||
}
|
}
|
||||||
.cellbox image {
|
.cellbox image {
|
||||||
width: 98rpx;
|
width: 98rpx;
|
||||||
@ -149,10 +149,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cellbox .name {
|
.cellbox .name {
|
||||||
font-size: 20rpx;
|
font-size: 24rpx;
|
||||||
|
|
||||||
margin-top: 5rpx;
|
margin-top: 5rpx;
|
||||||
color: #333;
|
color: #000;
|
||||||
}
|
}
|
||||||
.consultbox .service{
|
.consultbox .service{
|
||||||
border:none;
|
border:none;
|
||||||
@ -199,6 +198,7 @@ color: #FFFFFF;
|
|||||||
}
|
}
|
||||||
.titlebox .van-tab--active{
|
.titlebox .van-tab--active{
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.titlebox .van-tabs__line{
|
.titlebox .van-tabs__line{
|
||||||
bottom:16rpx;
|
bottom:16rpx;
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<view class="scrollwraper">
|
<view class="scrollwraper">
|
||||||
<scroll-view scroll-y style="width: 100%;height:100%" bindrefresherrefresh="handleRefresher" refresher-triggered="{{isTriggered}}" refresher-threshold="100" refresher-enabled="true" bindscrolltolower="lower" bind:scroll="onScroll" id="scroller" bounces="false">
|
<scroll-view scroll-y style="width: 100%;height:100%" bindrefresherrefresh="handleRefresher" refresher-triggered="{{isTriggered}}" refresher-threshold="350" refresher-enabled="true" bindscrolltolower="lower" bind:scroll="onScroll" id="scroller" bounces="false">
|
||||||
<image src="{{img_host+'/hiv_bg.png'}}" mode="widthFix" class="bananerimg"/>
|
<image src="{{img_host+'/hiv_bg.png'}}" mode="widthFix" class="bananerimg"/>
|
||||||
<view wx:if="{{doctorList.length>0}}" style=" margin:-120rpx 20rpx 0;background: #fff;position: relative;z-index:1;border-radius: 20rpx;overflow: hidden;">
|
<view wx:if="{{doctorList.length>0}}" style=" margin:-120rpx 20rpx 0;background: #fff;position: relative;z-index:1;border-radius: 20rpx;overflow: hidden;">
|
||||||
<view class="viewcell" bindtap="goExpertDetail" wx:for="{{doctorList}}" wx:key="doctor_id" data-doctorid="{{item.doctor_id}}">
|
<view class="viewcell" bindtap="goExpertDetail" wx:for="{{doctorList}}" wx:key="doctor_id" data-doctorid="{{item.doctor_id}}">
|
||||||
|
|||||||
@ -10,6 +10,7 @@ Page({
|
|||||||
data: {
|
data: {
|
||||||
isTriggered:false,
|
isTriggered:false,
|
||||||
page:1,
|
page:1,
|
||||||
|
title:'科普文章',
|
||||||
keyword:'',
|
keyword:'',
|
||||||
lock:false,
|
lock:false,
|
||||||
list:[]
|
list:[]
|
||||||
@ -66,6 +67,12 @@ Page({
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
if(options.title){
|
||||||
|
this.setData({
|
||||||
|
title:options.title
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!--patient/pages/kepuList/kepuList.wxml-->
|
<!--patient/pages/kepuList/kepuList.wxml-->
|
||||||
<nav navName="科普文章"></nav>
|
<nav navName="{{title}}"></nav>
|
||||||
<view class="scrollwraper">
|
<view class="scrollwraper">
|
||||||
<scroll-view scroll-y style="width: 100%;height:100%" bindrefresherrefresh="handleRefresher" refresher-triggered="{{isTriggered}}" refresher-threshold="100" refresher-enabled="true" bindscrolltolower="lower" id="scroller" bounces="false">
|
<scroll-view scroll-y style="width: 100%;height:100%" bindrefresherrefresh="handleRefresher" refresher-triggered="{{isTriggered}}" refresher-threshold="200" refresher-enabled="true" bindscrolltolower="lower" id="scroller" bounces="false">
|
||||||
<view class="cell" wx:for="{{list}}" wx:key="article_id" bind:tap="goArticle" data-url="{{item.article_url}}">
|
<view class="cell" wx:for="{{list}}" wx:key="article_id" bind:tap="goArticle" data-url="{{item.article_url}}">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<view class="title">{{item.article_title}}</view>
|
<view class="title">{{item.article_title}}</view>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user