partner.vue 26 KB

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