institutionalDetail.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <template>
  2. <view class="" >
  3. <public-module></public-module>
  4. <view class="headers " :style="headerStyle">
  5. <view class="dis a-c j-start " style="padding: 0 15px;">
  6. <u-icon name="arrow-left" size="40" @tap="back"></u-icon>
  7. <text style="margin: auto;">{{parentData.deptName}}</text>
  8. </view>
  9. </view>
  10. <view class="body" style="background: #F8FAFE;margin-top: 85px;">
  11. <view class="partner-head">
  12. <seach @queryData="queryData" :directLsit='parentData' />
  13. </view>
  14. <!-- <card :cardData='directLsit'></card> -->
  15. <block v-for="(item,index) in directLsit" :key="index">
  16. <view class="card" >
  17. <view style="padding: 10px 15px 0 10px">
  18. <view class="card-title">
  19. <text>{{item.userName}}</text>
  20. </view>
  21. <view class="card-con dis j-c a-c">
  22. <view >
  23. <text>{{item.leaderName || '无'}}</text>
  24. <text>推荐人</text>
  25. </view>
  26. <view>
  27. <text>{{item.sumPremium}}</text>
  28. <text>总保费</text>
  29. </view>
  30. <view style="border-right:none">
  31. <text>{{item.extractFee}}</text>
  32. <text>总佣金</text>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </block>
  38. <!-- <u-loadmore style="margin-top: 5px;" v-if="directLsit.length!=0" :status="status" />
  39. <o-empty v-if="directLsit.length==0" /> -->
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import myDatePicker from '../components/date-picker.vue';
  45. import seach from '../components/seach.vue';
  46. // import card from '../components/card.vue'
  47. export default{
  48. components:{myDatePicker,seach},
  49. data(){
  50. return{
  51. startShow:false,
  52. year:[{
  53. lable:'日',
  54. startShow:false
  55. },{
  56. lable:'月',
  57. startShow:false
  58. },{
  59. lable:'季',
  60. startShow:false
  61. },{
  62. lable:'年',
  63. startShow:false
  64. },{
  65. lable:'自定义',
  66. startShow:false
  67. }],
  68. chineseNumbers:[ '一', '二', '三', '四', '五', '六', '七', '八', '九'],
  69. headerStyle: {
  70. backgroundColor: 'transparent',
  71. backgroundImage: 'url("/static/背景 (1).png")',
  72. backgroundSize: 'cover',
  73. backgroundPosition: '',
  74. boxShadow: ''
  75. // 其他样式属性...
  76. },
  77. teamTabIndex: 0,
  78. directLsit: [],
  79. source:0,
  80. totalPages:0,
  81. totalSize:0,
  82. status: 'loadmore',
  83. pageRequest: { //查询的默认条件
  84. pageNum: 1,
  85. pageSize: 20,
  86. userName:''
  87. },
  88. parentData:{}
  89. }
  90. },
  91. async onLoad(e) {
  92. this.parentData = JSON.parse(decodeURIComponent(e.key));
  93. this.queryData()
  94. },
  95. methods:{
  96. back() {
  97. uni.navigateBack({
  98. delta: 1, // 返回的页面数,如果是1表示返回上一页
  99. success: function() {}
  100. });
  101. },
  102. onReachBottom() {
  103. if (this.pageRequest.pageNum >= this.totalPages) return;
  104. this.status = 'loading';
  105. this.pageRequest.pageNum = ++this.pageRequest.pageNum;
  106. setTimeout(async () => {
  107. let res = await this.$http.post('/sysPartner/querySysPartnerAPPPage', {
  108. ...this.pageRequest,
  109. source:this.source
  110. });
  111. if (res.code == '200') {
  112. this.totalSize = res.data.totalSize;
  113. this.directLsit = [...this.directLsit, ...res.data.content];
  114. }
  115. if (this.pageRequest.pageNum >= this.totalPages) this.status = 'nomore';
  116. else this.status = 'loading';
  117. }, 1000)
  118. },
  119. async queryData(data) {
  120. let params = {
  121. beginTime:data&& data.beginTime || '',
  122. endTime:data&& data.endTime || '',
  123. userIds:this.parentData.userIds,
  124. industrySector:data && data.industrySector ||'',
  125. // ...this.pageRequest
  126. }
  127. let res = await this.$http.post('/APPPartner/getTeamUserInfo', params);
  128. if (res.code == '200') {
  129. this.directLsit=res.data.teamUserInfosVoList
  130. this.parentData= {...this.parentData,...res.data}
  131. this.totalPages = res.data.totalPages;
  132. this.totalSize = res.data.totalSize;
  133. if (this.pageRequest.pageNum >= res.data.totalPages) this.status = 'nomore';
  134. else this.status = 'loadmore';
  135. }
  136. },
  137. onShowDatePicker() { //显示
  138. this.showDatePicker = true;
  139. },
  140. }
  141. }
  142. </script>
  143. <style lang="scss" scoped>
  144. .headers {
  145. position: fixed;
  146. top: 0;
  147. left: 0;
  148. width: 100%;
  149. z-index: 999999;
  150. padding-top: 40px;
  151. height: 85px;
  152. text {
  153. font-size: 18px;
  154. font-weight: bold;
  155. }
  156. }
  157. .partner-head{
  158. background: #FFFFFF;
  159. color: #333333;
  160. font-size: 14px;
  161. i{
  162. margin-left: 2px;
  163. display:inline-block;
  164. width: 0;
  165. height: 0;
  166. border: 4px solid;
  167. border-color: #666666;
  168. border-bottom: 4px solid transparent;
  169. border-right: 4px solid transparent;
  170. border-left: 4px solid transparent;
  171. }
  172. .search-data{
  173. color: #666666;
  174. .active{
  175. color: #FFFFFF;
  176. background: linear-gradient( 132deg, #2DD9FF 0%, #2D6DFF 100%);
  177. }
  178. text{
  179. // width: 25px;
  180. // height: 25px;
  181. // text-align: center;
  182. padding: 5px 8px;
  183. border: 1px solid #EEEEEE;
  184. }
  185. }
  186. }
  187. .sum-insurance{
  188. padding: 10px 0;
  189. view{
  190. text-align: center;
  191. width: 33.33%;
  192. border-right: 1px solid #EEEEEE;
  193. text{
  194. display: block;
  195. }
  196. text:first-child{
  197. font-weight: 600;
  198. font-size: 18px;
  199. color: #333333;
  200. }
  201. text:last-child{
  202. font-size: 10px;
  203. color: #999999;
  204. }
  205. }
  206. }
  207. .card{
  208. background: #FFFFFF;
  209. border-radius: 5px 5px 5px 5px;
  210. margin: 10px;
  211. background-image: url("/static/card.png");
  212. background-size: 100% 100%;
  213. border-top: 1px solid;
  214. border-image: linear-gradient(270deg, rgba(45, 217, 255, 0), rgba(45, 217, 255, 1), rgba(45, 217, 255, 0)) 1 1;
  215. .card-title{
  216. padding:0 15px;
  217. text-align: center;
  218. text{
  219. font-weight: 600;
  220. font-size: 16px;
  221. color: #333333;
  222. }
  223. }
  224. .card-con{
  225. padding: 10px 0;
  226. view{
  227. text-align: center;
  228. width: 33.33%;
  229. border-right: 1px solid #EEEEEE;
  230. text{
  231. display: block;
  232. }
  233. text:first-child{
  234. font-weight: 600;
  235. font-size: 16px;
  236. color: #333333;
  237. line-height: 18px;
  238. }
  239. text:last-child{
  240. font-size: 10px;
  241. color: #999999;
  242. }
  243. }
  244. }
  245. }
  246. </style>