This commit is contained in:
李志鹏
2025-10-16 15:53:47 +08:00
parent b56f8bd03e
commit 2571a1c89e
3 changed files with 32 additions and 11 deletions

View File

@@ -11,12 +11,11 @@
emit('view-type', 1)
})
const onSave = () => {
// console.log('保存')
router.push({ name: 'end' })
console.log('保存')
}
const onContinue = () => {
console.log('继续创建')
router.push({ name: 'end' })
}
</script>
@@ -72,6 +71,7 @@
border-radius: 2rem;
background-color: #fff;
margin-bottom: 4rem;
border: 0.1rem solid #000;
> img {
width: 100%;
height: 100%;

View File

@@ -3,9 +3,11 @@
import FooterNavigation from '@/components/FooterNavigation.vue'
import { ref } from 'vue'
const emit = defineEmits(['viewType'])
import { useRouter } from 'vue-router'
const router = useRouter()
const inputText = ref('');
const isLoved = ref(false);
const inputText = ref('')
const isLoved = ref(false)
const onSend = () => {
if (inputText.value === '') return
@@ -14,14 +16,17 @@
console.log('发送消息:', text)
}
const onLove = () => {
console.log("love")
console.log('love')
isLoved.value = !isLoved.value
}
const onReload = () => {
console.log("reload")
console.log('reload')
}
const onDownload = () => {
console.log("download")
console.log('download')
}
const onContinue = () => {
router.push({ name: 'creation' })
}
</script>
@@ -53,6 +58,7 @@
<div @click="onDownload"><SvgIcon name="download" size="35" /></div>
</div>
</div>
<button class="continue-btn" @click="onContinue">Continue</button>
</div>
<footer-navigation />
</template>
@@ -169,5 +175,20 @@
}
}
}
> .continue-btn {
box-sizing: content-box;
font-family: satoshiRegular;
margin: 2.5rem 2.5rem 0 auto;
width: 35rem;
height: 7rem;
border-radius: 1.3rem;
background: #000;
font-weight: 400;
font-size: 4.2rem;
color: #fff;
&:active {
opacity: 0.7;
}
}
}
</style>