This commit is contained in:
Gdpao
2020-08-09 11:31:47 +08:00
parent 1ee0dd4b25
commit fe8af80983
12 changed files with 385 additions and 20 deletions

View File

@@ -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
});
}
},
},
}