Browse Source

preview task img

master
刘嘉炜 4 years ago
parent
commit
0e2e468145
  1. 8
      src/pages/course/task_info/task_info.vue

8
src/pages/course/task_info/task_info.vue

@ -48,7 +48,7 @@
<view @click="copyUrl">复制</view>
</view>
<view class="s-imgs">
<image v-for="(e,i) in taskInfo.homework_record.images" :key="i" mode="aspectFit" :src="e"></image>
<image v-for="(e,i) in taskInfo.homework_record.images" :key="i" mode="aspectFit" :src="e" @click="previewImg(e)"></image>
</view>
</view>
</view>
@ -72,6 +72,12 @@ export default {
this.getTaskInfo(_query.homework_record_id);
},
methods: {
previewImg(src){
uni.previewImage({
urls: this.taskInfo.homework_record.images,
current: src
})
},
copyUrl(){
let { taskInfo } = this;
uni.setClipboardData({

Loading…
Cancel
Save