This commit is contained in:
zoujiandong 2024-11-04 15:37:49 +08:00
parent 1aedefd3dc
commit e3b8724b61
6 changed files with 24 additions and 17 deletions

View File

@ -48,7 +48,7 @@ Page({
}
}),
goH5:throttle(function(event){
let {url,name,type}=event.currentTarget.dataset;
let {url,name,type,title}=event.currentTarget.dataset;
if(url.indexOf("http")!=-1){
let urlName=(decodeURIComponent(url))
if(this.verifySuffix(urlName)){
@ -64,7 +64,7 @@ Page({
}else{
if(type==4){
app.method.navigateTo({
url:'/'+url
url:'/'+url+'?title='+title
})
}else{
wx.navigateToMiniProgram({

View File

@ -128,11 +128,11 @@
</view>
<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">
<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>
</swiper-item>
</block>
@ -172,7 +172,7 @@
<view class="titlebox">
<!-- <view class="title"></view> -->
<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-tabs>
<!-- <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>
</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 File

@ -119,8 +119,8 @@
.cellbox .cell {
position: relative;
display: inline-flex;
width:130rpx;
height:124rpx;
width:150rpx;
height:144rpx;
flex-direction: column;
justify-content: center;
align-items: center;
@ -140,8 +140,8 @@
}
.cellbox .cellimg{
margin-top: 14rpx;
width:68rpx;
height:68rpx;
width:72rpx;
height:72rpx;
}
.cellbox image {
width: 98rpx;
@ -149,10 +149,9 @@
}
.cellbox .name {
font-size: 20rpx;
font-size: 24rpx;
margin-top: 5rpx;
color: #333;
color: #000;
}
.consultbox .service{
border:none;
@ -199,6 +198,7 @@ color: #FFFFFF;
}
.titlebox .van-tab--active{
font-size: 30rpx;
font-weight: bold;
}
.titlebox .van-tabs__line{
bottom:16rpx;

View File

@ -32,7 +32,7 @@
<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"/>
<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 File

@ -10,6 +10,7 @@ Page({
data: {
isTriggered:false,
page:1,
title:'科普文章',
keyword:'',
lock:false,
list:[]
@ -66,6 +67,12 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
if(options.title){
this.setData({
title:options.title
});
}
this.getList()
},

View File

@ -1,7 +1,7 @@
<!--patient/pages/kepuList/kepuList.wxml-->
<nav navName="科普文章"></nav>
<nav navName="{{title}}"></nav>
<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="left">
<view class="title">{{item.article_title}}</view>