瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
1.9 KiB

4 months ago
4 months ago
4 months ago
1 month ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
1 month ago
4 months ago
1 month ago
2 weeks ago
4 months ago
1 month ago
4 months ago
4 months ago
4 months ago
4 months ago
1 month ago
4 months ago
4 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="活动"/>
  4. <view class="swipe">
  5. <uv-swiper
  6. :list="bannerList"
  7. indicator
  8. height="320rpx"
  9. keyName="image"></uv-swiper>
  10. </view>
  11. <!-- 分类 -->
  12. <view class="LabelOptions">
  13. <uv-tabs :list="category"
  14. :activeStyle="{color : '#000', fontWeight : 900}"
  15. lineColor="#5baaff"
  16. lineHeight="8rpx"
  17. lineWidth="50rpx"
  18. :scrollable="false"
  19. @click="tabsClick"></uv-tabs>
  20. </view>
  21. <view class="activityList">
  22. <!-- <activityList :list="list"/> -->
  23. <activityItem
  24. :key="index"
  25. v-for="(item, index) in list"
  26. :item="item"
  27. @click="$utils.navigateTo('/pages_order/activity/activityDetail?id=' + item.id)"
  28. />
  29. </view>
  30. <tabber select="2" />
  31. </view>
  32. </template>
  33. <script>
  34. import tabber from '@/components/base/tabbar.vue'
  35. import activityList from '@/components/list/activityList.vue'
  36. import activityItem from '@/components/list/activity/activityItem.vue'
  37. import mixinsList from '@/mixins/list.js'
  38. export default {
  39. mixins : [mixinsList],
  40. components : {
  41. tabber,
  42. activityList,
  43. activityItem,
  44. },
  45. data() {
  46. return {
  47. mixinsListApi : 'getActivityPage',
  48. bannerList : [],
  49. category : [
  50. {
  51. name : '近期活动',
  52. value : 0,
  53. },
  54. {
  55. name : '往期活动',
  56. value : 1,
  57. }
  58. ],
  59. }
  60. },
  61. onShow() {
  62. this.getBannerList()
  63. },
  64. onLoad() {
  65. this.queryParams.className = 0
  66. },
  67. methods: {
  68. // 获取banner
  69. getBannerList(){
  70. this.$api('getBannerList', res => {
  71. if(res.code == 200){
  72. this.bannerList = res.result
  73. }
  74. })
  75. },
  76. tabsClick(item) {
  77. this.queryParams.className = item.value
  78. this.getData()
  79. },
  80. }
  81. }
  82. </script>
  83. <style scoped lang="scss">
  84. .page{
  85. .activityList{
  86. // padding: 0 20rpx;
  87. }
  88. .swipe{
  89. overflow: hidden;
  90. border-radius: 20rpx;
  91. margin: 20rpx;
  92. }
  93. }
  94. </style>