partner.vue 8.5 KB

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