diff --git a/components/diy/carousel.vue b/components/diy/carousel.vue index 162847b5..d2dec3d6 100644 --- a/components/diy/carousel.vue +++ b/components/diy/carousel.vue @@ -133,8 +133,8 @@ const new_style = this.propValue.style; // 获取当前手机的宽度 const { windowWidth } = uni.getSystemInfoSync(); - // 将90%的宽度分成16份 - const block = (windowWidth * 0.9) / 16; + // 将80%的宽度分成16份 + const block = (windowWidth * 0.8) / 16; const { common_style, actived_color } = new_style; // scaleToFill 对应 fill aspectFit 对应 contain aspectFill 对应 cover diff --git a/components/diy/diy.vue b/components/diy/diy.vue index a7babdaa..475ae9aa 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -1,7 +1,7 @@