gdpao
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="video-item" v-if="item" @click="toDetailsPage(item.article_id)">
|
||||
<view class="video-item" v-if="item" @click="toDetailsPage(item.article_id,item.video_path)">
|
||||
<image class="head" :src="item.article_pic" v-if="item.type == 1" ></image>
|
||||
<view class="header_fist" v-else>
|
||||
<view class="backes"></view>
|
||||
@@ -245,10 +245,16 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
toDetailsPage(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pageB/photo/index?id=' + id
|
||||
});
|
||||
toDetailsPage(id,type) {
|
||||
if (type) {
|
||||
uni.navigateTo({
|
||||
url: '/pageB/video/video?id=' + id
|
||||
});
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pageB/photo/index?id=' + id
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user