From 0e2e46814504d28992250085576083f0d1f93ebe Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Tue, 30 Mar 2021 16:50:16 +0800 Subject: [PATCH] preview task img --- src/pages/course/task_info/task_info.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/course/task_info/task_info.vue b/src/pages/course/task_info/task_info.vue index e016512..1d181fd 100644 --- a/src/pages/course/task_info/task_info.vue +++ b/src/pages/course/task_info/task_info.vue @@ -48,7 +48,7 @@ 复制 - + @@ -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({