tool.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. if (type == "PASS") {
  75. uni.navigateTo({
  76. url: "/pages/mine/distribution/home",
  77. });
  78. } else if (type == "RETREAT" || type == "REFUSE") {
  79. uni.navigateTo({
  80. url: "/pages/mine/distribution/auth",
  81. });
  82. } else {
  83. uni.showToast({
  84. title: "您的信息正在审核",
  85. duration: 2000,
  86. icon: "none",
  87. });
  88. }
  89. } else if (!res.data.success && res.data.code == 22000) {
  90. uni.showToast({
  91. title: '分销功能暂未开启',
  92. duration: 2000,
  93. icon: "none",
  94. });
  95. } else {
  96. // 没有资格申请 先去实名认证
  97. uni.navigateTo({
  98. url: "/pages/mine/distribution/auth",
  99. });
  100. }
  101. });
  102. },
  103. },
  104. };
  105. </script>
  106. <style lang="scss" scoped>
  107. .interact-tools {
  108. border-left: none;
  109. border-right: none;
  110. margin-top: 30rpx;
  111. .interact-title {
  112. background: #f2f2f2;
  113. height: 96rpx;
  114. line-height: 96rpx;
  115. font-size: 28rpx;
  116. color: #333;
  117. font-weight: bold;
  118. padding-left: 30rpx;
  119. margin: 0 20rpx;
  120. border-radius: 14rpx 14rpx 0 0;
  121. }
  122. .interactBox {
  123. height: 156rpx;
  124. }
  125. .interact-container {
  126. margin: 0 20rpx;
  127. background: #fff;
  128. border-radius: 0 0 14rpx 14rpx;
  129. .interact-item-img {
  130. width: 52rpx !important;
  131. height: 52rpx !important;
  132. // margin-bottom: !important;
  133. margin: 0 auto 6rpx auto !important;
  134. }
  135. image {
  136. width: 52rpx;
  137. height: 52rpx;
  138. margin-bottom: 6rpx;
  139. }
  140. display: flex;
  141. align-items: center;
  142. flex-wrap: wrap;
  143. text-align: center;
  144. .interact-item {
  145. font-size: $font-sm;
  146. width: 25%;
  147. height: 160rpx;
  148. padding: 30rpx;
  149. }
  150. }
  151. }
  152. </style>