tool.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <template>
  2. <view>
  3. <!-- 常用工具 -->
  4. <view class="interact-tools" style="margin-bottom: 15px">
  5. <view class="interact-title">常用工具</view>
  6. <div class="paddingBox">
  7. <view class="interact-container">
  8. <view class="interact-item" @click="navigateTo('/pages/mine/signIn')">
  9. <image src="/static/mine/sign.png" mode=""></image>
  10. <view>每日签到</view>
  11. </view>
  12. <view class="interact-item" @click="navigateTo('/pages/mine/point/myPoint')">
  13. <image src="/static/mine/mypoint.png" mode=""></image>
  14. <view>我的积分</view>
  15. </view>
  16. <view class="interact-item" @click="navigateTo('/pages/cart/coupon/myCoupon')">
  17. <image src="/static/mine/mycoupon.png" mode=""></image>
  18. <view>优惠券</view>
  19. </view>
  20. <view class="interact-item" @click="navigateTo('/pages/mine/myCollect')">
  21. <image src="/static/mine/myfavorite.png" mode=""></image>
  22. <view>我的关注</view>
  23. </view>
  24. <view class="interact-item" @click="navigateTo('/pages/mine/myTracks')">
  25. <image src="/static/mine/myhistory.png" mode=""></image>
  26. <view>我的足迹</view>
  27. </view>
  28. <view class="interact-item" @click="navigateTo('/pages/order/evaluate/myEvaluate')">
  29. <image src="/static/mine/mycommit.png" mode=""></image>
  30. <view>我的评价</view>
  31. </view>
  32. <view class="interact-item" @click="navigateTo('/pages/order/complain/complainList')">
  33. <image src="/static/mine/shensu.png" mode=""></image>
  34. <view>我的投诉</view>
  35. </view>
  36. <view class="interact-item" @click="navigateTo('/pages/mine/set/feedBack')">
  37. <image src="/static/mine/feedback.png" mode=""></image>
  38. <view>意见反馈</view>
  39. </view>
  40. <view class="interact-item" @click="navigateTo('/pages/cart/coupon/couponCenter')">
  41. <image src="/static/mine/couponcenter.png" mode=""></image>
  42. <view>领券中心</view>
  43. </view>
  44. <view class="interact-item" @click="navigateTo('/pages/mine/address/addressManage')">
  45. <image src="/static/mine/myaddress.png" mode=""></image>
  46. <view>地址管理</view>
  47. </view>
  48. <view class="interact-item" @click="navigateTo('/pages/mine/set/setUp')">
  49. <image src="/static/mine/setting.png" mode=""></image>
  50. <view>设置</view>
  51. </view>
  52. <view class="interact-item" @click="distribution">
  53. <image src="/static/mine/distribution.png" mode=""></image>
  54. <view>我的分销</view>
  55. </view>
  56. </view>
  57. </div>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. import { distribution } from "@/api/goods";
  63. export default {
  64. methods: {
  65. navigateTo(url) {
  66. uni.navigateTo({
  67. url,
  68. });
  69. },
  70. distribution() {
  71. distribution().then((res) => {
  72. if (res.data.result) {
  73. let type = res.data.result.distributionStatus;
  74. uni.navigateTo({
  75. url: "/pages/mine/distribution/auth",
  76. });
  77. return
  78. if (type == "PASS") {
  79. uni.navigateTo({
  80. url: "/pages/mine/distribution/home",
  81. });
  82. } else if (type == "RETREAT" || type == "REFUSE") {
  83. uni.navigateTo({
  84. url: "/pages/mine/distribution/auth",
  85. });
  86. } else {
  87. uni.showToast({
  88. title: "您的信息正在审核",
  89. duration: 2000,
  90. icon: "none",
  91. });
  92. }
  93. } else if (!res.data.success && res.data.code == 22000) {
  94. uni.showToast({
  95. title: "分销功能暂未开启",
  96. duration: 2000,
  97. icon: "none",
  98. });
  99. } else {
  100. // 没有资格申请 先去实名认证
  101. uni.navigateTo({
  102. url: "/pages/mine/distribution/auth",
  103. });
  104. }
  105. });
  106. },
  107. },
  108. };
  109. </script>
  110. <style lang="scss" scoped>
  111. .interact-tools {
  112. border-left: none;
  113. border-right: none;
  114. margin-top: 30rpx;
  115. .interact-title {
  116. background: #f2f2f2;
  117. height: 96rpx;
  118. line-height: 96rpx;
  119. font-size: 28rpx;
  120. color: #333;
  121. font-weight: bold;
  122. padding-left: 30rpx;
  123. margin: 0 20rpx;
  124. border-radius: 14rpx 14rpx 0 0;
  125. }
  126. .interactBox {
  127. height: 156rpx;
  128. }
  129. .interact-container {
  130. margin: 0 20rpx;
  131. background: #fff;
  132. border-radius: 0 0 14rpx 14rpx;
  133. .interact-item-img {
  134. width: 52rpx !important;
  135. height: 52rpx !important;
  136. // margin-bottom: !important;
  137. margin: 0 auto 6rpx auto !important;
  138. }
  139. image {
  140. width: 52rpx;
  141. height: 52rpx;
  142. margin-bottom: 6rpx;
  143. }
  144. display: flex;
  145. align-items: center;
  146. flex-wrap: wrap;
  147. text-align: center;
  148. .interact-item {
  149. font-size: $font-sm;
  150. width: 25%;
  151. height: 160rpx;
  152. padding: 30rpx;
  153. }
  154. }
  155. }
  156. </style>