commissionDetail.vue 4.9 KB

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