commission-menu.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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/img/shop/commission/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. <!-- <uni-grid :column="4" :showBorder="false" :highlight="false">
  19. <uni-grid-item
  20. v-for="(item, index) in state.menuList"
  21. :index="index"
  22. :key="index"
  23. @tap="sheep.$router.go(item.path)"
  24. >
  25. <view class="grid-item-box ss-flex ss-flex-col ss-row-center ss-col-center">
  26. <image
  27. class="menu-icon ss-m-b-10"
  28. :src="sheep.$url.static(item.img)"
  29. mode="aspectFill"
  30. ></image>
  31. <text class="menu-title">{{ item.title }}</text>
  32. </view>
  33. </uni-grid-item>
  34. </uni-grid> -->
  35. </view>
  36. </template>
  37. <script setup>
  38. import sheep from '@/sheep';
  39. import {
  40. onLoad
  41. } from '@dcloudio/uni-app';
  42. import {
  43. computed,
  44. reactive
  45. } from 'vue';
  46. const state = reactive({
  47. menuList: [{
  48. img: '/static/img/shop/commission/commission_icon1.png',
  49. title: '我的团队',
  50. path: '/pages/commission/team',
  51. },
  52. {
  53. img: '/static/img/shop/commission/commission_icon2.png',
  54. title: '佣金明细',
  55. path: '/pages/user/wallet/commission',
  56. },
  57. {
  58. img: '/static/img/shop/commission/commission_icon3.png',
  59. title: '分销订单',
  60. path: '/pages/commission/order',
  61. },
  62. {
  63. img: '/static/img/shop/commission/commission_icon4.png',
  64. title: '推广商品',
  65. path: '/pages/commission/goods',
  66. },
  67. // {
  68. // img: '/static/img/shop/commission/commission_icon5.png',
  69. // title: '我的资料',
  70. // path: '/pages/commission/apply',
  71. // isAgentFrom: true,
  72. // },
  73. // todo @芋艿:邀请海报需要登录后的个人数据
  74. {
  75. img: '/static/img/shop/commission/commission_icon7.png',
  76. title: '邀请海报',
  77. path: 'action:showShareModal',
  78. }, {
  79. // img: '/static/img/shop/commission/commission_icon7.png',
  80. title: '推广人排行榜',
  81. path: '/pages/commission/promoter',
  82. }, {
  83. // img: '/static/img/shop/commission/commission_icon7.png',
  84. title: '佣金排行榜',
  85. path: '/pages/commission/commission-ranking',
  86. },
  87. // {
  88. // img: '/static/img/shop/commission/commission_icon8.png',
  89. // title: '分享记录',
  90. // path: '/pages/commission/share-log',
  91. // },
  92. ],
  93. });
  94. </script>
  95. <style lang="scss" scoped>
  96. .menu-box {
  97. margin: 0 auto;
  98. width: 690rpx;
  99. margin-bottom: 20rpx;
  100. margin-top: 20rpx;
  101. border-radius: 12rpx;
  102. z-index: 3;
  103. position: relative;
  104. }
  105. .header-box {
  106. width: 690rpx;
  107. height: 76rpx;
  108. position: relative;
  109. .header-bg {
  110. width: 690rpx;
  111. height: 76rpx;
  112. }
  113. .header-title {
  114. position: absolute;
  115. left: 20rpx;
  116. top: 24rpx;
  117. }
  118. .title {
  119. font-size: 28rpx;
  120. font-weight: 500;
  121. color: #ffffff;
  122. line-height: 30rpx;
  123. }
  124. .cicon-forward {
  125. font-size: 30rpx;
  126. font-weight: 400;
  127. color: #ffffff;
  128. line-height: 30rpx;
  129. }
  130. }
  131. .menu-list {
  132. padding: 50rpx 0 10rpx 0;
  133. background: #fdfae9;
  134. border-radius: 0 0 12rpx 12rpx;
  135. }
  136. .item-box {
  137. width: 25%;
  138. margin-bottom: 40rpx;
  139. }
  140. .menu-icon {
  141. width: 68rpx;
  142. height: 68rpx;
  143. background: #ffffff;
  144. border-radius: 50%;
  145. }
  146. .menu-title {
  147. font-size: 26rpx;
  148. font-weight: 500;
  149. color: #ffffff;
  150. }
  151. </style>