修改首页显示和子表单多端显示

master
于肖磊 2025-07-14 09:35:28 +08:00
parent 964f718828
commit 657bb1ee60
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<template>
<view class="pr oh wh-auto ht-auto">
<scroll-view :scroll-top="scrollTop" :scroll-y="true" :scroll-x="overall_config.type_value == 'default' || z_index_id !== '' ? false : true" class="scroll-box" lower-threshold="60" scroll-with-animation>
<scroll-view :scroll-top="scrollTop" :scroll-y="true" :scroll-x="overall_config.type_value == 'default' || z_index_id !== '' ? false : true" :class="overall_config.is_show_save_draft == '1' || overall_config.is_show_submit == '1' ? 'scroll-box' : 'ht-auto'" lower-threshold="60" scroll-with-animation>
<view :style="content_style + (overall_config.type_value == 'default' ? '' : ('width:' + overall_config.custom_width * 2 + 'rpx;'))">
<template v-if="!isEmpty(img_url)">
<image :src="img_url" mode="aspectFit" />

View File

@ -451,7 +451,13 @@
custom_height = (com_data.com_height - 30 - text_height) * 2 + 'rpx;';
}
//
const children_list = JSON.parse(JSON.stringify(com_data?.children || []));
let children_list = JSON.parse(JSON.stringify(com_data?.children || []));
let data_list = com_data?.data_list || [];
// #ifndef H5 || MP-WEIXIN || MP-QQ
// H5 qq
children_list = children_list.filter(item => item.com_type != 'upload-attachments');
data_list = data_list.filter(item => item.com_type != 'upload-attachments');
// #endif
children_list.forEach(item => {
item.com_data.common_style = this.get_form_border_style(item.com_data.common_config, mobile.arrange == 'direction' ? this.propDirection : 'column');
})
@ -460,7 +466,7 @@
custom_height: custom_height,
direction_fixed: mobile.direction_fixed,
briefing_field: mobile?.briefing_field || [],
data_list: com_data?.data_list || [],
data_list: data_list,
mobile: mobile,
form_value: com_data?.form_value || [],
children_list: children_list,