userTui.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view class="my-promotion">
  3. <view class="header">
  4. <image class="bg" src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/bg_1.png"></image>
  5. <view class="name acea-row row-center-wrapper">
  6. <view>累计佣金</view>
  7. </view>
  8. <view class="num">{{ brokeragePrice }}</view>
  9. <view class="profit acea-row row-between-wrapper">
  10. <view class="item">
  11. <view>昨日收益</view>
  12. <view class="money">{{ yesterdayMoney }}</view>
  13. </view>
  14. <view class="item" @click="navgetTo('userTuiExtractLog')">
  15. <view>
  16. 提现记录
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="list acea-row row-between-wrapper">
  22. <view class="item acea-row row-center-wrapper row-column" @click="navgetTo('userTuiImg')">
  23. <image class="icon" src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/tui_1.png"></image>
  24. <view>推广名片</view>
  25. </view>
  26. <view class="item acea-row row-center-wrapper row-column" @click="navgetTo('userTuiProduct')">
  27. <image class="icon" src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/products_icon.png">
  28. </image>
  29. <view>推广商品</view>
  30. </view>
  31. <view class="item acea-row row-center-wrapper row-column" @click="navgetTo('userTuiList')">
  32. <image class="icon" src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/statistics-icon.png">
  33. </image>
  34. <view>推广人统计</view>
  35. </view>
  36. <view class="item acea-row row-center-wrapper row-column" @click="navgetTo('userTuiMoneyList')">
  37. <image class="icon" src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/commission_icon.png">
  38. </image>
  39. <view>佣金明细</view>
  40. </view>
  41. <view class="item acea-row row-center-wrapper row-column" @click="navgetTo('userTuiOrderList')">
  42. <image class="icon" src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/order_icon.png">
  43. </image>
  44. <view>推广人订单</view>
  45. </view>
  46. <view class="item acea-row row-center-wrapper row-column" @click="navgetTo('userTuiMoney')">
  47. <image class="icon" src="https://zkzh-2025.oss-cn-beijing.aliyuncs.com/shop/images/cash_icon.png">
  48. </image>
  49. <view>提现管理</view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import {
  56. getTuiMoney
  57. } from '@/api/user'
  58. export default {
  59. name: "UserTui",
  60. components: {},
  61. props: {},
  62. data: function() {
  63. return {
  64. brokeragePrice: 0,
  65. yesterdayMoney: 0
  66. };
  67. },
  68. mounted: function() {
  69. this.getTuiMoney();
  70. },
  71. methods: {
  72. getTuiMoney: function() {
  73. let that = this;
  74. getTuiMoney().then(
  75. res => {
  76. that.brokeragePrice = res.brokeragePrice + res.nowMoney;
  77. that.yesterdayMoney = res.yesterdayMoney;
  78. },
  79. err => {
  80. uni.showToast({
  81. title: err.msg,
  82. icon: "none",
  83. duration: 2000
  84. });
  85. },
  86. 300
  87. );
  88. },
  89. navgetTo(url) {
  90. if (this.$isLogin()) {
  91. uni.navigateTo({
  92. url: url
  93. })
  94. }
  95. },
  96. }
  97. };
  98. </script>
  99. <style lang="less">
  100. /*我的推广*/
  101. .my-promotion .header {
  102. position: relative;
  103. width: 100%;
  104. height: 3.75 * 100rpx;
  105. }
  106. .my-promotion .header .bg {
  107. position: absolute;
  108. width: 100%;
  109. height: 3.75 * 100rpx;
  110. }
  111. .my-promotion .header .name {
  112. font-size: 0.3 * 100rpx;
  113. color: #fff;
  114. padding-top: 0.57 * 100rpx;
  115. position: relative;
  116. }
  117. .my-promotion .header .name .record {
  118. font-size: 0.26 * 100rpx;
  119. color: rgba(255, 255, 255, 0.8);
  120. position: absolute;
  121. right: 0.2 * 100rpx;
  122. }
  123. .my-promotion .header .name .record .iconfont {
  124. font-size: 0.25 * 100rpx;
  125. margin-left: 0.1 * 100rpx;
  126. }
  127. .my-promotion .header .num {
  128. position: relative;
  129. text-align: center;
  130. color: #fff;
  131. // margin-top: 0.25*100rpx;
  132. font-size: 0.9 * 100rpx;
  133. font-family: 'GuildfordProBook 5';
  134. }
  135. .my-promotion .header .profit {
  136. position: relative;
  137. padding: 0 0.2 * 100rpx;
  138. margin-top: 0.33 * 100rpx;
  139. font-size: 0.24 * 100rpx;
  140. color: rgba(255, 255, 255, 0.8);
  141. }
  142. .my-promotion .header .profit .item {
  143. min-width: 2 * 100rpx;
  144. text-align: center;
  145. }
  146. .my-promotion .header .profit .item .money {
  147. font-size: 0.34 * 100rpx;
  148. color: #fff;
  149. }
  150. .my-promotion .bnt {
  151. font-size: 0.28 * 100rpx;
  152. color: #fff;
  153. width: 2.58 * 100rpx;
  154. height: 0.68 * 100rpx;
  155. border-radius: 0.5 * 100rpx;
  156. text-align: center;
  157. line-height: 0.68 * 100rpx;
  158. margin: -0.32 * 100rpx auto 0 auto;
  159. }
  160. .my-promotion .list {
  161. padding: 0 0.2 * 100rpx;
  162. margin-top: 0.1 * 100rpx;
  163. }
  164. .my-promotion .list .item {
  165. width: 3.45 * 100rpx;
  166. height: 2.4 * 100rpx;
  167. border-radius: 0.2 * 100rpx;
  168. background-color: #fff;
  169. margin-top: 0.2 * 100rpx;
  170. font-size: 0.3 * 100rpx;
  171. color: #666;
  172. }
  173. .my-promotion .list .item .icon {
  174. width: 80rpx;
  175. height: 80rpx;
  176. margin-bottom: 10rpx;
  177. }
  178. </style>