From 2134860e13ff0a718592c0c4eaf7cec86791f38a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Tue, 27 Aug 2024 18:35:42 +0800
Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/common/product-show-config/index.vue | 2 +-
src/components/model-shop-list/index.vue | 4 +++-
src/components/model-shop-list/model-shop-list-content.vue | 6 ++++--
src/components/model-shop-list/model-shop-list-styles.vue | 2 +-
src/components/model-shop-tabs/model-shop-tabs-content.vue | 6 ++++--
src/components/model-shop-tabs/model-shop-tabs-styles.vue | 2 +-
src/layout/components/main/default/shop-list.ts | 4 ++--
src/layout/components/main/default/shop-tabs.ts | 4 ++--
8 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/src/components/common/product-show-config/index.vue b/src/components/common/product-show-config/index.vue
index 901d0a39..0f083f91 100644
--- a/src/components/common/product-show-config/index.vue
+++ b/src/components/common/product-show-config/index.vue
@@ -63,7 +63,7 @@ const base_list = {
],
shopping_button_list: [
{ name: '文字', value: 'text' },
- { name: 'icon', value: 'icon' },
+ { name: '图标', value: 'icon' },
],
shopping_cart_list: [
{ name: '进入商品详情页', value: '0' },
diff --git a/src/components/model-shop-list/index.vue b/src/components/model-shop-list/index.vue
index 44eb9f95..19a54e4f 100644
--- a/src/components/model-shop-list/index.vue
+++ b/src/components/model-shop-list/index.vue
@@ -6,7 +6,9 @@
{{ item.title }}
- ¥{{ item.min_price }}
+ {{ item.show_price_symbol }}{{ item.min_price }}
+ {{ item.show_price_unit }}
diff --git a/src/components/model-shop-list/model-shop-list-content.vue b/src/components/model-shop-list/model-shop-list-content.vue
index 0fcab93d..3646a4e5 100644
--- a/src/components/model-shop-list/model-shop-list-content.vue
+++ b/src/components/model-shop-list/model-shop-list-content.vue
@@ -152,8 +152,10 @@ const goods_list_sort = (new_list: any) => {
// 选择某些风格时, 切换到对应的按钮
const change_style = (val: any): void => {
form.value.theme = val;
- if (['3', '4', '5'].includes(val) && ['0', '1'].includes(form.value.shop_type)) {
- form.value.shop_type = '2';
+ if (['3', '4', '5'].includes(val) && form.value.shop_type == 'text') {
+ form.value.shop_type = 'icon';
+ } else {
+ form.value.shop_type = 'text';
}
};
diff --git a/src/components/model-shop-list/model-shop-list-styles.vue b/src/components/model-shop-list/model-shop-list-styles.vue
index c2704878..1d1a8967 100644
--- a/src/components/model-shop-list/model-shop-list-styles.vue
+++ b/src/components/model-shop-list/model-shop-list-styles.vue
@@ -57,7 +57,7 @@
-
+
diff --git a/src/components/model-shop-tabs/model-shop-tabs-content.vue b/src/components/model-shop-tabs/model-shop-tabs-content.vue
index afd2f40c..17b53352 100644
--- a/src/components/model-shop-tabs/model-shop-tabs-content.vue
+++ b/src/components/model-shop-tabs/model-shop-tabs-content.vue
@@ -229,8 +229,10 @@ const tabs_theme_change = (val: string | number | boolean | undefined):void => {
// 选择某些风格时, 切换到对应的按钮
const change_style = (val: any): void => {
form.value.theme = val;
- if (['3', '4', '5'].includes(val) && ['0', '1'].includes(form.value.shop_type)) {
- form.value.shop_type = '2';
+ if (['3', '4', '5'].includes(val) && form.value.shop_type == 'text') {
+ form.value.shop_type = 'icon';
+ } else {
+ form.value.shop_type = 'text';
}
};
diff --git a/src/components/model-shop-tabs/model-shop-tabs-styles.vue b/src/components/model-shop-tabs/model-shop-tabs-styles.vue
index e3be4d5d..37f93194 100644
--- a/src/components/model-shop-tabs/model-shop-tabs-styles.vue
+++ b/src/components/model-shop-tabs/model-shop-tabs-styles.vue
@@ -69,7 +69,7 @@
-
+
diff --git a/src/layout/components/main/default/shop-list.ts b/src/layout/components/main/default/shop-list.ts
index a6c747fb..1f303703 100644
--- a/src/layout/components/main/default/shop-list.ts
+++ b/src/layout/components/main/default/shop-list.ts
@@ -92,8 +92,8 @@ const defaultProductList: DefaultProductList = {
},
content_outer_spacing: 10, // 商品间距
content_spacing: 10,
- content_outer_width: 104,
- content_outer_height: 189,
+ content_outer_width: 140,
+ content_outer_height: 232,
shop_title_typeface: '500',
shop_title_size: 14,
shop_title_color: "#333333",
diff --git a/src/layout/components/main/default/shop-tabs.ts b/src/layout/components/main/default/shop-tabs.ts
index 4b3c19ea..572e4461 100644
--- a/src/layout/components/main/default/shop-tabs.ts
+++ b/src/layout/components/main/default/shop-tabs.ts
@@ -116,8 +116,8 @@ const defaultProductList: DefaultProductList = {
},
content_outer_spacing: 10,
content_spacing: 10,
- content_outer_width: 104,
- content_outer_height: 189,
+ content_outer_width: 140,
+ content_outer_height: 232,
shop_title_typeface: '500',
shop_title_size: 14,
shop_title_color: "#333333",
From 703736258e519986e247ba167f0bf07ec639857d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Tue, 27 Aug 2024 18:42:27 +0800
Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/product-show-config/index.vue | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/src/components/common/product-show-config/index.vue b/src/components/common/product-show-config/index.vue
index 0f083f91..09b33d68 100644
--- a/src/components/common/product-show-config/index.vue
+++ b/src/components/common/product-show-config/index.vue
@@ -3,10 +3,10 @@
显示内容
- {{ item.name }}
+ {{ item.name }}
-
+
@@ -49,17 +49,16 @@ const state = reactive({
});
// 如果需要解构,确保使用toRefs
const { form } = toRefs(state);
-
const base_list = {
list_show_list: [
- { name: '商品名称', value: 'title' },
- { name: '商品标签', value: 'plugins_view_icon' },
- { name: '商品售价', value: 'price' },
- { name: '商品销量', value: 'sales_count' },
+ { name: '商品名称', value: 'title', type:['0', '1', '2', '3', '4', '5', '6']},
+ { name: '商品标签', value: 'plugins_view_icon', type:['0', '1', '2'] },
+ { name: '商品售价', value: 'price', type:['0', '1', '2', '3', '4', '5', '6'] },
+ { name: '商品销量', value: 'sales_count', type:['0', '1', '2'] },
// { name: '商品评分', value: '4' },
- { name: '商品原价', value: 'original_price' },
- { name: '售价单位', value: 'price_unit' },
- { name: '原价单位', value: 'original_price_unit' },
+ { name: '商品原价', value: 'original_price', type:['0', '1', '2'] },
+ { name: '售价单位', value: 'price_unit', type:['0', '1', '2', '3', '4', '5', '6'] },
+ { name: '原价单位', value: 'original_price_unit', type:['0', '1', '2'] },
],
shopping_button_list: [
{ name: '文字', value: 'text' },
From 450d88f391e4e63dd6ff303df6baec8154f8d0c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Tue, 27 Aug 2024 18:51:00 +0800
Subject: [PATCH 3/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/product-show-config/index.vue | 14 --------------
src/components/model-shop-list/index.vue | 2 +-
.../model-shop-list/model-shop-list-content.vue | 2 +-
.../model-shop-tabs/model-shop-tabs-content.vue | 3 ++-
4 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/src/components/common/product-show-config/index.vue b/src/components/common/product-show-config/index.vue
index 09b33d68..80f9d653 100644
--- a/src/components/common/product-show-config/index.vue
+++ b/src/components/common/product-show-config/index.vue
@@ -69,20 +69,6 @@ const base_list = {
{ name: '商品加购', value: '1' }
]
};
-
-const shop_type = computed(() => {
- return (item: { value: string; }) => {
- return item.value == form.value.shop_type;
- };
-});
-
-const shopping_button_click = (item: { value: string; }) => {
- if (['3','4','5'].includes(form.value.theme) && ['0', '1'].includes(item.value)) {
- return;
- } else {
- form.value.shop_type = item.value;
- }
-};
diff --git a/src/components/page-settings/page-setting.vue b/src/components/page-settings/page-setting.vue
new file mode 100644
index 00000000..4489b1e8
--- /dev/null
+++ b/src/components/page-settings/page-setting.vue
@@ -0,0 +1,22 @@
+
+
+
+
diff --git a/src/components/page-settings/page-styles.vue b/src/components/page-settings/page-styles.vue
new file mode 100644
index 00000000..b461ce5d
--- /dev/null
+++ b/src/components/page-settings/page-styles.vue
@@ -0,0 +1,75 @@
+
+
+
+
+ 头部样式
+
+
+
+ 透明
+ 颜色
+ 图片
+
+
+
+
+
+
+
+
+
+
+
+ 黑色
+ 白色
+
+
+
+
+ 开启
+ 关闭
+
+
+
+
+ 保留
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layout/components/main/default/header-nav.ts b/src/layout/components/main/default/header-nav.ts
index ee7197e0..e443e1e8 100644
--- a/src/layout/components/main/default/header-nav.ts
+++ b/src/layout/components/main/default/header-nav.ts
@@ -1,19 +1,41 @@
+import defaultCommon from './index';
+
interface DefaultFooterNav {
content: {
color_list: color_list[];
title: string;
- direction: string;
- background_img_style: number;
- background_img_url: uploadList[];
};
+ style: {
+ background_type: string;
+ background_color_list: color_list[];
+ background_direction: string;
+ background_img_url: uploadList[];
+ background_title_color: string,
+ background_title_typeface: string,
+ background_title_size: number,
+ function_buttons_type: string,
+ immersive_style: boolean,
+ up_slide_display: boolean,
+ common_style: object;
+ }
}
const defaultFooterNav: DefaultFooterNav = {
content: {
color_list: [{ color: '#f5f5f5', color_percentage: '' }],
title: '',
- direction: '180deg',
- background_img_style: 2,
+ },
+ style: {
+ background_type: 'color',
+ background_color_list: [{ color: '#fff', color_percentage: '' }],
+ background_direction: '180deg',
background_img_url: [],
+ background_title_color: '#000',
+ background_title_typeface: '500',
+ background_title_size: 14,
+ function_buttons_type: 'black',
+ immersive_style: false,
+ up_slide_display: true,
+ common_style: defaultCommon,
},
};
diff --git a/src/layout/components/main/index.vue b/src/layout/components/main/index.vue
index c2bf16c8..08a2fb21 100644
--- a/src/layout/components/main/index.vue
+++ b/src/layout/components/main/index.vue
@@ -17,21 +17,20 @@
-
- 页面设置
- 导出
- 导入
- 清空
-
+
+ 页面设置
+ 导出
+ 导入
+ 清空
+
-
-
+
-
+
@@ -182,11 +181,23 @@ watch(
page_settings();
}
);
+const top_padding = ref(90);
+const top_margin = ref(0);
watchEffect(() => {
- if (props.header.com_data?.content) {
- const content = props.header.com_data?.content;
- const container_common_styles = gradient_computer(content) + background_computer(content);
- content_style.value = container_common_styles;
+ if (page_data.value.com_data) {
+ const { immersive_style, up_slide_display } = page_data.value.com_data.style;
+ // 不开启沉浸式 和 上滑显示
+ if (immersive_style || !up_slide_display) {
+ top_padding.value = 2;
+ } else {
+ top_padding.value = 90;
+ }
+ // 开启沉浸式并且没有开通上滑显示
+ if (immersive_style && !up_slide_display) {
+ top_margin.value = -90;
+ } else {
+ top_margin.value = 0;
+ }
}
});
watch(
@@ -575,7 +586,7 @@ const float_bottom_change = (val: { bottom: string; location: string }, id: stri
position: absolute;
left: 50%;
margin-left: 26rem;
- top: 4.7rem;
+ top: 0;
display: flex;
flex-direction: column;
gap: 2rem;
@@ -595,7 +606,7 @@ const float_bottom_change = (val: { bottom: string; location: string }, id: stri
height: 100%;
.model-content {
position: relative;
- height: 84.4rem;
+ height: 84.6rem;
.model-bottom {
position: absolute;
bottom: 0;
@@ -613,6 +624,7 @@ const float_bottom_change = (val: { bottom: string; location: string }, id: stri
.model-drag {
overflow-y: auto;
+ padding-top: 0.2rem;
max-height: 84.4rem;
&::-webkit-scrollbar {
display: none;
@@ -622,7 +634,7 @@ const float_bottom_change = (val: { bottom: string; location: string }, id: stri
background: #f5f5f5;
margin: 0 auto;
.drag-area {
- min-height: 75.5rem;
+ min-height: 68.1rem;
}
.drag-area .float-window {
position: fixed;
diff --git a/src/layout/components/settings/index.vue b/src/layout/components/settings/index.vue
index 331f6519..6ad99be2 100644
--- a/src/layout/components/settings/index.vue
+++ b/src/layout/components/settings/index.vue
@@ -3,17 +3,15 @@
{{ value.name }}
-
-
- 内容
- 样式
-
-
+
+ 内容
+ 样式
+