111
This commit is contained in:
+15
-6
@@ -68,7 +68,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="listbox">
|
||||
<view class="cell" v-for="item in new_articles" :key="item.article_id" @click="goDetail(item.article_id)">
|
||||
<view class="cell" v-for="item in new_articles" :key="item.article_id" @click="goDetail(item.article_id,item.is_link,item.is_link_url)">
|
||||
<view class="circle"></view>
|
||||
<view class="info">
|
||||
<view class="name">{{item.article_title }}</view>
|
||||
@@ -89,7 +89,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="listbox">
|
||||
<view class="cell" v-for="item in most_read_articles" :key="item.article_id" @click="goDetail(item.article_id)">
|
||||
<view class="cell" v-for="item in most_read_articles" :key="item.article_id" @click="goDetail(item.article_id,item.is_link,item.is_link_url)">
|
||||
<view class="circle"></view>
|
||||
<view class="info">
|
||||
<view class="name">{{item.article_title }}</view>
|
||||
@@ -149,10 +149,18 @@ const new_articles = ref([]);
|
||||
const recommend_doctor=ref([]);
|
||||
const recommend_hospital=ref([]);
|
||||
const numInfo=reactive({})
|
||||
const goDetail = (id) => {
|
||||
navTo({
|
||||
url: `/pages/detail/detail?id=${id}&type=article`,
|
||||
});
|
||||
const goDetail = (id,isLink,src) => {
|
||||
if(isLink==1){
|
||||
navTo({
|
||||
url: `/pages/web/web?src=${src}`,
|
||||
});
|
||||
|
||||
}else{
|
||||
navTo({
|
||||
url: `/pages/detail/detail?id=${id}&type=article`,
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
const goListBy=(id,name,type)=>{
|
||||
let url=''
|
||||
@@ -218,6 +226,7 @@ onShow(() => {
|
||||
.tagsbox {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
.tag {
|
||||
padding: 0 10rpx;
|
||||
margin-right: 16rpx;
|
||||
|
||||
Reference in New Issue
Block a user