index.vue 56 KB

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