|
|
@ -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({ |
|
|
|