commission-menu.vue 3.7 KB

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