This commit is contained in:
zmr900709 2020-07-18 14:05:37 +08:00
parent 750ff19690
commit c90b2c3912
3 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<view class="video-item" v-if="item" @click="toDetailsPage"> <view class="video-item" v-if="item" @click="toDetailsPage()" data-article_id="item.article_id" >
<image class="head" :src="item.article_pic" v-if="item.type == 1" ></image> <image class="head" :src="item.article_pic" v-if="item.type == 1" ></image>
<view class="header_fist" v-else> <view class="header_fist" v-else>
<view class="backes">111</view> <view class="backes">111</view>
@ -175,7 +175,9 @@
background: #000000; background: #000000;
width: 100%; width: 100%;
height: 100%; height: 100%;
color: #fff;
} }
} }
} }
</style> </style>
@ -227,9 +229,11 @@ export default {
} }
}) })
}, },
toDetailsPage() { toDetailsPage(e) {
console.log(e)
let article_id = '2'
uni.navigateTo({ uni.navigateTo({
url: '/pageB/photo/index', url: '/pageB/photo/index?article_id=' + article_id,
}); });
}, },

View File

@ -113,6 +113,9 @@ import shoplist from "../components/shoplist/index"
export default { export default {
name:"photo", name:"photo",
onLoad(e) {
console.log('dhdhdhdhd',e)
},
components:{ components:{
userinfo, userinfo,
shpoone, shpoone,

View File

@ -53,7 +53,7 @@
<scroll-view style="width:100%;height:100%" scroll-y="true"> <scroll-view style="width:100%;height:100%" scroll-y="true">
<view class="box"> <view class="box">
<view class="tuijian"> <view class="tuijian">
<view class="title" @click="toSearchPage"> <view class="title" @click="toSearchPage" >
<view class="left"> <view class="left">
<view></view> <view></view>
<text>推荐达人</text> <text>推荐达人</text>