partner.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  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>
  14. <!-- <card :cardData='directLsit'></card> -->
  15. <block>
  16. <!-- 一级 -->
  17. <view v-if="userLevel == 1">
  18. <view class="card">
  19. <view style="padding: 10px 15px 0 10px">
  20. <view class="dis j-s card-title">
  21. <view>
  22. <text>一级合伙人</text>
  23. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  24. src="/static/icon/jibie1.png" mode=""></image>
  25. </view>
  26. <view @click="partnersAndStudios(2)">
  27. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
  28. src="/static/icon/code2.png" mode=""></image>
  29. <text>招募码</text>
  30. </view>
  31. </view>
  32. <view class="card-con dis j-c a-c">
  33. <view>
  34. <text>{{ directLsitOne.teamManNum || 0 }}</text>
  35. <text>总人数</text>
  36. </view>
  37. <view>
  38. <text>{{ directLsitOne.sumPremium || 0 }}</text>
  39. <text>总保费</text>
  40. </view>
  41. <view style="border-right:none">
  42. <text>{{ directLsitOne.extractFee || 0 }}</text>
  43. <text>总佣金</text>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="card-footer dis">
  48. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitOne)">
  49. <image src="/static/icon/hehuoren.png" mode=""></image>
  50. 合伙人({{ directLsitOne.partnerNumber || 0 }})
  51. </text>
  52. <text @click="closeInstitution(directLsitOne)">
  53. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  54. 工作室({{ directLsitOne.workNumber || 0 }})
  55. </text>
  56. </view>
  57. </view>
  58. <view class="card" >
  59. <view style="padding: 10px 15px 0 10px">
  60. <view class="dis j-s card-title">
  61. <view>
  62. <text>二级合伙人</text>
  63. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  64. src="/static/icon/jibie.png" mode=""></image>
  65. </view>
  66. <view @click="recruitment(3)">
  67. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
  68. src="/static/icon/code2.png" mode=""></image>
  69. <text>招募码</text>
  70. </view>
  71. </view>
  72. <view class="card-con dis j-c a-c">
  73. <view>
  74. <text>{{ directLsitTwo.teamManNum || 0 }}</text>
  75. <text>总人数</text>
  76. </view>
  77. <view>
  78. <text>{{ directLsitTwo.sumPremium || 0 }}</text>
  79. <text>总保费</text>
  80. </view>
  81. <view style="border-right:none">
  82. <text>{{ directLsitTwo.extractFee || 0 }}</text>
  83. <text>总佣金</text>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="card-footer dis">
  88. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitTwo)">
  89. <image src="/static/icon/hehuoren.png" mode=""></image>
  90. 合伙人({{ directLsitTwo.partnerNumber || 0 }})
  91. </text>
  92. <text @click="closeInstitution(directLsitTwo)">
  93. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  94. 工作室({{ directLsitTwo.workNumber || 0 }})
  95. </text>
  96. </view>
  97. </view>
  98. <!-- 三级 -->
  99. <view class="card" >
  100. <view style="padding: 10px 15px 0 10px">
  101. <view class="dis j-s card-title">
  102. <view>
  103. <text>三级合伙人</text>
  104. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  105. src="/static/icon/jibie3.png" mode=""></image>
  106. </view>
  107. <view @click="recruitment(4)">
  108. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
  109. src="/static/icon/code2.png" mode=""></image>
  110. <text>招募码</text>
  111. </view>
  112. </view>
  113. <view class="card-con dis j-c a-c">
  114. <view>
  115. <text>{{ directLsitThree.teamManNum || 0 }}</text>
  116. <text>总人数</text>
  117. </view>
  118. <view>
  119. <text>{{ directLsitThree.sumPremium || 0 }}</text>
  120. <text>总保费</text>
  121. </view>
  122. <view style="border-right:none">
  123. <text>{{ directLsitThree.extractFee || 0 }}</text>
  124. <text>总佣金</text>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="card-footer dis">
  129. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitThree)">
  130. <image src="/static/icon/hehuoren.png" mode=""></image>
  131. 合伙人({{ directLsitThree.partnerNumber || 0 }})
  132. </text>
  133. <text @click="closeInstitution(directLsitThree)">
  134. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  135. 工作室({{ directLsitThree.workNumber || 0 }})
  136. </text>
  137. </view>
  138. </view>
  139. <view class="card" v-if="userLevel == 1">
  140. <view style="padding: 10px 15px 0 10px">
  141. <view class="dis j-s card-title">
  142. <view>
  143. <text>四级合伙人</text>
  144. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  145. src="/static/icon/jibie4.png" mode=""></image>
  146. </view>
  147. <view @click="ShowModalCodeFun(5)">
  148. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
  149. src="/static/icon/code2.png" mode=""></image>
  150. <text>招募码</text>
  151. </view>
  152. <!-- <view @click="ShowModalCodeworkFun()" >
  153. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;" src="/static/icon/code2.png" mode=""></image>
  154. <text>招募码</text>
  155. </view> -->
  156. </view>
  157. <view class="card-con dis j-c a-c">
  158. <view>
  159. <text>{{ directLsitFour.teamManNum || 0 }}</text>
  160. <text>总人数</text>
  161. </view>
  162. <view>
  163. <text>{{ directLsitFour.sumPremium || 0 }}</text>
  164. <text>总保费</text>
  165. </view>
  166. <view style="border-right:none">
  167. <text>{{ directLsitFour.extractFee || 0 }}</text>
  168. <text>总佣金</text>
  169. </view>
  170. </view>
  171. </view>
  172. <view class="card-footer dis">
  173. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour)">
  174. <image src="/static/icon/hehuoren.png" mode=""></image>
  175. 合伙人({{ directLsitFour.partnerNumber || 0 }})
  176. </text>
  177. <text @click="closeInstitution(directLsitFour)">
  178. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  179. 工作室({{ directLsitFour.workNumber || 0 }})
  180. </text>
  181. </view>
  182. </view>
  183. </view>
  184. <!-- 二级 -->
  185. <view v-if="userLevel == 2">
  186. <view class="card" >
  187. <view style="padding: 10px 15px 0 10px">
  188. <view class="dis j-s card-title">
  189. <view>
  190. <text>一级合伙人</text>
  191. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  192. src="/static/icon/jibie.png" mode=""></image>
  193. </view>
  194. <view @click="partnersAndStudios(3)">
  195. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
  196. src="/static/icon/code2.png" mode=""></image>
  197. <text>招募码</text>
  198. </view>
  199. </view>
  200. <view class="card-con dis j-c a-c">
  201. <view>
  202. <text>{{ directLsitTwo.teamManNum || 0 }}</text>
  203. <text>总人数</text>
  204. </view>
  205. <view>
  206. <text>{{ directLsitTwo.sumPremium || 0 }}</text>
  207. <text>总保费</text>
  208. </view>
  209. <view style="border-right:none">
  210. <text>{{ directLsitTwo.extractFee || 0 }}</text>
  211. <text>总佣金</text>
  212. </view>
  213. </view>
  214. </view>
  215. <view class="card-footer dis">
  216. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitTwo)">
  217. <image src="/static/icon/hehuoren.png" mode=""></image>
  218. 合伙人({{ directLsitTwo.partnerNumber || 0 }})
  219. </text>
  220. <text @click="closeInstitution(directLsitTwo)">
  221. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  222. 工作室({{ directLsitTwo.workNumber || 0 }})
  223. </text>
  224. </view>
  225. </view>
  226. <view class="card" >
  227. <view style="padding: 10px 15px 0 10px">
  228. <view class="dis j-s card-title">
  229. <view>
  230. <text>二级合伙人</text>
  231. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  232. src="/static/icon/jibie3.png" mode=""></image>
  233. </view>
  234. <view @click="recruitment(4)">
  235. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
  236. src="/static/icon/code2.png" mode=""></image>
  237. <text>招募码</text>
  238. </view>
  239. </view>
  240. <view class="card-con dis j-c a-c">
  241. <view>
  242. <text>{{ directLsitThree.teamManNum || 0 }}</text>
  243. <text>总人数</text>
  244. </view>
  245. <view>
  246. <text>{{ directLsitThree.sumPremium || 0 }}</text>
  247. <text>总保费</text>
  248. </view>
  249. <view style="border-right:none">
  250. <text>{{ directLsitThree.extractFee || 0 }}</text>
  251. <text>总佣金</text>
  252. </view>
  253. </view>
  254. </view>
  255. <view class="card-footer dis">
  256. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitThree)">
  257. <image src="/static/icon/hehuoren.png" mode=""></image>
  258. 合伙人({{ directLsitThree.partnerNumber || 0 }})
  259. </text>
  260. <text @click="closeInstitution(directLsitThree)">
  261. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  262. 工作室({{ directLsitThree.workNumber || 0 }})
  263. </text>
  264. </view>
  265. </view>
  266. <view class="card" >
  267. <view style="padding: 10px 15px 0 10px">
  268. <view class="dis j-s card-title">
  269. <view>
  270. <text>三级合伙人</text>
  271. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  272. src="/static/icon/jibie4.png" mode=""></image>
  273. </view>
  274. <view @click="ShowModalCodeFun(5)" >
  275. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;" src="/static/icon/code2.png" mode=""></image>
  276. <text>招募码</text>
  277. </view>
  278. </view>
  279. <view class="card-con dis j-c a-c">
  280. <view>
  281. <text>{{ directLsitFour.teamManNum || 0 }}</text>
  282. <text>总人数</text>
  283. </view>
  284. <view>
  285. <text>{{ directLsitFour.sumPremium || 0 }}</text>
  286. <text>总保费</text>
  287. </view>
  288. <view style="border-right:none">
  289. <text>{{ directLsitFour.extractFee || 0 }}</text>
  290. <text>总佣金</text>
  291. </view>
  292. </view>
  293. </view>
  294. <view class="card-footer dis">
  295. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour)">
  296. <image src="/static/icon/hehuoren.png" mode=""></image>
  297. 合伙人({{ directLsitFour.partnerNumber || 0 }})
  298. </text>
  299. <text @click="closeInstitution(directLsitFour)">
  300. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  301. 工作室({{ directLsitFour.workNumber || 0 }})
  302. </text>
  303. </view>
  304. </view>
  305. </view>
  306. <view v-if="userLevel == 3">
  307. <view class="card" >
  308. <view style="padding: 10px 15px 0 10px">
  309. <view class="dis j-s card-title">
  310. <view>
  311. <text>一级合伙人</text>
  312. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  313. src="/static/icon/jibie3.png" mode=""></image>
  314. </view>
  315. <view @click="partnersAndStudios(4)">
  316. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
  317. src="/static/icon/code2.png" mode=""></image>
  318. <text>招募码</text>
  319. </view>
  320. </view>
  321. <view class="card-con dis j-c a-c">
  322. <view>
  323. <text>{{ directLsitThree.teamManNum || 0 }}</text>
  324. <text>总人数</text>
  325. </view>
  326. <view>
  327. <text>{{ directLsitThree.sumPremium || 0 }}</text>
  328. <text>总保费</text>
  329. </view>
  330. <view style="border-right:none">
  331. <text>{{ directLsitThree.extractFee || 0 }}</text>
  332. <text>总佣金</text>
  333. </view>
  334. </view>
  335. </view>
  336. <view class="card-footer dis">
  337. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitThree)">
  338. <image src="/static/icon/hehuoren.png" mode=""></image>
  339. 合伙人({{ directLsitThree.partnerNumber || 0 }})
  340. </text>
  341. <text @click="closeInstitution(directLsitThree)">
  342. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  343. 工作室({{ directLsitThree.workNumber || 0 }})
  344. </text>
  345. </view>
  346. </view>
  347. <view class="card" >
  348. <view style="padding: 10px 15px 0 10px">
  349. <view class="dis j-s card-title">
  350. <view>
  351. <text>二级合伙人</text>
  352. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  353. src="/static/icon/jibie4.png" mode=""></image>
  354. </view>
  355. <view @click="ShowModalCodeFun(5)" >
  356. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;" src="/static/icon/code2.png" mode=""></image>
  357. <text>招募码</text>
  358. </view>
  359. </view>
  360. <view class="card-con dis j-c a-c">
  361. <view>
  362. <text>{{ directLsitFour.teamManNum || 0 }}</text>
  363. <text>总人数</text>
  364. </view>
  365. <view>
  366. <text>{{ directLsitFour.sumPremium || 0 }}</text>
  367. <text>总保费</text>
  368. </view>
  369. <view style="border-right:none">
  370. <text>{{ directLsitFour.extractFee || 0 }}</text>
  371. <text>总佣金</text>
  372. </view>
  373. </view>
  374. </view>
  375. <view class="card-footer dis">
  376. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour)">
  377. <image src="/static/icon/hehuoren.png" mode=""></image>
  378. 合伙人({{ directLsitFour.partnerNumber || 0 }})
  379. </text>
  380. <text @click="closeInstitution(directLsitFour)">
  381. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  382. 工作室({{ directLsitFour.workNumber || 0 }})
  383. </text>
  384. </view>
  385. </view>
  386. </view>
  387. <view v-if="userLevel == 4">
  388. <view class="card" >
  389. <view style="padding: 10px 15px 0 10px">
  390. <view class="dis j-s card-title">
  391. <view>
  392. <text>一级合伙人</text>
  393. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  394. src="/static/icon/jibie4.png" mode=""></image>
  395. </view>
  396. <view @click="ShowModalCodeFun(5)" >
  397. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;" src="/static/icon/code2.png" mode=""></image>
  398. <text>招募码</text>
  399. </view>
  400. </view>
  401. <view class="card-con dis j-c a-c">
  402. <view>
  403. <text>{{ directLsitFour.teamManNum || 0 }}</text>
  404. <text>总人数</text>
  405. </view>
  406. <view>
  407. <text>{{ directLsitFour.sumPremium || 0 }}</text>
  408. <text>总保费</text>
  409. </view>
  410. <view style="border-right:none">
  411. <text>{{ directLsitFour.extractFee || 0 }}</text>
  412. <text>总佣金</text>
  413. </view>
  414. </view>
  415. </view>
  416. <view class="card-footer dis">
  417. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour)">
  418. <image src="/static/icon/hehuoren.png" mode=""></image>
  419. 合伙人({{ directLsitFour.partnerNumber || 0 }})
  420. </text>
  421. <text @click="closeInstitution(directLsitFour)">
  422. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  423. 工作室({{ directLsitFour.workNumber || 0 }})
  424. </text>
  425. </view>
  426. </view>
  427. </view>
  428. </block>
  429. <!-- <u-loadmore style="margin-top: 5px;" v-if="directLsit.length!=0" :status="status" />
  430. <o-empty v-if="directLsit.length==0" /> -->
  431. </view>
  432. <u-popup v-model="ShowModal" mode="bottom" border-radius="15">
  433. <view class="popup-code">
  434. <text @click="ShowModalCodeFun(level)">合伙人</text>
  435. <text @click="ShowModalCodeworkFun">工作室</text>
  436. </view>
  437. </u-popup>
  438. <u-popup v-model="ShowModalCode" mode="bottom" border-radius="15">
  439. <view class="ShowModalCode-style ">
  440. <text>合伙人招募码</text>
  441. <view class=" ShowModalCode-con">
  442. <view>扫码加入</view>
  443. <image :src="partnerImg" mode="widthFix" lazy-load style="width: 150px;"></image>
  444. </view>
  445. </view>
  446. </u-popup>
  447. <u-popup v-model="ShowModalCodebusiness" mode="bottom" border-radius="15">
  448. <view>
  449. <text class=" ShowModalCode-business">工作室业务</text>
  450. <view>
  451. <radio-group class="uni-list" @change="styleChange">
  452. <view v-for="(item, index) in styles" :key="index" class="uni-list-item">
  453. <view class="uni-list-item__container">
  454. <view class="uni-list-item__content">
  455. <text class="uni-list-item__content-title">{{ item.text }}</text>
  456. </view>
  457. <view class="uni-list-item__extra">
  458. <radio :value="item.value" :checked="item.checked" />
  459. </view>
  460. </view>
  461. <view class="uni-list-item__notestext">{{ item.notestext }}</view>
  462. </view>
  463. </radio-group>
  464. </view>
  465. <view class="ShowModalCode-sumbit" @click="ShowModalCodeSumbit()">确定</view>
  466. </view>
  467. </u-popup>
  468. <u-popup v-model="ShowModalCode1" mode="bottom" border-radius="15">
  469. <view class="ShowModalCode-style ">
  470. <text>工作室招募码</text>
  471. <view class=" ShowModalCode-con">
  472. <view>扫码加入</view>
  473. <image :src="workImg" mode="widthFix" lazy-load style="width: 150px;"></image>
  474. </view>
  475. </view>
  476. </u-popup>
  477. </view>
  478. </template>
  479. <script>
  480. import myDatePicker from '../components/date-picker.vue';
  481. import seach from '../components/seach.vue';
  482. import QR from "@/common/wxqrcode.js"
  483. import {
  484. mapState,
  485. mapMutations
  486. } from "vuex"
  487. // import card from '../components/card.vue'
  488. export default {
  489. components: { myDatePicker, seach },
  490. computed: {
  491. ...mapState(['userInfo', "userCheckInfo",]),
  492. },
  493. data() {
  494. return {
  495. ShowModal: false,
  496. ShowModalCode: false,
  497. ShowModalCode1: false,
  498. ShowModalCodebusiness: false,
  499. // chineseNumbers:[ '一', '二', '三', '四', '五', '六', '七', '八', '九'],
  500. headerStyle: {
  501. backgroundColor: 'transparent',
  502. backgroundImage: 'url("/static/beijing (2).png")',
  503. backgroundSize: 'cover',
  504. backgroundPosition: '',
  505. boxShadow: ''
  506. // 其他样式属性...
  507. },
  508. teamTabIndex: 0,
  509. directLsit: [
  510. {
  511. partnerNumber: 1
  512. },
  513. {
  514. partnerNumber: 2
  515. }
  516. ],
  517. source: 0,
  518. totalPages: 0,
  519. totalSize: 0,
  520. status: 'loadmore',
  521. pageRequest: { //查询的默认条件
  522. pageNum: 1,
  523. pageSize: 20,
  524. userName: ''
  525. },
  526. partnerImg: '',
  527. workImg: '',
  528. directLsitOne: {},
  529. directLsitTwo: {},
  530. directLsitThree: {},
  531. directLsitFour: {},
  532. userLevel: "",
  533. styles: [{
  534. value: '1',
  535. text: '渠道',
  536. notestext: '团队长加出单员模式,无分销模式,结费都在团队长处。',
  537. checked: true
  538. },
  539. {
  540. value: '2',
  541. notestext: '团队长加代理人模式,三级分销模式,结费方式为个人,有佣金。',
  542. text: '个代'
  543. }
  544. ],
  545. deptSource: 1
  546. }
  547. },
  548. async onLoad(params) {
  549. this.queryData()
  550. this.userLevel = this.userInfo.sysUser.level
  551. },
  552. methods: {
  553. styleChange(e) {
  554. this.deptSource = e.detail.value
  555. },
  556. ShowModalCodeFun(level) {
  557. this.level=level
  558. console.log(this.level,222222);
  559. this.ShowModalCode = true
  560. this.partnerImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applypartner?level=" + this.level + '&userId=' + this.userInfo.sysUser.userId, {
  561. size: parseInt(200) //二维码大小
  562. })
  563. },
  564. ShowModalCodeSumbit(){
  565. console.log(this.deptSource,9999222222);
  566. this. ShowModalCode1 = true
  567. this.workImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applystudio?deptSource=" + this.deptSource + '&userId=' + this.userInfo.sysUser.userId, {
  568. size: parseInt(200) //二维码大小
  569. })
  570. },
  571. ShowModalCodeworkFun() {
  572. this.ShowModalCodebusiness = true
  573. this.deptSource = 1
  574. },
  575. partnersAndStudios(level){
  576. this.level=level
  577. this.ShowModal = true
  578. },
  579. recruitment(level) {
  580. this.level = level
  581. this.ShowModalCodeFun(level)
  582. },
  583. back() {
  584. uni.navigateBack({
  585. delta: 1, // 返回的页面数,如果是1表示返回上一页
  586. success: function () { }
  587. });
  588. },
  589. partnerDetail(item) {
  590. if (item.partnerNumber) {
  591. uni.navigateTo({
  592. url: "/pages/institutional/partnerDetail?key=" + encodeURIComponent(JSON.stringify(item))
  593. })
  594. }
  595. },
  596. closeInstitution(item) {
  597. if (item.leaderIds.length > 0) {
  598. item.type = 1
  599. uni.navigateTo({
  600. url: "/pages/institutional/institutionalTeam?key=" + encodeURIComponent(JSON.stringify(item))
  601. })
  602. }
  603. },
  604. // onReachBottom() {
  605. // if (this.pageRequest.pageNum >= this.totalPages) return;
  606. // this.status = 'loading';
  607. // this.pageRequest.pageNum = ++this.pageRequest.pageNum;
  608. // setTimeout(async () => {
  609. // let res = await this.$http.post('/sysPartner/querySysPartnerAPPPage', {
  610. // ...this.pageRequest,
  611. // source:this.source
  612. // });
  613. // if (res.code == '200') {
  614. // this.totalSize = res.data.totalSize;
  615. // this.directLsit = [...this.directLsit, ...res.data.content];
  616. // }
  617. // if (this.pageRequest.pageNum >= this.totalPages) this.status = 'nomore';
  618. // else this.status = 'loading';
  619. // }, 1000)
  620. // },
  621. async queryData(data) {
  622. let params = {
  623. beginTime: data && data.beginTime || '',
  624. endTime: data && data.endTime || '',
  625. partnerType: data && data.partnerType || '',
  626. industrySector: data && data.industrySector || '',
  627. // ...this.pageRequest
  628. }
  629. let res = await this.$http.post('/APPPartner/info', params);
  630. if (res.code == '200') {
  631. res.data.forEach(e => {
  632. switch (e.partnerType) {
  633. case 2:
  634. this.directLsitOne = e
  635. break;
  636. case 3:
  637. this.directLsitTwo = e
  638. break;
  639. case 4:
  640. this.directLsitThree = e
  641. break;
  642. case 5:
  643. this.directLsitFour = e
  644. break;
  645. default:
  646. break;
  647. }
  648. })
  649. // this.directLsit=res.data
  650. // this.totalPages = res.data.totalPages;
  651. // this.totalSize = res.data.totalSize;
  652. // if (this.pageRequest.pageNum >= res.data.totalPages) this.status = 'nomore';
  653. // else this.status = 'loadmore';
  654. }
  655. },
  656. }
  657. }
  658. </script>
  659. <style lang="scss" scoped>
  660. .headers {
  661. position: fixed;
  662. top: 0;
  663. left: 0;
  664. width: 100%;
  665. z-index: 999999;
  666. padding-top: 40px;
  667. height: 85px;
  668. text {
  669. font-size: 18px;
  670. font-weight: bold;
  671. }
  672. }
  673. .partner-head {
  674. background: #FFFFFF;
  675. color: #333333;
  676. font-size: 14px;
  677. i {
  678. margin-left: 2px;
  679. display: inline-block;
  680. width: 0;
  681. height: 0;
  682. border: 4px solid;
  683. border-color: #666666;
  684. border-bottom: 4px solid transparent;
  685. border-right: 4px solid transparent;
  686. border-left: 4px solid transparent;
  687. }
  688. }
  689. .sum-insurance {
  690. padding: 10px 0;
  691. view {
  692. text-align: center;
  693. width: 33.33%;
  694. border-right: 1px solid #EEEEEE;
  695. text {
  696. display: block;
  697. }
  698. text:first-child {
  699. font-weight: 600;
  700. font-size: 18px;
  701. color: #333333;
  702. }
  703. text:last-child {
  704. font-size: 10px;
  705. color: #999999;
  706. }
  707. }
  708. }
  709. .card {
  710. background: #FFFFFF;
  711. border-radius: 5px 5px 5px 5px;
  712. margin: 10px;
  713. background-image: url("/static/card.png");
  714. background-size: 100% 100%;
  715. border-top: 1px solid;
  716. border-image: linear-gradient(270deg, rgba(45, 217, 255, 0), rgba(45, 217, 255, 1), rgba(45, 217, 255, 0)) 1 1;
  717. .card-title {
  718. text:first-child {
  719. font-weight: 600;
  720. font-size: 16px;
  721. color: #333333;
  722. }
  723. text:last-child {
  724. font-size: 14px;
  725. color: #666666;
  726. margin-left: 3px;
  727. }
  728. }
  729. .card-con {
  730. padding: 10px 0;
  731. view {
  732. text-align: center;
  733. width: 33.33%;
  734. border-right: 1px solid #EEEEEE;
  735. text {
  736. display: block;
  737. }
  738. text:first-child {
  739. font-weight: 600;
  740. font-size: 16px;
  741. color: #333333;
  742. line-height: 18px;
  743. }
  744. text:last-child {
  745. font-size: 10px;
  746. color: #999999;
  747. }
  748. }
  749. }
  750. .card-footer {
  751. border-top: 1px solid #EEEEEE;
  752. line-height: 42px;
  753. image {
  754. display: inline-block;
  755. width: 17px;
  756. height: 17px;
  757. vertical-align: middle;
  758. margin-right: 8px;
  759. }
  760. text {
  761. width: 49%;
  762. text-align: center;
  763. line-height: 40px;
  764. font-size: 16px;
  765. color: #333333;
  766. }
  767. }
  768. }
  769. .popup-code {
  770. text {
  771. display: block;
  772. border-bottom: 1px solid #EEEEEE;
  773. height: 50px;
  774. line-height: 50px;
  775. text-align: center;
  776. font-size: 16px;
  777. color: #666666;
  778. }
  779. }
  780. .ShowModalCode-style {
  781. text:first-of-type {
  782. display: block;
  783. font-weight: 600;
  784. font-size: 16px;
  785. color: #333333;
  786. border: 1px solid #EEEEEE;
  787. padding: 15px;
  788. text-align: center;
  789. }
  790. }
  791. .ShowModalCode-business {
  792. display: block;
  793. font-weight: 600;
  794. font-size: 16px;
  795. color: #333333;
  796. // border: 1px solid #EEEEEE;
  797. padding: 15px;
  798. text-align: center;
  799. }
  800. .ShowModalCode-con {
  801. padding: 30px;
  802. text-align: center;
  803. image {
  804. margin: 0 auto;
  805. margin-top: 15px;
  806. }
  807. }
  808. .uni-list {
  809. flex: 1;
  810. }
  811. .uni-list-item:first-child {
  812. /* #ifndef APP-NVUE */
  813. // display: flex;
  814. /* #endif */
  815. flex: 1;
  816. flex-direction: row;
  817. background-color: #FFFFFF;
  818. border-bottom-style: solid;
  819. border-bottom-width: 1px;
  820. border-bottom-color: #eee;
  821. }
  822. .uni-list-item__container {
  823. padding: 12px 15px;
  824. width: 100%;
  825. flex: 1;
  826. position: relative;
  827. /* #ifndef APP-NVUE */
  828. display: flex;
  829. box-sizing: border-box;
  830. /* #endif */
  831. flex-direction: row;
  832. justify-content: space-between;
  833. align-items: center;
  834. }
  835. .uni-list-item__notestext {
  836. padding: 0 15px 15px 15px;
  837. font-size: 15px;
  838. color: #666666;
  839. }
  840. .uni-list-item__content-title {
  841. font-size: 17px;
  842. color: #333333;
  843. }
  844. .ShowModalCode-sumbit {
  845. background: linear-gradient(132deg, #2DD9FF 0%, #2D6DFF 100%);
  846. border-radius: 5px 5px 5px 5px;
  847. height: 40px;
  848. line-height: 40px;
  849. font-size: 16px;
  850. color: #FFFFFF;
  851. margin: 15px;
  852. text-align: center;
  853. }</style>