更多hiv
This commit is contained in:
parent
d5271c3fa0
commit
cbf2087261
@ -79,6 +79,11 @@ Page({
|
|||||||
url:"/patient/pages/linkPage/linkPage?url="+encodeURIComponent(event.currentTarget.dataset.url)
|
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(){
|
toggleOnline(){
|
||||||
this.setData({
|
this.setData({
|
||||||
is_online:this.data.is_online==0?1:0
|
is_online:this.data.is_online==0?1:0
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
{
|
{
|
||||||
"usingComponents": {
|
"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-image": "@vant/weapp/image/index",
|
||||||
"van-popup": "@vant/weapp/popup/index",
|
"van-popup": "@vant/weapp/popup/index",
|
||||||
"van-sticky": "@vant/weapp/sticky/index",
|
"van-sticky": "@vant/weapp/sticky/index",
|
||||||
|
|||||||
@ -49,7 +49,10 @@
|
|||||||
<view class="bar_classify" ></view>
|
<view class="bar_classify" ></view>
|
||||||
<view class="classify" wx:if="{{articeList.length>0}}">
|
<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="classifybox">
|
||||||
<view class="cell" wx:for="{{articeList}}" wx:key="article_id" bind:tap="goArticle" data-url="{{item.article_url}}">
|
<view class="cell" wx:for="{{articeList}}" wx:key="article_id" bind:tap="goArticle" data-url="{{item.article_url}}">
|
||||||
<view class="left">
|
<view class="left">
|
||||||
|
|||||||
@ -360,8 +360,10 @@ color: #333333;
|
|||||||
align-items:center ;
|
align-items:center ;
|
||||||
}
|
}
|
||||||
.classify .titlename{
|
.classify .titlename{
|
||||||
|
|
||||||
|
justify-content: space-between;
|
||||||
border-bottom: 1rpx solid #E7E7E7;
|
border-bottom: 1rpx solid #E7E7E7;
|
||||||
width:100%;
|
|
||||||
height: 106rpx;
|
height: 106rpx;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -371,6 +373,15 @@ font-size: 34rpx;
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
.classify .more{
|
||||||
|
font-size: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.moreimg{
|
||||||
|
width:14rpx;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
}
|
||||||
.classify .left{
|
.classify .left{
|
||||||
flex:1;
|
flex:1;
|
||||||
margin-right: 28rpx;
|
margin-right: 28rpx;
|
||||||
|
|||||||
@ -12,6 +12,7 @@ Page({
|
|||||||
page:1,
|
page:1,
|
||||||
title:'科普文章',
|
title:'科普文章',
|
||||||
keyword:'',
|
keyword:'',
|
||||||
|
basic_class_id:'',
|
||||||
lock:false,
|
lock:false,
|
||||||
list:[]
|
list:[]
|
||||||
},
|
},
|
||||||
@ -24,10 +25,12 @@ Page({
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
getList(){
|
getList(){
|
||||||
let {page,keyword}=this.data;
|
let {page,keyword,basic_class_id}=this.data;
|
||||||
|
|
||||||
kepuList({
|
kepuList({
|
||||||
keyword:keyword,
|
keyword:keyword,
|
||||||
page:page,
|
page:page,
|
||||||
|
basic_class_id,
|
||||||
per_page:10
|
per_page:10
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
@ -69,9 +72,14 @@ Page({
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
if(options.title){
|
if(options.title){
|
||||||
this.setData({
|
this.setData({
|
||||||
title:options.title
|
title: decodeURIComponent(options.title)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if(options.id){
|
||||||
|
this.setData({
|
||||||
|
basic_class_id:options.id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user