8.3
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="cell" v-for="item in most_read_articles.slice(0,3)" :key="item.exchange_id" @click="goDetail(item.exchange_id)">
|
||||
<view class="cell" v-for="item in most_read_articles" :key="item.exchange_id" @click="goDetail(item.exchange_id)">
|
||||
<view class="circle"></view>
|
||||
<view class="title ellipsis-one-lines">{{ item.exchange_title }}</view>
|
||||
</view>
|
||||
@@ -73,7 +73,7 @@
|
||||
>
|
||||
<view
|
||||
class="imgcell"
|
||||
v-for="unit in item.exchange_content_image"
|
||||
v-for="unit in item.exchange_content_image.splice(0,3)"
|
||||
:key="unit"
|
||||
>
|
||||
<up--image
|
||||
@@ -97,7 +97,7 @@
|
||||
>
|
||||
<video
|
||||
:key="index"
|
||||
v-for="(videoCell, index) in item.exchange_content_video"
|
||||
v-for="(videoCell, index) in item.exchange_content_video.slice(0,1)"
|
||||
class="myVideo"
|
||||
|
||||
:src="videoCell"
|
||||
@@ -106,10 +106,11 @@
|
||||
></video>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tagbox" @click="goDetail(item.exchange_id)" v-if="item.label && item.label.length > 0">
|
||||
|
||||
<view class="tagbox" @click="goDetail(item.exchange_id)" v-if="item.exchange_label">
|
||||
<view
|
||||
class="tag"
|
||||
v-for="cell in item.label"
|
||||
v-for="cell in item.exchange_label"
|
||||
:key="cell.exchange_label_id"
|
||||
>{{ cell.label_name }}</view
|
||||
>
|
||||
@@ -204,7 +205,10 @@ const goDetail = (id) => {
|
||||
const searchList = async () => {
|
||||
let searchForm = {
|
||||
page: 1,
|
||||
page_size: 10
|
||||
page_size: 10,
|
||||
order:{
|
||||
push_date:'desc'
|
||||
}
|
||||
};
|
||||
|
||||
api.searchExchage({
|
||||
@@ -227,7 +231,10 @@ const htmlToText=(html)=>{
|
||||
const goodList=()=>{
|
||||
api.searchExchageGood({
|
||||
is_selected:1,
|
||||
limit:5
|
||||
order:{
|
||||
push_date:'desc'
|
||||
},
|
||||
limit:3
|
||||
}).then(res=>{
|
||||
most_read_articles.value=res.data.data
|
||||
})
|
||||
@@ -237,6 +244,7 @@ const hotList=()=>{
|
||||
is_selected:0,
|
||||
limit:5,
|
||||
page:1,
|
||||
|
||||
page_size:5
|
||||
}).then(res=>{
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user