fakePartner.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  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. </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. parentData:{}
  557. }
  558. },
  559. async onLoad(e) {
  560. this.parentData = JSON.parse(decodeURIComponent(e.key));
  561. this.userLevel = this.parentData.level
  562. this.queryData()
  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. userId:this.parentData.userId
  655. // ...this.pageRequest
  656. }
  657. let res = await this.$http.post('/APPPartner/info', params);
  658. if (res.code == '200') {
  659. res.data.forEach(e => {
  660. switch (e.partnerType) {
  661. case 2:
  662. this.directLsitOne = e
  663. break;
  664. case 3:
  665. this.directLsitTwo = e
  666. break;
  667. case 4:
  668. this.directLsitThree = e
  669. break;
  670. case 5:
  671. this.directLsitFour = e
  672. break;
  673. default:
  674. break;
  675. }
  676. })
  677. // this.directLsit=res.data
  678. // this.totalPages = res.data.totalPages;
  679. // this.totalSize = res.data.totalSize;
  680. // if (this.pageRequest.pageNum >= res.data.totalPages) this.status = 'nomore';
  681. // else this.status = 'loadmore';
  682. }
  683. },
  684. }
  685. }
  686. </script>
  687. <style lang="scss" scoped>
  688. .headers {
  689. position: fixed;
  690. top: 0;
  691. left: 0;
  692. width: 100%;
  693. z-index: 999999;
  694. padding-top: 40px;
  695. height: 85px;
  696. text:nth-child(2){
  697. font-size: 18px;
  698. font-weight: bold;
  699. }
  700. }
  701. .partner-head {
  702. background: #FFFFFF;
  703. color: #333333;
  704. font-size: 14px;
  705. i {
  706. margin-left: 2px;
  707. display: inline-block;
  708. width: 0;
  709. height: 0;
  710. border: 4px solid;
  711. border-color: #666666;
  712. border-bottom: 4px solid transparent;
  713. border-right: 4px solid transparent;
  714. border-left: 4px solid transparent;
  715. }
  716. }
  717. .sum-insurance {
  718. padding: 10px 0;
  719. view {
  720. text-align: center;
  721. width: 33.33%;
  722. border-right: 1px solid #EEEEEE;
  723. text {
  724. display: block;
  725. }
  726. text:first-child {
  727. font-weight: 600;
  728. font-size: 18px;
  729. color: #333333;
  730. }
  731. text:last-child {
  732. font-size: 10px;
  733. color: #999999;
  734. }
  735. }
  736. }
  737. .card {
  738. background: #FFFFFF;
  739. border-radius: 5px 5px 5px 5px;
  740. margin: 10px;
  741. background-image: url("/static/card.png");
  742. background-size: 100% 100%;
  743. border-top: 1px solid;
  744. border-image: linear-gradient(270deg, rgba(45, 217, 255, 0), rgba(45, 217, 255, 1), rgba(45, 217, 255, 0)) 1 1;
  745. .card-title {
  746. text:first-child {
  747. font-weight: 600;
  748. font-size: 16px;
  749. color: #333333;
  750. }
  751. text:last-child {
  752. font-size: 14px;
  753. color: #666666;
  754. margin-left: 3px;
  755. }
  756. }
  757. .card-con {
  758. padding: 10px 0;
  759. view {
  760. text-align: center;
  761. width: 33.33%;
  762. border-right: 1px solid #EEEEEE;
  763. text {
  764. display: block;
  765. }
  766. text:first-child {
  767. font-weight: 600;
  768. font-size: 16px;
  769. color: #333333;
  770. line-height: 18px;
  771. }
  772. text:last-child {
  773. font-size: 10px;
  774. color: #999999;
  775. }
  776. }
  777. }
  778. .card-footer {
  779. border-top: 1px solid #EEEEEE;
  780. line-height: 42px;
  781. image {
  782. display: inline-block;
  783. width: 17px;
  784. height: 17px;
  785. vertical-align: middle;
  786. margin-right: 8px;
  787. }
  788. text {
  789. width: 49%;
  790. text-align: center;
  791. line-height: 40px;
  792. font-size: 16px;
  793. color: #333333;
  794. }
  795. }
  796. }
  797. .popup-code {
  798. text {
  799. display: block;
  800. border-bottom: 1px solid #EEEEEE;
  801. height: 50px;
  802. line-height: 50px;
  803. text-align: center;
  804. font-size: 16px;
  805. color: #666666;
  806. }
  807. }
  808. .ShowModalCode-style {
  809. text:first-of-type {
  810. display: block;
  811. font-weight: 600;
  812. font-size: 16px;
  813. color: #333333;
  814. border: 1px solid #EEEEEE;
  815. padding: 15px;
  816. text-align: center;
  817. }
  818. }
  819. .popup-code {
  820. text {
  821. display: block;
  822. border-bottom: 1px solid #EEEEEE;
  823. height: 50px;
  824. line-height: 50px;
  825. text-align: center;
  826. font-size: 16px;
  827. color: #666666;
  828. }
  829. }
  830. .ShowModalCode-con {
  831. padding: 30px;
  832. text-align: center;
  833. image {
  834. margin: 0 auto;
  835. margin-top: 15px;
  836. }
  837. }
  838. </style>