+
diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue
index ccbb2b26..b563f5c7 100644
--- a/src/components/model-custom/model-custom-content.vue
+++ b/src/components/model-custom/model-custom-content.vue
@@ -105,7 +105,7 @@ onBeforeMount(() => {
});
// 处理显示的图片和传递到下去的数据结构
const model_data_source = ref([]);
-const is_show_more = ref(true);
+const is_show_more = ref(false);
const processing_data = (key: string) => {
const list = options.value.filter((item) => item.type == key);
if (list.length > 0) {
@@ -159,6 +159,19 @@ const accomplish = () => {
if (!draglist.value) {
return;
} else {
+ // 规整数据逻辑
+ const list = draglist.value.diy_data.sort((a, b) => a.com_data.z_index - b.com_data.z_index);
+ // 将z-index重置为初始效果
+ let z_index = 0;
+ if (list.length > 0) {
+ list.forEach((item) => {
+ if (item.com_data.z_index < 0) {
+ const new_z_index = z_index - 1;
+ item.com_data.z_index = new_z_index;
+ z_index = new_z_index;
+ }
+ });
+ }
form.custom_list = draglist.value.diy_data;
}
form.height = center_height.value;
diff --git a/src/components/model-goods-list/index.vue b/src/components/model-goods-list/index.vue
index 3b5ac937..b17f78c1 100644
--- a/src/components/model-goods-list/index.vue
+++ b/src/components/model-goods-list/index.vue
@@ -265,13 +265,13 @@ const get_products = () => {
};
// 取出监听的数据
const watch_data = computed(() => {
- const { category_ids, brand, number, order_by_type, order_by_rule, data_type, data_list } = form.value;
- return { category_ids: category_ids, brand: brand, number: number, order_by_type: order_by_type, order_by_rule: order_by_rule, data_type: data_type, data_list: data_list };
+ const { category_ids, brand_ids, number, order_by_type, order_by_rule, data_type, data_list } = form.value;
+ return { category_ids: category_ids, brand_ids: brand_ids, number: number, order_by_type: order_by_type, order_by_rule: order_by_rule, data_type: data_type, data_list: data_list };
})
// 初始化的时候不执行, 监听数据变化
watch(() => watch_data.value, (val, oldVal) => {
// 使用JSON.stringify()进行判断 新值和旧值是否一样 不一样就重新获取数据
- if (JSON.stringify(val) !== JSON.stringify(oldVal)) {
+ if ((JSON.stringify(val) !== JSON.stringify(oldVal)) || props.isCommonStyle) {
if (val.data_type == '0') {
if (!isEmpty(val.data_list)) {
list.value = cloneDeep(val.data_list).map((item: any) => ({
diff --git a/src/config/const/goods-list.ts b/src/config/const/goods-list.ts
index dad9054e..956b29c7 100644
--- a/src/config/const/goods-list.ts
+++ b/src/config/const/goods-list.ts
@@ -76,7 +76,7 @@ const defaultProductList: DefaultProductList = {
is_shop_show: '1',
shop_type: 'text',
shop_button_text: '购买',
- shop_button_icon_class: '',
+ shop_button_icon_class: 'cart',
shop_button_effect: '0',
shop_button_size: '1',
},
diff --git a/src/config/const/goods-tabs.ts b/src/config/const/goods-tabs.ts
index 9add5985..1677bc35 100644
--- a/src/config/const/goods-tabs.ts
+++ b/src/config/const/goods-tabs.ts
@@ -94,7 +94,7 @@ const defaultProductList: DefaultProductList = {
is_price_solo: '1',
shop_type: 'text',
shop_button_text: '购买',
- shop_button_icon_class: '',
+ shop_button_icon_class: 'cart',
shop_button_effect: '0',
shop_button_size: '1',
},