diff --git a/pages/discover/discover.vue b/pages/discover/discover.vue index 3792559..eff0219 100644 --- a/pages/discover/discover.vue +++ b/pages/discover/discover.vue @@ -20,11 +20,11 @@ {{item.created_at}} - + {{item.content}} - + @@ -100,6 +100,19 @@ this.getHotActivity() }, methods: { + checkPicture(image_list,current) { + if(image_list.length <= 0) return; + let list = []; + image_list.forEach((item,index) => { + list.push(item.url) + }) + this.$u.throttle(() => { + uni.previewImage({ + urls: list, + current: current + }); + }, 500); + }, goDetails(id) { this.$url('/pages/discover/discoverdetails?discover_id='+id) },