1.代码优化

sws 2024-09-03
v1.0.0
sws 2024-09-03 11:24:13 +08:00
parent f0ce30037f
commit 744dd55b3f
13 changed files with 12 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

View File

@ -130,7 +130,7 @@
</div>
</template>
<script setup lang="ts">
import { common_styles_computer, gradient_computer } from '@/utils';
import { common_styles_computer, gradient_computer, online_url } from '@/utils';
const props = defineProps({
value: {
type: Object,
@ -194,6 +194,7 @@ const theme_7_background_style = computed(() => {
return '#fff';
}
});
const new_url = await online_url('/static/plugins/coupon/images/diy/');
</script>
<style lang="scss" scoped>
.coupon-theme-1 {
@ -259,6 +260,7 @@ const theme_7_background_style = computed(() => {
.item {
flex-basis: auto;
flex-shrink: 0;
// background-image: url('../../assets/images/components/model-coupon/theme-2-content-bg.png');
background-image: url('../../assets/images/components/model-coupon/theme-2-content-bg.png');
background-size: 100% 100%;
width: 8.5rem;

View File

@ -46,6 +46,7 @@
<url-value-dialog v-model:dialog-visible="url_value_dialog_visible" :type="['article']" multiple @update:model-value="url_value_dialog_call_back"></url-value-dialog>
</template>
<script setup lang="ts">
import { online_url } from '@/utils';
const props = defineProps({
value: {
type: Object,
@ -62,19 +63,20 @@ const props = defineProps({
});
const form = reactive(props.value);
const url_value_dialog_visible = ref(false);
const new_url = await online_url('/static/plugins/coupon/images/diy/');
const base_list = reactive({
data_type_list: [
{ name: '默认', value: '0' },
{ name: '手动', value: '1' },
],
themeList: [
{ id: '1', name: '风格1', url: new URL(`../../assets/images/components/model-coupon/theme-1.png`, import.meta.url).href },
{ id: '2', name: '风格2', url: new URL(`../../assets/images/components/model-coupon/theme-2.png`, import.meta.url).href },
{ id: '3', name: '风格3', url: new URL(`../../assets/images/components/model-coupon/theme-3.png`, import.meta.url).href },
{ id: '4', name: '风格4', url: new URL(`../../assets/images/components/model-coupon/theme-4.png`, import.meta.url).href },
{ id: '5', name: '风格5', url: new URL(`../../assets/images/components/model-coupon/theme-5.png`, import.meta.url).href },
{ id: '6', name: '风格6', url: new URL(`../../assets/images/components/model-coupon/theme-6.png`, import.meta.url).href },
{ id: '7', name: '风格7', url: new URL(`../../assets/images/components/model-coupon/theme-7.png`, import.meta.url).href },
{ id: '1', name: '风格1', url: new_url + 'theme-1.png' },
{ id: '2', name: '风格2', url: new_url + 'theme-2.png' },
{ id: '3', name: '风格3', url: new_url + 'theme-3.png' },
{ id: '4', name: '风格4', url: new_url + 'theme-4.png' },
{ id: '5', name: '风格5', url: new_url + 'theme-5.png' },
{ id: '6', name: '风格6', url: new_url + 'theme-6.png' },
{ id: '7', name: '风格7', url: new_url + 'theme-7.png' },
],
});
const emit = defineEmits(['update:change-theme']);