first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<template lang="pug">
.main
router-link(to='/') 首页
router-link(to='/about') 我的
router-view
</template>
<script>
export default {
name: "Main"
}
</script>
<style scoped>
</style>

View File

@@ -0,0 +1,11 @@
<template lang="pug">
.about
h2 关于我
</template>
<script>
export default {}
</script>
<style scoped>
</style>

View File

@@ -0,0 +1,31 @@
<template lang="pug">
.home(v-if="Object.keys(List).length != 0")
ul
li(v-for="(item,index) in List.recommended.list" :key="index")
router-link(:to="{ name: 'info', query: { id: item.id } }") {{ item.title }}
</template>
<script>
export default {
data() {
return {
List: {}
}
},
async created() {
this.GetIndexData()
},
methods: {
async GetIndexData() {
let res = await this.$http.index.GetIndex({id:1})
console.log(res)
this.List = res
}
}
}
</script>
<style scoped>
</style>

View File

@@ -0,0 +1,27 @@
<template lang="pug">
.info
h2 {{ InfoList.title }}
</template>
<script>
export default {
name: "info",
data() {
return {
InfoList: {}
}
},
created () {
this.GetInfo()
},
methods: {
async GetInfo() {
this.InfoList = await this.$http.index.GetInfo({ id: this.$route.query.id, page: 1 });
}
}
}
</script>
<style scoped>
</style>