index.vue 61 KB

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