commissionDetail.vue 6.5 KB

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