Showing
1 changed file
with
14 additions
and
18 deletions
| 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"></div> |
| 4 | - <div style="height: 1rem;"></div> | 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 @on-click="onClick(item)" :avatar="item.logo"> {{ item.name }} </right-side-list> | 6 | + <right-side-list |
| 7 | - </template> | 7 | + @on-click="go('/client/chooseBook', { kg_id: item.id })" |
| 8 | - <div style="height: 2rem;"></div> | 8 | + :avatar="item.logo" |
| 9 | + > | ||
| 10 | + {{ item.name }} | ||
| 11 | + </right-side-list> | ||
| 12 | + </template> | ||
| 13 | + </div> | ||
| 9 | </div> | 14 | </div> |
| 10 | </template> | 15 | </template> |
| 11 | 16 | ||
| ... | @@ -17,13 +22,7 @@ import { useGo } from '@/hooks/useGo' | ... | @@ -17,13 +22,7 @@ import { useGo } from '@/hooks/useGo' |
| 17 | const go = useGo() | 22 | const go = useGo() |
| 18 | // 删除所有的 keep-alive 缓存 | 23 | // 删除所有的 keep-alive 缓存 |
| 19 | const store = mainStore() | 24 | const store = mainStore() |
| 20 | -store.changeKeepPages('clear'); | 25 | +store.changeKeepPages(); |
| 21 | - | ||
| 22 | -// 跳转幼儿园爱心书籍列表页 | ||
| 23 | -const onClick = (item) => { | ||
| 24 | - go('/client/chooseBook', { kg_id: item.id }) | ||
| 25 | -} | ||
| 26 | - | ||
| 27 | </script> | 26 | </script> |
| 28 | 27 | ||
| 29 | <script> | 28 | <script> |
| ... | @@ -41,16 +40,13 @@ export default { | ... | @@ -41,16 +40,13 @@ export default { |
| 41 | return { | 40 | return { |
| 42 | schoolList: this.$route.params.schoolList | 41 | schoolList: this.$route.params.schoolList |
| 43 | } | 42 | } |
| 44 | - }, | ||
| 45 | - mounted () { | ||
| 46 | - }, | ||
| 47 | - methods: { | ||
| 48 | - | ||
| 49 | } | 43 | } |
| 50 | } | 44 | } |
| 51 | </script> | 45 | </script> |
| 52 | 46 | ||
| 53 | <style lang="less" scoped> | 47 | <style lang="less" scoped> |
| 54 | @import url('@css/content-bg.less'); | 48 | @import url('@css/content-bg.less'); |
| 55 | - | 49 | +.wrapper-content { |
| 50 | + padding: 1rem 0 2rem | ||
| 51 | +} | ||
| 56 | </style> | 52 | </style> | ... | ... |
-
Please register or login to post a comment