style: 文案和样式修改
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
<!-- Continue按钮 -->
|
||||
<div class="continue-button" @click="handleContinue" v-if="!$route.query?.demo">Continue</div>
|
||||
<van-dialog
|
||||
<!-- <van-dialog
|
||||
class="video-dialog"
|
||||
:show-confirm-button="false"
|
||||
:show-cancel-button="false"
|
||||
@@ -47,7 +47,7 @@
|
||||
<van-icon name="cross" class="close-icon" />
|
||||
</div>
|
||||
<Video ref="videoRef" />
|
||||
</van-dialog>
|
||||
</van-dialog> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -57,7 +57,9 @@ import { useRouter } from 'vue-router'
|
||||
import Video from './components/Video.vue'
|
||||
import { useUserInfoStore } from '@/stores'
|
||||
import male from '@/assets/images/male.png'
|
||||
import maleThumb from '@/assets/images/male_thumb.png'
|
||||
import female from '@/assets/images/female.png'
|
||||
import femaleThumb from '@/assets/images/female_thumb.png'
|
||||
import HeaderTitle from '@/components/HeaderTitle.vue'
|
||||
import FooterNavigation from '@/components/FooterNavigation.vue'
|
||||
|
||||
@@ -70,28 +72,32 @@ const stylists = ref<any[]>([
|
||||
value: 'crystal',
|
||||
name: 'Vera Lo',
|
||||
description: 'Contemporary, Classic, Simple Silhouettes, Statement Pieces',
|
||||
image: female
|
||||
image: female,
|
||||
thumb: femaleThumb
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
value: 'mini',
|
||||
name: 'Sarah Chen',
|
||||
description: 'Modern, Edgy, Bold Colors, Street Style',
|
||||
image: male
|
||||
image: male,
|
||||
thumb: maleThumb
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
value: 'crystal',
|
||||
name: 'Emma Wilson',
|
||||
description: 'Elegant, Feminine, Vintage Inspired, Soft Tones',
|
||||
image: female
|
||||
image: female,
|
||||
thumb: femaleThumb
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
value: 'mini',
|
||||
name: 'Alex Johnson',
|
||||
description: 'Minimalist, Professional, Neutral Palette, Clean Lines',
|
||||
image: male
|
||||
image: male,
|
||||
thumb: maleThumb
|
||||
}
|
||||
])
|
||||
const currentChoosed = ref(1)
|
||||
@@ -119,20 +125,22 @@ const handleClickStylist = (item: any) => {
|
||||
|
||||
const handleContinue = () => {
|
||||
const generateParams = userInfoStore.getGenerateParams()
|
||||
generateParams.stylist =
|
||||
stylists.value.find((item) => item.id === currentChoosed.value)?.value || ''
|
||||
const selected = stylists.value.find((item) => item.id === currentChoosed.value)
|
||||
generateParams.stylist = selected?.value
|
||||
generateParams.stylistImage = selected?.thumb
|
||||
|
||||
userInfoStore.setGenerateParams(generateParams)
|
||||
|
||||
router.push('/workshop/stylist/sex')
|
||||
}
|
||||
|
||||
// 监听showVideo变化,关闭时暂停视频
|
||||
watch(showVideo, (newValue) => {
|
||||
if (!newValue && videoRef.value) {
|
||||
videoRef.value.pause()
|
||||
videoRef.value.reset()
|
||||
}
|
||||
})
|
||||
// watch(showVideo, (newValue) => {
|
||||
// if (!newValue && videoRef.value) {
|
||||
// videoRef.value.pause()
|
||||
// videoRef.value.reset()
|
||||
// }
|
||||
// })
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
|
||||
Reference in New Issue
Block a user