index.vue 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046
  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"
  95. @click="currenStatus()"
  96. v-if="token && XCXIsSelect != '否'"
  97. >
  98. <image
  99. src="../../static/images/my/rightLeft.png"
  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. // 推广横幅
  1656. .promo-banner {
  1657. margin: 40rpx;
  1658. margin-top: 60rpx;
  1659. background: var(
  1660. --线性渐变,
  1661. linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%)
  1662. );
  1663. border-radius: 24rpx;
  1664. padding: 16rpx 40rpx;
  1665. .banner-content {
  1666. display: flex;
  1667. justify-content: space-between;
  1668. align-items: center;
  1669. .banner-text {
  1670. flex: 1;
  1671. .banner-title {
  1672. color: rgba(255, 255, 255, 1);
  1673. font-family: HarmonyOS Sans SC;
  1674. font-size: 32rpx;
  1675. font-weight: 900;
  1676. line-height: 48rpx;
  1677. letter-spacing: 0%;
  1678. text-align: left;
  1679. display: block;
  1680. margin-bottom: 8rpx;
  1681. transform: skew(-10deg);
  1682. }
  1683. .banner-subtitle {
  1684. color: rgba(255, 255, 255, 0.7);
  1685. font-family: HarmonyOS Sans SC;
  1686. font-size: 26rpx;
  1687. font-weight: 400;
  1688. line-height: 36rpx;
  1689. letter-spacing: 0%;
  1690. text-align: left;
  1691. display: block;
  1692. }
  1693. }
  1694. .banner-button {
  1695. display: flex;
  1696. align-items: center;
  1697. justify-content: center;
  1698. width: 138rpx;
  1699. height: 48rpx;
  1700. border-radius: 26px;
  1701. background: #ffffff;
  1702. .button-text {
  1703. background: var(
  1704. --线性渐变,
  1705. linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%)
  1706. );
  1707. -webkit-background-clip: text;
  1708. -webkit-text-fill-color: transparent;
  1709. background-clip: text;
  1710. text-fill-color: transparent;
  1711. font-family: HarmonyOS Sans SC;
  1712. font-size: 26rpx;
  1713. font-weight: 500;
  1714. line-height: 18px;
  1715. letter-spacing: 0%;
  1716. text-align: left;
  1717. }
  1718. }
  1719. }
  1720. }
  1721. .my-center {
  1722. position: absolute;
  1723. left: 0;
  1724. right: 0;
  1725. top: 0;
  1726. bottom: 0;
  1727. overflow: hidden;
  1728. overflow-y: auto;
  1729. }
  1730. .my-bg {
  1731. /* 容器 52 */
  1732. width: 100%;
  1733. height: 656rpx;
  1734. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  1735. position: absolute;
  1736. top: 0;
  1737. left: 0;
  1738. right: 0;
  1739. z-index: -1;
  1740. .paopao {
  1741. position: absolute;
  1742. width: 662rpx;
  1743. height: 662rpx;
  1744. }
  1745. .paopao-one {
  1746. left: -221rpx;
  1747. top: -170rpx;
  1748. }
  1749. .paopao-two {
  1750. top: -374rpx;
  1751. right: -64rpx;
  1752. }
  1753. .paopao-three {
  1754. width: 320rpx;
  1755. height: 320rpx;
  1756. bottom: -170rpx;
  1757. left: -40rpx;
  1758. }
  1759. .my-bg-bottom {
  1760. background: linear-gradient(
  1761. to top,
  1762. rgba(250, 250, 250, 1),
  1763. rgba(255, 255, 255, 0.5) 46%,
  1764. rgba(255, 255, 255, 0) 100%
  1765. );
  1766. height: 328rpx;
  1767. position: absolute;
  1768. left: 0;
  1769. right: 0;
  1770. bottom: 0;
  1771. }
  1772. }
  1773. .info {
  1774. width: 100%;
  1775. box-sizing: border-box;
  1776. .info-box {
  1777. width: 686rpx;
  1778. padding-bottom: 20rpx;
  1779. .info-box-btn {
  1780. width: 100%;
  1781. padding: 44rpx 0 80rpx 0;
  1782. box-sizing: border-box;
  1783. image {
  1784. width: 32rpx;
  1785. height: 32rpx;
  1786. }
  1787. }
  1788. .info-box-header {
  1789. width: 100%;
  1790. margin-top: 20rpx;
  1791. height: 90rpx;
  1792. .info-box-header-l {
  1793. margin-right: 20rpx;
  1794. image {
  1795. width: 128rpx;
  1796. height: 128rpx;
  1797. border-radius: 50%;
  1798. }
  1799. }
  1800. .info-box-header-r {
  1801. .info-box-header-r-name {
  1802. color: rgba(255, 255, 255, 1);
  1803. font-family: DM Sans;
  1804. font-size: 48rpx;
  1805. font-weight: 400;
  1806. line-height: 72rpx;
  1807. text-align: left;
  1808. }
  1809. .info-box-header-r-bj {
  1810. color: rgba(255, 255, 255, 1);
  1811. font-family: DM Sans;
  1812. font-size: 24rpx;
  1813. font-weight: 400;
  1814. line-height: 32rpx;
  1815. letter-spacing: 0%;
  1816. text-align: left;
  1817. margin-top: 8rpx;
  1818. image {
  1819. width: 32rpx;
  1820. height: 32rpx;
  1821. margin-left: 8rpx;
  1822. }
  1823. }
  1824. }
  1825. }
  1826. .info-box-num {
  1827. margin-top: 50rpx;
  1828. padding: 0 24rpx;
  1829. box-sizing: border-box;
  1830. .info-box-num-td {
  1831. // width: 200rpx;
  1832. .info-box-num-td-num {
  1833. width: 100%;
  1834. text-align: center;
  1835. color: #fff;
  1836. font-size: 38rpx;
  1837. font-weight: bold;
  1838. }
  1839. .info-box-num-td-name {
  1840. width: 100%;
  1841. text-align: center;
  1842. color: #fff;
  1843. font-size: 24rpx;
  1844. font-weight: 400;
  1845. margin-top: 20rpx;
  1846. }
  1847. }
  1848. }
  1849. }
  1850. }
  1851. .vip {
  1852. width: 100%;
  1853. height: 127rpx;
  1854. margin-top: 30rpx;
  1855. .vip-box {
  1856. width: 686rpx;
  1857. height: 100%;
  1858. position: relative;
  1859. .vip-box-bg {
  1860. position: absolute;
  1861. top: 0;
  1862. left: 0;
  1863. width: 100%;
  1864. height: 100%;
  1865. z-index: 1;
  1866. }
  1867. .vip-box-cont {
  1868. z-index: 2;
  1869. }
  1870. }
  1871. }
  1872. .jobServer {
  1873. width: 100%;
  1874. height: 235rpx;
  1875. margin-top: 46rpx;
  1876. z-index: 1;
  1877. .jobServer-box {
  1878. width: 686rpx;
  1879. height: 100%;
  1880. // background-color: #fff;
  1881. // background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  1882. border-radius: 24rpx;
  1883. z-index: 1;
  1884. .jobServer-box-c {
  1885. width: 626rpx;
  1886. height: 100%;
  1887. }
  1888. .jobServer-box-title {
  1889. margin-top: 20rpx;
  1890. width: 100%;
  1891. color: rgba(29, 33, 41, 1);
  1892. font-family: DM Sans;
  1893. font-size: 28rpx;
  1894. font-weight: 500;
  1895. line-height: 44rpx;
  1896. }
  1897. .jobServer-box-btn {
  1898. width: 100%;
  1899. margin-top: 30rpx;
  1900. .item-width {
  1901. width: 110rpx !important;
  1902. }
  1903. .jobServer-box-btn-item {
  1904. width: 120rpx;
  1905. color: rgba(56, 58, 63, 1);
  1906. font-family: DM Sans;
  1907. font-size: 24rpx;
  1908. font-weight: 400;
  1909. line-height: 36rpx;
  1910. letter-spacing: 0%;
  1911. text-align: center;
  1912. image {
  1913. width: 62rpx;
  1914. height: 62rpx;
  1915. margin-bottom: 18rpx;
  1916. }
  1917. }
  1918. }
  1919. }
  1920. }
  1921. .utils {
  1922. width: 100%;
  1923. // height: 308rpx;
  1924. margin-top: 20rpx;
  1925. .utils-box {
  1926. width: 686rpx;
  1927. height: 100%;
  1928. background-color: #ffffff;
  1929. border-radius: 24rpx;
  1930. .utils-box-c {
  1931. width: 626rpx;
  1932. height: 100%;
  1933. }
  1934. .utils-box-c-t {
  1935. width: 100%;
  1936. height: calc(308rpx / 2);
  1937. }
  1938. .utils-box-c-b {
  1939. width: 100%;
  1940. height: calc(308rpx / 2);
  1941. }
  1942. }
  1943. }
  1944. .money {
  1945. width: 100%;
  1946. height: 148rpx;
  1947. margin-top: 20rpx;
  1948. .money-box {
  1949. width: 686rpx;
  1950. height: 100%;
  1951. background-color: #ffffff;
  1952. border-radius: 24rpx;
  1953. .money-box-c {
  1954. width: 626rpx;
  1955. height: 90rpx;
  1956. }
  1957. .money-box-c-l {
  1958. width: 50%;
  1959. height: 100%;
  1960. border-right: 1rpx solid #e6e6e6;
  1961. box-sizing: border-box;
  1962. .money-box-c-l-name {
  1963. color: #333333;
  1964. font-size: 28rpx;
  1965. font-weight: bold;
  1966. width: 100%;
  1967. }
  1968. .money-box-c-l-price {
  1969. color: #1e1e1e;
  1970. font-size: 38rpx;
  1971. font-weight: bold;
  1972. width: 100%;
  1973. margin-top: 14rpx;
  1974. text {
  1975. font-size: 24rpx;
  1976. font-weight: 500;
  1977. }
  1978. }
  1979. }
  1980. .money-box-c-r {
  1981. width: 50%;
  1982. height: 100%;
  1983. .money-box-c-r-name {
  1984. width: 100%;
  1985. color: #333333;
  1986. font-size: 28rpx;
  1987. font-weight: bold;
  1988. padding-left: 30rpx;
  1989. }
  1990. .money-box-c-r-more {
  1991. width: 100%;
  1992. color: #999999;
  1993. font-size: 24rpx;
  1994. font-weight: 400;
  1995. padding-left: 30rpx;
  1996. margin-top: 20rpx;
  1997. }
  1998. }
  1999. }
  2000. }
  2001. </style>