commissionDetail.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <view style="background: #FFFFFF;height: 100vh;">
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <view class="headers " :style="headerStyle">
  6. <view class="dis a-c j-start " style="padding: 0 15px;">
  7. <u-icon name="arrow-left" size="40" @tap="back"></u-icon>
  8. <text style="margin: auto;">收入详情</text>
  9. </view>
  10. </view>
  11. <view style="padding:85px 16px 16px">
  12. <view class="assets">
  13. <view>{{MoneyData.extractFee}}</view>
  14. <view class="time">
  15. <image src="../../static/icon/Frame.png" mode=""></image> {{MoneyData.createTime}}
  16. </view>
  17. </view>
  18. <view class="assets1 dis f-c j-s">
  19. <view style="border-top: 1px solid #f2f2f2;" class="dis j-s a-c" v-if="MoneyData.companyId">
  20. <text style="font-size: 30rpx; font-weight: 400;">订单号</text>
  21. <text style="font-size: 30rpx; font-weight: 500;">{{MoneyData.companyId}}</text>
  22. </view>
  23. <view style="border-top: 1px solid #f2f2f2;" class="dis j-s a-c" v-if="MoneyData.licenseno">
  24. <text style="font-size: 30rpx; font-weight: 400;">车牌号</text>
  25. <text>{{MoneyData.licenseno}}</text>
  26. </view>
  27. <view class="dis j-s a-c" v-if="MoneyData.industrySector">
  28. <text style="font-size: 30rpx; font-weight: 400;">收入类型</text>
  29. <text>{{MoneyData.industrySector==1?'汽车-车险':'保险-财险'}}</text>
  30. </view>
  31. <view class="dis j-s a-c" v-if="MoneyData.issuerName">
  32. <text style="font-size: 30rpx; font-weight: 400;">代理人</text>
  33. <text>{{MoneyData.issuerName}}</text>
  34. </view>
  35. <view class="dis j-s a-c" v-if="MoneyData.profferName&&MoneyData.profferLevel">
  36. <text style="font-size: 30rpx; font-weight: 400;">贡献合伙人</text>
  37. <text>{{MoneyData.profferName}}-
  38. <text v-if="MoneyData.profferLevel ==1"> 一级合伙人</text>
  39. <text v-if="MoneyData.profferLevel ==2"> 二级合伙人</text>
  40. <text v-if="MoneyData.profferLevel ==3"> 三级合伙人</text>
  41. <text v-if="MoneyData.profferLevel ==4"> 四级合伙人</text>
  42. <text v-if="MoneyData.profferLevel ==5"> 五级合伙人</text>
  43. </text>
  44. </view>
  45. <view class="dis j-s a-c" v-if="MoneyData.sumpremium">
  46. <text style="font-size: 30rpx; font-weight: 400;">总保费</text>
  47. <text>{{MoneyData.sumpremium}}</text>
  48. </view>
  49. <view class="dis j-s a-c" v-if="MoneyData.proportional">
  50. <text>佣金比例</text>
  51. <text>{{MoneyData.proportional}}%</text>
  52. </view>
  53. <view class="dis j-s a-c" v-if="MoneyData.extractFee">
  54. <text style="font-size: 30rpx; font-weight: 400;">总佣金</text>
  55. <text>{{MoneyData.extractFee}}
  56. <u-icon name="arrow-down" size="22" color="#999999" v-if="isShow" @click="toggle" style="margin-left: 11rpx;"></u-icon>
  57. <u-icon name="arrow-up" size="22" color="#999999" v-else @click="toggle" style="margin-left: 11rpx;"></u-icon>
  58. </text>
  59. </view>
  60. </view>
  61. <view class="extractFee_box" v-if="isShow">
  62. <view class="option" v-for="(item,index) in MoneyData.profferList" :key="index">
  63. <view class="option_left">
  64. <text v-if="index ==0"> 我的佣金</text>
  65. <text v-if="index !==0&&item.source ==1"> 一级合伙人佣金</text>
  66. <text v-if="index !==0&&item.source ==2"> 二级合伙人佣金</text>
  67. <text v-if="index !==0&&item.source ==3"> 三级合伙人佣金</text>
  68. <text v-if="index !==0&&item.source ==4"> 四级合伙人佣金</text>
  69. <text v-if="index !==0&&item.source ==5"> 五级合伙人佣金</text>
  70. </view>
  71. <view class="option_right">
  72. {{item.sumpremium}}*{{item.proportional}}% = {{item.extractFee}}
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </template>
  79. <script>
  80. import {
  81. mapState
  82. } from "vuex"
  83. export default {
  84. data() {
  85. return {
  86. numList: [],
  87. MoneyData: {},
  88. promotionData: {},
  89. refundData: {},
  90. trajectoryLength: 0,
  91. headerStyle: {
  92. backgroundColor: 'transparent',
  93. backgroundImage: 'url("/static/beijing (2).png")',
  94. backgroundSize: 'cover',
  95. backgroundPosition: '',
  96. boxShadow: ''
  97. // 其他样式属性...
  98. },
  99. //佣金详情是否展示
  100. isShow:true
  101. }
  102. },
  103. computed: {
  104. ...mapState(['userInfo'])
  105. },
  106. onShow() {
  107. },
  108. async onLoad(e) {
  109. this.MoneyData = JSON.parse(decodeURIComponent(e.key));
  110. },
  111. onShow() {},
  112. methods: {
  113. toggle(){
  114. this.isShow = !this.isShow
  115. },
  116. back() {
  117. uni.navigateBack({
  118. delta: 1, // 返回的页面数,如果是1表示返回上一页
  119. success: function() {}
  120. });
  121. },
  122. }
  123. }
  124. </script>
  125. <style lang="scss" scoped>
  126. .flexd {
  127. position: fixed;
  128. left: 0;
  129. right: 0;
  130. }
  131. .assets1 {
  132. width: 100%;
  133. height: auto;
  134. margin-top: 30px;
  135. >view {
  136. border-bottom: 1px solid #f2f2f2;
  137. font-size: 16px;
  138. color: #333333;
  139. padding: 10px;
  140. }
  141. }
  142. .assets {
  143. color: #333333;
  144. text-align: center;
  145. view {
  146. font-size: 31px;
  147. font-weight: bold;
  148. }
  149. text {
  150. font-size: 13px;
  151. color: #666666;
  152. }
  153. .time {
  154. width: 100%;
  155. font-size: 24rpx;
  156. color: #666666;
  157. font-weight: 400;
  158. display: flex;
  159. align-items: center;
  160. justify-content: center;
  161. image {
  162. width: 28rpx;
  163. height: 28rpx;
  164. }
  165. }
  166. }
  167. .headers {
  168. position: fixed;
  169. top: 0;
  170. left: 0;
  171. width: 100%;
  172. z-index: 999999;
  173. padding-top: 40px;
  174. height: 85px;
  175. text {
  176. font-size: 18px;
  177. font-weight: bold;
  178. }
  179. }
  180. .extractFee_box {
  181. margin: 24rpx 0rpx;
  182. padding: 20rpx 10rpx;
  183. box-sizing: border-box;
  184. background: rgba(240, 248, 255, 0.5);
  185. border-radius: 4px 4px 4px 4px;
  186. .option {
  187. display: flex;
  188. justify-content: space-between;
  189. font-size: 26rpx;
  190. margin-bottom: 23rpx;
  191. .option_left {
  192. color: #666666;
  193. }
  194. .option_right{
  195. color: #333333;
  196. }
  197. }
  198. }
  199. </style>