institutionalTeam.vue 7.6 KB

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