user-profit.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <template>
  2. <view class="user-profit">
  3. <view class="header-bg"></view>
  4. <view class="header">
  5. <view class="title">
  6. 收益明细
  7. </view>
  8. <view class="content">
  9. <view class="row">
  10. <view class="col">
  11. 账户余额:<text class="money">¥{{profitInfo.money}}</text>
  12. </view>
  13. <view class="col">
  14. 累计结算收益:<text class="money">¥{{profitInfo.total_settled_profit}}</text>
  15. </view>
  16. </view>
  17. <view>
  18. <button class="btn tixian-btn">立即提现</button>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="block shouru">
  23. <view class="item">
  24. <view class="r1">结算收入</view>
  25. <view class="r2">¥{{profitInfo.last_month_settled_profit}}</view>
  26. <view class="r3">上月佣金</view>
  27. </view>
  28. <view class="item">
  29. <view class="r1">预估收入</view>
  30. <view class="r2">¥{{profitInfo.this_month_estimate_profit}}</view>
  31. <view class="r3">本月佣金</view>
  32. </view>
  33. <view class="item">
  34. <view class="r1">预估收入</view>
  35. <view class="r2">¥{{profitInfo.last_month_estimate_profit}}</view>
  36. <view class="r3">上月佣金</view>
  37. </view>
  38. </view>
  39. <view class="block jrsj">
  40. <view class="title">
  41. 今日数据
  42. </view>
  43. <view class="content">
  44. <view class="item">
  45. <view class="r1">付款笔数</view>
  46. <view class="r2">{{profitInfo.today_order_count}}</view>
  47. </view>
  48. <view class="item">
  49. <view class="r1">赚</view>
  50. <view class="r2">¥{{profitInfo.today_order_profit}}</view>
  51. </view>
  52. <view class="item">
  53. <view class="r1">分享赚</view>
  54. <view class="r2">¥{{profitInfo.today_invite_profit}}</view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="block zrsj">
  59. <view class="title">
  60. 昨日数据
  61. </view>
  62. <view class="content">
  63. <view class="item">
  64. <view class="r1">付款笔数</view>
  65. <view class="r2">{{profitInfo.yestoday_order_count}}</view>
  66. </view>
  67. <view class="item">
  68. <view class="r1">赚</view>
  69. <view class="r2">¥{{profitInfo.yestoday_order_profit}}</view>
  70. </view>
  71. <view class="item">
  72. <view class="r1">分享赚</view>
  73. <view class="r2">¥{{profitInfo.yestoday_invite_profit}}</view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </template>
  79. <script>
  80. export default {
  81. data() {
  82. return {
  83. profitInfo: {
  84. money: '0.00',
  85. total_settled_profit: '0.00',
  86. this_month_estimate_profit: '0.00',
  87. last_month_estimate_profit: '0.00',
  88. last_month_settled_profit: '0.00',
  89. today_order_count: 0,
  90. today_order_profit: '0.00',
  91. today_invite_profit: '0.00',
  92. yestoday_order_count: 0,
  93. yestoday_order_profit: '0.00',
  94. yestoday_invite_profit: '0.00'
  95. }
  96. }
  97. },
  98. onShow() {
  99. this.$http.get({
  100. url: "/commission/statistics",
  101. success: (res) => {
  102. this.profitInfo = res.data.data
  103. }
  104. })
  105. },
  106. methods: {
  107. }
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .user-profit {
  112. position: relative;
  113. overflow: hidden;
  114. }
  115. .header-bg {
  116. background: $primary-color;
  117. height: 100upx;
  118. position: absolute;
  119. top: 0;
  120. width: 100%;
  121. z-index: 1;
  122. }
  123. .header {
  124. margin: 20upx;
  125. background: white;
  126. text-align: center;
  127. border-radius: 20upx;
  128. position: relative;
  129. z-index: 2;
  130. .title {
  131. height: 100upx;
  132. font-size: 32upx;
  133. line-height: 100upx;
  134. // font-weight: bold;
  135. }
  136. .content {
  137. text-align: left;
  138. font-size: 28upx;
  139. padding: 20upx;
  140. padding-top: 0;
  141. color: #999999;
  142. }
  143. }
  144. .row {
  145. display: flex;
  146. .col {
  147. flex: 1;
  148. }
  149. }
  150. .btn.tixian-btn {
  151. background-color: $primary-color;
  152. color: white;
  153. font-size: 26upx;
  154. padding: 5upx 20upx;
  155. border-radius: 40upx;
  156. line-height: normal;
  157. display: inline-block;
  158. margin-top: 20upx;
  159. }
  160. .block {
  161. background: white;
  162. padding: 20upx;
  163. margin: 20upx;
  164. border-radius: 10upx;
  165. color: #999999;
  166. }
  167. .shouru {
  168. display: flex;
  169. .item {
  170. flex: 1;
  171. text-align: center;
  172. .r1 {
  173. font-size: 28upx;
  174. }
  175. .r2 {
  176. line-height: 100upx;
  177. color: #FF5D5B;
  178. }
  179. .r3 {
  180. font-size: 24upx;
  181. }
  182. }
  183. }
  184. .jrsj {
  185. .title {
  186. font-size: 28upx;
  187. border-bottom: 2upx solid #EEEEEE;
  188. padding-bottom: 10upx;
  189. }
  190. .content {
  191. display: flex;
  192. margin-top: 20upx;
  193. }
  194. .item {
  195. flex: 1;
  196. text-align: center;
  197. .r1 {
  198. font-size: 28upx;
  199. }
  200. .r2 {
  201. line-height: 100upx;
  202. color: #FF5D5B;
  203. }
  204. }
  205. }
  206. .zrsj {
  207. .title {
  208. font-size: 28upx;
  209. border-bottom: 2upx solid #EEEEEE;
  210. padding-bottom: 10upx;
  211. }
  212. .content {
  213. display: flex;
  214. margin-top: 20upx;
  215. }
  216. .item {
  217. flex: 1;
  218. text-align: center;
  219. .r1 {
  220. font-size: 28upx;
  221. }
  222. .r2 {
  223. line-height: 100upx;
  224. color: #FF5D5B;
  225. }
  226. }
  227. }
  228. </style>