index.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view class="Distribution">
  3. <view class="top-view">
  4. <view class="cash-out clearfix">
  5. <view class="float_left">
  6. <view class="cash-tit">{{ '可提现佣金' }}(元)</view>
  7. <view class="cash-num">{{ dataInfo.balance || 0 }}</view>
  8. </view>
  9. <view class="float_right" @click="goPage('/pagesT/NewPartner/apply_cash?balance=' + (dataInfo.balance || 0) + '&id=' + dataInfo.id)">
  10. <view class="cash-btn">{{ '提现' }}</view>
  11. </view>
  12. </view>
  13. <view class="money-num">
  14. <view class="money-num-li">
  15. <text>{{ '累计佣金' }}</text>
  16. <view class="money-num-text">
  17. <text class="rmb-icon">¥</text>
  18. {{ dataInfo.totalMoney || 0 }}
  19. </view>
  20. </view>
  21. <view class="money-num-li">
  22. <text>{{ '已提现佣金' }}</text>
  23. <view class="money-num-text">
  24. <text class="rmb-icon">¥</text>
  25. {{ dataInfo.withdraw || 0 }}
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="handel-ul">
  31. <view class="handel-li clearfix" @click="goPage('/pagesT/NewPartner/commission_detail?id=' + dataInfo.id)">
  32. <view class="float_left icon-left-view"><text class="ibonfont ibondingdan icon-left" style="color:#f46248"></text></view>
  33. <view class="float_left clearfix handel-right">
  34. <text class="float_left">{{ '分佣记录' }}</text>
  35. <view class="float_right handel-right-r">
  36. <text>{{ dataInfo.orderNum || 0 }}笔</text>
  37. <text class="ibonfont ibonjinru"></text>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="handel-li clearfix" @click="goPage('/pagesT/NewPartner/balance_detail?id=' + dataInfo.id)">
  42. <view class="float_left icon-left-view"><text class="ibonfont ibondianshang icon-left" style="color:#fed261"></text></view>
  43. <view class="float_left clearfix handel-right">
  44. <text class="float_left">{{'余额明细' }}</text>
  45. <view class="float_right handel-right-r"><text class="ibonfont ibonjinru"></text></view>
  46. </view>
  47. </view>
  48. <view class="handel-li clearfix" @click="goPage('/pagesT/NewPartner/cash_detail?id=' + dataInfo.id)">
  49. <view class="float_left icon-left-view"><text class="ibonfont ibontixian icon-left" style="color:#46c09b"></text></view>
  50. <view class="float_left clearfix handel-right">
  51. <text class="float_left">{{'提现记录' }}</text>
  52. <view class="float_right handel-right-r"><text class="ibonfont ibonjinru"></text></view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. import { getAvator } from '@/access/common.js';
  60. export default {
  61. data() {
  62. return {
  63. isLoding: false,
  64. text_set: {},
  65. avator: '',
  66. dataInfo: {
  67. }
  68. };
  69. },
  70. onShareAppMessage() {
  71. return {
  72. title: this.$store.state.baseSet.shop,
  73. path: '/pages/index/index?businessmanId=' + this.$store.state.userStatus.id,
  74. imageUrl: this.$store.state.baseSet.images,
  75. success: res => {
  76. console.log(res);
  77. }
  78. };
  79. },
  80. // 下拉刷新
  81. onPullDownRefresh() {
  82. this.getPartnerInfo();
  83. },
  84. onLoad() {
  85. uni.setNavigationBarColor({frontColor: '#ffffff',backgroundColor: '#fe582e'});
  86. },
  87. onShow() {
  88. this.getPartnerInfo();
  89. },
  90. methods: {
  91. getPartnerInfo(){
  92. var that = this;
  93. this.$u.api.getCommissionPartnerData().then(res=>{
  94. uni.stopPullDownRefresh();
  95. if(res.data && res.data.id>0){
  96. that.dataInfo = res.data;
  97. }
  98. });
  99. },
  100. }
  101. };
  102. </script>
  103. <style lang="scss">
  104. body {
  105. background: $page-color-base;
  106. }
  107. .top-view {
  108. color: #ffffff;
  109. background-color: #fe582e;
  110. .lever-view {
  111. padding: 30upx 24upx;
  112. .lever-view-left {
  113. font-size: 22upx;
  114. font-weight: bold;
  115. line-height: 38upx;
  116. height: 42upx;
  117. padding-right: 16upx;
  118. border-radius: 22upx;
  119. background-color: rgba($color: #ffffff, $alpha: 0.3);
  120. text {
  121. transform: translateY(4upx);
  122. display: inline-block;
  123. }
  124. .user-avator {
  125. margin-right: 8upx;
  126. width: 42upx;
  127. height: 42upx;
  128. border-radius: 100%;
  129. vertical-align: middle;
  130. transform: translateY(-2upx);
  131. }
  132. }
  133. .ew-code {
  134. line-height: 36upx;
  135. height: 36upx;
  136. opacity: 0.5;
  137. .ibonerweima-copy {
  138. font-size: 48upx;
  139. }
  140. }
  141. }
  142. .cash-out {
  143. padding: 0 24upx 30upx;
  144. .cash-tit {
  145. font-size: 24upx;
  146. }
  147. .cash-num {
  148. font-size: 60upx;
  149. font-weight: bold;
  150. padding-top: 20upx;
  151. }
  152. .cash-btn {
  153. margin-top: 76upx;
  154. font-size: 24upx;
  155. width: 146upx;
  156. height: 46upx;
  157. line-height: 46upx;
  158. text-align: center;
  159. background-color: #ffffff;
  160. border-radius: 40upx;
  161. color: #fe582e;
  162. }
  163. }
  164. .money-num {
  165. background-color: #f03b28;
  166. display: flex;
  167. padding: 34upx 0;
  168. .money-num-li {
  169. flex: 2;
  170. font-size: 24upx;
  171. padding-left: 24upx;
  172. &:first-child {
  173. border-right: 1px solid rgba($color: #ffffff, $alpha: 0.3);
  174. }
  175. .money-num-text {
  176. font-size: 32upx;
  177. margin-left: 16upx;
  178. display: inline-block;
  179. transform: translateY(4upx);
  180. .rmb-icon {
  181. font-size: 24upx;
  182. margin-right: 6upx;
  183. }
  184. }
  185. }
  186. }
  187. }
  188. .handel-ul {
  189. .handel-li {
  190. background-color: #ffffff;
  191. padding-left: 20upx;
  192. line-height: 100upx;
  193. font-size: 28upx;
  194. .icon-left-view {
  195. line-height: 100upx;
  196. height: 100upx;
  197. .icon-left {
  198. font-size: 36upx;
  199. margin-right: 30upx;
  200. }
  201. }
  202. .handel-right {
  203. width: 660upx;
  204. border-bottom: 1px solid #f5f5f5;
  205. .handel-right-r {
  206. color: #999999;
  207. padding-right: 20upx;
  208. .ibonjinru {
  209. font-size: 28upx;
  210. margin-left: 20upx;
  211. }
  212. }
  213. }
  214. &:last-child {
  215. .handel-right {
  216. border-bottom: 0 none;
  217. }
  218. }
  219. }
  220. }
  221. </style>