修改页面修改逻辑

master
于肖磊 2024-10-16 12:43:57 +08:00
parent 9fb25729a4
commit cbdbc95d8c
1 changed files with 8 additions and 3 deletions

View File

@ -88,12 +88,17 @@ export default {
init() { init() {
const new_form = this.propValue.content; const new_form = this.propValue.content;
const new_style = this.propValue.style; const new_style = this.propValue.style;
const width = sys_width - new_style.common_style.margin_left - new_style.common_style.margin_right; const { margin_left, margin_right } = new_style.common_style;
const width = sys_width - margin_left - margin_right;
this.$nextTick(() => {
this.setData({
div_width: width,
scale: width / 390,
});
});
this.setData({ this.setData({
form: new_form, form: new_form,
new_style: new_style, new_style: new_style,
div_width: width,
scale: width / 390,
custom_list_length: new_form.custom_list.length - 1, custom_list_length: new_form.custom_list.length - 1,
style_container: common_styles_computer(new_style.common_style) + 'box-sizing: border-box;', // style_container: common_styles_computer(new_style.common_style) + 'box-sizing: border-box;', //
style_img_container: common_img_computer(new_style.common_style), style_img_container: common_img_computer(new_style.common_style),