From b27c8048324cde36c24fa935c32d04b96c652c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Fri, 7 Jan 2022 17:55:06 +0800 Subject: [PATCH] eslint --- .../AppVillageDiscuss/AppVillageDiscuss.vue | 15 +++++----- src/apps/AppVillageDiscuss/Detail.vue | 28 ++++++++++++++----- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/src/apps/AppVillageDiscuss/AppVillageDiscuss.vue b/src/apps/AppVillageDiscuss/AppVillageDiscuss.vue index fdfbbba5..59b9d36a 100644 --- a/src/apps/AppVillageDiscuss/AppVillageDiscuss.vue +++ b/src/apps/AppVillageDiscuss/AppVillageDiscuss.vue @@ -95,6 +95,7 @@ export default { }, }, onLoad(o) { + console.log(this.user) this.moduleId = o.moduleId this.listName = o.listName @@ -125,12 +126,12 @@ export default { if (res?.data) { res.data.records.forEach((e) => { // e.avatar = e.createUserName?.substring(0, 2) || '游客' - if(e.createUserName) { - e.avatar = e.createUserName.substring(e.createUserName.length, e.createUserName.length - 2) - }else { - e.avatar = '游客' + if (e.createUserName) { + e.avatar = e.createUserName.substring(e.createUserName.length, e.createUserName.length - 2) + } else { + e.avatar = '游客' } - + if (e.images) { e.images = JSON.parse(e.images) } @@ -220,11 +221,11 @@ export default { background: #f2f2f2; ::v-deep .AiCard { - border-radius: 0!important; + border-radius: 0 !important; box-shadow: none; .start { - border-radius: 0!important; + border-radius: 0 !important; } } diff --git a/src/apps/AppVillageDiscuss/Detail.vue b/src/apps/AppVillageDiscuss/Detail.vue index 5f59d57a..b8c3b220 100644 --- a/src/apps/AppVillageDiscuss/Detail.vue +++ b/src/apps/AppVillageDiscuss/Detail.vue @@ -41,7 +41,6 @@
-
@@ -65,6 +64,12 @@
+
+
共23人参与投票
+ + +
+
我来说两句...
@@ -198,9 +203,12 @@ export default { } }) }, + adddeleShow(id) { - this.deleId = id - this.deleShow = true + if (this.user.id == this.data.createUserId) { + this.deleId = id + this.deleShow = true + } }, confirmDelete() { @@ -255,10 +263,6 @@ export default { }) }, - a() { - console.log(aa) - }, - previewImage(images, img) { uni.previewImage({ urls: images.map((v) => v.url), @@ -500,6 +504,16 @@ export default { } } + .votePeople { + display: flex; + justify-content: space-between; + margin-top: 8px; + padding: 36px 32px 36px 20px; + .leftPeople { + font-size: 28px; + } + } + .bottomInput { position: fixed; bottom: 0;