commission-menu.vue 3.2 KB

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