更多hiv

This commit is contained in:
zoujiandong 2024-11-06 13:55:30 +08:00
parent d5271c3fa0
commit cbf2087261
5 changed files with 31 additions and 7 deletions

View File

@ -79,6 +79,11 @@ Page({
url:"/patient/pages/linkPage/linkPage?url="+encodeURIComponent(event.currentTarget.dataset.url)
})
}),
goHivList:throttle(function(){
app.method.navigateTo({
url:"/patient/pages/kepuList/kepuList?title="+encodeURIComponent('关于HIV你知道多少')+"&id=1"
})
}),
toggleOnline(){
this.setData({
is_online:this.data.is_online==0?1:0

View File

@ -1,8 +1,5 @@
{
"usingComponents": {
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index",
"van-picker": "@vant/weapp/picker/index",
"van-image": "@vant/weapp/image/index",
"van-popup": "@vant/weapp/popup/index",
"van-sticky": "@vant/weapp/sticky/index",

View File

@ -49,7 +49,10 @@
<view class="bar_classify" ></view>
<view class="classify" wx:if="{{articeList.length>0}}">
<view class="titlename">关于HIV你知道多少</view>
<view class="titlename">
<view>关于HIV你知道多少</view>
<view class="more" bind:tap="goHivList">更多<image src="{{img_host+'/right.png'}}" mode="widthFix" class="moreimg"></image></view>
</view>
<view class="classifybox">
<view class="cell" wx:for="{{articeList}}" wx:key="article_id" bind:tap="goArticle" data-url="{{item.article_url}}">
<view class="left">

View File

@ -360,8 +360,10 @@ color: #333333;
align-items:center ;
}
.classify .titlename{
justify-content: space-between;
border-bottom: 1rpx solid #E7E7E7;
width:100%;
height: 106rpx;
background: #FFFFFF;
display: flex;
@ -371,6 +373,15 @@ font-size: 34rpx;
color: #333333;
align-items: center;
}
.classify .more{
font-size: 30rpx;
display: flex;
align-items: center;
}
.moreimg{
width:14rpx;
margin-left: 10rpx;
}
.classify .left{
flex:1;
margin-right: 28rpx;

View File

@ -12,6 +12,7 @@ Page({
page:1,
title:'科普文章',
keyword:'',
basic_class_id:'',
lock:false,
list:[]
},
@ -24,10 +25,12 @@ Page({
this.getList()
},
getList(){
let {page,keyword}=this.data;
let {page,keyword,basic_class_id}=this.data;
kepuList({
keyword:keyword,
page:page,
basic_class_id,
per_page:10
}).then((res)=>{
console.log(res)
@ -69,9 +72,14 @@ Page({
onLoad(options) {
if(options.title){
this.setData({
title:options.title
title: decodeURIComponent(options.title)
});
}
if(options.id){
this.setData({
basic_class_id:options.id
})
}
this.getList()
},