修改自定义历史数据的处理
parent
4808846ce1
commit
e6c0c9c711
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<view :style="style_container">
|
||||
<view class="w h re" :style="style_img_container">
|
||||
<view v-if="data_source_content_list.length > 0 && form.data_source_direction == '0'">
|
||||
<template v-if="data_source_content_list.length > 0 && form.data_source_direction == '0'">
|
||||
<view v-for="(item, index) in data_source_content_list" :key="index">
|
||||
<view v-for="(item1, index1) in item.split_list" :key="index1" :style="style_chunk_container">
|
||||
<view class="wh-auto ht-auto" :style="style_chunk_img_container">
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<div v-else-if="data_source_content_list.length > 0 && ['1', '2'].includes(form.data_source_direction)" class="oh pr">
|
||||
<swiper class="w flex" circular="true" :vertical="form.data_source_direction != '2'" :autoplay="new_style.is_roll == '1'" :interval="new_style.interval_time * 1000" :duration="500" :display-multiple-items="slides_per_view" :style="{ width: '100%', height: swiper_height + 'px' }" @change="slideChange">
|
||||
<swiper-item v-for="(item, index) in data_source_content_list" :key="index">
|
||||
|
|
@ -34,13 +34,13 @@
|
|||
</block>
|
||||
</div>
|
||||
</div>
|
||||
<view v-else>
|
||||
<template v-else>
|
||||
<view :style="style_chunk_container">
|
||||
<view class="wh-auto ht-auto" :style="style_chunk_img_container">
|
||||
<dataRendering :propCustomList="form.custom_list" :propDataHeight="form.height" :propScale="scale" @url_event="url_event"></dataRendering>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
|
@ -223,17 +223,18 @@
|
|||
let list = [];
|
||||
if (['goods', 'article', 'brand'].includes(new_form.data_source)) {
|
||||
if (new_form.data_source_content.data_type == '0') {
|
||||
list = new_form.data_source_content.data_list;
|
||||
list = new_form.data_source_content?.data_list || [];
|
||||
} else {
|
||||
list = new_form.data_source_content.data_auto_list.map(item => ({
|
||||
id: Math.random(),
|
||||
new_cover: [],
|
||||
new_title: '',
|
||||
data: item,
|
||||
}));
|
||||
list = !isEmpty(new_form.data_source_content) ?
|
||||
new_form.data_source_content.data_auto_list.map(item => ({
|
||||
id: Math.random(),
|
||||
new_cover: [],
|
||||
new_title: '',
|
||||
data: item,
|
||||
})) : [];
|
||||
}
|
||||
} else {
|
||||
list = new_form.data_source_content.data_list;
|
||||
list = new_form.data_source_content?.data_list || [];
|
||||
}
|
||||
const new_list = list.length > 0 ? this.get_list(list, new_form, new_style) : [];
|
||||
const { margin_left = 0, margin_right = 0, padding_left = 0, padding_right = 0 } = new_style.common_style;
|
||||
|
|
|
|||
Loading…
Reference in New Issue