From efdd3d421c40bc852fe42355b635785c58c829b2 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 4 Sep 2024 17:21:59 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=A7=A3=E5=86=B3=E5=A4=9A=E4=B8=AA=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=8A=A5=E9=94=99=EF=BC=8C=E5=87=BA=E7=8E=B0=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E6=8F=90=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/main/default/footer-nav.ts | 2 -- .../layout/components/main/default/seckill.ts | 27 +++++++------------ 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/src/views/layout/components/main/default/footer-nav.ts b/src/views/layout/components/main/default/footer-nav.ts index 829f4168..21a5a402 100644 --- a/src/views/layout/components/main/default/footer-nav.ts +++ b/src/views/layout/components/main/default/footer-nav.ts @@ -1,7 +1,5 @@ import defaultCommon from './index'; import { online_url } from '@/utils'; -import { onActivated } from 'vue'; - const new_url = await online_url('/static/app/tabbar/').then((res) => res); interface DefaultFooterNav { content: { diff --git a/src/views/layout/components/main/default/seckill.ts b/src/views/layout/components/main/default/seckill.ts index 3f0788ed..c5731d0b 100644 --- a/src/views/layout/components/main/default/seckill.ts +++ b/src/views/layout/components/main/default/seckill.ts @@ -1,13 +1,6 @@ import defaultCommon from './index'; import { online_url } from '@/utils'; -import { onMounted } from 'vue'; - -const new_url = ref(''); -onMounted(() => { - online_url('/static/app/tabbar/').then((res) => { - new_url.value = res; - }); -}); +const new_url = await online_url('/static/app/tabbar/').then((res) => res); interface DefaultSeckill { content: { head_state: string; @@ -19,7 +12,7 @@ interface DefaultSeckill { button_text: string; shop_style_type: string; carousel_col: number; - shop_number: number, + shop_number: number; is_show: string[]; shop_type: string; shop_button_text: string; @@ -53,10 +46,10 @@ interface DefaultSeckill { shop_price_typeface: string; shop_price_size: number; shop_price_color: string; - shop_button_typeface:string; + shop_button_typeface: string; shop_button_size: number; shop_button_color: color_list[]; - shop_button_text_color: string, + shop_button_text_color: string; shop_icon_size: number; shop_icon_color: string; original_price_color: string; @@ -137,22 +130,22 @@ const defaultSeckill: DefaultSeckill = { shop_title_color: '#333333', shop_price_typeface: '500', shop_price_size: 18, - shop_price_color: "#EA3323;", - shop_button_typeface:'400', + shop_price_color: '#EA3323;', + shop_button_typeface: '400', shop_button_size: 12, shop_button_color: [ { color: '#FF3D53', - color_percentage: undefined + color_percentage: undefined, }, { color: '#D73A3A', - color_percentage: undefined - } + color_percentage: undefined, + }, ], shop_button_text_color: '#fff', shop_icon_size: 10, - shop_icon_color: "#fff", + shop_icon_color: '#fff', original_price_color: '#999', seckill_subscript_location: 'top-left', seckill_subscript_text_color: '#fff',