From fdc01c94a44888f51abbace390b885c23b2b88de Mon Sep 17 00:00:00 2001 From: buffeyu Date: Wed, 26 Jan 2022 11:23:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BA=B8=E5=95=86=E5=9F=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mall/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/mall/index.vue b/pages/mall/index.vue index baf88aa..3fd7062 100644 --- a/pages/mall/index.vue +++ b/pages/mall/index.vue @@ -158,11 +158,11 @@ export default { } else { this.logo = res.logo } - // if (res.backgroundImg === '') { - // this.backgroundStyle = 'background: url("/static/imgs/mall/zsc-bg-icon.png") no-repeat;' - // } else { - // this.backgroundStyle = 'background: url(' + res.backgroundImg + ') no-repeat;' - // } + if (res.backgroundImg === '') { + this.backgroundStyle = 'background: url("/static/imgs/mall/zsc-bg-icon.png") no-repeat;' + } else { + this.backgroundStyle = 'background: url(' + res.backgroundImg + ') no-repeat;' + } } }) .catch((err) => {