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',