-
+
+
diff --git a/src/components/model-goods-list/index.vue b/src/components/model-goods-list/index.vue
index 5188ea00..ed87578e 100644
--- a/src/components/model-goods-list/index.vue
+++ b/src/components/model-goods-list/index.vue
@@ -458,21 +458,8 @@ const icon_style = (item: { bg_color: string; color: string; br_color: string })
return style;
};
// 公共样式
-const style_container = computed(() => {
- if (props.isCommonStyle) {
- return common_styles_computer(new_style.value.common_style);
- } else {
- return '';
- }
-});
-
-const style_img_container = computed(() => {
- if (props.isCommonStyle) {
- return common_img_computer(new_style.value.common_style);
- } else {
- return '';
- }
-});
+const style_container = computed(() => props.isCommonStyle ? common_styles_computer(new_style.value.common_style) : '');
+const style_img_container = computed(() => props.isCommonStyle ? common_img_computer(new_style.value.common_style) : '');
// 不换行显示
const multicolumn_columns_width = computed(() => {
const { carousel_col } = toRefs(form.value);
diff --git a/src/components/model-goods-list/model-goods-list-content.vue b/src/components/model-goods-list/model-goods-list-content.vue
index 21444fd4..491f841d 100644
--- a/src/components/model-goods-list/model-goods-list-content.vue
+++ b/src/components/model-goods-list/model-goods-list-content.vue
@@ -168,7 +168,9 @@ const change_style = (val: string | number | boolean | undefined): void => {
// 切换风格时,将对应图片的默认值宽度和高度赋值
const list = base_list.product_style_list.filter(item => item.value == form.value.theme);
if (list.length > 0) {
- emits('theme_change', list[0].width, list[0].height);
+ // emits('theme_change', list[0].width, list[0].height);
+ data.value.shop_img_width = list[0].width;
+ data.value.shop_img_height = list[0].height;
}
};
const is_revise = ref(false);
diff --git a/src/components/model-goods-list/model-goods-list-setting.vue b/src/components/model-goods-list/model-goods-list-setting.vue
index 6231ae80..ef3486b3 100644
--- a/src/components/model-goods-list/model-goods-list-setting.vue
+++ b/src/components/model-goods-list/model-goods-list-setting.vue
@@ -1,7 +1,7 @@
-
+
@@ -25,10 +25,6 @@ const data_config = reactive({
img_radius_1: 0,
});
const form = ref(props.value);
-const theme_change = (width: number, height: number) => {
- form.value.style.content_img_width = width;
- form.value.style.content_img_height = height;
-};