main
JING 8 months ago
parent 28a07a8660
commit 126fb61bee
  1. 18
      pages/index/index.vue

@ -64,7 +64,7 @@
<view class="picList">
<scroll-view class="scrollBox" scroll-x="true" @scroll="scroll1" scroll-left="0">
<view class="picBox" v-for="(item,index) in album_list" :key="index">
<view class="picBox" v-for="(item,index) in album_list" :key="index" @click="viewAlbum(item.id)">
<view class="pic">
<image :src="item.face" mode="widthFix"></image>
</view>
@ -80,7 +80,7 @@
<view class="picList">
<scroll-view class="scrollBox" scroll-x="true" @scroll="scroll2" scroll-left="0">
<view class="picBox" v-for="(item,index) in cartoon_list" :key="index">
<view class="picBox" v-for="(item,index) in cartoon_list" :key="index" @click="viewCartoon(item.id)">
<view class="pic">
<image :src="item.face" mode="widthFix"></image>
</view>
@ -290,7 +290,19 @@
_this.$user.session('sceneList',sceneList);
});
},
//
viewAlbum(id){
uni.navigateTo({
url:'/pagesA/photo/photo_2?id='+id,
})
},
//
viewCartoon(id)
{
uni.navigateTo({
url:'/pagesA/photo/cartoon_2?id='+id,
})
},
}
}
</script>

Loading…
Cancel
Save