institutionalDetail.vue 6.2 KB

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