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) => {