修改显示内容处理

master
于肖磊 2025-07-30 16:46:14 +08:00
parent ecb1dee0ed
commit cbb27dde7a
4 changed files with 7 additions and 7 deletions

View File

@ -96,7 +96,7 @@
const data = {
name: val,
value: value,
color: color_change(this.option_list.length - 1),
color: color_change(this.option_list.length),
};
const custom_option_list = [...this.custom_option_list, data];
this.setData({

View File

@ -259,9 +259,9 @@ export default {
init() {
const data = this.propValue;
//
const overall_config = data.config?.overall_config || {};
const overall_config = data?.overall_config || {};
const mobile = overall_config?.style_settings?.mobile || {};
let diy_data = data.config.diy_data || [];
let diy_data = data.diy_data || [];
// #ifndef H5 || MP-WEIXIN || MP-QQ
// H5 qq
diy_data = diy_data.filter(item => item.key !== 'upload-attachments');
@ -643,13 +643,13 @@ export default {
},
//
handlePhoneValidation(com_data) {
if (com_data.is_sms_verification === '1' && com_data.is_required === '1' && isEmpty(com_data.form_value_code)) {
if (com_data.is_sms_verification === '1' && com_data.is_required === '1' && isEmpty(com_data.form_value)) {
com_data.common_config.is_error = '1';
com_data.common_config.error_text = '短信验证码不能为空';
return;
}
com_data.common_config.format = com_data.is_telephone === '1' ? 'telephone-number' : 'phone-number';
return get_format_checks(com_data, com_data.form_value_code, true);
return get_format_checks(com_data, com_data.form_value, true);
},
//
filtered_Data(children) {

View File

@ -9,7 +9,7 @@
<view v-if="is_show_heading_title == '1'" class="head-title flex-row bg-white" :style="heading_title_style + (overall_config.type_value == 'default' ? '' : ('width:' + overall_config.custom_width * 2 + 'rpx;'))">{{ form_name }}</view>
<view class="data-list bg-white" :style="overall_config.type_value == 'default' ? '' : ('width:' + overall_config.custom_width * 2 + 'rpx;height:' + overall_config.custom_height * 2 + 'rpx')">
<!-- form表单子组件显示 -->
<form-input-base ref="componentForm" :propValue="propValue" :propDataFormId="propDataFormId" @submitData="submit_data" />
<form-input-base ref="componentForm" :propValue="propValue.config" :propDataFormId="propDataFormId" @submitData="submit_data" />
</view>
</view>
<!-- 支付宝小程序 不支持同时上下左右滑动-->

View File

@ -188,7 +188,7 @@
const data = {
name: val,
value: value,
color: color_change(this.option_list.length - 1),
color: color_change(this.option_list.length),
};
const custom_option_list = [...this.custom_option_list, data];
this.setData({