partnerDetail.vue 7.6 KB

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