index.vue 63 KB

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