From 0f8be5eece9ec8a8a03dc7d4e4b3231e4dc4ebb6 Mon Sep 17 00:00:00 2001 From: mark <mark18340872469@163.com> Date: 星期三, 28 九月 2022 16:19:07 +0800 Subject: [PATCH] 添加时间段 删除取消确定按钮 --- src/views/index/components/productLeft.vue | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/views/index/components/productLeft.vue b/src/views/index/components/productLeft.vue index e69b73d..e1c213e 100644 --- a/src/views/index/components/productLeft.vue +++ b/src/views/index/components/productLeft.vue @@ -2,7 +2,7 @@ <div class="productLeft" :style="{ - background: ` url(${data.pic})`, + background: ` url(${pic})`, backgroundSize: '100% 100%', backgroundRepeat: 'no-repeat', }" @@ -28,6 +28,19 @@ type: Object, }, }, + created() { + var reg = /^[0-9]/; + if (reg.test(this.data.pic)) { + this.pic = "/httpImage/" + this.data.pic; + } else { + this.pic = this.data.pic; + } + }, + data() { + return { + pic: "", + }; + }, }; </script> -- Gitblit v1.8.0