修改轮播图指示器问题

master
于肖磊 2024-10-17 18:04:46 +08:00
parent 5fce4f7f0c
commit 33238137d9
1 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,6 @@
},
created() {
this.init();
console.log(sys_width);
},
methods: {
isEmpty,
@ -141,6 +140,7 @@
} else if (new_form.img_fit == 'cover') {
fit = 'aspectFill';
}
this.setData({
form: this.propValue.content,
new_style: this.propValue.style,
@ -152,9 +152,9 @@
style_img_container: this.propIsCommon ? common_img_computer(common_style) : '', //
img_style: radius_computer(new_style), //
indicator_style: this.get_indicator_style(new_style), //
dot_style: `bottom: ${ new_style.indicator_bottom * 2 }rpx;`, //
dot_style: `bottom: ${ (new_style.indicator_bottom + common_style.margin_bottom + common_style.padding_bottom) * (sys_width / 390) * 2 }rpx;`, //
img_fit: fit,
video_style: this.get_video_style(new_style), //
video_style: this.get_video_style(new_style), //
swiper_height: new_form.height * (sys_width / 390) * 2 + 'rpx',
});
if (new_form.carousel_type == 'card') {