index.vue 62 KB

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