FirstVideo.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!-- 商城宣传页,活动 -->
  2. <template>
  3. <view class="page-body" style="background: #f6f6f6;">
  4. <FirstList :categoryId="10" type="articleCard" />
  5. <s-tabbar path="/pages/index/FirstVideo" :tabbar="tabbar" />
  6. </view>
  7. </template>
  8. <script setup>
  9. import {
  10. computed,
  11. ref,
  12. reactive
  13. } from 'vue';
  14. import {
  15. onLoad,
  16. onShow,
  17. onReachBottom,
  18. onPullDownRefresh
  19. } from '@dcloudio/uni-app';
  20. import sheep from '@/sheep';
  21. import { t } from '@/locale'
  22. import ArticleApi from '@/sheep/api/promotion/article';
  23. import FirstList from './FirstList.vue'
  24. // 隐藏原生tabBar
  25. uni.hideTabBar();
  26. const tabbar = ref({
  27. "theme": "red",
  28. "style": {
  29. "bgType": "color",
  30. "bgColor": "#ffffff",
  31. "color": "#3c3c3c",
  32. "activeColor": "#1fa380"
  33. },
  34. "items": [{
  35. "text": t('common.home'),
  36. "url": "/pages/index/FirstIndex",
  37. "iconUrl": sheep.$url.static('/static/firstIndex/index.svg'),
  38. "activeIconUrl": sheep.$url.static('/static/firstIndex/index-active.svg')
  39. },
  40. {
  41. "text": t('common.activities'),
  42. "url": "/pages/index/FirstActivity",
  43. "iconUrl": sheep.$url.static('/static/firstIndex/activity.svg'),
  44. "activeIconUrl": sheep.$url.static('/static/firstIndex/activity-active.svg')
  45. },
  46. {
  47. "text": t('common.videos'),
  48. "url": "/pages/index/FirstVideo",
  49. "iconUrl": sheep.$url.static('/static/firstIndex/video.svg'),
  50. "activeIconUrl": sheep.$url.static('/static/firstIndex/video-active.svg')
  51. },
  52. {
  53. "text": t('common.mall'),
  54. "url": "/pages/index/index",
  55. "iconUrl": sheep.$url.static('/static/firstIndex/shop.svg'),
  56. "activeIconUrl": sheep.$url.static('/static/firstIndex/shop-active.svg')
  57. }
  58. ]
  59. });
  60. // 上拉加载更多
  61. onReachBottom(() => {
  62. });
  63. // 下拉刷新
  64. onPullDownRefresh(() => {
  65. setTimeout(function() {
  66. uni.stopPullDownRefresh();
  67. }, 800);
  68. });
  69. </script>
  70. <style scoped>
  71. </style>