修改页面显示
parent
ca360e7564
commit
cf04245f9a
|
|
@ -3,8 +3,8 @@
|
|||
<div class="flex-row gap-10 align-c w h">
|
||||
<template v-if="props.flex === 'row'">
|
||||
<div v-for="(item, index) in split_list" :key="index" class="flex-row gap-10 half-width h">
|
||||
<template v-if="!isEmpty(item.new_url)">
|
||||
<image-empty v-model="item.new_url[0]" :style="contentImgRadius"></image-empty>
|
||||
<template v-if="!isEmpty(item.new_cover)">
|
||||
<image-empty v-model="item.new_cover[0]" :style="contentImgRadius"></image-empty>
|
||||
</template>
|
||||
<template v-else>
|
||||
<image-empty v-model="item.images" class="img" :style="contentImgRadius"></image-empty>
|
||||
|
|
@ -23,8 +23,8 @@
|
|||
<template v-else-if="actived != 7 || props.num !== 1">
|
||||
<div v-for="(item, index) in split_list" :key="index" :class="['flex-col gap-10 h', { 'half-width': props.num !== 1, 'w': props.num == 1 }]">
|
||||
<div class="w h re">
|
||||
<template v-if="!isEmpty(item.new_url)">
|
||||
<image-empty v-model="item.new_url[0]" :style="contentImgRadius"></image-empty>
|
||||
<template v-if="!isEmpty(item.new_cover)">
|
||||
<image-empty v-model="item.new_cover[0]" :style="contentImgRadius"></image-empty>
|
||||
</template>
|
||||
<template v-else>
|
||||
<image-empty v-model="item.images" class="img" :style="contentImgRadius"></image-empty>
|
||||
|
|
@ -41,8 +41,8 @@
|
|||
</template>
|
||||
<template v-else>
|
||||
<div v-for="(item, index) in split_list" :key="index" class="flex-col w h">
|
||||
<template v-if="!isEmpty(item.new_url)">
|
||||
<image-empty v-model="item.new_url[0]" :style="contentImgRadius"></image-empty>
|
||||
<template v-if="!isEmpty(item.new_cover)">
|
||||
<image-empty v-model="item.new_cover[0]" :style="contentImgRadius"></image-empty>
|
||||
</template>
|
||||
<template v-else>
|
||||
<image-empty v-model="item.images" class="img" :style="contentImgRadius"></image-empty>
|
||||
|
|
@ -64,8 +64,8 @@
|
|||
<div class="flex-col gap-20 align-c w h">
|
||||
<template v-if="props.flex === 'row'">
|
||||
<div v-for="(item, index) in split_list" :key="index" class="flex-row gap-10 align-c w h">
|
||||
<template v-if="!isEmpty(item.new_url)">
|
||||
<image-empty v-model="item.new_url[0]" :style="contentImgRadius"></image-empty>
|
||||
<template v-if="!isEmpty(item.new_cover)">
|
||||
<image-empty v-model="item.new_cover[0]" :style="contentImgRadius"></image-empty>
|
||||
</template>
|
||||
<template v-else>
|
||||
<image-empty v-model="item.images" class="img" :style="contentImgRadius"></image-empty>
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ const url_value_dialog_call_back = (item: any[]) => {
|
|||
item.forEach((item: any) => {
|
||||
form.value.goods_list.push({
|
||||
id: get_math(),
|
||||
new_url: [],
|
||||
new_cover: [],
|
||||
new_title: '',
|
||||
data: item,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ const commodity_list = (list: any[], num: number) => {
|
|||
const goods_list = cloneDeep(list).map((item: any) => ({
|
||||
...item.data,
|
||||
title: !isEmpty(item.new_title) ? item.new_title : item.data.title,
|
||||
new_url: item.new_url,
|
||||
new_cover: item.new_cover,
|
||||
}));
|
||||
// 存储数据显示
|
||||
let nav_list = [];
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
</template>
|
||||
<template v-else>
|
||||
<template v-if="!isEmpty(item)">
|
||||
<template v-if="!isEmpty(item.new_url)">
|
||||
<image-empty v-model="item.new_url[0]" :class="`flex-img${theme}`" :style="content_img_radius"></image-empty>
|
||||
<template v-if="!isEmpty(item.new_cover)">
|
||||
<image-empty v-model="item.new_cover[0]" :class="`flex-img${theme}`" :style="content_img_radius"></image-empty>
|
||||
</template>
|
||||
<template v-else>
|
||||
<image-empty v-model="item.images" :class="`flex-img${theme}`" :style="content_img_radius"></image-empty>
|
||||
|
|
@ -137,7 +137,7 @@ interface plugins_icon_data {
|
|||
interface data_list {
|
||||
title: string;
|
||||
images: string;
|
||||
new_url: string[];
|
||||
new_cover: string[];
|
||||
min_original_price: string;
|
||||
show_original_price_symbol: string;
|
||||
show_original_price_unit: string;
|
||||
|
|
@ -156,7 +156,7 @@ const default_list = {
|
|||
show_price_unit: '',
|
||||
sales_count: '1000',
|
||||
images: '',
|
||||
new_url: [],
|
||||
new_cover: [],
|
||||
plugins_view_icon_data: []
|
||||
};
|
||||
const list = ref<data_list[]>([]);
|
||||
|
|
@ -187,7 +187,7 @@ watchEffect(() => {
|
|||
list.value = cloneDeep(form.value.data_list).map((item: any) => ({
|
||||
...item.data,
|
||||
title: !isEmpty(item.new_title) ? item.new_title : item.data.title,
|
||||
new_url: item.new_url,
|
||||
new_cover: item.new_cover,
|
||||
}));
|
||||
} else {
|
||||
list.value = Array(4).fill(default_list);
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ const url_value_dialog_call_back = (item: any[]) => {
|
|||
item.forEach((item: any) => {
|
||||
form.value.data_list.push({
|
||||
id: get_math(),
|
||||
new_url: [],
|
||||
new_cover: [],
|
||||
new_title: '',
|
||||
data: item,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ const url_value_dialog_call_back = (item: any[]) => {
|
|||
item.forEach((item: any) => {
|
||||
form.value.tabs_list[click_index].data_list.push({
|
||||
id: get_math(),
|
||||
new_url: [],
|
||||
new_cover: [],
|
||||
new_title: '',
|
||||
data: item,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue