index.vue 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838
  1. <template>
  2. <view style="padding-bottom: 40rpx">
  3. <!-- 用户端 -->
  4. <block v-if="userType == 1">
  5. <view class="info flex justify-center">
  6. <view class="info-box">
  7. <view
  8. class="info-box-btn flex justify-end align-center"
  9. v-if="token && XCXIsSelect != '否'"
  10. >
  11. <image
  12. src="../../static/images/my/icon/selectUser.png"
  13. style="width: 40rpx; height: 100%; margin-right: 40rpx"
  14. mode=""
  15. @click="bindQe(userType)"
  16. >
  17. </image>
  18. <!-- <image src="../../static/images/my/icon/set.png" style="width: 44rpx;height: 100%;" mode="">
  19. </image> -->
  20. </view>
  21. <view class="info-box-header flex justify-between align-center">
  22. <view style="width: 60%; height: 100%" class="flex align-center">
  23. <view class="info-box-header-l">
  24. <image
  25. :src="avatar ? avatar : '../../static/logo.png'"
  26. @click="goNav('/pages/my/userinfo')"
  27. mode=""
  28. ></image>
  29. </view>
  30. <view class="info-box-header-r">
  31. <view
  32. class="info-box-header-r-name flex align-center"
  33. @click="goNav('/pages/my/userinfo')"
  34. >
  35. <view
  36. class=""
  37. style="
  38. height: fit-content;
  39. overflow: hidden;
  40. white-space: nowrap;
  41. text-overflow: ellipsis;
  42. -o-text-overflow: ellipsis;
  43. "
  44. >
  45. {{ userName }}
  46. </view>
  47. <image
  48. v-if="isVip == true"
  49. src="../../static/images/my/isVip.png"
  50. style="margin-left: 10rpx; width: 80rpx; height: 30rpx"
  51. mode=""
  52. ></image>
  53. </view>
  54. <view
  55. v-if="token && XCXIsSelect != '否'"
  56. class="info-box-header-r-bj flex align-center"
  57. @click="goNav('/package/my/resume')"
  58. >
  59. <u-icon name="edit-pen" color="#1D1D1D" size="28"></u-icon>
  60. 编辑简历
  61. </view>
  62. </view>
  63. </view>
  64. <view
  65. class="flex align-center"
  66. @click="currenStatus()"
  67. v-if="token && XCXIsSelect != '否'"
  68. >
  69. <image
  70. src="../../static/images/my/rightLeft.png"
  71. style="width: 50rpx; height: 50rpx"
  72. mode=""
  73. ></image>
  74. {{
  75. resumesStatus == 1
  76. ? "离职-正在找工作"
  77. : resumesStatus == 2
  78. ? "在职-考虑机会"
  79. : "在职-暂不考虑"
  80. }}
  81. </view>
  82. </view>
  83. <view
  84. class="info-box-num flex align-center justify-between"
  85. v-if="XCXIsSelect != '否'"
  86. >
  87. <view
  88. class="info-box-num-td"
  89. @click="goNav('/pages/my/onlineResume')"
  90. >
  91. <view class="info-box-num-td-num">
  92. 1
  93. </view>
  94. <view class="info-box-num-td-name"> 在线简历 </view>
  95. </view>
  96. <view
  97. class="info-box-num-td"
  98. @click="gojiLuList('/package/records/records', '投递记录')"
  99. >
  100. <view class="info-box-num-td-num">
  101. {{ deliveryCount }}
  102. </view>
  103. <view class="info-box-num-td-name"> 投递记录 </view>
  104. </view>
  105. <view
  106. class="info-box-num-td"
  107. @click="gojiLuList('/package/records/records', '浏览记录')"
  108. >
  109. <view class="info-box-num-td-num">
  110. {{ browseCount }}
  111. </view>
  112. <view class="info-box-num-td-name"> 浏览记录 </view>
  113. </view>
  114. <view
  115. class="info-box-num-td"
  116. @click="gojiLuList('/package/records/records', '我的收藏')"
  117. >
  118. <view class="info-box-num-td-num">
  119. {{ collectionCount }}
  120. </view>
  121. <view class="info-box-num-td-name"> 我的收藏 </view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <!-- vip -->
  127. <view
  128. class="vip flex justify-center"
  129. @click="goNav('/my/vip/index')"
  130. v-if="XCXIsSelect != '否'"
  131. >
  132. <view class="vip-box">
  133. <image
  134. class="vip-box-bg"
  135. src="../../static/images/my/icon/vip.png"
  136. mode=""
  137. ></image>
  138. <view class="vip-box-cont flex justify-center">
  139. <view
  140. class="flex justify-between align-center"
  141. style="width: 626rpx; z-index: 9; margin-top: 30rpx"
  142. >
  143. <view class="flex align-center">
  144. <image
  145. src="../../static/images/my/icon/vip2.png"
  146. style="width: 32rpx; height: 29rpx; margin-right: 5rpx"
  147. mode=""
  148. ></image>
  149. <image
  150. src="../../static/images/my/icon/vip3.png"
  151. style="width: 140rpx; height: 29rpx; margin-right: 20rpx"
  152. mode=""
  153. ></image>
  154. <text style="color: #914016; font-size: 24rpx">开通享受特权找工作</text>
  155. </view>
  156. <view
  157. class="flex align-center"
  158. style="
  159. color: #914016;
  160. font-size: 24rpx;
  161. font-weight: bold;
  162. z-index: 999;
  163. margin-right: 10rpx;
  164. "
  165. >
  166. {{ isVip == true ? "已开通" : "去开通" }}
  167. <u-icon name="play-right-fill" color="#914016" size="18"></u-icon>
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. <!-- 求职服务 -->
  174. <view
  175. class="jobServer flex justify-center"
  176. v-if="XCXIsSelect != '否'"
  177. :style="XCXIsSelect == '否' ? 'margin-top:30rpx' : ''"
  178. >
  179. <view class="jobServer-box flex justify-center">
  180. <view class="jobServer-box-c">
  181. <view class="jobServer-box-title"> 求职服务 </view>
  182. <view class="jobServer-box-btn flex justify-between">
  183. <view
  184. class="jobServer-box-btn-item flex justify-center flex-wrap"
  185. @click="goNav('/package/my/resume')"
  186. >
  187. <image src="../../static/images/my/icon/server1.png" mode=""></image>
  188. <view class=""> 我的简历 </view>
  189. </view>
  190. <view
  191. class="jobServer-box-btn-item flex justify-center flex-wrap"
  192. @click="refresh()"
  193. >
  194. <image src="../../static/images/my/icon/server2.png" mode=""></image>
  195. <view class=""> 简历刷新 </view>
  196. </view>
  197. <view
  198. class="jobServer-box-btn-item flex justify-center flex-wrap"
  199. @click="goNav('/package/my/pingbi')"
  200. >
  201. <image src="../../static/images/my/icon/server3.png" mode=""></image>
  202. <view class=""> 屏蔽公司 </view>
  203. </view>
  204. <view
  205. class="jobServer-box-btn-item flex justify-center flex-wrap"
  206. @click="goNav('/my/jilu/jiluUser')"
  207. >
  208. <image src="../../static/images/my/icon/server4.png" mode=""></image>
  209. <view class=""> 我的面试 </view>
  210. </view>
  211. </view>
  212. </view>
  213. </view>
  214. </view>
  215. <!-- 更多工具 -->
  216. <view class="utils flex justify-center">
  217. <view class="utils-box flex justify-center">
  218. <view class="utils-box-c">
  219. <view class="utils-box-c-t flex justify-between align-center">
  220. <!-- <view class="flex justify-center flex-wrap" style="width: 102rpx;" @click="goNav('/package/my/resume')">
  221. <image src="../../static/images/my/icon/utils/utils1.png"
  222. style="width: 54rpx;height: 54rpx;" mode=""></image>
  223. <view class="" style="color: #1A1A1A;font-size: 24rpx;margin-top: 15rpx;">
  224. 我的简历
  225. </view>
  226. </view> -->
  227. <view
  228. class="flex justify-center flex-wrap"
  229. style="width: 112rpx"
  230. @click="goNavNoLogin('/pages/my/invitationUser')"
  231. >
  232. <image
  233. src="../../static/images/my/icon/utils/utils2.png"
  234. style="width: 54rpx; height: 54rpx"
  235. mode=""
  236. ></image>
  237. <view
  238. class=""
  239. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  240. >
  241. 邀请好友
  242. </view>
  243. </view>
  244. <view
  245. v-if="XCXIsSelect != '否'"
  246. class="flex justify-center flex-wrap"
  247. style="width: 112rpx"
  248. @click="goNavNoLogin('/my/setting/feedbackIndex')"
  249. >
  250. <image
  251. src="../../static/images/my/icon/utils/help.png"
  252. style="width: 54rpx; height: 54rpx"
  253. mode=""
  254. ></image>
  255. <view
  256. class=""
  257. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  258. >
  259. 帮助中心
  260. </view>
  261. </view>
  262. <view
  263. class="flex justify-center flex-wrap"
  264. style="width: 112rpx"
  265. @click="goChat"
  266. >
  267. <image
  268. src="../../static/images/my/icon/utils/utils4.png"
  269. style="width: 54rpx; height: 54rpx"
  270. mode=""
  271. ></image>
  272. <view
  273. class=""
  274. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  275. >
  276. 联系客服
  277. </view>
  278. </view>
  279. <view
  280. class="flex justify-center flex-wrap"
  281. style="width: 112rpx"
  282. @click="goNavNoLogin('/my/setting/mimi')"
  283. >
  284. <image
  285. src="../../static/images/my/icon/utils/utils5.png"
  286. style="width: 54rpx; height: 54rpx"
  287. mode=""
  288. ></image>
  289. <view
  290. class=""
  291. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  292. >
  293. 隐私协议
  294. </view>
  295. </view>
  296. </view>
  297. <view class="utils-box-c-b flex justify-between align-center">
  298. <!-- <view class="flex justify-center flex-wrap" style="width: 112rpx;" @click="goNav('/my/setting/xieyi')">
  299. <image src="../../static/images/my/icon/utils/utils6.png"
  300. style="width: 54rpx;height: 54rpx;" mode=""></image>
  301. <view class="" style="color: #1A1A1A;font-size: 24rpx;margin-top: 15rpx;">
  302. 用户协议
  303. </view>
  304. </view> -->
  305. <view
  306. class="flex justify-center flex-wrap"
  307. style="width: 112rpx"
  308. @click="goNavNoLogin('/my/setting/xieyi')"
  309. >
  310. <image
  311. src="../../static/images/my/icon/utils/utils6.png"
  312. style="width: 54rpx; height: 54rpx"
  313. mode=""
  314. ></image>
  315. <view
  316. class=""
  317. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  318. >
  319. 用户协议
  320. </view>
  321. </view>
  322. <view
  323. class="flex justify-center flex-wrap"
  324. style="width: 112rpx"
  325. @click="goNavNoLogin('/pages/my/jobApplicant/startPage')"
  326. >
  327. <!-- goNavNoLogin('/my/setting/about') -->
  328. <!-- pages/my/jobApplicant/startPage -->
  329. <image
  330. src="../../static/images/my/icon/utils/utils7.png"
  331. style="width: 54rpx; height: 54rpx"
  332. mode=""
  333. ></image>
  334. <view
  335. class=""
  336. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  337. >
  338. 关于我们
  339. </view>
  340. </view>
  341. <view
  342. v-if="token"
  343. class="flex justify-center flex-wrap"
  344. style="width: 112rpx"
  345. @click="goOut()"
  346. >
  347. <image
  348. src="../../static/images/my/icon/utils/utils8.png"
  349. style="width: 54rpx; height: 54rpx"
  350. mode=""
  351. ></image>
  352. <view
  353. class=""
  354. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  355. >
  356. 退出登录
  357. </view>
  358. </view>
  359. <view
  360. class="flex justify-center flex-wrap"
  361. style="width: 112rpx"
  362. @click="goNav('/pages/my/ruleCenter')"
  363. >
  364. <image
  365. src="../../static/images/my/icon/utils/utils5.png"
  366. style="width: 54rpx; height: 54rpx"
  367. mode=""
  368. ></image>
  369. <view
  370. class=""
  371. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  372. >
  373. 规则中心
  374. </view>
  375. </view>
  376. <!-- <view class="flex justify-center flex-wrap" style="width: 112rpx;height: 0;" v-if="!token">
  377. </view>
  378. <view class="flex justify-center flex-wrap" style="width: 112rpx;height: 0;">
  379. </view> -->
  380. </view>
  381. </view>
  382. </view>
  383. </view>
  384. </block>
  385. <!-- 企业端 -->
  386. <block v-else>
  387. <view class="info flex justify-center">
  388. <view class="info-box">
  389. <view
  390. v-if="XCXIsSelect != '否'"
  391. class="info-box-btn flex justify-end align-center"
  392. >
  393. <image
  394. src="../../static/images/my/icon/selectUser.png"
  395. style="width: 40rpx; height: 100%; margin-right: 40rpx"
  396. @click="bindQe(userType)"
  397. mode=""
  398. >
  399. </image>
  400. <!-- <image src="../../static/images/my/icon/set.png" style="width: 44rpx;height: 100%;" mode="">
  401. </image> -->
  402. </view>
  403. <view class="info-box-header flex align-center">
  404. <view class="info-box-header-l">
  405. <image
  406. :src="avatar ? avatar : '../../static/logo.png'"
  407. @click="goNav('/pages/my/userinfo')"
  408. mode=""
  409. ></image>
  410. </view>
  411. <view class="info-box-header-r">
  412. <view class="info-box-header-r-name flex align-center">
  413. {{ userName }}
  414. <image
  415. v-if="isCompanyVip"
  416. style="margin-left: 10rpx; width: 80rpx; height: 30rpx"
  417. src="../../static/images/my/isVip.png"
  418. mode=""
  419. ></image>
  420. </view>
  421. <view
  422. v-if="XCXIsSelect != '否'"
  423. class="info-box-header-r-bj flex align-center"
  424. @click="goNav('/my/renzheng/index')"
  425. >
  426. <u-icon name="edit-pen" color="#1D1D1D" size="28"></u-icon>
  427. 编辑企业信息
  428. </view>
  429. </view>
  430. </view>
  431. </view>
  432. </view>
  433. <!-- vip -->
  434. <view
  435. class="vip flex justify-center"
  436. @click="goNav('/my/vip/index')"
  437. v-if="XCXIsSelect != '否'"
  438. >
  439. <view class="vip-box">
  440. <image
  441. class="vip-box-bg"
  442. src="../../static/images/my/icon/vip.png"
  443. mode=""
  444. ></image>
  445. <view class="vip-box-cont flex justify-center">
  446. <view
  447. class="flex justify-between align-center"
  448. style="width: 626rpx; z-index: 9; margin-top: 30rpx"
  449. >
  450. <view class="flex align-center">
  451. <image
  452. src="../../static/images/my/icon/vip2.png"
  453. style="width: 32rpx; height: 29rpx; margin-right: 5rpx"
  454. mode=""
  455. ></image>
  456. <image
  457. src="../../static/images/my/icon/vip4.png"
  458. style="width: 140rpx; height: 29rpx; margin-right: 20rpx"
  459. mode=""
  460. ></image>
  461. <text style="color: #914016; font-size: 24rpx">尊享超多特权</text>
  462. </view>
  463. <view
  464. class="flex align-center"
  465. style="
  466. color: #914016;
  467. font-size: 24rpx;
  468. font-weight: bold;
  469. z-index: 999;
  470. margin-right: 10rpx;
  471. "
  472. >
  473. {{ isCompanyVip == true ? "已开通" : "去开通" }}
  474. <u-icon name="play-right-fill" color="#914016" size="18"></u-icon>
  475. </view>
  476. </view>
  477. </view>
  478. </view>
  479. </view>
  480. <!-- 求职服务 -->
  481. <view
  482. class="jobServer flex justify-center"
  483. v-if="XCXIsSelect != '否'"
  484. :style="XCXIsSelect == '否' ? 'margin-top:30rpx' : ''"
  485. >
  486. <view class="jobServer-box flex justify-center">
  487. <view class="jobServer-box-c">
  488. <view class="jobServer-box-title"> 招聘服务 </view>
  489. <view class="jobServer-box-btn flex justify-between">
  490. <view
  491. class="jobServer-box-btn-item flex justify-center flex-wrap"
  492. @click="goNavStatus('/package/addJob/addJob')"
  493. >
  494. <image src="../../static/images/my/icon/server1.png" mode=""></image>
  495. <view class=""> 发布招聘 </view>
  496. </view>
  497. <view
  498. class="jobServer-box-btn-item flex justify-center flex-wrap"
  499. @click="refreshJob()"
  500. >
  501. <image src="../../static/images/my/icon/server2.png" mode=""></image>
  502. <view class=""> 招聘刷新 </view>
  503. </view>
  504. <view
  505. class="jobServer-box-btn-item flex justify-center flex-wrap"
  506. @click="goNav('/my/renzheng/index')"
  507. >
  508. <image src="../../static/images/my/icon/server3.png" mode=""></image>
  509. <view class=""> 认证中心 </view>
  510. </view>
  511. <view
  512. class="jobServer-box-btn-item flex justify-center flex-wrap"
  513. @click="goNav('/package/deliveryRecord/deliveryRecord')"
  514. >
  515. <image src="../../static/images/my/icon/server4.png" mode=""></image>
  516. <view class=""> 已投简历 </view>
  517. </view>
  518. </view>
  519. </view>
  520. </view>
  521. </view>
  522. <!-- 我的钱包 -->
  523. <view class="money flex justify-center" v-if="XCXIsSelect != '否'">
  524. <view class="money-box flex justify-center align-center">
  525. <view class="money-box-c flex justify-between">
  526. <view
  527. class="money-box-c-l flex flex-wrap"
  528. @click="goNav('/my/wallet/wallet')"
  529. >
  530. <view class="money-box-c-l-name"> 我的钻石 </view>
  531. <view class="money-box-c-l-price flex align-center">
  532. {{ money }}
  533. <text style="margin-left: 10rpx">钻石</text>
  534. </view>
  535. </view>
  536. <view class="money-box-c-r flex flex-wrap" @click="goNav('/my/gird/browse')">
  537. <view class="money-box-c-r-name"> 浏览记录 </view>
  538. <view class="money-box-c-r-more"> 点击查看更多 </view>
  539. </view>
  540. </view>
  541. </view>
  542. </view>
  543. <!-- 我的项目 -->
  544. <view
  545. class="jobServer flex justify-center"
  546. style="margin-top: 20rpx"
  547. v-if="XCXIsSelect != '否'"
  548. >
  549. <view class="jobServer-box flex justify-center">
  550. <view class="jobServer-box-c" @click="goNav('/my/order/index')">
  551. <view class="jobServer-box-title"> 我的招聘 </view>
  552. <view class="jobServer-box-btn flex justify-between">
  553. <view
  554. class="jobServer-box-btn-item flex justify-center flex-wrap item-width"
  555. @click.stop="goNav('/my/order/index?index=' + 1)"
  556. >
  557. <image
  558. src="../../static/images/my/my/my1.png"
  559. style="width: 46rpx; height: 38rpx"
  560. mode=""
  561. ></image>
  562. <view class=""> 待审核 </view>
  563. </view>
  564. <view
  565. class="jobServer-box-btn-item flex justify-center flex-wrap item-width"
  566. @click.stop="goNav('/my/order/index?index=' + 2)"
  567. >
  568. <image
  569. src="../../static/images/my/my/my2.png"
  570. style="width: 46rpx; height: 38rpx"
  571. mode=""
  572. ></image>
  573. <view class=""> 招聘中 </view>
  574. </view>
  575. <view
  576. class="jobServer-box-btn-item flex justify-center flex-wrap item-width"
  577. @click.stop="goNav('/my/order/index?index=' + 5)"
  578. >
  579. <image
  580. src="../../static/images/my/my/my3.png"
  581. style="width: 46rpx; height: 38rpx"
  582. mode=""
  583. ></image>
  584. <view class=""> 已关闭 </view>
  585. </view>
  586. <view
  587. class="jobServer-box-btn-item flex justify-center flex-wrap item-width"
  588. @click.stop="goNav('/my/order/index?index=' + 3)"
  589. >
  590. <image
  591. src="../../static/images/my/my/my4.png"
  592. style="width: 50rpx; height: 38rpx"
  593. mode=""
  594. ></image>
  595. <view class=""> 已拒绝 </view>
  596. </view>
  597. </view>
  598. </view>
  599. </view>
  600. </view>
  601. <!-- 更多工具 -->
  602. <view class="utils flex justify-center">
  603. <view class="utils-box flex justify-center">
  604. <view class="utils-box-c">
  605. <view class="utils-box-c-t flex justify-between align-center">
  606. <view
  607. v-if="XCXIsSelect != '否'"
  608. class="flex justify-center flex-wrap"
  609. style="width: 112rpx"
  610. @click="goNav('/package/myLove/myLove')"
  611. >
  612. <image
  613. src="../../static/images/my/icon/utils/myLovere.png"
  614. style="width: 54rpx; height: 54rpx"
  615. mode=""
  616. ></image>
  617. <view
  618. class=""
  619. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  620. >
  621. 我的收藏
  622. </view>
  623. </view>
  624. <view
  625. v-if="XCXIsSelect != '否'"
  626. class="flex justify-center flex-wrap"
  627. style="width: 112rpx"
  628. @click="goNav('/my/jilu/jilu')"
  629. >
  630. <image
  631. src="../../static/images/my/icon/utils/jilu.png"
  632. style="width: 54rpx; height: 54rpx"
  633. mode=""
  634. ></image>
  635. <view
  636. class=""
  637. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  638. >
  639. 面试记录
  640. </view>
  641. </view>
  642. <view
  643. v-if="XCXIsSelect != '否'"
  644. class="flex justify-center flex-wrap"
  645. style="width: 112rpx"
  646. @click="goNav('/my/renzheng/zhuanrang')"
  647. >
  648. <image
  649. src="../../static/images/my/icon/utils/qy.png"
  650. style="width: 54rpx; height: 54rpx"
  651. mode=""
  652. ></image>
  653. <view
  654. class=""
  655. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  656. >
  657. 转让企业
  658. </view>
  659. </view>
  660. <view
  661. v-if="XCXIsSelect != '否'"
  662. class="flex justify-center flex-wrap"
  663. style="width: 112rpx"
  664. @click="goNav('/package/blackList/blackList')"
  665. >
  666. <image
  667. src="../../static/images/my/icon/utils/utils3.png"
  668. style="width: 54rpx; height: 54rpx"
  669. mode=""
  670. ></image>
  671. <view
  672. class=""
  673. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  674. >
  675. 黑名单
  676. </view>
  677. </view>
  678. </view>
  679. <view class="utils-box-c-b flex justify-between align-center">
  680. <view
  681. class="flex justify-center flex-wrap"
  682. style="width: 112rpx"
  683. @click="goNav('/pages/my/invitationUserqy')"
  684. >
  685. <image
  686. src="../../static/images/my/icon/utils/utils2.png"
  687. style="width: 54rpx; height: 54rpx"
  688. mode=""
  689. ></image>
  690. <view
  691. class=""
  692. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  693. >
  694. 邀请好友
  695. </view>
  696. </view>
  697. <view
  698. class="flex justify-center flex-wrap"
  699. style="width: 112rpx"
  700. @click="goChat"
  701. >
  702. <image
  703. src="../../static/images/my/icon/utils/utils4.png"
  704. style="width: 54rpx; height: 54rpx"
  705. mode=""
  706. ></image>
  707. <view
  708. class=""
  709. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  710. >
  711. 联系客服
  712. </view>
  713. </view>
  714. <view
  715. class="flex justify-center flex-wrap"
  716. style="width: 112rpx"
  717. @click="goNav('/my/setting/mimi')"
  718. >
  719. <image
  720. src="../../static/images/my/icon/utils/utils5.png"
  721. style="width: 54rpx; height: 54rpx"
  722. mode=""
  723. ></image>
  724. <view
  725. class=""
  726. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  727. >
  728. 隐私协议
  729. </view>
  730. </view>
  731. <view
  732. class="flex justify-center flex-wrap"
  733. style="width: 112rpx"
  734. @click="goNav('/my/setting/xieyi')"
  735. >
  736. <image
  737. src="../../static/images/my/icon/utils/utils6.png"
  738. style="width: 54rpx; height: 54rpx"
  739. mode=""
  740. ></image>
  741. <view
  742. class=""
  743. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  744. >
  745. 用户协议
  746. </view>
  747. </view>
  748. </view>
  749. <view class="utils-box-c-b flex justify-between align-center">
  750. <view
  751. class="flex justify-center flex-wrap"
  752. style="width: 112rpx"
  753. @click="goNav('/my/setting/about')"
  754. >
  755. <image
  756. src="../../static/images/my/icon/utils/utils7.png"
  757. style="width: 54rpx; height: 54rpx"
  758. mode=""
  759. ></image>
  760. <view
  761. class=""
  762. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  763. >
  764. 关于我们
  765. </view>
  766. </view>
  767. <view
  768. v-if="XCXIsSelect != '否'"
  769. class="flex justify-center flex-wrap"
  770. style="width: 112rpx"
  771. @click="goNav('/my/setting/feedbackIndex')"
  772. >
  773. <image
  774. src="../../static/images/my/icon/utils/help.png"
  775. style="width: 54rpx; height: 54rpx"
  776. mode=""
  777. ></image>
  778. <view
  779. class=""
  780. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  781. >
  782. 帮助中心
  783. </view>
  784. </view>
  785. <view
  786. v-if="token"
  787. class="flex justify-center flex-wrap"
  788. style="width: 112rpx"
  789. @click="goOut()"
  790. >
  791. <image
  792. src="../../static/images/my/icon/utils/utils8.png"
  793. style="width: 54rpx; height: 54rpx"
  794. mode=""
  795. ></image>
  796. <view
  797. class=""
  798. style="color: #1a1a1a; font-size: 24rpx; margin-top: 15rpx"
  799. >
  800. 退出登录
  801. </view>
  802. </view>
  803. <view
  804. class="flex justify-center flex-wrap"
  805. style="width: 112rpx; height: 0"
  806. >
  807. </view>
  808. <view
  809. class="flex justify-center flex-wrap"
  810. style="width: 112rpx; height: 0"
  811. >
  812. </view>
  813. </view>
  814. </view>
  815. </view>
  816. </view>
  817. </block>
  818. <!-- 状态切换 -->
  819. <u-action-sheet
  820. :list="list"
  821. @click="click"
  822. :tips="tips"
  823. v-model="show"
  824. ></u-action-sheet>
  825. </view>
  826. </template>
  827. <script>
  828. export default {
  829. data() {
  830. return {
  831. tips: {
  832. text: "切换状态",
  833. color: "#909399",
  834. fontSize: 28,
  835. },
  836. show: false,
  837. list: [
  838. {
  839. id: 1,
  840. text: "离职-正在找工作",
  841. fontSize: 24,
  842. },
  843. {
  844. id: 2,
  845. text: "在职-考虑机会",
  846. fontSize: 24,
  847. },
  848. {
  849. id: 3,
  850. text: "在职-暂不考虑",
  851. fontSize: 24,
  852. },
  853. ],
  854. userType: 1,
  855. avatar: "../../static/logo.png",
  856. userName: "登录",
  857. XCXIsSelect: "否",
  858. userId: "",
  859. arr: [],
  860. showModal: true,
  861. CompanyList: {},
  862. money: "0",
  863. browseCount: 0,
  864. collectionCount: 0,
  865. deliveryCount: 0,
  866. isVip: false, //用户是否是vip
  867. isCompanyVip: false, //企业是否是vip
  868. resumesStatus: 1, //求职状态
  869. resumesId: "",
  870. token: "",
  871. companyStatus: "", //企业认证状态(1:审核中 2:已通过 3:已拒绝 空:未认证)
  872. };
  873. },
  874. onLoad(e) {
  875. console.log(this.token);
  876. this.XCXIsSelect = this.$queue.getData("XCXIsSelect");
  877. },
  878. onShow() {
  879. this.token = uni.getStorageSync("token");
  880. console.log(this.token, "myToken");
  881. if (uni.getStorageSync("userType")) {
  882. this.userType = uni.getStorageSync("userType");
  883. }
  884. this.userId = uni.getStorageSync("userId");
  885. if (this.userId) {
  886. this.getUserInfo();
  887. this.getMyMoney();
  888. this.getUserData();
  889. if (this.userType == 1) {
  890. this.getJlInfo();
  891. } else {
  892. this.getCompanyStatus();
  893. }
  894. this.$Request.getT("/app/common/type/310").then((res) => {
  895. //消息未读提醒
  896. if (res.code == 0) {
  897. if (res.data && res.data.value) {
  898. this.arr.push(res.data.value);
  899. }
  900. }
  901. });
  902. this.$Request.getT("/app/common/type/337").then((res) => {
  903. //预约成功通知(通用)
  904. if (res.code == 0) {
  905. if (res.data && res.data.value) {
  906. this.arr.push(res.data.value);
  907. }
  908. }
  909. });
  910. this.$Request.getT("/app/common/type/338").then((res) => {
  911. //订单状态通知
  912. if (res.code == 0) {
  913. if (res.data && res.data.value) {
  914. this.arr.push(res.data.value);
  915. }
  916. }
  917. });
  918. // #ifdef MP-WEIXIN
  919. if (this.showModal) {
  920. this.openMsg();
  921. }
  922. // #endif
  923. }
  924. },
  925. methods: {
  926. // 在线客服
  927. goChat() {
  928. let that = this;
  929. if (uni.getStorageSync("userType") == 1) {
  930. //用户端
  931. // #ifdef MP-WEIXIN
  932. wx.openCustomerServiceChat({
  933. extInfo: {
  934. url: that.$queue.getData("kefu"),
  935. },
  936. corpId: that.$queue.getData("kefuAppid"),
  937. success(res) {
  938. console.log(res);
  939. },
  940. });
  941. // #endif
  942. // #ifdef H5
  943. window.location.href = that.$queue.getData("kefu");
  944. // #endif
  945. // #ifdef APP
  946. let kefu = that.$queue.getData("kefu");
  947. console.log(kefu);
  948. plus.runtime.openURL(kefu, function (res) {});
  949. // #endif
  950. } else {
  951. //企业端
  952. // #ifdef MP-WEIXIN
  953. wx.openCustomerServiceChat({
  954. extInfo: {
  955. url: that.$queue.getData("kefuq"),
  956. },
  957. corpId: that.$queue.getData("kefuAppidq"),
  958. success(res) {
  959. console.log(res);
  960. },
  961. });
  962. // #endif
  963. // #ifdef H5
  964. window.location.href = that.$queue.getData("kefuq");
  965. // #endif
  966. // #ifdef APP
  967. let kefu = that.$queue.getData("kefuq");
  968. console.log(kefu);
  969. plus.runtime.openURL(kefu, function (res) {});
  970. // #endif
  971. }
  972. },
  973. goNavStatus(url) {
  974. if (this.companyStatus) {
  975. if (this.companyStatus == 1) {
  976. uni.showToast({
  977. title: "企业认证审核中,请审核通过后操作!",
  978. icon: "none",
  979. });
  980. return;
  981. }
  982. if (this.companyStatus == 3) {
  983. uni.showToast({
  984. title: "企业认证审核未通过,请重新认证!",
  985. icon: "none",
  986. });
  987. return;
  988. }
  989. uni.navigateTo({
  990. url: url,
  991. });
  992. } else {
  993. uni.showModal({
  994. title: "提示",
  995. content: "还未完成企业认证,请完成企业认证后操作",
  996. complete(ret) {
  997. if (ret.confirm) {
  998. }
  999. },
  1000. });
  1001. }
  1002. },
  1003. currenStatus() {
  1004. if (uni.getStorageSync("token")) {
  1005. this.show = true;
  1006. } else {
  1007. this.noLogin();
  1008. }
  1009. },
  1010. //查询简历信息
  1011. getJlInfo() {
  1012. this.$Request.getT("/app/resumes/selectResumesByUserId").then((res) => {
  1013. if (res.code == 0) {
  1014. if (res.data) {
  1015. this.resumesStatus = res.data.resumesStatus;
  1016. this.resumesId = res.data.resumesId;
  1017. if (this.resumesStatus == 1) {
  1018. this.list = [
  1019. {
  1020. id: 2,
  1021. text: "在职-考虑机会",
  1022. fontSize: 24,
  1023. },
  1024. {
  1025. id: 3,
  1026. text: "在职-暂不考虑",
  1027. fontSize: 24,
  1028. },
  1029. ];
  1030. } else if (this.resumesStatus == 2) {
  1031. this.list = [
  1032. {
  1033. id: 1,
  1034. text: "离职-正在找工作",
  1035. fontSize: 24,
  1036. },
  1037. {
  1038. id: 3,
  1039. text: "在职-暂不考虑",
  1040. fontSize: 24,
  1041. },
  1042. ];
  1043. } else {
  1044. this.list = [
  1045. {
  1046. id: 1,
  1047. text: "离职-正在找工作",
  1048. fontSize: 24,
  1049. },
  1050. {
  1051. id: 2,
  1052. text: "在职-考虑机会",
  1053. fontSize: 24,
  1054. },
  1055. ];
  1056. }
  1057. } else {
  1058. uni.showToast({
  1059. title: "暂无简历,请添加简历",
  1060. icon: "none",
  1061. });
  1062. }
  1063. } else {
  1064. uni.showToast({
  1065. title: res.msg,
  1066. icon: "none",
  1067. });
  1068. }
  1069. });
  1070. },
  1071. //切换求职状态
  1072. click(e) {
  1073. console.log(this.list[e].text);
  1074. let that = this;
  1075. uni.showModal({
  1076. title: "提示",
  1077. content: "确认求职状态切换为:" + that.list[e].text + " 吗?",
  1078. confirmColor: "#00B88F",
  1079. complete(ret) {
  1080. if (ret.confirm) {
  1081. let data = {
  1082. resumesId: that.resumesId,
  1083. resumesStatus: that.list[e].id,
  1084. };
  1085. that.$Request.postT("/app/resumes/updateResumesStatus", data).then((res) => {
  1086. if (res.code == 0) {
  1087. uni.showToast({
  1088. title: "已切换",
  1089. });
  1090. that.getJlInfo();
  1091. } else {
  1092. uni.showToast({
  1093. title: res.msg,
  1094. icon: "none",
  1095. });
  1096. }
  1097. });
  1098. }
  1099. },
  1100. });
  1101. },
  1102. //招聘刷新
  1103. refreshJob() {
  1104. if (uni.getStorageSync("userId")) {
  1105. this.$Request.postT("/app/postPush/refreshPostPush").then((res) => {
  1106. if (res.code == 0) {
  1107. uni.showToast({
  1108. title: "刷新成功",
  1109. });
  1110. } else {
  1111. if (this.isCompanyVip) {
  1112. uni.showToast({
  1113. title: res.msg,
  1114. icon: "none",
  1115. });
  1116. } else {
  1117. uni.showModal({
  1118. title: "提示",
  1119. content: "今日可刷新次数已使用完,开通会员可享更多刷新次数以及其他特权",
  1120. confirmText: "开通会员",
  1121. confirmColor: "#00B88F",
  1122. complete(ree) {
  1123. if (ree.confirm) {
  1124. uni.navigateTo({
  1125. url: "/my/vip/index",
  1126. });
  1127. }
  1128. },
  1129. });
  1130. }
  1131. }
  1132. });
  1133. } else {
  1134. this.noLogin();
  1135. }
  1136. },
  1137. //简历刷新
  1138. refresh() {
  1139. if (uni.getStorageSync("userId")) {
  1140. this.$Request.getT("/app/resumes/selectResumesByUserId").then((res) => {
  1141. if (res.code == 0) {
  1142. if (res.data && res.data.resumesId) {
  1143. this.$Request
  1144. .postT("/app/resumes/refreshResumes", {
  1145. resumesId: res.data.resumesId,
  1146. })
  1147. .then((ret) => {
  1148. if (ret.code == 0) {
  1149. uni.showToast({
  1150. title: "刷新成功",
  1151. });
  1152. } else {
  1153. if (this.isVip) {
  1154. uni.showToast({
  1155. title: ret.msg,
  1156. icon: "none",
  1157. });
  1158. } else {
  1159. uni.showModal({
  1160. title: "提示",
  1161. content:
  1162. "今日可刷新次数已使用完,开通会员可享更多刷新次数以及其他特权",
  1163. confirmText: "开通会员",
  1164. confirmColor: "#00B88F",
  1165. complete(ree) {
  1166. if (ree.confirm) {
  1167. uni.navigateTo({
  1168. url: "/my/vip/index",
  1169. });
  1170. }
  1171. },
  1172. });
  1173. }
  1174. }
  1175. });
  1176. } else {
  1177. uni.showModal({
  1178. title: "提示",
  1179. content: "暂无简历,请添加简历后重试",
  1180. confirmColor: "#00B88F",
  1181. complete(ree) {
  1182. if (ree.confirm) {
  1183. uni.navigateTo({
  1184. url: "/package/my/resume",
  1185. });
  1186. }
  1187. },
  1188. });
  1189. }
  1190. } else {
  1191. uni.showToast({
  1192. title: res.msg,
  1193. icon: "none",
  1194. });
  1195. }
  1196. });
  1197. } else {
  1198. this.noLogin();
  1199. }
  1200. },
  1201. /**
  1202. * 获取投递记录、收藏记录、浏览记录
  1203. */
  1204. getUserData() {
  1205. this.$Request.getT("/app/user/userData").then((res) => {
  1206. if (res.code == 0) {
  1207. this.browseCount = res.data.browseCount;
  1208. this.collectionCount = res.data.collectionCount;
  1209. this.deliveryCount = res.data.deliveryCount;
  1210. }
  1211. });
  1212. },
  1213. /**
  1214. * @param {Object} url 跳转路径
  1215. * @param {Object} name 名称
  1216. */
  1217. gojiLuList(url, name) {
  1218. if (uni.getStorageSync("token")) {
  1219. uni.navigateTo({
  1220. url: url + "?title=" + name,
  1221. });
  1222. } else {
  1223. this.noLogin();
  1224. }
  1225. },
  1226. /**
  1227. * 退出登录
  1228. */
  1229. goOut() {
  1230. let that = this;
  1231. uni.showModal({
  1232. title: "提示",
  1233. content: "确定退出登录吗?",
  1234. confirmColor: "#00B88F",
  1235. success: function (res) {
  1236. if (res.confirm) {
  1237. console.log("用户点击确定");
  1238. uni.removeStorageSync("userName");
  1239. uni.removeStorageSync("avatar");
  1240. uni.removeStorageSync("userId");
  1241. uni.removeStorageSync("token");
  1242. uni.removeStorageSync("phone");
  1243. uni.removeStorageSync("zhiFuBaoName");
  1244. uni.removeStorageSync("zhiFuBao");
  1245. uni.removeStorageSync("invitationCode");
  1246. uni.removeStorageSync("unionId");
  1247. uni.removeStorageSync("openId");
  1248. uni.removeStorageSync("isVIP");
  1249. uni.removeStorageSync("companyId");
  1250. // uni.removeStorageSync('userType')
  1251. uni.setStorageSync("userType", 1);
  1252. uni.setStorageSync("weixinPhone", false);
  1253. that.userId = "";
  1254. that.userType = 1;
  1255. that.money = 0;
  1256. that.deliveryCount = 0;
  1257. that.browseCount = 0;
  1258. that.collectionCount = 0;
  1259. that.token = "";
  1260. uni.showToast({
  1261. title: "退出成功!",
  1262. icon: "none",
  1263. });
  1264. that.isLogin = true;
  1265. that.userName = "登录";
  1266. that.avatar = "../../static/logo.png";
  1267. that.isVip = false;
  1268. // uni.reLaunch({
  1269. // url: '/pages/public/selectIdentity/selectIdentity'
  1270. // })
  1271. } else if (res.cancel) {
  1272. console.log("用户点击取消");
  1273. }
  1274. },
  1275. });
  1276. },
  1277. /**
  1278. * 我的钻石
  1279. */
  1280. getMyMoney() {
  1281. this.$Request.get("/app/userMoney/selectMyMoney").then((res) => {
  1282. if (res.code == 0) {
  1283. this.money = res.data.money;
  1284. }
  1285. });
  1286. },
  1287. /**
  1288. * 获取个人信息
  1289. */
  1290. getUserInfo() {
  1291. this.$Request.get("/app/user/selectUserById").then((res) => {
  1292. if (res.code == 0) {
  1293. uni.setStorageSync("weChatNum", res.data.weChatNum);
  1294. uni.setStorageSync("zhiRate", res.data.zhiRate);
  1295. if (res.data.avatar) {
  1296. this.avatar = res.data.avatar;
  1297. }
  1298. if (res.data.userName) {
  1299. this.userName = res.data.userName;
  1300. }
  1301. uni.setStorageSync("userId", res.data.userId);
  1302. if (res.data.companyId) {
  1303. uni.setStorageSync("companyId", res.data.companyId);
  1304. }
  1305. if (res.data.userType == 1 || res.data.userType == null) {
  1306. this.userType = 1;
  1307. uni.setStorageSync("userType", 1);
  1308. if (res.data.isUserVip == 1) {
  1309. //判断用户是否是vip
  1310. this.isVip = true;
  1311. } else {
  1312. this.isVip = false;
  1313. }
  1314. } else {
  1315. this.userType = 2;
  1316. uni.setStorageSync("userType", 2);
  1317. if (res.data.isCompanyVip == 1) {
  1318. //判断企业用户是否是vip
  1319. this.isCompanyVip = true;
  1320. } else {
  1321. this.isCompanyVip = false;
  1322. }
  1323. }
  1324. }
  1325. });
  1326. },
  1327. goNavNoLogin(e) {
  1328. // #ifdef MP-WEIXIN
  1329. if (uni.getStorageSync("sendMsg")) {
  1330. // console.log('授权+1')
  1331. wx.requestSubscribeMessage({
  1332. tmplIds: this.arr,
  1333. success(re) {
  1334. // console.log(JSON.stringify(re), 111111111111)
  1335. var datas = JSON.stringify(re);
  1336. if (datas.indexOf("accept") != -1) {
  1337. // console.log(re)
  1338. }
  1339. },
  1340. fail: (res) => {
  1341. // console.log(res)
  1342. },
  1343. });
  1344. }
  1345. // #endif
  1346. uni.navigateTo({
  1347. url: e,
  1348. });
  1349. },
  1350. //跳转
  1351. goNav(e) {
  1352. if (this.userId) {
  1353. // #ifdef MP-WEIXIN
  1354. if (uni.getStorageSync("sendMsg")) {
  1355. // console.log('授权+1')
  1356. wx.requestSubscribeMessage({
  1357. tmplIds: this.arr,
  1358. success(re) {
  1359. // console.log(JSON.stringify(re), 111111111111)
  1360. var datas = JSON.stringify(re);
  1361. if (datas.indexOf("accept") != -1) {
  1362. // console.log(re)
  1363. }
  1364. },
  1365. fail: (res) => {
  1366. // console.log(res)
  1367. },
  1368. });
  1369. }
  1370. // #endif
  1371. uni.navigateTo({
  1372. url: e,
  1373. });
  1374. } else {
  1375. this.noLogin();
  1376. }
  1377. },
  1378. //获取企业认证状态(1:审核中 2:通过 3:拒绝)
  1379. getCompanyStatus() {
  1380. this.$Request.get("/app/company/selectCompanyByUserId").then((res) => {
  1381. if (res.code == 0 && res.data) {
  1382. this.companyStatus = res.data.status;
  1383. uni.setStorageSync("companyStatus", this.companyStatus);
  1384. } else {
  1385. this.companyStatus = "";
  1386. }
  1387. });
  1388. },
  1389. /**
  1390. * 获取用户企业实名数据
  1391. */
  1392. getCompany() {
  1393. this.$Request.get("/app/company/selectCompanyByUserId").then((res) => {
  1394. if (res.code == 0 && res.data) {
  1395. this.CompanyList = res.data;
  1396. if (this.CompanyList.status == 1) {
  1397. uni.showModal({
  1398. title: "提示",
  1399. content: "您提交的企业认证正在审核,是否查看修改?",
  1400. confirmColor: "#00B88F",
  1401. success: function (res) {
  1402. if (res.confirm) {
  1403. console.log("用户点击确定");
  1404. uni.navigateTo({
  1405. url: "/my/renzheng/index",
  1406. });
  1407. } else if (res.cancel) {
  1408. console.log("用户点击取消");
  1409. }
  1410. },
  1411. });
  1412. } else if (this.CompanyList.status == 2) {
  1413. this.$Request
  1414. .postT("/app/user/updateUserEntity", {
  1415. userType: 2,
  1416. })
  1417. .then((res) => {
  1418. if (res.code == 0) {
  1419. // uni.setStorageSync('companyId', this.CompanyList.companyId)
  1420. this.getUserInfo();
  1421. }
  1422. });
  1423. // this.userType = 2
  1424. // uni.setStorageSync('userType', this.userType)
  1425. } else if (this.CompanyList.status == 3) {
  1426. uni.showModal({
  1427. title: "提示",
  1428. content: "您提交的企业认证已被拒绝,是否查看修改?",
  1429. confirmColor: "#00B88F",
  1430. success: function (res) {
  1431. if (res.confirm) {
  1432. console.log("用户点击确定");
  1433. uni.navigateTo({
  1434. url: "/my/renzheng/index",
  1435. });
  1436. } else if (res.cancel) {
  1437. console.log("用户点击取消");
  1438. }
  1439. },
  1440. });
  1441. }
  1442. } else {
  1443. uni.showModal({
  1444. title: "提示",
  1445. content: "您还未企业认证,请先进行认证",
  1446. confirmColor: "#00B88F",
  1447. success: function (res) {
  1448. if (res.confirm) {
  1449. console.log("用户点击确定");
  1450. uni.navigateTo({
  1451. url: "/my/renzheng/index",
  1452. });
  1453. } else if (res.cancel) {
  1454. console.log("用户点击取消");
  1455. }
  1456. },
  1457. });
  1458. }
  1459. });
  1460. },
  1461. // 切换身份
  1462. bindQe(index) {
  1463. let that = this;
  1464. if (uni.getStorageSync("userId")) {
  1465. if (index == 2) {
  1466. if (index == 2) {
  1467. //企业换个人
  1468. uni.showModal({
  1469. title: "提示",
  1470. content: "确认切换到求职者身份吗?",
  1471. confirmColor: "#00B88F",
  1472. complete(ret) {
  1473. if (ret.confirm) {
  1474. let data = {
  1475. userType: 1,
  1476. };
  1477. that.$Request.postT("/app/user/updateUserEntity", data).then((res) => {
  1478. if (res.code == 0) {
  1479. that.getUserInfo();
  1480. that.getUserData();
  1481. }
  1482. });
  1483. }
  1484. },
  1485. });
  1486. }
  1487. } else if (index == 1) {
  1488. //个人换企业
  1489. uni.showModal({
  1490. title: "提示",
  1491. content: "确认切换到招聘者身份吗?",
  1492. confirmColor: "#00B88F",
  1493. complete(ret) {
  1494. if (ret.confirm) {
  1495. that.getCompany();
  1496. }
  1497. },
  1498. });
  1499. }
  1500. } else {
  1501. this.noLogin();
  1502. }
  1503. },
  1504. // 开启订阅消息
  1505. openMsg() {
  1506. console.log("订阅消息");
  1507. var that = this;
  1508. uni.getSetting({
  1509. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  1510. success(ret) {
  1511. console.log(ret.subscriptionsSetting, "------------------");
  1512. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  1513. if (ret.subscriptionsSetting.itemSettings) {
  1514. uni.setStorageSync("sendMsg", true);
  1515. uni.openSetting({
  1516. // 打开设置页
  1517. success(rea) {
  1518. console.log(rea.authSetting);
  1519. },
  1520. });
  1521. } else {
  1522. // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  1523. console.log(99999);
  1524. uni.setStorageSync("sendMsg", false);
  1525. uni.showModal({
  1526. title: "提示",
  1527. content: "为了更好的体验,请绑定消息推送",
  1528. confirmText: "确定",
  1529. cancelText: "取消",
  1530. confirmColor: "#00B88F",
  1531. success: function (res) {
  1532. if (res.confirm) {
  1533. console.log(that.arr);
  1534. wx.requestSubscribeMessage({
  1535. tmplIds: that.arr,
  1536. success(re) {
  1537. console.log(JSON.stringify(re), "++++++++++++++");
  1538. var datas = JSON.stringify(re);
  1539. if (datas.indexOf("accept") != -1) {
  1540. console.log(re);
  1541. uni.setStorageSync("sendMsg", true);
  1542. }
  1543. },
  1544. fail: (res) => {
  1545. console.log(res);
  1546. },
  1547. });
  1548. uni.setStorageSync("sendMsg", true);
  1549. console.log("确认");
  1550. that.showModal = false;
  1551. } else if (res.cancel) {
  1552. console.log("取消");
  1553. uni.setStorageSync("sendMsg", false);
  1554. that.showModal = true;
  1555. }
  1556. },
  1557. });
  1558. }
  1559. },
  1560. });
  1561. },
  1562. //未登录
  1563. noLogin() {
  1564. // uni.showModal({
  1565. // title: '提示',
  1566. // content: '您还未登录,请先登录',
  1567. // confirmColor:'#00B88F',
  1568. // success: function(res) {
  1569. // if (res.confirm) {
  1570. // console.log('用户点击确定');
  1571. // // uni.reLaunch({
  1572. // // url:'/pages/public/login'
  1573. // // })
  1574. // uni.navigateTo({
  1575. // url: '/pages/public/login'
  1576. // })
  1577. // } else if (res.cancel) {
  1578. // console.log('用户点击取消');
  1579. // }
  1580. // }
  1581. // })
  1582. uni.navigateTo({
  1583. url: "/pages/public/login",
  1584. });
  1585. },
  1586. },
  1587. };
  1588. </script>
  1589. <style lang="scss">
  1590. page {
  1591. background-color: #f2f6fc;
  1592. }
  1593. .info {
  1594. width: 100%;
  1595. background: linear-gradient(to bottom, #d9feed, #fbfdf0, #f2f6fc);
  1596. .info-box {
  1597. width: 686rpx;
  1598. padding-bottom: 20rpx;
  1599. .info-box-btn {
  1600. width: 100%;
  1601. height: 44rpx;
  1602. margin-top: 20rpx;
  1603. }
  1604. .info-box-header {
  1605. width: 100%;
  1606. margin-top: 20rpx;
  1607. height: 90rpx;
  1608. .info-box-header-l {
  1609. margin-right: 20rpx;
  1610. image {
  1611. width: 90rpx;
  1612. height: 90rpx;
  1613. border-radius: 50%;
  1614. }
  1615. }
  1616. .info-box-header-r {
  1617. .info-box-header-r-name {
  1618. color: #1d1d1d;
  1619. font-size: 32rpx;
  1620. font-weight: 800;
  1621. margin-bottom: 10rpx;
  1622. }
  1623. .info-box-header-r-bj {
  1624. color: #1d1d1d;
  1625. font-size: 24rpx;
  1626. font-weight: 400;
  1627. }
  1628. }
  1629. }
  1630. .info-box-num {
  1631. margin-top: 50rpx;
  1632. .info-box-num-td {
  1633. // width: 200rpx;
  1634. .info-box-num-td-num {
  1635. width: 100%;
  1636. text-align: center;
  1637. color: #333333;
  1638. font-size: 38rpx;
  1639. font-weight: bold;
  1640. }
  1641. .info-box-num-td-name {
  1642. width: 100%;
  1643. text-align: center;
  1644. color: #333333;
  1645. font-size: 24rpx;
  1646. font-weight: 400;
  1647. margin-top: 20rpx;
  1648. }
  1649. }
  1650. }
  1651. }
  1652. }
  1653. .vip {
  1654. width: 100%;
  1655. height: 127rpx;
  1656. margin-top: 30rpx;
  1657. .vip-box {
  1658. width: 686rpx;
  1659. height: 100%;
  1660. position: relative;
  1661. .vip-box-bg {
  1662. position: absolute;
  1663. top: 0;
  1664. left: 0;
  1665. width: 100%;
  1666. height: 100%;
  1667. z-index: 1;
  1668. }
  1669. .vip-box-cont {
  1670. z-index: 2;
  1671. }
  1672. }
  1673. }
  1674. .jobServer {
  1675. width: 100%;
  1676. height: 235rpx;
  1677. margin-top: -46rpx;
  1678. z-index: 1;
  1679. .jobServer-box {
  1680. width: 686rpx;
  1681. height: 100%;
  1682. background-color: #ffffff;
  1683. border-radius: 24rpx;
  1684. z-index: 1;
  1685. .jobServer-box-c {
  1686. width: 626rpx;
  1687. height: 100%;
  1688. }
  1689. .jobServer-box-title {
  1690. margin-top: 30rpx;
  1691. width: 100%;
  1692. color: #161616;
  1693. font-size: 28rpx;
  1694. font-weight: 800;
  1695. }
  1696. .jobServer-box-btn {
  1697. width: 100%;
  1698. margin-top: 30rpx;
  1699. .item-width {
  1700. width: 110rpx !important;
  1701. }
  1702. .jobServer-box-btn-item {
  1703. width: 120rpx;
  1704. color: #161616;
  1705. font-size: 24rpx;
  1706. image {
  1707. width: 62rpx;
  1708. height: 62rpx;
  1709. margin-bottom: 18rpx;
  1710. }
  1711. }
  1712. }
  1713. }
  1714. }
  1715. .utils {
  1716. width: 100%;
  1717. // height: 308rpx;
  1718. margin-top: 20rpx;
  1719. .utils-box {
  1720. width: 686rpx;
  1721. height: 100%;
  1722. background-color: #ffffff;
  1723. border-radius: 24rpx;
  1724. .utils-box-c {
  1725. width: 626rpx;
  1726. height: 100%;
  1727. }
  1728. .utils-box-c-t {
  1729. width: 100%;
  1730. height: calc(308rpx / 2);
  1731. }
  1732. .utils-box-c-b {
  1733. width: 100%;
  1734. height: calc(308rpx / 2);
  1735. }
  1736. }
  1737. }
  1738. .money {
  1739. width: 100%;
  1740. height: 148rpx;
  1741. margin-top: 20rpx;
  1742. .money-box {
  1743. width: 686rpx;
  1744. height: 100%;
  1745. background-color: #ffffff;
  1746. border-radius: 24rpx;
  1747. .money-box-c {
  1748. width: 626rpx;
  1749. height: 90rpx;
  1750. }
  1751. .money-box-c-l {
  1752. width: 50%;
  1753. height: 100%;
  1754. border-right: 1rpx solid #e6e6e6;
  1755. box-sizing: border-box;
  1756. .money-box-c-l-name {
  1757. color: #333333;
  1758. font-size: 28rpx;
  1759. font-weight: bold;
  1760. width: 100%;
  1761. }
  1762. .money-box-c-l-price {
  1763. color: #1e1e1e;
  1764. font-size: 38rpx;
  1765. font-weight: bold;
  1766. width: 100%;
  1767. margin-top: 14rpx;
  1768. text {
  1769. font-size: 24rpx;
  1770. font-weight: 500;
  1771. }
  1772. }
  1773. }
  1774. .money-box-c-r {
  1775. width: 50%;
  1776. height: 100%;
  1777. .money-box-c-r-name {
  1778. width: 100%;
  1779. color: #333333;
  1780. font-size: 28rpx;
  1781. font-weight: bold;
  1782. padding-left: 30rpx;
  1783. }
  1784. .money-box-c-r-more {
  1785. width: 100%;
  1786. color: #999999;
  1787. font-size: 24rpx;
  1788. font-weight: 400;
  1789. padding-left: 30rpx;
  1790. margin-top: 20rpx;
  1791. }
  1792. }
  1793. }
  1794. }
  1795. </style>