partnerDetail.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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;">{{chineseNumbers[parentData.level-1]}}级合伙人</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 ref="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>{{chineseNumbers[index-1]}}级合伙人</text>
  21. <image v-if="index==1" style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (5).png" mode=""></image></text>
  22. <image v-if="index==2" style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别.png" mode=""></image></text>
  23. <image v-if="index==3" style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (1).png" mode=""></image></text>
  24. <image v-if="index==4" style="display: inline-block; width: 45px;height:18px;vertical-align: sub;" src="/static/icon/级别 (2).png" mode=""></image></text>
  25. </view>
  26. </view>
  27. <view class="card-con dis j-c a-c">
  28. <view >
  29. <text>{{item.teamManNum}}</text>
  30. <text>总人数</text>
  31. </view>
  32. <view>
  33. <text>{{item.sumPremium}}</text>
  34. <text>总保费</text>
  35. </view>
  36. <view style="border-right:none">
  37. <text>{{item.extractFee}}</text>
  38. <text>总佣金</text>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="card-footer dis">
  43. <text style="border-right: 1px solid #EEEEEE;">
  44. <image src="/static/icon/hehuoren.png" mode=""></image>
  45. 合伙人({{item.partnerNumber}})</text>
  46. <text>
  47. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  48. 工作室({{item.workNumber}})</text>
  49. </view>
  50. </view>
  51. </block> -->
  52. <!-- <u-loadmore style="margin-top: 5px;" v-if="directLsit.length!=0" :status="status" />
  53. <o-empty v-if="directLsit.length==0" /> -->
  54. </view>
  55. </view>
  56. </template>
  57. <script>
  58. import seach from '../components/seach.vue';
  59. import card from '../components/card.vue'
  60. export default{
  61. components:{card,seach},
  62. data(){
  63. return{
  64. chineseNumbers:[ '一', '二', '三', '四', '五', '六', '七', '八', '九'],
  65. headerStyle: {
  66. backgroundColor: 'transparent',
  67. backgroundImage: 'url("/static/背景 (1).png")',
  68. backgroundSize: 'cover',
  69. backgroundPosition: '',
  70. boxShadow: ''
  71. // 其他样式属性...
  72. },
  73. teamTabIndex: 0,
  74. directLsit: [],
  75. source:0,
  76. totalPages:0,
  77. totalSize:0,
  78. status: 'loadmore',
  79. pageRequest: { //查询的默认条件
  80. pageNum: 1,
  81. pageSize: 20,
  82. userName:''
  83. },
  84. inputAlign: 'left',
  85. parentData:{}
  86. }
  87. },
  88. async onLoad(e) {
  89. this.parentData = JSON.parse(decodeURIComponent(e.key));
  90. this.queryData()
  91. },
  92. methods:{
  93. back() {
  94. uni.navigateBack({
  95. delta: 1, // 返回的页面数,如果是1表示返回上一页
  96. success: function() {}
  97. });
  98. },
  99. onReachBottom() {
  100. if (this.pageRequest.pageNum >= this.totalPages) return;
  101. this.status = 'loading';
  102. this.pageRequest.pageNum = ++this.pageRequest.pageNum;
  103. setTimeout(async () => {
  104. let res = await this.$http.post('/sysPartner/querySysPartnerAPPPage', {
  105. ...this.pageRequest,
  106. source:this.source
  107. });
  108. if (res.code == '200') {
  109. this.totalSize = res.data.totalSize;
  110. this.directLsit = [...this.directLsit, ...res.data.content];
  111. }
  112. if (this.pageRequest.pageNum >= this.totalPages) this.status = 'nomore';
  113. else this.status = 'loading';
  114. }, 1000)
  115. },
  116. onSelected(e) { //选择
  117. this.showDatePicker = false;
  118. if (e) {
  119. this.dateRange = e.value;
  120. this.queryData();
  121. }
  122. },
  123. async queryData(data) {
  124. let params = {
  125. beginTime:data&& data.beginTime || '',
  126. endTime:data&& data.endTime || '',
  127. industrySector:data&& data.industrySector ||'',
  128. type:1,
  129. partnerIds:this.parentData.partnerIds,
  130. level: this.parentData.partnerType ||this.parentData.level+1 ,
  131. // ...this.pageRequest
  132. }
  133. let res = await this.$http.post('/APPPartner/queryPartnerInfo', params);
  134. if (res.code == '200' && res.data) {
  135. this.directLsit=res.data.partnerInfoVoList
  136. this.parentData.level=res.data.partnerInfoVoList[0].level
  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 {
  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. text:first-child{
  224. font-weight: 600;
  225. font-size: 16px;
  226. color: #333333;
  227. }
  228. text:last-child{
  229. font-size: 12px;
  230. color: #666666;
  231. }
  232. }
  233. .card-con{
  234. padding: 10px 0;
  235. view{
  236. text-align: center;
  237. width: 33.33%;
  238. border-right: 1px solid #EEEEEE;
  239. text{
  240. display: block;
  241. }
  242. text:first-child{
  243. font-weight: 600;
  244. font-size: 18px;
  245. color: #333333;
  246. line-height: 18px;
  247. }
  248. text:last-child{
  249. font-size: 10px;
  250. color: #999999;
  251. }
  252. }
  253. }
  254. .card-footer{
  255. border-top: 1px solid #EEEEEE;
  256. line-height: 42px;
  257. image{
  258. display: inline-block;
  259. width: 17px;
  260. height:17px;
  261. vertical-align: middle;
  262. margin-right: 8px;
  263. }
  264. text{
  265. width: 49%;
  266. text-align: center;
  267. line-height: 40px;
  268. font-size: 16px;
  269. color: #333333;
  270. }
  271. }
  272. }
  273. </style>