From 99f6cf93263f58630857acc7364f1fb9f8f767be Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 28 Sep 2022 16:59:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AD=BE=E5=88=B0=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E5=90=8E=E7=9A=84=E6=A0=B7=E5=BC=8F=E5=92=8C=E6=96=87?= =?UTF-8?q?=E5=AD=97=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppMyGrid/signResult.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/apps/AppMyGrid/signResult.vue b/src/apps/AppMyGrid/signResult.vue index adca92df..05968eff 100644 --- a/src/apps/AppMyGrid/signResult.vue +++ b/src/apps/AppMyGrid/signResult.vue @@ -2,7 +2,7 @@
今日已完成签到 -
积分{{ result.changeIntegral }}
+
积分{{ formatIntegral(result.changeIntegral || 0) }}
{{ result.createTime }} {{ result.address }} @@ -19,6 +19,9 @@ export default { } }, methods: { + formatIntegral(v) { + return v > 0 ? "+" + v : v + }, getResult() { const {id} = this.$route.query id && this.$http.post("/app/appwxsigninfo/queryDetailById", null, { @@ -65,6 +68,8 @@ export default { background-image: url("./assets/score.png"); background-repeat: no-repeat; background-position: left center; + display: flex; + align-items: center; &.gap { background: transparent;