index.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <page-theme :theme="theme">
  3. <template>
  4. <view class="f-30 p-40 flex-dir-column flex-x-center">
  5. <view class="f-30 p-40 flex-dir-column flex-x-center">
  6. <u-swiper :list="list1" @click="click"></u-swiper>
  7. <view class="col-info-d t-c m-b-30">其他内容展示</view>
  8. </view>
  9. <view class="col-info-d t-c m-b-30">搜索框</view>
  10. <view class="col-info-d t-c m-b-30">名菜列表</view>
  11. </view>
  12. </template>
  13. </page-theme>
  14. </template>
  15. <script>
  16. import themeMixins from '@/pages/yuecai/mixins/themeMixins.js';
  17. export default {
  18. mixins: [themeMixins],
  19. data() {
  20. return {
  21. list1: [
  22. 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
  23. 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  24. 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  25. ]
  26. }
  27. },
  28. methods: {
  29. getDishList() {
  30. this.$u.api.getDishList().then(res => {
  31. //res.data.records
  32. })
  33. }
  34. },
  35. onLoad(options) {
  36. this.getDishList();
  37. },
  38. }
  39. </script>
  40. <style scoped lang="scss">
  41. </style>