121
This commit is contained in:
@@ -22,17 +22,17 @@
|
|||||||
message: 'The current page has not been saved. Do you want to return to the home page?'
|
message: 'The current page has not been saved. Do you want to return to the home page?'
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
router.push(nav.path)
|
nav.path && router.push(nav.path)
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
}
|
}
|
||||||
const navs = [
|
const navs = [
|
||||||
{ label: 'Home', icon: 'home', size: 73, path: '/welcome', on: onHome },
|
{ label: 'Home', icon: 'home', size: 73, path: '/welcome', on: onHome },
|
||||||
{ label: 'Library', icon: 'library', size: 53, path: '/workshop/library' },
|
{ label: 'Library', icon: 'library', size: 53, path: '/workshop/library' },
|
||||||
{ label: 'Profile', icon: 'profile', size: 55, path: '/workshop/creation' }
|
{ label: 'Profile', icon: 'profile', size: 55, path: '' }
|
||||||
]
|
]
|
||||||
const onNavClick = (nav) => {
|
const onNavClick = (nav) => {
|
||||||
if (currentRoute.value !== nav.path) nav.on ? nav.on(nav) : router.push(nav.path)
|
if (currentRoute.value !== nav.path) nav.on ? nav.on(nav) : nav.path && router.push(nav.path)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -11,12 +11,11 @@
|
|||||||
emit('view-type', 1)
|
emit('view-type', 1)
|
||||||
})
|
})
|
||||||
const onSave = () => {
|
const onSave = () => {
|
||||||
// console.log('保存')
|
console.log('保存')
|
||||||
router.push({ name: 'end' })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const onContinue = () => {
|
const onContinue = () => {
|
||||||
console.log('继续创建')
|
router.push({ name: 'end' })
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -72,6 +71,7 @@
|
|||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin-bottom: 4rem;
|
margin-bottom: 4rem;
|
||||||
|
border: 0.1rem solid #000;
|
||||||
> img {
|
> img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -3,9 +3,11 @@
|
|||||||
import FooterNavigation from '@/components/FooterNavigation.vue'
|
import FooterNavigation from '@/components/FooterNavigation.vue'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
const emit = defineEmits(['viewType'])
|
const emit = defineEmits(['viewType'])
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
const router = useRouter()
|
||||||
|
|
||||||
const inputText = ref('');
|
const inputText = ref('')
|
||||||
const isLoved = ref(false);
|
const isLoved = ref(false)
|
||||||
|
|
||||||
const onSend = () => {
|
const onSend = () => {
|
||||||
if (inputText.value === '') return
|
if (inputText.value === '') return
|
||||||
@@ -14,14 +16,17 @@
|
|||||||
console.log('发送消息:', text)
|
console.log('发送消息:', text)
|
||||||
}
|
}
|
||||||
const onLove = () => {
|
const onLove = () => {
|
||||||
console.log("love")
|
console.log('love')
|
||||||
isLoved.value = !isLoved.value
|
isLoved.value = !isLoved.value
|
||||||
}
|
}
|
||||||
const onReload = () => {
|
const onReload = () => {
|
||||||
console.log("reload")
|
console.log('reload')
|
||||||
}
|
}
|
||||||
const onDownload = () => {
|
const onDownload = () => {
|
||||||
console.log("download")
|
console.log('download')
|
||||||
|
}
|
||||||
|
const onContinue = () => {
|
||||||
|
router.push({ name: 'creation' })
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -53,6 +58,7 @@
|
|||||||
<div @click="onDownload"><SvgIcon name="download" size="35" /></div>
|
<div @click="onDownload"><SvgIcon name="download" size="35" /></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<button class="continue-btn" @click="onContinue">Continue</button>
|
||||||
</div>
|
</div>
|
||||||
<footer-navigation />
|
<footer-navigation />
|
||||||
</template>
|
</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>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user