修改商品和文章的显示
parent
da225c300c
commit
6d807f4d9b
|
|
@ -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%;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
// 判断默认数据是否开启沉浸式
|
||||
|
|
|
|||
Loading…
Reference in New Issue