commission-menu.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!-- 分销:商菜单栏 -->
  2. <template>
  3. <view class="menu-box ss-flex-col">
  4. <view class="header-box">
  5. <image class="header-bg" :src="sheep.$url.static('/static/images/title1.png')" />
  6. <view class="ss-flex header-title">
  7. <view class="title">功能专区</view>
  8. <text class="cicon-forward"></text>
  9. </view>
  10. </view>
  11. <view class="menu-list ss-flex ss-flex-wrap">
  12. <view v-for="(item, index) in state.menuList" :key="index" class="item-box ss-flex-col ss-col-center"
  13. @tap="sheep.$router.go(item.path)">
  14. <image class="menu-icon ss-m-b-10" :src="sheep.$url.static(item.img)" mode="aspectFill"></image>
  15. <view>{{ item.title }}</view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script setup>
  21. import sheep from '@/sheep';
  22. import { reactive } from 'vue';
  23. const state = reactive({
  24. menuList: [{
  25. img: '/static/images/commission_icon1.png',
  26. title: '我的团队',
  27. path: '/pages/commission/team',
  28. },
  29. {
  30. img: '/static/images/commission_icon2.png',
  31. title: '佣金明细',
  32. path: '/pages/commission/wallet',
  33. },
  34. {
  35. img: '/static/images/commission_icon3.png',
  36. title: '分销订单',
  37. path: '/pages/commission/order',
  38. },
  39. {
  40. img: '/static/images/commission_icon4.png',
  41. title: '推广商品',
  42. path: '/pages/commission/goods',
  43. },
  44. // {
  45. // img: '/static/images/commission_icon5.png',
  46. // title: '我的资料',
  47. // path: '/pages/commission/apply',
  48. // isAgentFrom: true,
  49. // },
  50. // todo @非繁人:邀请海报需要登录后的个人数据
  51. {
  52. img: '/static/images/commission_icon7.png',
  53. title: '邀请海报',
  54. path: 'action:showShareModal',
  55. },
  56. // TODO @非繁人:缺少 icon
  57. {
  58. // img: '/static/images/commission_icon7.png',
  59. title: '推广排行',
  60. path: '/pages/commission/promoter',
  61. },
  62. {
  63. // img: '/static/images/commission_icon7.png',
  64. title: '佣金排行',
  65. path: '/pages/commission/commission-ranking',
  66. }
  67. ],
  68. });
  69. </script>
  70. <style lang="scss" scoped>
  71. .menu-box {
  72. margin: 0 auto;
  73. width: 690rpx;
  74. margin-bottom: 20rpx;
  75. margin-top: 20rpx;
  76. border-radius: 12rpx;
  77. z-index: 3;
  78. position: relative;
  79. }
  80. .header-box {
  81. width: 690rpx;
  82. height: 76rpx;
  83. position: relative;
  84. .header-bg {
  85. width: 690rpx;
  86. height: 76rpx;
  87. }
  88. .header-title {
  89. position: absolute;
  90. left: 20rpx;
  91. top: 24rpx;
  92. }
  93. .title {
  94. font-size: 28rpx;
  95. font-weight: 500;
  96. color: #ffffff;
  97. line-height: 30rpx;
  98. }
  99. .cicon-forward {
  100. font-size: 30rpx;
  101. font-weight: 400;
  102. color: #ffffff;
  103. line-height: 30rpx;
  104. }
  105. }
  106. .menu-list {
  107. padding: 50rpx 0 10rpx 0;
  108. background: #fdfae9;
  109. border-radius: 0 0 12rpx 12rpx;
  110. }
  111. .item-box {
  112. width: 25%;
  113. margin-bottom: 40rpx;
  114. }
  115. .menu-icon {
  116. width: 68rpx;
  117. height: 68rpx;
  118. background: #ffffff;
  119. border-radius: 50%;
  120. }
  121. .menu-title {
  122. font-size: 26rpx;
  123. font-weight: 500;
  124. color: #ffffff;
  125. }
  126. </style>