Ver código fonte

feat:【商城】店铺装修-优惠劵:phoneWidth * 0.96 改成 * 1,避免左右边距不太对(不铺满)

YunaiV 10 meses atrás
pai
commit
3b0ab0d78f

+ 1 - 1
src/components/DiyEditor/components/mobile/CouponCard/index.vue

@@ -124,7 +124,7 @@ watch(
   () => {
     // 每列的宽度为:(总宽度 - 间距 * (列数 - 1))/ 列数
     couponWidth.value =
-      (phoneWidth.value * 0.95 - props.property.space * (props.property.columns - 1)) /
+      (phoneWidth.value - props.property.space * (props.property.columns - 1)) /
       props.property.columns
     // 显示滚动条
     scrollbarWidth.value = `${