From 9f163394aefb4ebb46d4f5da3f51749188a16765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 30 May 2025 11:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=AE=E6=92=AD=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/diy/components/diy/carousel.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/diy/components/diy/carousel.vue b/pages/diy/components/diy/carousel.vue index 92e47db0..e6c72e78 100644 --- a/pages/diy/components/diy/carousel.vue +++ b/pages/diy/components/diy/carousel.vue @@ -166,9 +166,9 @@ } else if (new_form.img_fit == 'cover') { fit = 'aspectFill'; } - const { margin_left, margin_right, padding_left, padding_right } = new_style.common_style; - const width = sys_width - margin_left - margin_right - padding_left - padding_right - this.propOuterContainerPadding; - const scale = width / 390; + // const { margin_left, margin_right, padding_left, padding_right } = new_style.common_style; + // const width = sys_width - margin_left - margin_right - padding_left - padding_right - this.propOuterContainerPadding; + const scale = sys_width / 390; this.setData({ form: new_form, new_style: new_style, @@ -207,7 +207,7 @@ // 风格三,四显示逻辑 // this.$nextTick(() => { this.setData({ - nextMargin: 50 + data_left_spacing + 'px', + nextMargin: (new_form.carousel_type == 'twoDragOne' ? 50 : 84) + data_left_spacing + 'px', slides_per_group: new_form.carousel_type == 'twoDragOne' ? 2 : 1, }); // });