AddUpMoney.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <view class="AddUpMoney">
  3. <view class="top-money-view">
  4. <view class="money-num">{{ totalMoney || 0 }}</view>
  5. <view class="add-up-label">{{ text_set.commission_c || '累计佣金' }}(元)</view>
  6. </view>
  7. <view class="cash-out-view">
  8. <view class="money-num">{{ balance || 0 }}</view>
  9. <view class="add-up-label">{{ text_set.commission_w || '可提现佣金' }}(元)</view>
  10. <view class="cash-our-btn" @click="goPage('/pagesT/Distribution/Withdrawal?balance=' + (balance || 0) + '&id=' + businessman_id)">
  11. 申请{{ text_set.withdrawal || '提现' }}
  12. </view>
  13. </view>
  14. <view class="cash-ul">
  15. <view class="cash-li clearfix">
  16. <text class="float_left cash-li-label">{{ text_set.commission_s || '待审核佣金' }}</text>
  17. <text class="float_right cash-li-value">
  18. ¥
  19. <text class="num-text">{{ waitAuditWithdraw || 0 }}</text>
  20. </text>
  21. </view>
  22. <view class="cash-li clearfix">
  23. <text class="float_left cash-li-label">{{ text_set.commission_d || '待打款佣金' }}</text>
  24. <text class="float_right cash-li-value">
  25. ¥
  26. <text class="num-text">{{ auditWithdraw || 0 }}</text>
  27. </text>
  28. </view>
  29. <view class="cash-li clearfix">
  30. <text class="float_left cash-li-label">{{ text_set.commission_r || '待入账佣金' }}</text>
  31. <text class="float_right cash-li-value">
  32. ¥
  33. <text class="num-text">{{ waitMoney || 0 }}</text>
  34. </text>
  35. </view>
  36. </view>
  37. <view class="user-tip">
  38. <view class="user-tip-tit">用户须知</view>
  39. <view class="user-tip-li">买家确认收货后,立即获得{{ text_set.commission || '佣金' }}</view>
  40. <view class="user-tip-li">注意:{{ text_set.commission_w || '可提现佣金' }}满0.01元后才能申请{{ text_set.withdrawal || '提现' }}</view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. text_set: {},
  49. balance: 0,
  50. businessman_id: 0,
  51. totalMoney: 0,
  52. waitMoney: 0,
  53. waitAuditWithdraw: 0,
  54. auditWithdraw: 0
  55. };
  56. },
  57. onLoad(options) {
  58. uni.setNavigationBarColor({
  59. frontColor: '#ffffff',
  60. backgroundColor: '#fb604e'
  61. });
  62. this.text_set = this.$store.state.distributionTextSet;
  63. if (this.text_set.commission_c) {
  64. uni.setNavigationBarTitle({
  65. title: this.text_set.commission_c || '累计佣金'
  66. });
  67. }
  68. console.log(options);
  69. this.balance = options.balance;
  70. this.totalMoney = options.totalMoney;
  71. this.waitMoney = options.waitMoney;
  72. this.auditWithdraw = options.auditWithdraw;
  73. this.waitAuditWithdraw = options.waitAuditWithdraw;
  74. this.businessman_id = options.id;
  75. }
  76. };
  77. </script>
  78. <style lang="scss">
  79. .top-money-view {
  80. background: #fb604e;
  81. padding: 50upx 0;
  82. text-align: center;
  83. .money-num {
  84. font-size: 64upx;
  85. color: #ffffff;
  86. padding-bottom: 20upx;
  87. }
  88. .add-up-label {
  89. color: #ffffff;
  90. opacity: 0.5;
  91. font-size: 24upx;
  92. }
  93. }
  94. .cash-out-view {
  95. text-align: center;
  96. padding: 50upx 0;
  97. border-bottom: 20upx solid $page-color-base;
  98. .money-num {
  99. font-size: 54upx;
  100. color: #ff4c1a;
  101. padding-bottom: 20upx;
  102. font-weight: bold;
  103. }
  104. .add-up-label {
  105. color: #999;
  106. font-size: 24upx;
  107. }
  108. .cash-our-btn {
  109. line-height: 60upx;
  110. height: 60upx;
  111. background-color: #fa502c;
  112. color: #fff;
  113. text-align: center;
  114. font-size: 28upx;
  115. border-radius: 60upx;
  116. width: 400upx;
  117. margin: 50upx auto 0;
  118. }
  119. }
  120. .cash-ul {
  121. padding: 0 20upx;
  122. border-bottom: 20upx solid $page-color-base;
  123. .cash-li {
  124. line-height: 90upx;
  125. border-bottom: 1px solid #f5f5f5;
  126. font-size: 26upx;
  127. .cash-li-value {
  128. font-size: 22upx;
  129. .num-text {
  130. font-weight: bold;
  131. font-size: 28upx;
  132. margin-left: 4upx;
  133. }
  134. }
  135. &:last-child {
  136. border-bottom: 0 none;
  137. }
  138. }
  139. }
  140. .user-tip {
  141. padding: 30upx 20upx;
  142. .user-tip-tit {
  143. font-size: 24upx;
  144. font-weight: bold;
  145. padding-bottom: 26upx;
  146. color: #444;
  147. }
  148. .user-tip-li {
  149. font-size: 24upx;
  150. line-height: 36upx;
  151. color: #666666;
  152. }
  153. }
  154. </style>