交互
This commit is contained in:
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
@@ -211,3 +211,7 @@ export function FormatBytes(bytes, options: { decimals?: number, unitBig?: boole
|
|||||||
const value = bytes / Math.pow(k, i);
|
const value = bytes / Math.pow(k, i);
|
||||||
return `${Number(value.toFixed(decimals))} ${sizes[i]}`;
|
return `${Number(value.toFixed(decimals))} ${sizes[i]}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const openAida = () => {
|
||||||
|
window.open('https://www.aida.com.hk/', '_blank')
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="home-index">
|
<div class="home-index">
|
||||||
<section-index />
|
<section-index />
|
||||||
<section-designer />
|
<section-designer />
|
||||||
<section-design />
|
<section-aida />
|
||||||
<section-digital-items1 />
|
<section-digital-items1 />
|
||||||
<section-digital-items2 />
|
<section-digital-items2 />
|
||||||
<section-footer />
|
<section-footer />
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import SectionIndex from './section-index.vue'
|
import SectionIndex from './section-index.vue'
|
||||||
import SectionDesigner from './section-designer.vue'
|
import SectionDesigner from './section-designer.vue'
|
||||||
import SectionDesign from './section-design.vue'
|
import SectionAida from './section-aida.vue'
|
||||||
import SectionDigitalItems1 from './section-digital-items1.vue'
|
import SectionDigitalItems1 from './section-digital-items1.vue'
|
||||||
import SectionDigitalItems2 from './section-digital-items2.vue'
|
import SectionDigitalItems2 from './section-digital-items2.vue'
|
||||||
import SectionFooter from './section-footer.vue'
|
import SectionFooter from './section-footer.vue'
|
||||||
|
|||||||
@@ -1,24 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="section-design bgw">
|
<section class="section-aida bgw">
|
||||||
<img src="@/assets/images/home/design-bg.jpg" class="bg" />
|
<img src="@/assets/images/home/aida-bg.jpg" class="bg" />
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="aida-logo"><img src="@/assets/images/logos/aida.png" /></div>
|
<div class="aida-logo"><img src="@/assets/images/logos/aida.png" /></div>
|
||||||
<div class="title">Design with AiDA</div>
|
<div class="title">Design with AiDA</div>
|
||||||
<div class="tip">
|
<div class="tip">
|
||||||
Each garment on this platform is where designer vision blooms through AiDA. A tool that
|
Each garment on this platform is where designer vision blooms through AiDA. A tool
|
||||||
nurtures your creativity, never overshadows it. Let your ideas flourish.
|
that nurtures your creativity, never overshadows it. Let your ideas flourish.
|
||||||
</div>
|
</div>
|
||||||
<button custom>Try Now</button>
|
<button custom @click="openAida">Try Now</button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
import { openAida } from '@/utils/tools'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.section-design {
|
.section-aida {
|
||||||
> .content {
|
> .content {
|
||||||
width: 55rem;
|
width: 55rem;
|
||||||
top: 12rem;
|
top: 12rem;
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
<br />
|
<br />
|
||||||
digital visions—a virtual realm where creativity collides and evolves.
|
digital visions—a virtual realm where creativity collides and evolves.
|
||||||
</div>
|
</div>
|
||||||
<button custom="black">Shop All</button>
|
<button custom="black" @click="onShopAll">Shop All</button>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div v-for="v in list" :key="v.url">
|
<div v-for="v in list" :key="v.url">
|
||||||
<img :src="v.url" alt="" />
|
<img :src="v.url" alt="" />
|
||||||
@@ -22,6 +22,9 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
const router = useRouter()
|
||||||
|
|
||||||
const list = ref([
|
const list = ref([
|
||||||
{
|
{
|
||||||
title: 'Women’s Itemk',
|
title: 'Women’s Itemk',
|
||||||
@@ -44,6 +47,9 @@
|
|||||||
url: 'http://118.31.39.42:3000/falls/digital-items-4.png'
|
url: 'http://118.31.39.42:3000/falls/digital-items-4.png'
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
const onShopAll = () => {
|
||||||
|
router.push({ name: 'digitalItem' })
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
<img src="@/assets/images/logos/aida-black.png" />
|
<img src="@/assets/images/logos/aida-black.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="tip">
|
<div class="tip">
|
||||||
Stylish Parade is a commerce platform for designers, serving as AiDA's commercial
|
Stylish Parade is a commerce platform for designers, serving as AiDA's
|
||||||
extension.
|
commercial extension.
|
||||||
</div>
|
</div>
|
||||||
<div class="link">
|
<div class="link">
|
||||||
<span class="text">Bloom your Creativity with AiDA!</span>
|
<span class="text" @click="openAida">Bloom your Creativity with AiDA!</span>
|
||||||
<span class="icon"><svg-icon name="arrow_right" size="12" /></span>
|
<span class="icon"><svg-icon name="arrow_right" size="12" /></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -54,6 +54,9 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
import { openAida } from '@/utils/tools'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
const router = useRouter()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
})
|
})
|
||||||
const emit = defineEmits(['explore'])
|
const emit = defineEmits(['explore'])
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
console.log('emit("explore")')
|
|
||||||
emit('explore')
|
emit('explore')
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
:show-button="!isMini"
|
:show-button="!isMini"
|
||||||
title="Your Cart is empty"
|
title="Your Cart is empty"
|
||||||
tip="Discover new fashion assets and add them to your cart."
|
tip="Discover new fashion assets and add them to your cart."
|
||||||
|
@explore="handleExplore"
|
||||||
/>
|
/>
|
||||||
<sc-item
|
<sc-item
|
||||||
v-for="v in list"
|
v-for="v in list"
|
||||||
@@ -83,6 +84,8 @@
|
|||||||
import { FormatBytes, FormatDate } from '@/utils/tools'
|
import { FormatBytes, FormatDate } from '@/utils/tools'
|
||||||
import scItem from './sc-item.vue'
|
import scItem from './sc-item.vue'
|
||||||
import scListNull from './sc-list-null.vue'
|
import scListNull from './sc-list-null.vue'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
const router = useRouter()
|
||||||
const emit = defineEmits(['close', 'selected-change'])
|
const emit = defineEmits(['close', 'selected-change'])
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
title: { type: String, default: '' },
|
title: { type: String, default: '' },
|
||||||
@@ -126,7 +129,9 @@
|
|||||||
return list_.value.filter(() => true).sort((a, b) => a.amount - b.amount)
|
return list_.value.filter(() => true).sort((a, b) => a.amount - b.amount)
|
||||||
}
|
}
|
||||||
if (sortBy.value === 'SelectedFirst') {
|
if (sortBy.value === 'SelectedFirst') {
|
||||||
return list_.value.filter(() => true).sort((a, b) => (b.checked ? 1 : 0) - (a.checked ? 1 : 0))
|
return list_.value
|
||||||
|
.filter(() => true)
|
||||||
|
.sort((a, b) => (b.checked ? 1 : 0) - (a.checked ? 1 : 0))
|
||||||
}
|
}
|
||||||
if (sortBy.value === 'DateAdded') {
|
if (sortBy.value === 'DateAdded') {
|
||||||
return list_.value.filter(() => true).sort((a, b) => b.date - a.date)
|
return list_.value.filter(() => true).sort((a, b) => b.date - a.date)
|
||||||
@@ -180,8 +185,8 @@
|
|||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
}
|
}
|
||||||
const handleExploreClick = () => {
|
const handleExplore = () => {
|
||||||
console.log('探索')
|
router.push({ name: 'brand' })
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user