修改页面显示

v1.0.0
于肖磊 2024-08-27 18:51:00 +08:00
parent 703736258e
commit 450d88f391
4 changed files with 4 additions and 17 deletions

View File

@ -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;
}
};
</script>
<style lang="scss" scoped>

View File

@ -5,7 +5,7 @@
<template v-if="theme == '6'">
<div :class="['flex-row align-c jc-sb ptb-15 mlr-10 gap-20', { 'br-b-e': index != list.length - 1 }]">
<div v-if="is_show('title')" :class="text_line" :style="trends_config('title')">{{ item.title }}</div>
<div v-if="is_show('price')" class="num" :style="`color: ${new_style.shop_price_color}`">
<div v-if="is_show('price')" class="num nowrap" :style="`color: ${new_style.shop_price_color}`">
<span class="identifying">{{ item.show_price_symbol }}</span
><span :style="trends_config('price')">{{ item.min_price }}</span>
<span v-if="is_show('price_unit')" class="identifying">{{ item.show_price_unit }}</span>

View File

@ -154,7 +154,7 @@ const change_style = (val: any): void => {
form.value.theme = val;
if (['3', '4', '5'].includes(val) && form.value.shop_type == 'text') {
form.value.shop_type = 'icon';
} else {
} else if (['0', '1', '2'].includes(val) && form.value.shop_type == 'icon') {
form.value.shop_type = 'text';
}
};

View File

@ -228,10 +228,11 @@ const tabs_theme_change = (val: string | number | boolean | undefined):void => {
};
//
const change_style = (val: any): void => {
form.value.theme = val;
form.value.theme = val;
if (['3', '4', '5'].includes(val) && form.value.shop_type == 'text') {
form.value.shop_type = 'icon';
} else {
} else if (['0', '1', '2'].includes(val) && form.value.shop_type == 'icon') {
form.value.shop_type = 'text';
}
};