Showing
6 changed files
with
8 additions
and
14 deletions
| ... | @@ -9,10 +9,10 @@ | ... | @@ -9,10 +9,10 @@ |
| 9 | 9 | ||
| 10 | <script setup lang="ts"> | 10 | <script setup lang="ts"> |
| 11 | import { mainStore, useTitle } from '@/utils/generatePackage' | 11 | import { mainStore, useTitle } from '@/utils/generatePackage' |
| 12 | -import { storeToRefs } from 'pinia' | ||
| 13 | import { computed, watchEffect } from 'vue'; | 12 | import { computed, watchEffect } from 'vue'; |
| 14 | import { useRoute } from 'vue-router' | 13 | import { useRoute } from 'vue-router' |
| 15 | // 会根据配置判断是否显示调试控件 | 14 | // 会根据配置判断是否显示调试控件 |
| 15 | +// eslint-disable-next-line no-unused-vars | ||
| 16 | import vConsole from '@/utils/vconsole' | 16 | import vConsole from '@/utils/vconsole' |
| 17 | 17 | ||
| 18 | // 使用 include + pinia 状态管理动态缓存页面 | 18 | // 使用 include + pinia 状态管理动态缓存页面 | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="choose-school-page content-bg"> | 2 | <div class="choose-school-page content-bg"> |
| 3 | - <div class="modify-top"></div> | 3 | + <div class="modify-top" /> |
| 4 | <div class="wrapper-content"> | 4 | <div class="wrapper-content"> |
| 5 | <template v-for="(item, key) in schoolList" :key="key"> | 5 | <template v-for="(item, key) in schoolList" :key="key"> |
| 6 | <right-side-list | 6 | <right-side-list |
| 7 | - @on-click="go('/client/chooseBook', { kg_id: item.id })" | ||
| 8 | :avatar="item.logo" | 7 | :avatar="item.logo" |
| 8 | + @on-click="go('/client/chooseBook', { kg_id: item.id })" | ||
| 9 | > | 9 | > |
| 10 | {{ item.name }} | 10 | {{ item.name }} |
| 11 | </right-side-list> | 11 | </right-side-list> | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="donate-certificate-page content-bg"> | 2 | <div class="donate-certificate-page content-bg"> |
| 3 | - <donate-cert :item="certItem"></donate-cert> | 3 | + <donate-cert :item="certItem" /> |
| 4 | </div> | 4 | </div> |
| 5 | - <shortcut-fixed type="C" :item="shortcutItem"></shortcut-fixed> | 5 | + <shortcut-fixed type="C" :item="shortcutItem" /> |
| 6 | </template> | 6 | </template> |
| 7 | 7 | ||
| 8 | <script setup> | 8 | <script setup> |
| ... | @@ -10,7 +10,7 @@ import DonateCert from '@/components/DonateCert/index' | ... | @@ -10,7 +10,7 @@ import DonateCert from '@/components/DonateCert/index' |
| 10 | import ShortcutFixed from '@/components/ShortcutFixed/index' | 10 | import ShortcutFixed from '@/components/ShortcutFixed/index' |
| 11 | 11 | ||
| 12 | import { ref } from 'vue' | 12 | import { ref } from 'vue' |
| 13 | -import { useRoute, useRouter } from 'vue-router' | 13 | +import { useRoute } from 'vue-router' |
| 14 | import axios from '@/utils/axios'; | 14 | import axios from '@/utils/axios'; |
| 15 | import { Toast } from 'vant'; | 15 | import { Toast } from 'vant'; |
| 16 | import { useShortcutBar } from '@/composables'; | 16 | import { useShortcutBar } from '@/composables'; | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div class="client-index-page"> | 2 | <div class="client-index-page"> |
| 3 | - <div class="cloud-bg"></div> | 3 | + <div class="cloud-bg" /> |
| 4 | <!-- TAG: animate 动画 --> | 4 | <!-- TAG: animate 动画 --> |
| 5 | <!-- <transition name="fade" enter-active-class="animated animate__swing" leave-active-class="animated animate__swing"> | 5 | <!-- <transition name="fade" enter-active-class="animated animate__swing" leave-active-class="animated animate__swing"> |
| 6 | <van-icon v-if="show" :name="icon_subscribed" size="5rem" style="position: absolute; top: 50%;" /> | 6 | <van-icon v-if="show" :name="icon_subscribed" size="5rem" style="position: absolute; top: 50%;" /> |
| ... | @@ -62,12 +62,6 @@ const goSchool = () => { // 跳转选择幼儿园页面 | ... | @@ -62,12 +62,6 @@ const goSchool = () => { // 跳转选择幼儿园页面 |
| 62 | // }) | 62 | // }) |
| 63 | </script> | 63 | </script> |
| 64 | 64 | ||
| 65 | -<script> | ||
| 66 | -export default { | ||
| 67 | - name: 'index', | ||
| 68 | -} | ||
| 69 | -</script> | ||
| 70 | - | ||
| 71 | <style lang="less" scoped> | 65 | <style lang="less" scoped> |
| 72 | .client-index-page { | 66 | .client-index-page { |
| 73 | // 背景图 宽度100% 高度控制 | 67 | // 背景图 宽度100% 高度控制 | ... | ... |
| ... | @@ -30,7 +30,7 @@ export default ({ command, mode }) => { | ... | @@ -30,7 +30,7 @@ export default ({ command, mode }) => { |
| 30 | // legacy({ | 30 | // legacy({ |
| 31 | // targets: ['defaults', 'not IE 11'] | 31 | // targets: ['defaults', 'not IE 11'] |
| 32 | // }), // Vite 的默认旧版浏览器支持时提供此插件本机ESM的支持。 | 32 | // }), // Vite 的默认旧版浏览器支持时提供此插件本机ESM的支持。 |
| 33 | - DefineOptions(), // 插件来对组件名进行注册的, 解决setup没法写name的问题 | 33 | + DefineOptions(), // TAG: 插件来对组件名进行注册的, 解决setup没法写name的问题 |
| 34 | ], | 34 | ], |
| 35 | publicDir: 'public', // 作为静态资源服务的文件夹。这个目录中的文件会在开发中被服务于 /,在开发模式时,会被拷贝到 outDir 的根目录,并没有转换,永远只是复制到这里。该值可以是文件系统的绝对路径,也可以是相对于项目的根目录路径。 | 35 | publicDir: 'public', // 作为静态资源服务的文件夹。这个目录中的文件会在开发中被服务于 /,在开发模式时,会被拷贝到 outDir 的根目录,并没有转换,永远只是复制到这里。该值可以是文件系统的绝对路径,也可以是相对于项目的根目录路径。 |
| 36 | // cacheDir: '', // 存储缓存文件的目录。此目录下会存储预打包的依赖项或 vite 生成的某些缓存文件,使用缓存可以提高性能。如需重新生成缓存文件,你可以使用 --force 命令行选项或手动删除目录。此选项的值可以是文件的绝对路径,也可以是以项目根目录为基准的相对路径。 | 36 | // cacheDir: '', // 存储缓存文件的目录。此目录下会存储预打包的依赖项或 vite 生成的某些缓存文件,使用缓存可以提高性能。如需重新生成缓存文件,你可以使用 --force 命令行选项或手动删除目录。此选项的值可以是文件的绝对路径,也可以是以项目根目录为基准的相对路径。 | ... | ... |
-
Please register or login to post a comment