fakePartner.vue 26 KB

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