修改商品和文章的显示

v1.1.0
于肖磊 2024-11-23 16:09:15 +08:00
parent da225c300c
commit 6d807f4d9b
3 changed files with 6 additions and 7 deletions

View File

@ -36,7 +36,7 @@
<template v-else>
<image-empty v-model="item.images" class="img" :style="contentImgRadius"></image-empty>
</template>
<div v-if="isShow.includes('price')" class="abs bottom-0 text-line-1" :style="props.goodStyle.goods_price_style + float_pirce_style(props.goodStyle)">
<div v-if="isShow.includes('price')" class="abs bottom-0" :style="props.goodStyle.goods_price_style + float_pirce_style(props.goodStyle)">
<span :style="props.goodStyle.goods_price_symbol_style">{{ item.show_price_symbol }}</span>{{ item.min_price }}
<template v-if="isShow.includes('price_unit')">
<span :style="props.goodStyle.goods_price_unit_style">{{ item.show_price_unit }}</span>
@ -189,10 +189,6 @@ const split_list = computed(() => props.value || {});
width: 4rem !important;
}
}
.identifying .num {
font-size: 0.9rem;
line-height: 0.9rem;
}
.half-width {
width: 50%;
}

View File

@ -545,6 +545,7 @@ watchEffect(() => {
.original-price {
// background-color: #ede2c5;
text-decoration: line-through;
padding: 0 1rem;
}
.two-columns {
width: calc((100% - v-bind(two_columns)) / 2);

View File

@ -134,11 +134,13 @@ const is_empty = ref(false);
const init = () => {
if (get_id()) {
DiyAPI.getInit({ id: get_id() }).then((res: any) => {
if (res.data) {
let data = form_data_transfor_diy_data(res.data);
const new_data = res.data?.data || undefined;
if (new_data) {
let data = form_data_transfor_diy_data(new_data);
//
data.header.com_data = default_merge(data.header.com_data, 'header_nav');
data.footer.com_data = default_merge(data.footer.com_data, 'footer_nav');
data.diy_data = data_merge(data.diy_data);
data.tabs_data = data_merge(data.tabs_data);
//