FirstMerchant.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!-- 商城宣传页,活动 -->
  2. <template>
  3. <view class="page-body" style="background: #f6f6f6;">
  4. <FirstList :categoryId="12" type="activityCard" />
  5. <s-tabbar path="/pages/index/FirstMerchant" :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.merchant'),
  48. // "url": "/pages/index/FirstMerchant",
  49. // "iconUrl": sheep.$url.static('/static/firstIndex/merchant.svg'),
  50. // "activeIconUrl": sheep.$url.static('/static/firstIndex/merchant-active.svg')
  51. // },
  52. {
  53. "text": t('common.videos'),
  54. "url": "/pages/index/FirstVideo",
  55. "iconUrl": sheep.$url.static('/static/firstIndex/video.svg'),
  56. "activeIconUrl": sheep.$url.static('/static/firstIndex/video-active.svg')
  57. },
  58. {
  59. "text": t('common.mall'),
  60. "url": "/pages/index/index",
  61. "iconUrl": sheep.$url.static('/static/firstIndex/shop.svg'),
  62. "activeIconUrl": sheep.$url.static('/static/firstIndex/shop-active.svg')
  63. }
  64. ]
  65. });
  66. // 上拉加载更多
  67. onReachBottom(() => {
  68. });
  69. // 下拉刷新
  70. onPullDownRefresh(() => {
  71. setTimeout(function() {
  72. uni.stopPullDownRefresh();
  73. }, 800);
  74. });
  75. </script>