index.vue 56 KB

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