partner.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  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="ShowModalCodeFun(2,1)">
  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,1)">
  49. <image src="/static/icon/hehuoren.png" mode=""></image>
  50. 合伙人({{ directLsitOne.partnerNumber || 0 }})
  51. </text>
  52. <text @click="closeInstitution(directLsitOne,1)">
  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="ShowModalCodeFun(3,2)">
  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,2)">
  89. <image src="/static/icon/hehuoren.png" mode=""></image>
  90. 合伙人({{ directLsitTwo.partnerNumber || 0 }})
  91. </text>
  92. <text @click="closeInstitution(directLsitTwo,2)">
  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="ShowModalCodeFun(4,3)">
  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,3)">
  130. <image src="/static/icon/hehuoren.png" mode=""></image>
  131. 合伙人({{ directLsitThree.partnerNumber || 0 }})
  132. </text>
  133. <text @click="closeInstitution(directLsitThree,3)">
  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,4)">
  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,4)">
  174. <image src="/static/icon/hehuoren.png" mode=""></image>
  175. 合伙人({{ directLsitFour.partnerNumber || 0 }})
  176. </text>
  177. <text @click="closeInstitution(directLsitFour,4)">
  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/jibie1.png" mode=""></image>
  193. </view>
  194. <view @click="ShowModalCodeFun(3,1)">
  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,1)">
  217. <image src="/static/icon/hehuoren.png" mode=""></image>
  218. 合伙人({{ directLsitTwo.partnerNumber || 0 }})
  219. </text>
  220. <text @click="closeInstitution(directLsitTwo,1)">
  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/jibie.png" mode=""></image>
  233. </view>
  234. <view @click="ShowModalCodeFun(4,2)">
  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,2)">
  257. <image src="/static/icon/hehuoren.png" mode=""></image>
  258. 合伙人({{ directLsitThree.partnerNumber || 0 }})
  259. </text>
  260. <text @click="closeInstitution(directLsitThree,2)">
  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/jibie3.png" mode=""></image>
  273. </view>
  274. <view @click="ShowModalCodeFun(5,3)" >
  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,3)">
  296. <image src="/static/icon/hehuoren.png" mode=""></image>
  297. 合伙人({{ directLsitFour.partnerNumber || 0 }})
  298. </text>
  299. <text @click="closeInstitution(directLsitFour,3)">
  300. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  301. 工作室({{ directLsitFour.workNumber || 0 }})
  302. </text>
  303. </view>
  304. </view>
  305. </view>
  306. <!-- 三级合伙人 -->
  307. <view v-if="userLevel == 3">
  308. <view class="card" >
  309. <view style="padding: 10px 15px 0 10px">
  310. <view class="dis j-s card-title">
  311. <view>
  312. <text>一级合伙人</text>
  313. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  314. src="/static/icon/jibie1.png" mode=""></image>
  315. </view>
  316. <view @click="ShowModalCodeFun(4,1)">
  317. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;"
  318. src="/static/icon/code2.png" mode=""></image>
  319. <text>招募码</text>
  320. </view>
  321. </view>
  322. <view class="card-con dis j-c a-c">
  323. <view>
  324. <text>{{ directLsitThree.teamManNum || 0 }}</text>
  325. <text>会员总人数</text>
  326. </view>
  327. <view>
  328. <text>{{ directLsitThree.sumPremium || 0 }}</text>
  329. <text>总保费</text>
  330. </view>
  331. <view style="border-right:none">
  332. <text>{{ directLsitThree.extractFee || 0 }}</text>
  333. <text>总佣金</text>
  334. </view>
  335. </view>
  336. </view>
  337. <view class="card-footer dis">
  338. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitThree,1)">
  339. <image src="/static/icon/hehuoren.png" mode=""></image>
  340. 合伙人({{ directLsitThree.partnerNumber || 0 }})
  341. </text>
  342. <text @click="closeInstitution(directLsitThree,1)">
  343. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  344. 工作室({{ directLsitThree.workNumber || 0 }})
  345. </text>
  346. </view>
  347. </view>
  348. <view class="card" >
  349. <view style="padding: 10px 15px 0 10px">
  350. <view class="dis j-s card-title">
  351. <view>
  352. <text>二级合伙人</text>
  353. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  354. src="/static/icon/jibie.png" mode=""></image>
  355. </view>
  356. <view @click="ShowModalCodeFun(5,2)" >
  357. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;" src="/static/icon/code2.png" mode=""></image>
  358. <text>招募码</text>
  359. </view>
  360. </view>
  361. <view class="card-con dis j-c a-c">
  362. <view>
  363. <text>{{ directLsitFour.teamManNum || 0 }}</text>
  364. <text>会员总人数</text>
  365. </view>
  366. <view>
  367. <text>{{ directLsitFour.sumPremium || 0 }}</text>
  368. <text>总保费</text>
  369. </view>
  370. <view style="border-right:none">
  371. <text>{{ directLsitFour.extractFee || 0 }}</text>
  372. <text>总佣金</text>
  373. </view>
  374. </view>
  375. </view>
  376. <view class="card-footer dis">
  377. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour,2)">
  378. <image src="/static/icon/hehuoren.png" mode=""></image>
  379. 合伙人({{ directLsitFour.partnerNumber || 0 }})
  380. </text>
  381. <text @click="closeInstitution(directLsitFour,2)">
  382. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  383. 工作室({{ directLsitFour.workNumber || 0 }})
  384. </text>
  385. </view>
  386. </view>
  387. </view>
  388. <!-- 四级合伙人 -->
  389. <view v-if="userLevel == 4">
  390. <view class="card" >
  391. <view style="padding: 10px 15px 0 10px">
  392. <view class="dis j-s card-title">
  393. <view>
  394. <text>一级合伙人</text>
  395. <image style="display: inline-block; width: 45px;height:18px;vertical-align: sub;"
  396. src="/static/icon/jibie1.png" mode=""></image>
  397. </view>
  398. <view @click="ShowModalCodeFun(5,1)" >
  399. <image style="display: inline-block; width: 13px;height:13px;vertical-align: -1px;" src="/static/icon/code2.png" mode=""></image>
  400. <text>招募码</text>
  401. </view>
  402. </view>
  403. <view class="card-con dis j-c a-c">
  404. <view>
  405. <text>{{ directLsitFour.teamManNum || 0 }}</text>
  406. <text>会员总人数</text>
  407. </view>
  408. <view>
  409. <text>{{ directLsitFour.sumPremium || 0 }}</text>
  410. <text>总保费</text>
  411. </view>
  412. <view style="border-right:none">
  413. <text>{{ directLsitFour.extractFee || 0 }}</text>
  414. <text>总佣金</text>
  415. </view>
  416. </view>
  417. </view>
  418. <view class="card-footer dis">
  419. <text style="border-right: 1px solid #EEEEEE;" @click="partnerDetail(directLsitFour,1)">
  420. <image src="/static/icon/hehuoren.png" mode=""></image>
  421. 合伙人({{ directLsitFour.partnerNumber || 0 }})
  422. </text>
  423. <text @click="closeInstitution(directLsitFour,1)">
  424. <image src="/static/icon/gongzuoshi.png" mode=""></image>
  425. 工作室({{ directLsitFour.workNumber || 0 }})
  426. </text>
  427. </view>
  428. </view>
  429. </view>
  430. </block>
  431. <!-- <u-loadmore style="margin-top: 5px;" v-if="directLsit.length!=0" :status="status" />
  432. <o-empty v-if="directLsit.length==0" /> -->
  433. </view>
  434. <u-popup v-model="ShowModal" mode="bottom" border-radius="15">
  435. <view class="popup-code">
  436. <text @click="ShowModalCodeFun(level)">合伙人</text>
  437. <text @click="ShowModalCodeworkFun">工作室</text>
  438. </view>
  439. </u-popup>
  440. <u-popup v-model="ShowModalCode" mode="bottom" border-radius="15">
  441. <view class="ShowModalCode-style ">
  442. <text>{{chineseNumbers[relativeLeavl]}}级合伙人招募码</text>
  443. <view class=" ShowModalCode-con">
  444. <view>扫码加入</view>
  445. <image :src="partnerImg" mode="widthFix" lazy-load style="width: 150px;"></image>
  446. </view>
  447. </view>
  448. </u-popup>
  449. <u-popup v-model="ShowModalCodebusiness" mode="bottom" border-radius="15">
  450. <view>
  451. <text class=" ShowModalCode-business">工作室业务</text>
  452. <view>
  453. <radio-group class="uni-list" @change="styleChange">
  454. <view v-for="(item, index) in styles" :key="index" class="uni-list-item">
  455. <view class="uni-list-item__container">
  456. <view class="uni-list-item__content">
  457. <text class="uni-list-item__content-title">{{ item.text }}</text>
  458. </view>
  459. <view class="uni-list-item__extra">
  460. <radio :value="item.value" :checked="item.checked" />
  461. </view>
  462. </view>
  463. <view class="uni-list-item__notestext">{{ item.notestext }}</view>
  464. </view>
  465. </radio-group>
  466. </view>
  467. <view class="ShowModalCode-sumbit" @click="ShowModalCodeSumbit()">确定</view>
  468. </view>
  469. </u-popup>
  470. <u-popup v-model="ShowModalCode1" mode="bottom" border-radius="15">
  471. <view class="ShowModalCode-style ">
  472. <text>工作室招募码</text>
  473. <view class=" ShowModalCode-con">
  474. <view>扫码加入</view>
  475. <image :src="workImg" mode="widthFix" lazy-load style="width: 150px;"></image>
  476. </view>
  477. </view>
  478. </u-popup>
  479. <u-popup mode="center" ref="alertDialog" type="dialog">
  480. <uni-popup-dialog type="warn" cancelText="取消" confirmText="确定" title=" " :content="dialogContent" @confirm="dialogConfirm"
  481. @close="dialogClose"></uni-popup-dialog>
  482. </u-popup>
  483. </view>
  484. </template>
  485. <script>
  486. import myDatePicker from '../components/date-picker.vue';
  487. import seach from '../components/seach.vue';
  488. import QR from "@/common/wxqrcode.js"
  489. import {
  490. mapState,
  491. mapMutations
  492. } from "vuex"
  493. // import uniPopup from 'x../../../components/';
  494. // import card from '../components/card.vue'
  495. export default {
  496. components: { myDatePicker, seach },
  497. computed: {
  498. ...mapState(['userInfo', "userCheckInfo",]),
  499. },
  500. data() {
  501. return {
  502. dialogContent:'',
  503. ShowalertDialog:false,
  504. relativeLeavl:null,
  505. ShowModal: false,
  506. ShowModalCode: false,
  507. ShowModalCode1: false,
  508. ShowModalCodebusiness: false,
  509. chineseNumbers:[ '零', '一', '二', '三', '四', '五', '六', '七', '八', '九'],
  510. headerStyle: {
  511. backgroundColor: 'transparent',
  512. backgroundImage: 'url("/static/beijing (2).png")',
  513. backgroundSize: 'cover',
  514. backgroundPosition: '',
  515. boxShadow: ''
  516. // 其他样式属性...
  517. },
  518. teamTabIndex: 0,
  519. directLsit: [
  520. {
  521. partnerNumber: 1
  522. },
  523. {
  524. partnerNumber: 2
  525. }
  526. ],
  527. source: 0,
  528. totalPages: 0,
  529. totalSize: 0,
  530. status: 'loadmore',
  531. pageRequest: { //查询的默认条件
  532. pageNum: 1,
  533. pageSize: 20,
  534. userName: ''
  535. },
  536. partnerImg: '',
  537. workImg: '',
  538. directLsitOne: {},
  539. directLsitTwo: {},
  540. directLsitThree: {},
  541. directLsitFour: {},
  542. userLevel: "",
  543. styles: [{
  544. value: '1',
  545. text: '渠道',
  546. notestext: '团队长加出单员模式,无分销模式,结费都在团队长处。',
  547. checked: true
  548. },
  549. {
  550. value: '2',
  551. notestext: '团队长加代理人模式,三级分销模式,结费方式为个人,有佣金。',
  552. text: '个代'
  553. }
  554. ],
  555. deptSource: 1
  556. }
  557. },
  558. async onLoad(params) {
  559. this.queryData()
  560. this.userLevel = this.userInfo.sysUser.level
  561. },
  562. methods: {
  563. dialogClose(){
  564. this.$refs.alertDialog.close()
  565. },
  566. styleChange(e) {
  567. this.deptSource = e.detail.value
  568. },
  569. dialogConfirm (){
  570. this.ShowModalCode = true
  571. this.$refs.alertDialog.close()
  572. this.partnerImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applypartner?level=" + this.level + '&userId=' + this.userInfo.sysUser.userId, {
  573. size: parseInt(200) //二维码大小
  574. })
  575. },
  576. ShowModalCodeFun(level,relativeLeavl) {
  577. // 绝对等级:level 相对等级:relativeLeavl
  578. this.level=level
  579. this.relativeLeavl=relativeLeavl
  580. // this.ShowalertDialog=true
  581. this.dialogContent=`是否招募${this.chineseNumbers[relativeLeavl]}级合伙人?`
  582. this.$refs.alertDialog.open()
  583. },
  584. ShowModalCodeSumbit(){
  585. this. ShowModalCode1 = true
  586. this.workImg = QR.createQrCodeImg(this.$base.h5BaseUrl + "/#/pages/index/applystudio?deptSource=" + this.deptSource + '&userId=' + this.userInfo.sysUser.userId, {
  587. size: parseInt(200) //二维码大小
  588. })
  589. },
  590. ShowModalCodeworkFun() {
  591. this.ShowModalCodebusiness = true
  592. this.deptSource = 1
  593. },
  594. // partnersAndStudios(level){
  595. // this.level=level
  596. // this.ShowModal = true
  597. // },
  598. // recruitment(level) {
  599. // this.level = level
  600. // this.ShowModalCodeFun(level)
  601. // },
  602. back() {
  603. uni.navigateBack({
  604. delta: 1, // 返回的页面数,如果是1表示返回上一页
  605. success: function () { }
  606. });
  607. },
  608. partnerDetail(item,level) {
  609. if (item.partnerNumber) {
  610. item.partnerType=level
  611. uni.navigateTo({
  612. url: "/pages/institutional/partnerDetail?key=" + encodeURIComponent(JSON.stringify(item))
  613. })
  614. }
  615. },
  616. closeInstitution(item,level) {
  617. if (item.leaderIds.length > 0) {
  618. item.level=level
  619. uni.navigateTo({
  620. url: "/pages/institutional/institutionalTeam?key=" + encodeURIComponent(JSON.stringify(item))
  621. })
  622. }
  623. },
  624. // onReachBottom() {
  625. // if (this.pageRequest.pageNum >= this.totalPages) return;
  626. // this.status = 'loading';
  627. // this.pageRequest.pageNum = ++this.pageRequest.pageNum;
  628. // setTimeout(async () => {
  629. // let res = await this.$http.post('/sysPartner/querySysPartnerAPPPage', {
  630. // ...this.pageRequest,
  631. // source:this.source
  632. // });
  633. // if (res.code == '200') {
  634. // this.totalSize = res.data.totalSize;
  635. // this.directLsit = [...this.directLsit, ...res.data.content];
  636. // }
  637. // if (this.pageRequest.pageNum >= this.totalPages) this.status = 'nomore';
  638. // else this.status = 'loading';
  639. // }, 1000)
  640. // },
  641. async queryData(data) {
  642. let params = {
  643. beginTime: data && data.beginTime || '',
  644. endTime: data && data.endTime || '',
  645. partnerType: data && data.partnerType || '',
  646. industrySector: data && data.industrySector || '',
  647. // ...this.pageRequest
  648. }
  649. let res = await this.$http.post('/APPPartner/info', params);
  650. if (res.code == '200') {
  651. res.data.forEach(e => {
  652. switch (e.partnerType) {
  653. case 2:
  654. this.directLsitOne = e
  655. break;
  656. case 3:
  657. this.directLsitTwo = e
  658. break;
  659. case 4:
  660. this.directLsitThree = e
  661. break;
  662. case 5:
  663. this.directLsitFour = e
  664. break;
  665. default:
  666. break;
  667. }
  668. })
  669. // this.directLsit=res.data
  670. // this.totalPages = res.data.totalPages;
  671. // this.totalSize = res.data.totalSize;
  672. // if (this.pageRequest.pageNum >= res.data.totalPages) this.status = 'nomore';
  673. // else this.status = 'loadmore';
  674. }
  675. },
  676. }
  677. }
  678. </script>
  679. <style lang="scss" scoped>
  680. .headers {
  681. position: fixed;
  682. top: 0;
  683. left: 0;
  684. width: 100%;
  685. z-index: 999999;
  686. padding-top: 40px;
  687. height: 85px;
  688. text {
  689. font-size: 18px;
  690. font-weight: bold;
  691. }
  692. }
  693. .partner-head {
  694. background: #FFFFFF;
  695. color: #333333;
  696. font-size: 14px;
  697. i {
  698. margin-left: 2px;
  699. display: inline-block;
  700. width: 0;
  701. height: 0;
  702. border: 4px solid;
  703. border-color: #666666;
  704. border-bottom: 4px solid transparent;
  705. border-right: 4px solid transparent;
  706. border-left: 4px solid transparent;
  707. }
  708. }
  709. .sum-insurance {
  710. padding: 10px 0;
  711. view {
  712. text-align: center;
  713. width: 33.33%;
  714. border-right: 1px solid #EEEEEE;
  715. text {
  716. display: block;
  717. }
  718. text:first-child {
  719. font-weight: 600;
  720. font-size: 18px;
  721. color: #333333;
  722. }
  723. text:last-child {
  724. font-size: 10px;
  725. color: #999999;
  726. }
  727. }
  728. }
  729. .card {
  730. background: #FFFFFF;
  731. border-radius: 5px 5px 5px 5px;
  732. margin: 10px;
  733. background-image: url("/static/card.png");
  734. background-size: 100% 100%;
  735. border-top: 1px solid;
  736. border-image: linear-gradient(270deg, rgba(45, 217, 255, 0), rgba(45, 217, 255, 1), rgba(45, 217, 255, 0)) 1 1;
  737. .card-title {
  738. text:first-child {
  739. font-weight: 600;
  740. font-size: 16px;
  741. color: #333333;
  742. }
  743. text:last-child {
  744. font-size: 14px;
  745. color: #666666;
  746. margin-left: 3px;
  747. }
  748. }
  749. .card-con {
  750. padding: 10px 0;
  751. view {
  752. text-align: center;
  753. width: 33.33%;
  754. border-right: 1px solid #EEEEEE;
  755. text {
  756. display: block;
  757. }
  758. text:first-child {
  759. font-weight: 600;
  760. font-size: 16px;
  761. color: #333333;
  762. line-height: 18px;
  763. }
  764. text:last-child {
  765. font-size: 10px;
  766. color: #999999;
  767. }
  768. }
  769. }
  770. .card-footer {
  771. border-top: 1px solid #EEEEEE;
  772. line-height: 42px;
  773. image {
  774. display: inline-block;
  775. width: 17px;
  776. height: 17px;
  777. vertical-align: middle;
  778. margin-right: 8px;
  779. }
  780. text {
  781. width: 49%;
  782. text-align: center;
  783. line-height: 40px;
  784. font-size: 16px;
  785. color: #333333;
  786. }
  787. }
  788. }
  789. .popup-code {
  790. text {
  791. display: block;
  792. border-bottom: 1px solid #EEEEEE;
  793. height: 50px;
  794. line-height: 50px;
  795. text-align: center;
  796. font-size: 16px;
  797. color: #666666;
  798. }
  799. }
  800. .ShowModalCode-style {
  801. text:first-of-type {
  802. display: block;
  803. font-weight: 600;
  804. font-size: 16px;
  805. color: #333333;
  806. border: 1px solid #EEEEEE;
  807. padding: 15px;
  808. text-align: center;
  809. }
  810. }
  811. .popup-code {
  812. text {
  813. display: block;
  814. border-bottom: 1px solid #EEEEEE;
  815. height: 50px;
  816. line-height: 50px;
  817. text-align: center;
  818. font-size: 16px;
  819. color: #666666;
  820. }
  821. }
  822. .ShowModalCode-con {
  823. padding: 30px;
  824. text-align: center;
  825. image {
  826. margin: 0 auto;
  827. margin-top: 15px;
  828. }
  829. }
  830. </style>