From 829f8ed9dad0320035422ef4772b273c9f40a8c8 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Sat, 23 Sep 2023 17:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=95=87=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=85=AC=E5=8F=B8=E7=9B=B8=E5=85=B3=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpkg/serviceTask/serviceTask.vue | 30 ++++++--- subpkg/serviceTask/serviceTask4.vue | 94 ++++++++++++++++------------- 2 files changed, 74 insertions(+), 50 deletions(-) diff --git a/subpkg/serviceTask/serviceTask.vue b/subpkg/serviceTask/serviceTask.vue index ba1e643..7498888 100644 --- a/subpkg/serviceTask/serviceTask.vue +++ b/subpkg/serviceTask/serviceTask.vue @@ -1,13 +1,18 @@ @@ -24,7 +29,8 @@ content: '', extend: {} }, - remark: '' + remark: '', + skeleton: true } }, onLoad(options) { @@ -34,6 +40,7 @@ onShow() {}, methods: { async initTask(){ + this.skeleton = true; let res = await serviceTaskDetails({ id: this.taskInfo.id }); @@ -46,6 +53,7 @@ this.remark = item.remark; } }) + this.skeleton = false; }, }, } @@ -129,5 +137,9 @@ } } } + + .loading{ + padding: 28rpx; + } } \ No newline at end of file diff --git a/subpkg/serviceTask/serviceTask4.vue b/subpkg/serviceTask/serviceTask4.vue index 175926f..3a6c919 100644 --- a/subpkg/serviceTask/serviceTask4.vue +++ b/subpkg/serviceTask/serviceTask4.vue @@ -1,49 +1,54 @@ @@ -56,6 +61,7 @@ export default { data() { return { + skeleton: true, other: { annex: [], // 图片列表 is_commit: 0, // 是否提交 @@ -88,6 +94,7 @@ }, methods: { async initTask() { + this.skeleton = true; let res = await serviceTaskDetails({ id: this.taskInfo.id }); @@ -95,6 +102,7 @@ this.sign_in_table = this.taskInfo?.extend?.town_task_type_4?.sign_in_table; this.study_content = this.taskInfo?.extend?.town_task_type_4?.study_content; this.study_photo = JSON.parse(JSON.stringify(this.taskInfo?.extend?.town_task_type_4?.study_photo || [])); + this.skeleton = false; }, // 提交 async submit() { @@ -254,5 +262,9 @@ } } } + + .loading{ + padding: 28rpx; + } } \ No newline at end of file