index.vue 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067
  1. <template>
  2. <view>
  3. <block v-if="XCXIsSelect != '是'">
  4. <view class="banner flex justify-center">
  5. <view class="banner-box">
  6. <swiper :indicator-dots="false" style="width: 100%;height: 100%;" :autoplay="true" :interval="300"
  7. :duration="1000">
  8. <swiper-item v-for="(item, index) in bannerList" :key="index" @click="goNave(item.url)">
  9. <view class="swiper-item" style="width: 100%;height: 100%;">
  10. <image :src="item.imageUrl" style="width: 100%;height: 100%;border-radius: 24rpx;"
  11. mode="scaleToFill"></image>
  12. </view>
  13. </swiper-item>
  14. </swiper>
  15. </view>
  16. </view>
  17. <view class="" style="width: 100%;margin-top: 20rpx;" v-for="(item, index) in dataList" :key="index">
  18. <view class=""
  19. style="padding: 20rpx 20rpx;width: 686rpx;background-color: #ffffff;border-radius: 18rpx;margin: auto;">
  20. <view class="">
  21. <text>{{ item.company ? item.company.companyName : '' }}</text>信息简介
  22. </view>
  23. <view class="flex flex-wrap" style="margin-top: 20rpx;">
  24. <text
  25. style="color: #666666;font-size: 26rpx;padding: 10rpx 25rpx 10rpx 25rpx;background-color: #F6F6F6;border-radius: 8rpx;margin-right: 20rpx;margin-bottom: 20rpx;"
  26. v-for="(ite, ind) in item.positionWelfare" :key="ind">{{ ite }}</text>
  27. </view>
  28. <view class="" style="margin-top: 20rpx;">
  29. <text>{{ item.company ? item.company.companyName : '' }}提供数据支持</text>
  30. </view>
  31. </view>
  32. </view>
  33. </block>
  34. <block v-else>
  35. <!-- 用户端 -->
  36. <view v-if="userType == 1" class="page-container" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
  37. <view class="topbg-sticky">
  38. <image class="top-bg" src="/static/images/index/index-bg.png" mode="widthFix" />
  39. <!-- <view class="top-bg"></view> -->
  40. <!-- 标题-搜索 -->
  41. <view class="topbg-sticky-box">
  42. <view class="topbg-sticky-title flex justify-between align-center">
  43. <view class="topbg-sticky-title-left flex align-center">
  44. <image src="../../static/images/index/xingIcon.svg" class="xing-icon" />
  45. <view>星光不负逐梦人</view>
  46. </view>
  47. <view class="topbg-sticky-title-right flex align-center"
  48. @click="goNavs('/package/search/search')">
  49. <u-icon name="search" color="#ffffff" size="40"></u-icon>
  50. </view>
  51. </view>
  52. <view class="topbg-sticky-subtitle">亿职赞,愿你在追梦路上找到心仪工作</view>
  53. </view>
  54. <!-- tabs和筛选 -->
  55. <view class="topbg-type flex justify-center">
  56. <view class="topbg-type-box">
  57. <!-- 第一行:tabs -->
  58. <view class="topbg-type-box-row flex justify-between align-center">
  59. <view class="topbg-type-box-l flex align-center">
  60. <view class="topbg-type-box-l-i" :class="current == index ? 'active' : ''"
  61. @tap="current = index" v-for="(item, index) in typeList" :key="index">
  62. {{ item.label }}
  63. </view>
  64. </view>
  65. <!-- 添加求职意向 -->
  66. <view v-if="isExpanded" class="topbg-yx-box-r flex align-center" @click="addDirection">
  67. <image src="../../static/images/index/Attachment.svg" class="attachment-icon" />
  68. </view>
  69. </view>
  70. <!-- 第二行:筛选 -->
  71. <view v-if="isExpanded" class="topbg-sx-box flex justify-between align-center">
  72. <!-- 分类 -->
  73. <view class="topbg-sx-box-l flex align-center">
  74. <view class="topbg-sx-box-l-i" :class="currentSx == index ? 'active3' : ''"
  75. @click="currentSx = index" v-for="(item, index) in sxTypeList" :key="index">
  76. {{ item.name }}
  77. </view>
  78. </view>
  79. <view class="topbg-sx-box-r flex align-center">
  80. <!-- 城市 -->
  81. <view class="topbg-sx-box-r-i flex align-center" style=""
  82. @click="getLocalJobs('go')">
  83. <text style="margin-right: 10rpx;">{{ county ? county : city ? city : '选择城市'
  84. }}</text>
  85. <u-icon name="arrow-down" color="#016bf6" size="16"></u-icon>
  86. </view>
  87. <!-- <text style="color: #CCCCCC;margin-left: 30rpx;margin-right: 30rpx;">|</text> -->
  88. <block v-if="current != typeList.length - 1">
  89. <!-- 筛选 -->
  90. <view class="topbg-sx-box-filter flex align-center"
  91. :class="{ activeColor: filledFieldsCount }">
  92. <text style="margin-right: 10rpx;"
  93. @click="goNavs('/package/screen/screen')">筛选{{ filledFieldsCount
  94. }}</text>
  95. <u-icon name="arrow-down" :color="filledFieldsCount ? '#016bf6' : '#999999'"
  96. size="16" @click="goNavs('/package/screen/screen')"></u-icon>
  97. </view>
  98. </block>
  99. <block v-else>
  100. <!-- 筛选 -->
  101. <view class="topbg-sx-box-filter flex align-center"
  102. :class="{ activeColor: filledFieldsCount }">
  103. <text style="margin-right: 10rpx;"
  104. @click="goNavs('/package/screen/screenComp')">筛选{{ filledFieldsCount
  105. }}</text>
  106. <u-icon name="arrow-down" color="filledFieldsCount?'#016bf6':'#999999'"
  107. size="16" @click="goNavs('/package/screen/screenComp')"></u-icon>
  108. </view>
  109. </block>
  110. </view>
  111. </view>
  112. <!-- 从事方向 -->
  113. <view v-if="isExpanded" class="direction-tip">
  114. <view class="direction-tip-title">请选择您的跨境标签</view>
  115. <view class="direction-tip-subtitle">您的跨境标签将用于为您推荐更匹配的职位</view>
  116. <!-- 标签选择 -->
  117. <view class="direction-tags flex align-center flex-wrap">
  118. <view class="direction-tag"
  119. :class="preference.indexOf(item.id) >= 0 || (preference.length <= 0 && item.id == '不限') ? 'active' : ''"
  120. @click="selectPreference(item)" v-for="(item, index) in directionList"
  121. :key="index">
  122. {{ item.name }}
  123. </view>
  124. <!-- <view class="direction-tag-add" @click="addDirection">
  125. <text>对应职位相关标签</text>
  126. </view> -->
  127. <view class="direction-tag-plus" @click="goPreference">
  128. <u-icon name="plus" color="#999999" size="16"></u-icon>
  129. </view>
  130. </view>
  131. </view>
  132. <!-- 展开收起 -->
  133. <view style="text-align: right;" @click="isExpanded = !isExpanded">
  134. <u-icon :name="isExpanded ? 'arrow-up' : 'arrow-down'" color="#016bf6"></u-icon>
  135. </view>
  136. </view>
  137. </view>
  138. <!-- 求职意向 -->
  139. <!-- <view class="topbg-yx flex justify-center flex-wrap">
  140. <view v-if="current != typeList.length - 1"
  141. class="topbg-yx-box flex justify-between align-center">
  142. <view class="topbg-yx-box-l ">
  143. <scroll-view scroll-x="true" class="topbg-scroll"
  144. :scroll-into-view="'bottomView'+currentjob" scroll-with-animation="true">
  145. <view class="topbg-yx-box-l-i" :id="'bottomView'+index"
  146. :class="currentjob==index?'active2':''" @click="currentjob=index"
  147. v-for="(item,index) in jobTypeList" :key="index">
  148. <view class="topbg-yx-box-l-i-c">
  149. <view class="topbg-yx-box-l-i-text">{{item.name}}</view>
  150. <view v-if="currentjob==index" class="topbg-yx-box-l-i-line"></view>
  151. </view>
  152. </view>
  153. </scroll-view>
  154. </view>
  155. </view>
  156. </view> -->
  157. <!-- <view
  158. style="width: 100%;height: 40rpx;background: #F2F2F7;border-radius: 40rpx 40rpx 0 0;margin-top: 20rpx;"
  159. v-if="current == typeList.length - 1 && companList.length>0"></view> -->
  160. </view>
  161. <!-- 岗位推荐 -->
  162. <block v-if="current != typeList.length - 1">
  163. <view class="gwList flex justify-center" v-if="dataList.length > 0">
  164. <view class="gwList-box">
  165. <scroll-view scroll-y="true" style="width: 100%;height: 100%;" refresher-enabled="true"
  166. :refresher-threshold="80" refresher-background="#F2F2F7" refresher-default-style="white"
  167. :refresher-triggered="isRefreshing" @refresherrefresh="handlePullDownRefresh"
  168. @refresherpulling="onPullingDown" @scrolltolower="loadMore"
  169. scroll-with-animation="true">
  170. <view class="gwList-box-item flex justify-center" @click="gotoInfo(item.postPushId)"
  171. v-for="(item, index) in dataList" :key="index">
  172. <view class="gwList-box-item-box">
  173. <!-- 标题-薪资 -->
  174. <view class="gwList-box-item-box-title flex justify-between align-center">
  175. <view class="title-left flex align-center">
  176. <view class="job-title-text"
  177. style="max-width: 450rpx;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;-o-text-overflow:ellipsis;">
  178. <!-- <block v-if="isSameName(item.ruleClassifyName,item.stationName)">
  179. {{item.ruleClassifyName}}-
  180. </block> -->
  181. <block>
  182. {{ item.ruleClassifyName }}
  183. </block>
  184. </view>
  185. <view v-if="item.isDue == 1" class="salary-text-box">
  186. <image src="../../static/images/index/jipinIcom.svg"
  187. class="jipin-icon" />
  188. <text class="jipin-text">急聘</text>
  189. </view>
  190. </view>
  191. <text class="salary-text">{{ item.salaryRange }}</text>
  192. </view>
  193. <!-- 公司名称-公司人数 -->
  194. <view class="gwList-box-item-box-name flex align-center">
  195. <text class="company-name" style="margin-right: 8rpx;">{{ item.company ?
  196. item.company.companyName : '' }}</text>
  197. <text class="company-people" v-if="item.company">{{ item.company ?
  198. item.company.companyPeople : '0人' }}</text>
  199. </view>
  200. <!-- 职位标签 -->
  201. <view class="gwList-box-item-box-label flex align-center flex-wrap">
  202. <text class="job-tag">{{ item.education }}</text>
  203. <text class="job-tag">{{ item.experience }}</text>
  204. <text class="job-tag" v-for="(ite, ind) in item.welfareTag || []"
  205. :key="ind">{{ ite }}</text>
  206. </view>
  207. <!-- <view class="gwList-box-item-box-line"></view> -->
  208. <!-- 公司简介-位置 -->
  209. <view class="gwList-box-item-box-info flex justify-between align-center">
  210. <view class="gwList-box-item-box-info-l flex align-center">
  211. <view class="user-image">
  212. <view class="online-status"
  213. :style="{ 'background-color': item.user && item.user.onlineStatus == 'ONLINE' ? '#00DD9A' : '#999' }">
  214. </view>
  215. <image
  216. :src="item.hr && item.hr.hrImg ? item.hr.hrImg : '../../static/logo.png'"
  217. style="width: 58rpx;height: 58rpx;border-radius: 50%;" mode="">
  218. </image>
  219. </view>
  220. <view class="company-info-text">
  221. {{ item.user && item.user.userName || '未知' }}·{{ item.hr &&
  222. item.hr.hrPosition || '未知' }}
  223. </view>
  224. <view v-if="item.respondTime" class="reply-time">{{ item.respondTime }}
  225. </view>
  226. </view>
  227. <view class="location-text">
  228. {{ item.distance }} {{ item.county }}
  229. </view>
  230. </view>
  231. </view>
  232. </view>
  233. <nomore v-if="dataList.length > 0 && page >= totlo"></nomore>
  234. </scroll-view>
  235. </view>
  236. </view>
  237. <!-- 暂无数据 -->
  238. <view class="gwList" v-else>
  239. <empty />
  240. </view>
  241. </block>
  242. <view class="companyListBox" v-if="current == typeList.length - 1 && companList.length > 0">
  243. <companyListIndex @goInfo="goInfo" :item="item" v-for="(item, index) in companList" :key="index" />
  244. </view>
  245. <view class="gwList" v-if="current == typeList.length - 1 && companList.length == 0">
  246. <empty />
  247. </view>
  248. </view>
  249. <!---------------------------------------- 企业版 -------------------------------------------------------->
  250. <view v-else class="page-container" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
  251. <image class="qySx-bg" src="/static/images/index/index-bg1.png" mode="widthFix"></image>
  252. <view class="topbg-sticky">
  253. <!-- 标题-搜索 -->
  254. <view class="topbg-sticky-box">
  255. <view class="topbg-sticky-title flex justify-between align-center">
  256. <view class="topbg-sticky-title-left flex align-center">
  257. <image src="../../static/images/index/xingIcon.svg" class="xing-icon" />
  258. <view>星光不负逐梦人</view>
  259. </view>
  260. </view>
  261. <view class="topbg-sticky-subtitle">亿职赞,愿你在逐梦路上找到心仪伙伴</view>
  262. </view>
  263. </view>
  264. <!-- 最新公告 -->
  265. <view class="announcement" v-if="gongao.length != 0">
  266. <view class="announcementbox">
  267. <view class="anount">最新公告</view>
  268. <view class="anounts flex align-center" v-if="gongao.length > 0">
  269. <view class="" style="width: 100%;">
  270. <u-notice-bar color="#333" bg-color="#e5fff2" padding="0rpx 24rpx 4rpx 24rpx"
  271. :volume-icon="false" style="height: 100%;" mode="vertical"
  272. :list="gongao"></u-notice-bar>
  273. </view>
  274. </view>
  275. </view>
  276. </view>
  277. <view v-if="gridlist.length != 0">
  278. <u-grid :col="4" :border="false">
  279. <u-grid-item bg-color="#f2f2f7">
  280. <view v-for="(item, index) in gridlist" :key="index" style="text-align: center;"
  281. @click="goNave(item.url)">
  282. <image :src="item.imageUrl" style="width:80rpx;height: 80rpx;border-radius: 50%;">
  283. </image>
  284. <view style="color: #333333;">{{ item.name }}</view>
  285. </view>
  286. </u-grid-item>
  287. </u-grid>
  288. </view>
  289. <!-- 筛选 -->
  290. <!-- :style="{ paddingTop: (12 + statusBarHeight) + 'px !important' }" -->
  291. <u-sticky @fixed="isfixed" @unfixed="isunfixed" h5-nav-height="0" bg-color="#F2F2F7" :enable="enable">
  292. <view class="qySx flex justify-center" :class="isfixeds == true ? 'isfixed' : 'isfixeds'">
  293. <view class="qySx-box">
  294. <!-- 第一行:tabs -->
  295. <view class="qySx-box-row flex justify-between align-center">
  296. <view class="qySx-box-l flex align-center">
  297. <view class="qySx-box-l-i" :class="currentJobSx == index ? 'active' : ''"
  298. @tap="selectJob(item, index)"
  299. v-for="(item, index) in jobSxTypeList" :key="index">
  300. {{ item.name }}
  301. </view>
  302. </view>
  303. <!-- 发布招聘 -->
  304. <!-- <view class="qySx-box-r flex align-center" @click="goNavss('/package/addJob/addJob')">
  305. <image src="../../static/images/index/Attachment.svg" class="attachment-icon" />
  306. </view> -->
  307. <view class="qySx-box-r flex align-center" v-if="isExpandedQY"
  308. @click="goNavss('/pages/my/jobPosting?companyId=' + companyId + '&status=' + companyStatus + '&companyName=' + companyName)">
  309. <image src="../../static/images/index/Attachment.svg" class="attachment-icon" />
  310. </view>
  311. </view>
  312. <!-- 第二行:筛选 -->
  313. <view class="qySx-sx-box flex justify-between align-center" v-if="isExpandedQY">
  314. <!-- 分类 -->
  315. <view class="qySx-sx-box-l flex align-center">
  316. <view class="qySx-sx-box-l-i" :class="currentJobSxs == index ? 'active3' : ''"
  317. @click="currentJobSxs = index" v-for="(item, index) in jobSxsTypeList"
  318. :key="index">
  319. {{ item.name }}
  320. </view>
  321. </view>
  322. <view class="qySx-sx-box-r flex align-center">
  323. <!-- 城市 -->
  324. <view @click="getLocalJobs('go')" class="qySx-sx-box-r-i flex align-center">
  325. <text style="margin-right: 10rpx;">{{ city ? city : '选择城市' }}</text>
  326. <u-icon name="arrow-down" color="#00B78F" size="16"></u-icon>
  327. </view>
  328. <!-- 筛选 -->
  329. <view class="qySx-sx-box-filter flex align-center">
  330. <text style="margin-right: 10rpx;"
  331. @click="goNav('/package/screen/screen?type=2')">筛选</text>
  332. <u-icon name="arrow-down" color="#999999" size="16"
  333. @click="goNav('/package/screen/screen?type=2')"></u-icon>
  334. </view>
  335. </view>
  336. </view>
  337. <!-- 请筛选牛人的跨境标签 -->
  338. <view class="direction-tip" v-if="isExpandedQY">
  339. <view class="direction-tip-title">请筛选牛人的跨境标签</view>
  340. <view class="direction-tip-subtitle">跨境标签将用于为您推荐更匹配的牛人</view>
  341. <!-- 标签选择 -->
  342. <view class="direction-tags flex align-center flex-wrap">
  343. <view class="direction-tag"
  344. :class="positionTagArr.indexOf(item.id) >= 0 || (positionTagArr.length <= 0 && item.id == '不限') ? 'active' : ''"
  345. @click="selectPositionTag(item)" v-for="(item, index) in positionTag"
  346. :key="index">
  347. {{ item.name }}
  348. </view>
  349. <view class="direction-tag-plus" @click="goToPage">
  350. <u-icon name="plus" color="#999999" size="16"></u-icon>
  351. </view>
  352. </view>
  353. </view>
  354. <!-- 展开收起 -->
  355. <view style="text-align: right;" @click="isExpandedQY = !isExpandedQY">
  356. <u-icon :name="isExpandedQY ? 'arrow-up' : 'arrow-down'" color="#016bf6"></u-icon>
  357. </view>
  358. </view>
  359. </view>
  360. </u-sticky>
  361. <!-- Vip推荐 -->
  362. <!-- <view class="vipRecommend">
  363. <view class="vipRecommend-box">
  364. <view class="vipRecommend-close" @click="closeVipRecommend">
  365. <image src="../../static/images/index/qiyeDelete.svg" class="close-icon" />
  366. </view>
  367. <view class="vipRecommend-content">
  368. <view class="vipRecommend-title">
  369. <text class="job-title">亚马逊运营总监</text>
  370. <text class="job-status">职位体验中</text>
  371. </view>
  372. <view class="vipRecommend-message">
  373. 今日已错过24位新增牛人
  374. </view>
  375. <view class="vipRecommend-hint">
  376. 升级VIP正式版,享更多查看沟通权益
  377. </view>
  378. </view>
  379. </view>
  380. </view> -->
  381. <!-- 简历列表 -->
  382. <view class="qyList flex justify-center">
  383. <view class="qyList-box" v-if="datasList.length > 0">
  384. <scroll-view scroll-y="true" style="width: 100%;height: 100%;" refresher-enabled="true"
  385. :refresher-threshold="80" refresher-background="#F2F2F7" refresher-default-style="white"
  386. :refresher-triggered="isRefreshing" @refresherrefresh="handlePullDownRefresh"
  387. @refresherpulling="onPullingDown" @scrolltolower="loadMore" scroll-with-animation="true">
  388. <view class="qyList-box-item flex justify-center" v-for="(item, index) in datasList"
  389. :key="index"
  390. @click="goNav('/pages/talentSearch/resumeDetail?resumesId=' + item.resumesId + '&postPushId=' + (jobSxTypeList.length > 0 ? jobSxTypeList[currentJobSx].id : ''), 'company')">
  391. <!-- /pages/index/game/orderDet -->
  392. <view class="qyList-box-item-box">
  393. <view class="qyList-box-item-info flex justify-between align-center">
  394. <view class="qyList-box-item-info-l">
  395. <view class="online-name"
  396. style="color: #212121;font-size: 38rpx;font-weight: 800;">
  397. {{ item.userName }}
  398. <view class="online-txt"
  399. :style="{ 'background': item.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 0.1)' : '#eee', 'color': item.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 1)' : '#999' }">
  400. <view class="dot-icon"
  401. :style="{ 'background': item.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 1)' : '#999' }">
  402. </view>
  403. {{ item.onlineStatus == 'ONLINE' ? '在线' : '离线' }}
  404. </view>
  405. </view>
  406. <view class="flex align-center flex-wrap"
  407. style="color: #999999;font-size: 26rpx;margin-top: 10rpx;">
  408. <text>{{ item.userAge }}岁</text>
  409. <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
  410. <text>{{ item.resumesWorkExperience || 0 }}年</text>
  411. <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
  412. <text>{{ item.degree }}</text>
  413. <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
  414. <text>期望{{ item.minSalary }}-{{ item.maxSalary }}元</text>
  415. </view>
  416. </view>
  417. <view class="qyList-box-item-info-r">
  418. <image :src="item.userAvatar ? item.userAvatar : '../../static/logo.png'"
  419. style="width: 95rpx;height: 95rpx;border-radius: 50%;" mode=""></image>
  420. </view>
  421. </view>
  422. <!-- 标签 -->
  423. <view v-if="item.intentPostSkill" class="flex align-center flex-wrap" style="gap:8rpx;margin: 32rpx 0;">
  424. <view v-for="(text,i) in parseSkills(item.intentPostSkill)" :key="i" class="skillTag">
  425. {{text}}
  426. </view>
  427. </view>
  428. <view class="qyList-box-item-job flex align-center">
  429. <image src="../../static/images/qi.png"
  430. style="width: 30rpx;height: 32rpx;margin-right: 16rpx;" mode=""></image>
  431. <block v-if="item.companyName">
  432. <view class="work-school">
  433. <view class="txt-desc-box" v-if="item.companyName">
  434. <view class="txt-desc">
  435. {{ item.companyName ? item.companyName : '' }}
  436. </view>
  437. <view class="txt-desc">
  438. {{ item.lastWorkStartTime ? item.lastWorkStartTime.slice(0, 10)
  439. : ''
  440. }}--{{
  441. item.lastWorkEndTime ? item.lastWorkEndTime.slice(0, 10) : '' }}
  442. </view>
  443. </view>
  444. <view class="txt-desc-box" v-if="item.school">
  445. <view class="txt-desc">
  446. {{ item.school ? item.school : '' }}
  447. </view>
  448. <view class="txt-desc">
  449. {{ item.degree ? item.degree : '' }}
  450. </view>
  451. </view>
  452. </view>
  453. </block>
  454. <block v-else>
  455. 暂无工作经历
  456. </block>
  457. </view>
  458. <view class="qyList-box-item-job flex align-center">
  459. <u-icon name="heart-fill" color="#016BF6" size="30"
  460. style="margin-right: 16rpx;">
  461. </u-icon>
  462. 求职期望:{{ item.expectedPosition }}
  463. </view>
  464. <view class="resume-skills" v-if="item.skills && item.skills.length > 0">
  465. <!-- <text class="skills-label">技能标签:</text> -->
  466. <view class="skills-tags flex flex-wrap">
  467. <text class="tag-item" v-for="(skill, skillIdx) in item.skills.split(',')"
  468. :key="skillIdx">
  469. {{ skill }}
  470. </text>
  471. </view>
  472. </view>
  473. <view class="qyList-box-item-rem" v-if="item.workContent">
  474. 优势:{{ item.workContent }}
  475. </view>
  476. </view>
  477. </view>
  478. <nomore v-if="datasList.length > 0 && page >= totlo"></nomore>
  479. </scroll-view>
  480. </view>
  481. <view class="qyList-box" v-else>
  482. <empty :isShow="false" v-if="datasList.length == 0" />
  483. </view>
  484. </view>
  485. </view>
  486. </block>
  487. <view v-if="goback == true" class="goback" @click="gotoBack">
  488. <image style="width: 88rpx;height: 88rpx;border-radius: 50%;" src="../../static/images/up.jpg" mode="">
  489. </image>
  490. </view>
  491. <u-popup mode="top" ref="permission">
  492. <view class="popup-content">
  493. <view class="popup-text-permission">获取位置需要定位权限,用于推荐同城的求职岗位或牛人</view>
  494. </view>
  495. </u-popup>
  496. </view>
  497. </template>
  498. <script>
  499. import empty from '../../components/empty.vue'
  500. import nomore from '../../components/nomore.vue'
  501. import permision from '@/js_sdk/wa-permission/permission.js'
  502. import companyListIndex from '@/components/companyListIndex/companyListIndex.vue'
  503. export default {
  504. components: {
  505. empty,
  506. companyListIndex,
  507. nomore
  508. },
  509. data() {
  510. return {
  511. statusBarHeight: 0, // 状态栏高度
  512. enable: true, //开启吸顶
  513. goback: false,
  514. county: '', //区
  515. city: '',
  516. companyName: "",
  517. companyId: "",
  518. datasList: [],
  519. isfixeds: false,
  520. userType: 1,
  521. dataList: [],
  522. current: 0,
  523. typeList: [],
  524. isRefreshing: false,
  525. currentSx: 0,
  526. sxTypeList: [{
  527. id: 1,
  528. name: '推荐',
  529. },
  530. {
  531. id: 2,
  532. name: '最新',
  533. }
  534. ],
  535. currentjob: 0,
  536. jobTypeList: [{
  537. projectName: '',
  538. name: '全部',
  539. },],
  540. currentJobSx: 0,
  541. jobSxTypeList: [{
  542. projectName: '',
  543. name: '全部',
  544. }],
  545. currentJobSxs: 0,
  546. jobSxsTypeList: [{
  547. id: 1,
  548. name: '跨境标签',
  549. },
  550. {
  551. id: 2,
  552. name: '最新',
  553. },
  554. //{
  555. // id: 2,
  556. // name: '优选',
  557. // }
  558. ],
  559. token: '',
  560. page: 1,
  561. limit: 10,
  562. latitude: '',
  563. longitude: '',
  564. totlo: 0,
  565. education: '', //学历
  566. experience: '', //经验
  567. industry: '', //行业
  568. salaryRange: '', //薪资
  569. companyPeople: '', //公司规模
  570. preference: [],
  571. domeWidth: 0,
  572. showModal: true,
  573. arr: [],
  574. companyStatus: '',
  575. XCXIsSelect: '是',
  576. bannerList: [], //企业端轮播图
  577. isExpanded: true, // 控制展开/收起状态
  578. isExpandedQY:true,
  579. bannerListuser: [], //用户端轮播图
  580. gridlist: [], //用户端分类
  581. gongao: [], //公告
  582. tuiguang: '', //分享标题
  583. bgImg: '', //分享图片
  584. companList: [], //公司列表
  585. directionList: [ //方向列表
  586. {
  587. id: '不限',
  588. name: '不限',
  589. ruleClassifyId:0
  590. }
  591. ],
  592. // 招聘端标签
  593. positionTag:[
  594. {
  595. id: '不限',
  596. name: '不限',
  597. }
  598. ],
  599. positionTagArr:[],
  600. preferenceChange:false
  601. };
  602. },
  603. onShareAppMessage(res) {
  604. return {
  605. path: '/pages/index/index?invitation=' + uni.getStorageSync(
  606. 'invitationCode'), //这是为了传参 onload(data){let id=data.id;}
  607. title: this.tuiguang,
  608. imageUrl: this.bgImg
  609. }
  610. },
  611. onShareTimeline(res) {
  612. return {
  613. path: '/pages/index/index?invitation=' + uni.getStorageSync(
  614. 'invitationCode'), //这是为了传参
  615. title: this.tuiguang,
  616. imageUrl: this.bgImg
  617. }
  618. },
  619. computed: {
  620. filledFieldsCount() {
  621. const fields = [this.education, this.experience, this.industry, this.salaryRange, this.companyPeople];
  622. const count = fields.filter(item => item).length;
  623. return count > 0 ? '·' + count : '';
  624. }
  625. },
  626. watch: {
  627. current(newData, oldData) {
  628. console.log(this.current)
  629. uni.showLoading({
  630. title: '加载中'
  631. })
  632. this.page = 1
  633. if (this.current == this.typeList.length - 1) { //公司
  634. this.getComanyList()
  635. } else {
  636. //this.getUserList()
  637. this.directionList=[ //方向列表
  638. {
  639. id: '不限',
  640. name: '不限',
  641. ruleClassifyId:0
  642. }
  643. ]
  644. this.preferenceChange=false
  645. this.preference=[]
  646. this.industry=''
  647. this.getPostType()
  648. }
  649. },
  650. currentSx(newData, oldData) {
  651. uni.showLoading({
  652. title: '加载中'
  653. })
  654. this.page = 1
  655. this.getUserList();
  656. },
  657. currentjob(newData, oldData) {
  658. uni.showLoading({
  659. title: '加载中'
  660. })
  661. this.page = 1
  662. this.getUserList()
  663. },
  664. currentJobSx(newData, oldData) {
  665. uni.showLoading({
  666. title: '加载中'
  667. })
  668. this.page = 1
  669. this.getPeopList()
  670. },
  671. currentJobSxs(newData, oldData) {
  672. uni.showLoading({
  673. title: '加载中'
  674. })
  675. this.page = 1
  676. this.getPeopList()
  677. },
  678. //监听userType的变化 如果有旧值跟新值不同 则把分页重置为初始状态,为了解决切换身份后数据分页错误的问题
  679. userType(newType, oldType) {
  680. if (newType != oldType) {
  681. this.page = 1
  682. if (this.userType == 1) {
  683. uni.showLoading({
  684. title: '加载中'
  685. })
  686. this.page = 1
  687. this.getUserList()
  688. } else {
  689. uni.showLoading({
  690. title: '加载中'
  691. })
  692. this.page = 1
  693. this.getCompanyClassify()
  694. }
  695. }
  696. }
  697. },
  698. onPageScroll(e) {
  699. if (e.scrollTop > 350) {
  700. this.goback = true
  701. } else {
  702. this.goback = false
  703. }
  704. },
  705. onLoad(e) {
  706. // 获取状态栏高度
  707. let systemInfo = uni.getSystemInfoSync();
  708. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  709. this.companyId = uni.getStorageSync('companyId');
  710. // #ifdef APP
  711. /* this.getAudioPermision() */
  712. // #endif
  713. // 获取邀请码保存到本地
  714. if (e.invitation) {
  715. this.$queue.setData('inviterCode', e.invitation);
  716. }
  717. // #ifdef MP-WEIXIN
  718. if (e.scene) {
  719. const scene = decodeURIComponent(e.scene);
  720. this.$queue.setData('inviterCode', scene.split(',')[0]);
  721. }
  722. // #endif
  723. // this.XCXIsSelect = this.$queue.getData("XCXIsSelect");
  724. // uni.showLoading({
  725. // title: '加载中'
  726. // })
  727. if (uni.getStorageSync('userType')) {
  728. this.userType = uni.getStorageSync('userType');
  729. }
  730. let that = this
  731. uni.$on('preferenceUpdated', (data) => {
  732. let prefer = []
  733. data.preferences.forEach(function (item) {
  734. var tem = {
  735. id: item,
  736. name: item,
  737. ruleClassifyId:that.typeList[that.current].id
  738. }
  739. prefer.push(tem)
  740. })
  741. let preference = this.preference;
  742. that.preference = preference.filter(item => data.preferences.includes(item));
  743. that.directionList = prefer
  744. that.preferenceChange=true
  745. })
  746. uni.$on("skillsUpdated", (data) => {
  747. console.log("接收到的职位技能数据:", data);
  748. let prefer = data.selectedTags.map(item => ({
  749. id: item,
  750. name: item
  751. }))
  752. prefer = prefer.filter(tag => tag.id !== '不限')
  753. prefer.unshift({ id: '不限', name: '不限' })
  754. // 更新当前岗位下的标签
  755. if (this.currentRuleClassifyId) {
  756. this.$set(this.positionTagMap, this.currentRuleClassifyId, prefer)
  757. this.positionTag = prefer
  758. }
  759. })
  760. //#ifdef H5
  761. this.getLocalJobs('');
  762. //#endif
  763. //#ifdef APP-PLUS
  764. const appAuthorizeSetting = uni.getAppAuthorizeSetting()
  765. if (appAuthorizeSetting.locationAuthorized == 'authorized')
  766. this.getLocalJobs('');
  767. //#endif
  768. this.getDomWidth()
  769. this.$Request.getT('/app/common/type/255').then(res => {
  770. if (res.code === 0) {
  771. if (res.data && res.data.value) {
  772. this.tuiguang = res.data.value;
  773. }
  774. }
  775. });
  776. if (this.userType == 1) { //用户邀请图
  777. this.$Request.getT('/app/banner/selectBannerList?state=-1&classify=5').then(res => {
  778. if (res.code === 0) {
  779. this.bgImg = res.data[0].imageUrl;
  780. }
  781. });
  782. } else { //企业邀请图
  783. this.$Request.getT('/app/banner/selectBannerList?state=-1&classify=6').then(res => {
  784. if (res.code === 0) {
  785. this.bgImg = res.data[0].imageUrl;
  786. }
  787. });
  788. }
  789. // 监听筛选条件触发getJobSearchList
  790. uni.$on('updateScreenFilterRecord', () => {
  791. //待处理
  792. })
  793. // uni.$on('city', data => {
  794. // that.city = data.city
  795. // uni.setStorageSync('city', that.city)
  796. // })
  797. uni.$on('filterCity', data => {
  798. console.log(data, '选择的市')
  799. that.city = data.city
  800. that.county = data.county
  801. uni.setStorageSync('city', that.city)
  802. this.page = 1
  803. that.getUserList();
  804. })
  805. uni.$on('updateIndexType', data => {
  806. this.page = 1
  807. this.getPostType()
  808. })
  809. },
  810. onUnload() {
  811. uni.$off('filterCity');
  812. uni.$off('preferenceUpdated')
  813. uni.$off('updateScreenFilterRecord')
  814. uni.$off('updateIndexType')
  815. uni.$off('skillsUpdated')
  816. },
  817. onHide() {
  818. //离开页面时关闭吸顶功能,用于处理h5环境运行下'bottom' of null报错的问题
  819. this.enable = false
  820. },
  821. onShow() {
  822. let that = this;
  823. this.getBannerList()
  824. this.getgridList()
  825. this.getgonggaoList()
  826. // #ifdef MP-WEIXIN
  827. this.$Request.get('/app/common/type/257').then(res => {
  828. if (res.code == 0) {
  829. // #ifdef MP-WEIXIN
  830. this.XCXIsSelect = res.data.value
  831. // #endif
  832. // #ifndef MP-WEIXIN
  833. this.XCXIsSelect = '是'
  834. // #endif
  835. }
  836. });
  837. // this.$Request.get('/app/common/type/238').then(res => {
  838. // if (res.code == 0) {
  839. // // #ifdef MP-WEIXIN
  840. // this.XCXIsSelect = res.data.value
  841. // // #endif
  842. // // #ifndef MP-WEIXIN
  843. // this.XCXIsSelect = '是'
  844. // // #endif
  845. // }
  846. // });
  847. // #endif
  848. this.enable = true
  849. if (uni.getStorageSync('userType')) {
  850. this.userType = uni.getStorageSync('userType');
  851. }
  852. this.token = uni.getStorageSync('token');
  853. const condition = this.$queue.getFilterData()
  854. this.education = condition.education //学历
  855. this.experience = condition.experience //经验
  856. this.industry = condition.industry //行业
  857. this.salaryRange = condition.salaryRange //薪资
  858. this.companyPeople = condition.companyPeople //公司规模
  859. // this.getPostType();
  860. if (this.userType == 1) {
  861. uni.setNavigationBarColor({
  862. frontColor: '#ffffff',
  863. backgroundColor: '#00DD9A'
  864. })
  865. } else {
  866. uni.setNavigationBarColor({
  867. frontColor: '#000000',
  868. backgroundColor: '#F2F2F7'
  869. })
  870. }
  871. if (this.token) {
  872. this.getUserInfo();
  873. if (this.userType == 1) {
  874. this.getJobType();
  875. } else {
  876. this.jobTypeList = [{
  877. projectName: '',
  878. name: '全部',
  879. }]
  880. this.getCompanyClassify()
  881. this.getCompanyStatus()
  882. }
  883. this.$Request.getT('/app/common/type/310').then(res => { //消息未读提醒
  884. if (res.code == 0) {
  885. if (res.data && res.data.value) {
  886. this.arr.push(res.data.value)
  887. }
  888. }
  889. })
  890. this.$Request.getT('/app/common/type/337').then(res => { //预约成功通知(通用)
  891. if (res.code == 0) {
  892. if (res.data && res.data.value) {
  893. this.arr.push(res.data.value)
  894. }
  895. }
  896. })
  897. this.$Request.getT('/app/common/type/338').then(res => { //订单状态通知
  898. if (res.code == 0) {
  899. if (res.data && res.data.value) {
  900. this.arr.push(res.data.value)
  901. }
  902. }
  903. })
  904. // #ifdef MP-WEIXIN
  905. if (this.showModal) {
  906. this.openMsg()
  907. }
  908. // #endif
  909. } else {
  910. this.jobTypeList = [{
  911. projectName: '',
  912. name: '全部',
  913. }]
  914. }
  915. if (uni.getStorageSync('city')) {
  916. this.city = uni.getStorageSync('city')
  917. } else {
  918. this.city = ''
  919. }
  920. if (this.city || true) {
  921. if (this.userType == 1) {
  922. if (this.current != this.typeList.length - 1) {
  923. this.getPostType();
  924. } else {
  925. this.getComanyList()
  926. }
  927. } else {
  928. this.getCompanyClassify()
  929. }
  930. }
  931. },
  932. methods: {
  933. parseSkills(str) {
  934. if (!str) return [];
  935. // 统一替换中文逗号为英文逗号
  936. str = str.replace(/,/g, ',');
  937. // 先判断用什么分隔符
  938. if (str.includes('/')) {
  939. return str.split('/').filter(Boolean);
  940. } else if (str.includes(',')) {
  941. return str.split(',').filter(Boolean);
  942. }
  943. // 没有分隔符,直接返回数组
  944. return [str];
  945. },
  946. selectJob(job, index) {
  947. this.currentJobSx = index
  948. this.currentRuleClassifyId = job.ruleClassifyId
  949. this.positionTag = this.positionTagMap[job.ruleClassifyId] || [{ id: '不限', name: '不限' }]
  950. this.getDomWidth()
  951. },
  952. //下拉过程
  953. onPullingDown() {
  954. // 可以在这里处理下拉过程中的逻辑,比如显示下拉进度
  955. },
  956. //下拉刷新处理
  957. handlePullDownRefresh() {
  958. this.isRefreshing = true
  959. this.page = 1
  960. if (this.userType == 1) {
  961. if (this.current != this.typeList.length - 1) {
  962. this.getUserList()
  963. } else {
  964. this.getComanyList()
  965. }
  966. } else {
  967. this.getPeopList()
  968. }
  969. },
  970. // 加载更多
  971. loadMore() {
  972. // 检查是否还有更多数据(当前页码小于总页数)
  973. if (this.page < this.totlo) {
  974. this.page += 1
  975. if (this.userType == 1) {
  976. if (this.current != this.typeList.length - 1) {
  977. this.getUserList()
  978. } else {
  979. this.getComanyList()
  980. }
  981. } else {
  982. this.getPeopList()
  983. }
  984. } else {
  985. // uni.showToast({
  986. // title: '已加载全部数据',
  987. // icon: 'none'
  988. // })
  989. }
  990. },
  991. //去企业详情
  992. goInfo(item) {
  993. uni.navigateTo({
  994. url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + item.companyId
  995. })
  996. },
  997. //
  998. async getLocalJobs(go = 'go') {
  999. let that = this;
  1000. // #ifdef APP
  1001. const hasLocation = await this.$queue.checkPermission(
  1002. 'location',
  1003. '获取位置需要定位权限,用于推荐同城的求职岗位或牛人',
  1004. this
  1005. );
  1006. if (!hasLocation) return that.goNav('/package/screen/city?city=' + that.city + '&county=' + that.county);
  1007. // #endif
  1008. that.getCity(go)
  1009. },
  1010. getCity(go = '') {
  1011. var that = this
  1012. // 权限通过,调用定位API
  1013. uni.getLocation({
  1014. type: 'wgs84', //wgs84 gcj02
  1015. success: function (res) {
  1016. console.log(res, '地理位置');
  1017. that.latitude = res.latitude;
  1018. that.longitude = res.longitude;
  1019. if (that.$queue.array_column(that.sxTypeList, 'id').indexOf(3) < 0)
  1020. that.sxTypeList.push({
  1021. id: 3,
  1022. name: '附近'
  1023. })
  1024. if (that.userType == 1) {
  1025. // that.getUserList();
  1026. that.getPostType()
  1027. } else {
  1028. that.getCompanyClassify()
  1029. }
  1030. // console.log(uni.getStorageSync('city') == '', '22222222222')
  1031. if (!uni.getStorageSync('city') || uni.getStorageSync('city') == '' || uni
  1032. .getStorageSync(
  1033. 'city') == null) {
  1034. // #ifdef APP-PLUS
  1035. if (res.address) {
  1036. that.city = res.address.city
  1037. if (go == 'go')
  1038. that.goNav('/package/screen/city?city=' + that.city + '&county=' + that.county + '&type=' + 'search')
  1039. return;
  1040. } else {
  1041. that.getSelectCity(that.longitude, that.latitude, go);
  1042. return
  1043. }
  1044. // #endif
  1045. // #ifndef APP
  1046. that.getSelectCity(that.longitude, that.latitude, go);
  1047. return
  1048. // #endif
  1049. } else {
  1050. that.city = uni.getStorageSync('city')
  1051. if (go == 'go')
  1052. that.goNav('/package/screen/city?city=' + that.city + '&county=' + that.county + '&type=' + 'search')
  1053. }
  1054. },
  1055. fail: function () {
  1056. console.log('获取地址失败');
  1057. // 获取位置失败时也要关闭加载并调用数据接口
  1058. uni.hideLoading()
  1059. // 即使没有位置信息,也要加载数据
  1060. if (that.userType == 1) {
  1061. that.getPostType()
  1062. } else {
  1063. that.getCompanyClassify()
  1064. }
  1065. if (go == 'go')
  1066. that.goNav('/package/screen/city?city=' + that.city + '&county=' + that.county + '&type=' + 'search')
  1067. }
  1068. })
  1069. },
  1070. //获取公司列表
  1071. getComanyList() {
  1072. let data = {
  1073. page: this.page,
  1074. limit: this.limit,
  1075. city: this.city == '全国' ? '' : this.city, //城市
  1076. companyScope: this.industry,
  1077. companyPeople: this.companyPeople
  1078. }
  1079. this.$Request.getT('/app/company/listCompany', data).then(res => {
  1080. uni.hideLoading()
  1081. this.isRefreshing = false
  1082. if (res.code == 0) {
  1083. this.totlo = res.data.pages
  1084. if (this.page == 1) {
  1085. this.companList = res.data.records
  1086. } else {
  1087. this.companList = [...this.companList, ...res.data.records]
  1088. }
  1089. // this.companList = res.data
  1090. } else {
  1091. uni.showToast({
  1092. title: res.msg,
  1093. icon: 'none'
  1094. })
  1095. }
  1096. }).catch(err => {
  1097. this.isRefreshing = false
  1098. uni.hideLoading()
  1099. })
  1100. },
  1101. isSameName(className, name) {
  1102. let str1 = className.trim();
  1103. if (str2 == null)
  1104. return false;
  1105. let str2 = name.trim();
  1106. if (str1.length !== str2.length) {
  1107. return true;
  1108. }
  1109. return str1.toLowerCase() !== str2.toLowerCase();
  1110. },
  1111. //获取麦克风/摄像头权限
  1112. async getAudioPermision() {
  1113. let status = permision.isIOS ? await permision.judgeIosPermission("record") : await permision
  1114. .requestAndroidPermission("android.permission.RECORD_AUDIO")
  1115. let status2 = permision.isIOS ? await permision.judgeIosPermission("camera") : await permision
  1116. .requestAndroidPermission("android.permission.CAMERA")
  1117. if (status === null || status === 1 || status == true) { //已经同意授权
  1118. console.log('获取到权限了')
  1119. } else { //未授权的
  1120. this.popupshowsq = true
  1121. }
  1122. },
  1123. goNave(url) {
  1124. if (url.indexOf('/pages/') !== -1 || url.indexOf('/my/') !== -1 || url.indexOf('/package/') !== -1) {
  1125. uni.navigateTo({
  1126. url
  1127. });
  1128. } else {
  1129. //#ifndef H5
  1130. uni.navigateTo({
  1131. url: '/pages/index/webView?url=' + url
  1132. });
  1133. //#endif
  1134. //#ifdef H5
  1135. window.location.href = url;
  1136. //#endif
  1137. }
  1138. },
  1139. //获取公告
  1140. getgonggaoList() {
  1141. if (!uni.getStorageSync('userType') || uni.getStorageSync('userType') == 1) {
  1142. this.$Request.get('/app/message/page/1/1/100').then(res => {
  1143. if (res.code == 0) {
  1144. let arr = []
  1145. res.data.list.map(item => {
  1146. if (item.type == 1) {
  1147. arr.push(item.title)
  1148. }
  1149. })
  1150. this.gongao = arr
  1151. } else {
  1152. this.gongao = []
  1153. }
  1154. })
  1155. } else if (uni.getStorageSync('userType') == 2) {
  1156. this.$Request.get('/app/message/page/1/1/100').then(res => {
  1157. if (res.code == 0) {
  1158. let arr = []
  1159. res.data.list.map(item => {
  1160. if (item.type == 2) {
  1161. arr.push(item.title)
  1162. }
  1163. })
  1164. this.gongao = arr
  1165. } else {
  1166. this.gongao = []
  1167. }
  1168. })
  1169. }
  1170. },
  1171. //获取金刚区
  1172. getgridList() {
  1173. if (uni.getStorageSync('userType') == 1) {
  1174. this.$Request.get('/app/banner/selectBannerList?classify=2').then(res => {
  1175. if (res.code == 0) {
  1176. this.gridlist = res.data
  1177. } else {
  1178. this.gridlist = []
  1179. }
  1180. })
  1181. } else {
  1182. this.$Request.get('/app/banner/selectBannerList?classify=4').then(res => {
  1183. if (res.code == 0) {
  1184. this.gridlist = res.data
  1185. } else {
  1186. this.gridlist = []
  1187. }
  1188. })
  1189. }
  1190. },
  1191. //获取bannerlist
  1192. getBannerList() {
  1193. if (!uni.getStorageSync('userType') || uni.getStorageSync('userType') == 1) {
  1194. this.$Request.get('/app/banner/selectBannerList?classify=1').then(res => {
  1195. if (res.code == 0) {
  1196. this.bannerListuser = res.data
  1197. this.bannerList = res.data
  1198. } else {
  1199. this.bannerListuser = [
  1200. 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fphoto%2F2007-11-7%2F200711072147151187.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1674883340&t=4b9cbb7796600699ac28f75cd138ba04'
  1201. ]
  1202. }
  1203. })
  1204. } else if (uni.getStorageSync('userType') == 2) {
  1205. this.$Request.get('/app/banner/selectBannerList?classify=3').then(res => {
  1206. if (res.code == 0) {
  1207. this.bannerList = res.data
  1208. } else {
  1209. this.bannerList = [
  1210. 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fphoto%2F2007-11-7%2F200711072147151187.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1674883340&t=4b9cbb7796600699ac28f75cd138ba04'
  1211. ]
  1212. }
  1213. })
  1214. }
  1215. },
  1216. goNavss(url) {
  1217. if (this.companyStatus) {
  1218. if (this.companyStatus == 1) {
  1219. uni.showToast({
  1220. title: '企业认证审核中,请审核通过后操作!',
  1221. icon: 'none'
  1222. })
  1223. return
  1224. }
  1225. if (this.companyStatus == 3) {
  1226. uni.showToast({
  1227. title: '企业认证审核未通过,请重新认证!',
  1228. icon: 'none'
  1229. })
  1230. return
  1231. }
  1232. uni.navigateTo({
  1233. url: url
  1234. })
  1235. } else {
  1236. uni.showModal({
  1237. title: '提示',
  1238. content: '还未完成企业认证,请完成企业认证后操作',
  1239. complete(ret) {
  1240. if (ret.confirm) {
  1241. uni.navigateTo({
  1242. url: '/pages/my/businessLicense'
  1243. })
  1244. }
  1245. }
  1246. })
  1247. }
  1248. },
  1249. //获取企业认证状态(1:审核中 2:通过 3:拒绝)
  1250. getCompanyStatus() {
  1251. this.$Request.get("/app/company/selectCompanyByUserId").then(res => {
  1252. if (res.code == 0 && res.data) {
  1253. this.companyStatus = res.data.status
  1254. this.companyId = res.data.companyId
  1255. this.companyName = res.data.companyAllName
  1256. uni.setStorageSync('companyStatus', this.companyStatus)
  1257. uni.setStorageSync('companyId', res.data.companyId)
  1258. this.companyId = this.companyId
  1259. if (this.companyStatus == 1) {
  1260. uni.showModal({
  1261. title: '提示',
  1262. content: '企业正在认证审核中。',
  1263. showCancel: false,
  1264. complete(ret) {
  1265. if (ret.confirm) {
  1266. uni.navigateTo({
  1267. url: "/package/jobIntention/underReview"
  1268. });
  1269. }
  1270. }
  1271. })
  1272. }
  1273. if (this.companyStatus == 3) {
  1274. uni.showModal({
  1275. title: '提示',
  1276. content: '企业认证被拒绝。请修改',
  1277. complete(ret) {
  1278. if (ret.confirm) {
  1279. uni.navigateTo({
  1280. url: "/package/jobIntention/underReview"
  1281. });
  1282. }
  1283. }
  1284. })
  1285. }
  1286. } else {
  1287. this.companyStatus = ''
  1288. }
  1289. })
  1290. },
  1291. // 开启订阅消息
  1292. openMsg() {
  1293. console.log('订阅消息')
  1294. var that = this
  1295. uni.getSetting({
  1296. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  1297. success(ret) {
  1298. console.log(ret.subscriptionsSetting, '------------------')
  1299. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  1300. if (ret.subscriptionsSetting.itemSettings) {
  1301. uni.setStorageSync('sendMsg', true)
  1302. uni.openSetting({ // 打开设置页
  1303. success(rea) {
  1304. console.log(rea.authSetting)
  1305. }
  1306. });
  1307. } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  1308. console.log(99999)
  1309. uni.setStorageSync('sendMsg', false)
  1310. uni.showModal({
  1311. title: '提示',
  1312. content: '为了更好的体验,请绑定消息推送',
  1313. confirmText: '确定',
  1314. cancelText: '取消',
  1315. confirmColor: '#016BF6',
  1316. success: function (res) {
  1317. if (res.confirm) {
  1318. console.log(that.arr)
  1319. wx.requestSubscribeMessage({
  1320. tmplIds: that.arr,
  1321. success(re) {
  1322. console.log(JSON.stringify(re),
  1323. '++++++++++++++')
  1324. var datas = JSON.stringify(re);
  1325. if (datas.indexOf("accept") != -1) {
  1326. console.log(re)
  1327. uni.setStorageSync('sendMsg', true)
  1328. }
  1329. },
  1330. fail: (res) => {
  1331. console.log(res)
  1332. }
  1333. })
  1334. uni.setStorageSync('sendMsg', true)
  1335. console.log('确认')
  1336. that.showModal = false
  1337. } else if (res.cancel) {
  1338. console.log('取消')
  1339. uni.setStorageSync('sendMsg', false)
  1340. that.showModal = true
  1341. }
  1342. }
  1343. })
  1344. }
  1345. }
  1346. })
  1347. },
  1348. //回到顶部
  1349. gotoBack() {
  1350. uni.pageScrollTo({
  1351. scrollTop: 0,
  1352. duration: 300
  1353. })
  1354. },
  1355. /**
  1356. * 获取简历列表
  1357. */
  1358. getPeopList() {
  1359. let data = {
  1360. page: this.page,
  1361. limit: this.limit,
  1362. postType: '', //工作性质
  1363. expectedPosition:this.jobSxTypeList.length > 0 ? this.jobSxTypeList[this.currentJobSx].projectName : '', //岗位名称
  1364. screen: +this.currentJobSxs + 1, //1推荐 2最新
  1365. city: this.city == '全国' ? '' : this.city, //城市
  1366. salaryRange: this.salaryRange, //薪资范围
  1367. eduRange: this.education, //学历
  1368. expRange: this.experience, //经验
  1369. intentPostSkill:this.positionTagArr.join(','),
  1370. //industryName: this.industry, //行业
  1371. // companyPeople: this.companyPeople, //公司规模
  1372. lng: this.longitude,
  1373. lat: this.latitude,
  1374. //isRecommend:this.currentJobSxs==1?this.currentJobSxs:0,//推荐
  1375. companyId: uni.getStorageSync('companyId') ? uni.getStorageSync('companyId') : ''
  1376. }
  1377. this.$Request.postJson('/app/resumes/selectResumesList', data).then(res => {
  1378. // 1. 停止下拉刷新和隐藏loading(无论请求结果如何都执行)
  1379. this.isRefreshing = false
  1380. uni.hideLoading()
  1381. // 2. 第一层校验:确保res、res.data、res.data.records都存在且为数组
  1382. if (res.code == 0 && res.data && Array.isArray(res.data.records)) {
  1383. this.totalPage = res.data.totalPage
  1384. this.totlo = res.data.totalPage // 注意:变量名疑似笔误(totlo → totalPage?)
  1385. // 3. 处理列表:过滤null/undefined元素 + 安全访问skillTags
  1386. const list = res.data.records
  1387. .filter(item => item !== null && item !== undefined) // 过滤空元素
  1388. .map(item => {
  1389. // 安全赋值:item存在时才访问skillTags,否则赋值为空字符串
  1390. item.skills = item?.skillTags || '';
  1391. return item;
  1392. });
  1393. // 4. 分页赋值(避免空数组覆盖)
  1394. if (this.page == 1) {
  1395. this.datasList = list
  1396. } else {
  1397. this.datasList = [...this.datasList, ...list]
  1398. }
  1399. this.totlo = res.data.pages
  1400. } else {
  1401. // 5. 异常情况:仅第一页清空列表,避免翻页时丢失数据
  1402. if (this.page === 1) {
  1403. this.datasList = []
  1404. }
  1405. // 可选:提示用户无数据
  1406. // uni.showToast({ title: '暂无数据', icon: 'none' })
  1407. }
  1408. }).catch(err => {
  1409. // 6. 捕获请求异常(如网络错误、接口500)
  1410. this.isRefreshing = false
  1411. uni.hideLoading()
  1412. uni.showToast({
  1413. title: '请求失败,请重试',
  1414. icon: 'none'
  1415. })
  1416. console.error('简历列表请求失败:', err)
  1417. })
  1418. },
  1419. /**
  1420. * 获取公司发布的岗位列表
  1421. */
  1422. getCompanyClassify() {
  1423. let data = {
  1424. }
  1425. if (uni.getStorageSync('companyId') && uni.getStorageSync('companyId') != 'null')
  1426. data.companyId = uni.getStorageSync('companyId')
  1427. this.$Request.getT('/app/postPush/getCompanyClassify', data).then(res => {
  1428. uni.hideLoading()
  1429. if (res.code === 0 && res.data.length > 0) {
  1430. let arr = []
  1431. let tagMap = {}
  1432. res.data.forEach(item => {
  1433. let obj = {
  1434. id: item.postPushId,
  1435. projectName: item.ruleClassifyName,
  1436. name: item.ruleClassifyName,
  1437. ruleClassifyId: item.ruleClassifyId
  1438. }
  1439. arr.push(obj)
  1440. // 处理标签
  1441. let tags = []
  1442. if (item.positionTag && item.positionTag.trim() !== '') {
  1443. tags = item.positionTag
  1444. .split(',')
  1445. .filter(Boolean)
  1446. .map(tag => ({ id: tag, name: tag }))
  1447. }
  1448. if (tags.length === 0) {
  1449. tags = [{ id: '不限', name: '不限' }]
  1450. } else {
  1451. tags.unshift({ id: '不限', name: '不限' })
  1452. }
  1453. tagMap[item.ruleClassifyId] = tags
  1454. })
  1455. if (this.positionTagMap && Object.keys(this.positionTagMap).length > 0) {
  1456. for (const key in tagMap) {
  1457. if (this.positionTagMap[key]) {
  1458. const oldTags = this.positionTagMap[key]
  1459. const newTags = tagMap[key]
  1460. const merged = []
  1461. const seen = new Set()
  1462. ;[...oldTags, ...newTags].forEach(tag => {
  1463. if (!seen.has(tag.id)) {
  1464. seen.add(tag.id)
  1465. merged.push(tag)
  1466. }
  1467. })
  1468. tagMap[key] = merged
  1469. }
  1470. }
  1471. }
  1472. this.jobSxTypeList = arr
  1473. this.positionTagMap = tagMap
  1474. if (!this.currentRuleClassifyId && arr.length > 0) {
  1475. this.currentRuleClassifyId = arr[0].ruleClassifyId
  1476. }
  1477. this.positionTag =
  1478. this.positionTagMap[this.currentRuleClassifyId] ||
  1479. [{ id: '不限', name: '不限' }]
  1480. this.getPeopList()
  1481. }
  1482. })
  1483. },
  1484. /**
  1485. * 获取dom元素的宽度
  1486. */
  1487. getDomWidth() {
  1488. this.$nextTick(() => {
  1489. let that = this
  1490. let obj = uni.createSelectorQuery().select('#bottomView' + that
  1491. .currentJobSx) // xx为class或者id,如 .block, #block
  1492. obj.boundingClientRect(function (data) { // data - dom中的参数,宽高等
  1493. // console.log(data.width)
  1494. if (data && data.width) {
  1495. that.domeWidth = data.width * 2 * 0.8
  1496. } else {
  1497. that.domeWidth = 0
  1498. }
  1499. }).exec()
  1500. })
  1501. },
  1502. /**
  1503. * @param {Object} longitude
  1504. * @param {Object} latitude
  1505. * 使用经纬度获取城市
  1506. */
  1507. getSelectCity(longitude, latitude, go) {
  1508. this.$Request.get('/app/Login/selectCity?lat=' + latitude + '&lng=' + longitude).then(res => {
  1509. if (res.code == 0) {
  1510. // console.log(res, '获取地址信息')
  1511. this.city = res.data.city ? res.data.city : '区域'
  1512. uni.setStorageSync('city', res.data.city)
  1513. if (go == 'go')
  1514. this.goNav('/package/screen/city?city=' + this.city + '&county=' + this.county + '&type=' + 'search')
  1515. if (this.userType == 1) {
  1516. this.getUserList()
  1517. } else {
  1518. this.getPeopList()
  1519. }
  1520. }
  1521. });
  1522. },
  1523. /**
  1524. * 获取求职意向
  1525. */
  1526. getJobType() {
  1527. return
  1528. this.$Request.get('/app/intention/getIntentionList').then(res => {
  1529. if (res.code == 0 && res.data.records.length > 0) {
  1530. let arr = [{
  1531. projectName: '',
  1532. name: '全部',
  1533. },]
  1534. res.data.records.map(item => {
  1535. let obj = {
  1536. projectName: item.ruleClassifyName,
  1537. name: item.ruleClassifyName,
  1538. }
  1539. arr.push(obj)
  1540. })
  1541. console.log(arr)
  1542. this.jobTypeList = arr
  1543. }
  1544. })
  1545. },
  1546. /**
  1547. * 获取岗位列表
  1548. */
  1549. getUserList() {
  1550. let data = {
  1551. page: this.page,
  1552. limit: this.limit,
  1553. //postType: this.typeList.length > 0 ? this.typeList[this.current].id : '',
  1554. ruleClassifyName: this.typeList.length > 0 ? this.typeList[this.current].name : '', //岗位名称
  1555. screen: +this.currentSx + 1, //1推荐 2最新
  1556. county: this.county, //区
  1557. city: this.city == '全国' ? '' : this.city, //城市
  1558. salaryRange: this.salaryRange, //薪资范围
  1559. education: this.education, //学历
  1560. experience: this.experience, //经验
  1561. industry: this.industry, //行业
  1562. preference: this.preference.join(','),
  1563. companyPeople: this.companyPeople, //公司规模
  1564. lng: this.longitude,
  1565. lat: this.latitude,
  1566. //userId: uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
  1567. }
  1568. this.$Request.get('/app/postPush/userGetPostPushList', data).then(res => {
  1569. this.isRefreshing = false
  1570. uni.hideLoading()
  1571. if (res.code == 0) {
  1572. res.data.records.map(item => {
  1573. if (item.welfareTag) {
  1574. item.welfareTag = item.welfareTag.split(';')
  1575. } else {
  1576. item.welfareTag = []
  1577. }
  1578. if (item.distance) {
  1579. if (parseFloat(item.distance) > 1000) {
  1580. item.distance = (parseFloat(item.distance) / 1000).toFixed(2) + 'km'
  1581. } else {
  1582. item.distance = (parseFloat(item.distance)).toFixed(2) + 'm'
  1583. }
  1584. } else {
  1585. item.distance = ''
  1586. }
  1587. })
  1588. if (this.page == 1) {
  1589. // console.log(res.data.records, '岗位数据')
  1590. this.dataList = res.data.records
  1591. } else {
  1592. this.dataList = [...this.dataList, ...res.data.records]
  1593. }
  1594. this.totlo = res.data.pages
  1595. }
  1596. }).catch(err => {
  1597. this.isRefreshing = false
  1598. uni.hideLoading()
  1599. })
  1600. },
  1601. /**
  1602. * 工作性质
  1603. */
  1604. getPostType() {
  1605. var that = this
  1606. if(that.preferenceChange){
  1607. return this.getUserList()
  1608. }
  1609. //行业期望
  1610. this.$Request.get('/app/intention/getIntentionList', {
  1611. }).then(res => {
  1612. if (res.code == 0) {
  1613. let arr = res.data
  1614. let classRule = [
  1615. /* {
  1616. id: '',
  1617. name: '',
  1618. label: '全部'
  1619. } */
  1620. ]
  1621. let industry = this.directionList
  1622. arr.forEach(function (item,index) {
  1623. var tmp = {}
  1624. tmp.id = item.ruleClassifyId
  1625. tmp.name = item.ruleClassifyName
  1626. tmp.label = item.ruleClassifyName
  1627. classRule.push(tmp)
  1628. let indexRulrId=that.typeList.length>0&&that.typeList[that.current].id?that.typeList[that.current].id:arr[0].ruleClassifyId
  1629. if(indexRulrId==item.ruleClassifyId){
  1630. var indus = item.industry ? item.industry.split('/') : []
  1631. indus.forEach(function (ind) {
  1632. var tm = {}
  1633. tm.name = ind
  1634. tm.id = ind
  1635. tm.ruleClassifyId=item.ruleClassifyId
  1636. if (that.$queue.array_column(industry, 'name').indexOf(tm.name) <
  1637. 0)
  1638. industry.push(tm)
  1639. })
  1640. }
  1641. })
  1642. classRule.push({
  1643. id: '',
  1644. name: '',
  1645. label: ''
  1646. }) //模拟个空企业选项,为了兼容源码和设计图
  1647. this.typeList = classRule
  1648. var industryArr = this.industry == '' ? [] : this.industry.split(',')
  1649. industryArr.forEach(function (item) {
  1650. if (that.$queue.array_column(that.directionList, 'name').indexOf(item) < 0)
  1651. industry.push({
  1652. id: item,
  1653. name: item,
  1654. ruleClassifyId:that.typeList[that.current].id
  1655. })
  1656. })
  1657. this.directionList = industry
  1658. // console.log(this.typeList, '1111')
  1659. this.getUserList()
  1660. }
  1661. })
  1662. return;
  1663. this.$Request.get('/app/dict/list', {
  1664. type: '工作性质'
  1665. }).then(res => {
  1666. if (res.code == 0) {
  1667. let arr = res.data
  1668. arr = JSON.parse(JSON.stringify(arr).replace(/code/g, 'label'))
  1669. let obj = {
  1670. id: -1,
  1671. label: '企业',
  1672. name: '企业'
  1673. }
  1674. arr.push(obj)
  1675. this.typeList = arr
  1676. // console.log(this.typeList, '1111')
  1677. this.getUserList()
  1678. }
  1679. })
  1680. },
  1681. /**
  1682. * 获取个人信息
  1683. */
  1684. getUserInfo() {
  1685. this.$Request.get("/app/user/selectUserById").then(res => {
  1686. if (res.code == 0) {
  1687. console.log(res.data)
  1688. this.$queue.setData('weChatNum', res.data?.weChatNum)
  1689. if (res.data && res.data.companyId) {
  1690. uni.setStorageSync('companyId', res.data?.companyId)
  1691. }
  1692. if (res.data?.userType == 1 || res.data?.userType == null) {
  1693. this.userType = 1
  1694. uni.setStorageSync('userType', 1)
  1695. } else {
  1696. this.userType = 2
  1697. uni.setStorageSync('userType', 2)
  1698. }
  1699. }
  1700. })
  1701. },
  1702. gotoInfo(postPushId) {
  1703. if (uni.getStorageSync('token')) {
  1704. // #ifdef MP-WEIXIN
  1705. if (uni.getStorageSync('sendMsg')) {
  1706. // console.log('授权+1')
  1707. wx.requestSubscribeMessage({
  1708. tmplIds: this.arr,
  1709. success(re) {
  1710. // console.log(JSON.stringify(re), 111111111111)
  1711. var datas = JSON.stringify(re);
  1712. if (datas.indexOf("accept") != -1) {
  1713. // console.log(re)
  1714. }
  1715. },
  1716. fail: (res) => {
  1717. // console.log(res)
  1718. }
  1719. })
  1720. }
  1721. // #endif
  1722. // uni.navigateTo({
  1723. // url: '/pages/index/game/order?postPushId=' + postPushId
  1724. // })
  1725. }
  1726. // else {
  1727. // this.noLogin()
  1728. // }
  1729. uni.navigateTo({
  1730. url: '/pages/index/game/order?postPushId=' + postPushId
  1731. })
  1732. },
  1733. //不需要登录跳转
  1734. goNavs(url) {
  1735. // #ifdef MP-WEIXIN
  1736. if (uni.getStorageSync('sendMsg')) {
  1737. // console.log('授权+1')
  1738. wx.requestSubscribeMessage({
  1739. tmplIds: this.arr,
  1740. success(re) {
  1741. // console.log(JSON.stringify(re), 111111111111)
  1742. var datas = JSON.stringify(re);
  1743. if (datas.indexOf("accept") != -1) {
  1744. // console.log(re)
  1745. }
  1746. },
  1747. fail: (res) => {
  1748. // console.log(res)
  1749. }
  1750. })
  1751. }
  1752. // #endif
  1753. uni.navigateTo({
  1754. url: url
  1755. })
  1756. },
  1757. //跳转
  1758. goNav(url, company = '') {
  1759. if (company == 'company') {
  1760. if (this.jobSxTypeList.length <= 0 || this.jobSxTypeList[this.currentJobSx].id == '') return this.$queue.showToast('请先点击右上角发布岗位');
  1761. }
  1762. if (uni.getStorageSync('token')) {
  1763. // #ifdef MP-WEIXIN
  1764. if (uni.getStorageSync('sendMsg')) {
  1765. // console.log('授权+1')
  1766. wx.requestSubscribeMessage({
  1767. tmplIds: this.arr,
  1768. success(re) {
  1769. // console.log(JSON.stringify(re), 111111111111)
  1770. var datas = JSON.stringify(re);
  1771. if (datas.indexOf("accept") != -1) {
  1772. // console.log(re)
  1773. }
  1774. },
  1775. fail: (res) => {
  1776. // console.log(res)
  1777. }
  1778. })
  1779. }
  1780. // #endif
  1781. uni.navigateTo({
  1782. url: url
  1783. })
  1784. } else {
  1785. this.noLogin()
  1786. }
  1787. },
  1788. //未登录
  1789. noLogin() {
  1790. uni.showModal({
  1791. title: '提示',
  1792. content: '您还未登录,请先登录',
  1793. confirmColor: '#016BF6',
  1794. success: function (res) {
  1795. if (res.confirm) {
  1796. // console.log('用户点击确定');
  1797. uni.navigateTo({
  1798. url: '/pages/public/login'
  1799. })
  1800. } else if (res.cancel) {
  1801. // console.log('用户点击取消');
  1802. }
  1803. }
  1804. })
  1805. },
  1806. //吸顶
  1807. isfixed(e) {
  1808. // console.log(e, '+++++++++++++')
  1809. this.isfixeds = true
  1810. },
  1811. //不吸顶
  1812. isunfixed() {
  1813. this.isfixeds = false
  1814. },
  1815. //添加方向标签
  1816. addDirection() {
  1817. uni.navigateTo({
  1818. url: '/package/jobIntention/tagManage'
  1819. })
  1820. },
  1821. //关闭VIP推荐
  1822. closeVipRecommend() {
  1823. // 这里可以添加关闭逻辑,比如隐藏卡片或记录用户选择
  1824. console.log('关闭VIP推荐')
  1825. // 可以通过v-if控制显示隐藏
  1826. },
  1827. selectIndustry(item) {
  1828. var industry = this.industry == '' ? [] : this.industry.split(',')
  1829. var res = industry.indexOf(item.id)
  1830. if (res >= 0) {
  1831. industry.splice(res, 1)
  1832. } else {
  1833. if (item.id == '不限')
  1834. industry = []
  1835. else
  1836. industry.push(item.id)
  1837. }
  1838. this.industry = industry.length > 0 ? industry.join(',') : ''
  1839. this.setIndustry()
  1840. this.page = 1
  1841. if (this.current == this.typeList.length - 1) { //公司
  1842. this.getComanyList()
  1843. } else {
  1844. this.getUserList()
  1845. }
  1846. },
  1847. setIndustry() {
  1848. if (uni.getStorageSync('filter') && (uni.getStorageSync('filter')).length > 0) {
  1849. let filter = uni.getStorageSync('filter')
  1850. console.log(filter)
  1851. let industry = this.industry == '' ? [] : this.industry.split(',')
  1852. filter.forEach(function (item) {
  1853. if (item.name == '行业') {
  1854. let list = []
  1855. industry.forEach(function (ite) {
  1856. var tmp = {}
  1857. tmp.value = ite
  1858. tmp.childrenList = []
  1859. tmp.isEnable = 1
  1860. tmp.select = true
  1861. list.push(tmp)
  1862. })
  1863. item.list = list
  1864. }
  1865. })
  1866. uni.setStorageSync("filter", filter);
  1867. }
  1868. },
  1869. goIndustry() {
  1870. uni.navigateTo({
  1871. url: '/package/screen/screen?industry=' + this.directionList.join('/')
  1872. })
  1873. },
  1874. goPreference() {
  1875. var jobId = this.typeList[this.current].id
  1876. var jobTitle = this.typeList[this.current].name
  1877. if (jobId == '')
  1878. return this.$queue.showToast('请先添加期望')
  1879. uni.navigateTo({
  1880. url: '/package/jobIntention/preferenceSetting?jobId=' + jobId + '&jobTitle=' + jobTitle +
  1881. '&selectedPreferences=' + encodeURIComponent(JSON.stringify(this.$queue.array_column(this
  1882. .directionList, 'name')))
  1883. })
  1884. },
  1885. //跳转招聘端选择标签页面
  1886. goToPage(){
  1887. if (this.jobSxTypeList.length <= 0 || this.jobSxTypeList[this.currentJobSx].id == '') return this.$queue.showToast('请先点击右上角发布岗位');
  1888. let selectTag = this.positionTag.map(item => item.id)
  1889. uni.navigateTo({
  1890. url: "/package/jobIntention/jobSkills?tag=" + selectTag + '&jobTitle=' + this.jobSxTypeList[this.currentJobSx].name + '&ruleClassifyId=' + this.jobSxTypeList[this.currentJobSx].ruleClassifyId,
  1891. });
  1892. },
  1893. selectPreference(item) {
  1894. var preference = this.preference
  1895. var res = preference.indexOf(item.id)
  1896. if (res >= 0) {
  1897. preference.splice(res, 1)
  1898. } else {
  1899. if (item.id == '不限')
  1900. preference = []
  1901. else
  1902. preference.push(item.id)
  1903. }
  1904. this.preference = preference
  1905. this.page = 1
  1906. if (this.current == this.typeList.length - 1) { //公司
  1907. this.getComanyList()
  1908. } else {
  1909. this.getUserList()
  1910. }
  1911. },
  1912. selectPositionTag(item){
  1913. var preference = this.positionTagArr
  1914. var res = preference.indexOf(item.id)
  1915. if (res >= 0) {
  1916. preference.splice(res, 1)
  1917. } else {
  1918. if (item.id == '不限')
  1919. preference = []
  1920. else
  1921. preference.push(item.id)
  1922. }
  1923. this.positionTagArr = preference
  1924. this.page = 1;
  1925. this.getPeopList();
  1926. }
  1927. }
  1928. }
  1929. </script>
  1930. <style lang="scss" scoped>
  1931. .page-container {
  1932. display: flex;
  1933. flex-direction: column;
  1934. height: 100vh;
  1935. //#ifdef H5
  1936. height: calc(100vh - var(--window-bottom));
  1937. //#endif
  1938. // margin-bottom: 60px;
  1939. position: relative;
  1940. }
  1941. .user-image {
  1942. position: relative;
  1943. .online-status {
  1944. width: 16rpx;
  1945. height: 16rpx;
  1946. position: absolute;
  1947. bottom: 0rpx;
  1948. right: 0rpx;
  1949. border-radius: 50%;
  1950. z-index: 1;
  1951. box-sizing: border-box;
  1952. border: 1rpx solid rgba(255, 255, 255, 1);
  1953. }
  1954. }
  1955. .work-school {
  1956. display: flex;
  1957. justify-content: space-between;
  1958. align-items: center;
  1959. flex: 1;
  1960. }
  1961. .online-name {
  1962. display: flex;
  1963. align-items: center;
  1964. gap: 12rpx;
  1965. }
  1966. .online-txt {
  1967. border-radius: 8rpx;
  1968. background: rgba(213, 255, 231, 1);
  1969. color: rgba(29, 209, 104, 1);
  1970. font-family: DM Sans;
  1971. font-size: 16rpx;
  1972. font-weight: 400;
  1973. line-height: 20rpx;
  1974. padding: 8rpx;
  1975. box-sizing: border-box;
  1976. display: flex;
  1977. justify-content: space-between;
  1978. align-items: center;
  1979. gap: 8rpx;
  1980. border: 1rpx solid #fff;
  1981. .dot-icon {
  1982. width: 10rpx;
  1983. height: 10rpx;
  1984. border-radius: 50%;
  1985. background-color: #00DD9A;
  1986. }
  1987. }
  1988. .txt-desc-box {
  1989. gap: 16rpx;
  1990. display: flex;
  1991. flex-direction: column;
  1992. .txt-desc {
  1993. color: rgba(153, 153, 153, 1);
  1994. font-family: DM Sans;
  1995. font-size: 20rpx;
  1996. font-weight: 400;
  1997. line-height: 20rpx;
  1998. letter-spacing: 0%;
  1999. }
  2000. }
  2001. page {
  2002. background: #F2F2F7;
  2003. }
  2004. .goback {
  2005. position: fixed;
  2006. top: 80%;
  2007. right: 30rpx;
  2008. }
  2009. .jobtitle {
  2010. position: relative;
  2011. .jobtitleBom {
  2012. position: absolute;
  2013. width: 30rpx;
  2014. left: 50%;
  2015. top: 80%;
  2016. transform: translate(-50%, 0);
  2017. }
  2018. }
  2019. .topbg-scroll {
  2020. width: 100%;
  2021. white-space: nowrap;
  2022. }
  2023. .activeQs {
  2024. color: #1A1A1A !important;
  2025. font-weight: 800;
  2026. }
  2027. .activeQ {
  2028. color: #1A1A1A !important;
  2029. font-size: 38rpx;
  2030. font-weight: 800;
  2031. }
  2032. .active {
  2033. font-size: 38rpx !important;
  2034. font-weight: 800 !important;
  2035. }
  2036. .active2 {
  2037. color: #1A1A1A !important;
  2038. font-size: 38rpx !important;
  2039. font-weight: 800 !important;
  2040. }
  2041. .active3 {
  2042. color: #1A1A1A !important;
  2043. font-size: 28rpx !important;
  2044. font-weight: 800 !important;
  2045. }
  2046. .topbg {
  2047. width: 100%;
  2048. // height: 100rpx;
  2049. background-color: #00DD9A;
  2050. // position: fixed;
  2051. // /* #ifdef MP-WEIXIN */
  2052. // top: 0;
  2053. // /* #endif */
  2054. // /* #ifdef H5 */
  2055. // top: 78rpx;
  2056. // /* #endif */
  2057. // /* #ifdef APP-PLUS */
  2058. // top: 0;
  2059. // /* #endif */
  2060. // z-index: 998;
  2061. }
  2062. .topbg-sticky {}
  2063. .top-bg {
  2064. // box-shadow: 0px 4px 62px 0px rgba(153, 171, 198, 0.18);
  2065. // background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  2066. // width: 100%;
  2067. // height: 300rpx;
  2068. // position: sticky;
  2069. // top: 0px;
  2070. // z-index: 999;
  2071. /* 波浪效果 */
  2072. // --c: rgba(255, 255, 255, 0.1);
  2073. // --w1: radial-gradient(100% 57% at top, #0000 100%, var(--c) 100.5%) no-repeat;
  2074. // --w2: radial-gradient(100% 57% at bottom, var(--c) 100%, #0000 100.5%) no-repeat;
  2075. // background: var(--w1), var(--w2), linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  2076. // background-position: 0% 100%, 100% 100%, 0 0;
  2077. // background-size: 50% 100%, 50% 100%, 100% 100%;
  2078. position: absolute;
  2079. top: 0;
  2080. z-index: 0;
  2081. width: 100%;
  2082. }
  2083. .topbg-sticky-box {
  2084. width: 100%;
  2085. padding: 0 40rpx;
  2086. position: relative;
  2087. z-index: 1;
  2088. }
  2089. .topbg-sticky-title {
  2090. width: 100%;
  2091. margin-bottom: 20rpx;
  2092. }
  2093. .topbg-sticky-title-left {
  2094. color: rgba(255, 255, 255, 1);
  2095. font-family: DM Sans;
  2096. font-size: 32rpx;
  2097. font-weight: 700;
  2098. line-height: 36rpx;
  2099. letter-spacing: 0%;
  2100. text-align: left;
  2101. }
  2102. .xing-icon {
  2103. width: 42rpx;
  2104. height: 42rpx;
  2105. margin-right: 12rpx;
  2106. }
  2107. .topbg-sticky-title-right {
  2108. color: #ffffff;
  2109. }
  2110. .topbg-sticky-subtitle {
  2111. color: rgba(255, 255, 255, 1);
  2112. font-family: DM Sans;
  2113. font-size: 30rpx;
  2114. font-weight: 700;
  2115. line-height: 36rpx;
  2116. letter-spacing: 0%;
  2117. text-align: left;
  2118. }
  2119. .topbg-type {
  2120. width: 710rpx;
  2121. border-radius: 6px;
  2122. box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.05);
  2123. background: rgba(255, 255, 255, 1);
  2124. // background: transparent;
  2125. padding: 18rpx;
  2126. margin: 24rpx auto 12rpx auto;
  2127. position: relative;
  2128. z-index: 1;
  2129. .topbg-type-box {
  2130. width: 100%;
  2131. margin: 0 20rpx;
  2132. }
  2133. .topbg-type-box-row {
  2134. margin-bottom: 20rpx;
  2135. }
  2136. .topbg-type-box-l {
  2137. flex: 1;
  2138. white-space: nowrap;
  2139. overflow-x: auto;
  2140. }
  2141. .topbg-type-box-l-i {
  2142. color: rgba(153, 153, 153, 1);
  2143. font-family: DM Sans;
  2144. font-size: 28rpx;
  2145. font-weight: 400;
  2146. line-height: 28rpx;
  2147. letter-spacing: 0%;
  2148. text-align: left;
  2149. margin-right: 14rpx;
  2150. &.active {
  2151. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  2152. -webkit-background-clip: text;
  2153. -webkit-text-fill-color: transparent;
  2154. background-clip: text;
  2155. text-fill-color: transparent;
  2156. font-family: DM Sans;
  2157. font-size: 24rpx;
  2158. font-weight: 700;
  2159. line-height: 48rpx;
  2160. letter-spacing: 0%;
  2161. text-align: left;
  2162. }
  2163. }
  2164. .topbg-type-box-r {
  2165. color: #ffffff;
  2166. }
  2167. .attachment-icon {
  2168. width: 38rpx;
  2169. height: 38rpx;
  2170. }
  2171. }
  2172. .direction-tip {
  2173. margin-top: 20rpx;
  2174. .direction-tip-title {
  2175. color: rgba(51, 51, 51, 1);
  2176. font-family: DM Sans;
  2177. font-size: 26rpx;
  2178. font-weight: 400;
  2179. line-height: 26rpx;
  2180. letter-spacing: 0%;
  2181. text-align: left;
  2182. margin-bottom: 8rpx;
  2183. }
  2184. .direction-tip-subtitle {
  2185. margin-top: 16rpx;
  2186. color: rgba(153, 153, 153, 1);
  2187. font-family: DM Sans;
  2188. font-size: 24rpx;
  2189. font-weight: 400;
  2190. line-height: 24rpx;
  2191. letter-spacing: 0%;
  2192. text-align: left;
  2193. }
  2194. .direction-tags {
  2195. margin-top: 16rpx;
  2196. .direction-tag {
  2197. color: rgba(153, 153, 153, 1);
  2198. font-family: DM Sans;
  2199. font-size: 20rpx;
  2200. font-weight: 400;
  2201. line-height: 36rpx;
  2202. letter-spacing: 0%;
  2203. text-align: center;
  2204. margin-right: 18rpx;
  2205. margin-bottom: 18rpx;
  2206. border-radius: 6px;
  2207. background: rgba(198, 198, 198, 0.1);
  2208. padding: 8rpx 12rpx;
  2209. display: inline-block;
  2210. min-width: 60rpx;
  2211. white-space: nowrap;
  2212. cursor: pointer;
  2213. transition: all 0.3s ease;
  2214. &.active {
  2215. font-family: DM Sans;
  2216. font-size: 20rpx !important;
  2217. font-weight: 400 !important;
  2218. line-height: 36rpx;
  2219. letter-spacing: 0%;
  2220. text-align: left;
  2221. padding: 8rpx 12rpx !important;
  2222. color: rgba(1, 107, 246, 1) !important;
  2223. background: #D6E7FD !important;
  2224. border: 1px solid rgba(1, 107, 246, 1);
  2225. }
  2226. }
  2227. .direction-tag-add {
  2228. color: rgba(153, 153, 153, 1);
  2229. font-family: DM Sans;
  2230. font-size: 20rpx;
  2231. font-weight: 400;
  2232. line-height: 36rpx;
  2233. letter-spacing: 0%;
  2234. text-align: center;
  2235. margin-right: 20rpx;
  2236. border-radius: 6px;
  2237. background: rgba(198, 198, 198, 0.1);
  2238. padding: 8rpx 12rpx;
  2239. display: inline-block;
  2240. min-width: 60rpx;
  2241. white-space: nowrap;
  2242. cursor: pointer;
  2243. transition: all 0.3s ease;
  2244. &:hover {
  2245. background: rgba(198, 198, 198, 0.2);
  2246. }
  2247. }
  2248. .direction-tag-plus {
  2249. margin-bottom: 18rpx;
  2250. width: 40rpx;
  2251. height: 36rpx;
  2252. padding: 8rpx;
  2253. border-radius: 6px;
  2254. background: rgba(198, 198, 198, 0.1);
  2255. display: inline-flex;
  2256. align-items: center;
  2257. justify-content: center;
  2258. transition: all 0.3s ease;
  2259. &:hover {
  2260. background: rgba(198, 198, 198, 0.2);
  2261. }
  2262. }
  2263. }
  2264. }
  2265. .companyListBox {
  2266. width: 100%;
  2267. background-color: #F2F2F7;
  2268. // margin-top: 30rpx;
  2269. }
  2270. .topbg-yx {
  2271. width: 100%;
  2272. // height: 366rpx;
  2273. background: #F2F2F7;
  2274. border-radius: 40rpx 40rpx 0 0;
  2275. margin-top: 20rpx;
  2276. align-content: flex-start;
  2277. .topbg-yx-box {
  2278. width: 686rpx;
  2279. height: 40rpx;
  2280. margin-top: 35rpx;
  2281. }
  2282. .topbg-yx-box-l {
  2283. width: 62%;
  2284. .topbg-yx-box-l-i {
  2285. display: inline-block;
  2286. margin-right: 50rpx;
  2287. color: #999999;
  2288. font-size: 32rpx;
  2289. font-weight: 500;
  2290. .topbg-yx-box-l-i-c {
  2291. z-index: 1 !important;
  2292. // position: relative;
  2293. .topbg-yx-box-l-i-text {
  2294. z-index: 3 !important;
  2295. }
  2296. }
  2297. .topbg-yx-box-l-i-line {
  2298. margin-top: -10rpx;
  2299. width: 100%;
  2300. height: 10rpx;
  2301. background: linear-gradient(90deg, #08F3CE 0%, #05F3A7 100%);
  2302. border-radius: 7rpx;
  2303. z-index: 2 !important;
  2304. }
  2305. }
  2306. }
  2307. .topbg-yx-box-r {
  2308. text {
  2309. color: #016BF6;
  2310. font-size: 28rpx;
  2311. font-weight: 500;
  2312. margin-right: 20rpx;
  2313. }
  2314. }
  2315. }
  2316. .topbg-sx-box {
  2317. width: 100%;
  2318. margin-top: 0rpx;
  2319. .topbg-sx-box-l-i {
  2320. color: rgba(153, 153, 153, 1);
  2321. font-family: DM Sans;
  2322. font-size: 24rpx;
  2323. font-weight: 400;
  2324. line-height: 36rpx;
  2325. letter-spacing: 0%;
  2326. text-align: center;
  2327. margin-right: 20rpx;
  2328. border-radius: 6px;
  2329. background: rgba(198, 198, 198, 0.1);
  2330. padding: 8rpx 12rpx;
  2331. display: inline-block;
  2332. min-width: 60rpx;
  2333. white-space: nowrap;
  2334. &.active3 {
  2335. font-family: DM Sans;
  2336. font-size: 24rpx !important;
  2337. font-weight: 400 !important;
  2338. line-height: 36rpx;
  2339. letter-spacing: 0%;
  2340. text-align: left;
  2341. padding: 8rpx 12rpx !important;
  2342. color: rgba(1, 107, 246, 1) !important;
  2343. background: #D6E7FD !important;
  2344. border: 1px solid rgba(1, 107, 246, 1);
  2345. }
  2346. }
  2347. .topbg-sx-box-r-i {
  2348. color: rgba(1, 107, 246, 1);
  2349. font-family: DM Sans;
  2350. font-size: 24rpx;
  2351. font-weight: 400;
  2352. line-height: 36rpx;
  2353. letter-spacing: 0%;
  2354. text-align: center;
  2355. margin-right: 20rpx;
  2356. border-radius: 6px;
  2357. background: #D6E7FD;
  2358. padding: 8rpx 12rpx;
  2359. // display: inline-block;
  2360. min-width: 60rpx;
  2361. white-space: nowrap;
  2362. cursor: pointer;
  2363. transition: all 0.3s ease;
  2364. border: 0.5px solid rgba(1, 107, 246, 1);
  2365. }
  2366. .topbg-sx-box-filter {
  2367. color: rgba(153, 153, 153, 1);
  2368. font-family: DM Sans;
  2369. font-size: 24rpx;
  2370. font-weight: 400;
  2371. line-height: 36rpx;
  2372. letter-spacing: 0%;
  2373. text-align: center;
  2374. border-radius: 6px;
  2375. background: rgba(198, 198, 198, 0.1);
  2376. padding: 8rpx 12rpx;
  2377. // display: inline-block;
  2378. min-width: 60rpx;
  2379. white-space: nowrap;
  2380. cursor: pointer;
  2381. transition: all 0.3s ease;
  2382. }
  2383. }
  2384. .title-left {
  2385. display: flex;
  2386. align-items: center;
  2387. gap: 8rpx;
  2388. }
  2389. .job-title-text {
  2390. color: rgba(23, 23, 37, 1);
  2391. font-family: DM Sans;
  2392. font-size: 38rpx;
  2393. font-weight: 700;
  2394. line-height: 48rpx;
  2395. letter-spacing: 0.5%;
  2396. text-align: left;
  2397. }
  2398. .salary-text-box {
  2399. border-radius: 24rpx;
  2400. background: #FEE2E3;
  2401. display: flex;
  2402. justify-content: flex-start;
  2403. align-items: center;
  2404. padding: 6rpx 24rpx;
  2405. .jipin-icon {
  2406. width: 20rpx;
  2407. height: 20rpx;
  2408. margin-right: 4rpx;
  2409. }
  2410. .jipin-text {
  2411. color: rgba(237, 66, 69, 1);
  2412. font-family: DM Sans;
  2413. font-size: 18rpx;
  2414. font-weight: 400;
  2415. line-height: 30rpx;
  2416. letter-spacing: 0.5%;
  2417. text-align: left;
  2418. }
  2419. }
  2420. .salary-text {
  2421. color: rgba(27, 229, 223, 1);
  2422. font-family: DM Sans;
  2423. font-size: 28rpx;
  2424. font-weight: 700;
  2425. line-height: 40rpx;
  2426. letter-spacing: 0.5%;
  2427. text-align: right;
  2428. }
  2429. .company-name,
  2430. .company-people {
  2431. color: rgba(156, 164, 171, 1);
  2432. font-family: DM Sans;
  2433. font-size: 24rpx;
  2434. font-weight: 400;
  2435. line-height: 40rpx;
  2436. letter-spacing: 0.5%;
  2437. text-align: left;
  2438. }
  2439. .job-tag {
  2440. height: 42rpx;
  2441. display: flex;
  2442. flex-direction: row;
  2443. justify-content: center;
  2444. align-items: center;
  2445. padding: 8rpx;
  2446. border-radius: 8rpx;
  2447. background: rgba(198, 198, 198, 0.1);
  2448. margin-right: 16rpx;
  2449. margin-bottom: 16rpx;
  2450. color: rgba(153, 153, 153, 1);
  2451. font-size: 26rpx;
  2452. }
  2453. .company-info-text,
  2454. .location-text {
  2455. color: rgba(156, 164, 171, 1);
  2456. font-family: DM Sans;
  2457. font-size: 20rpx;
  2458. font-weight: 400;
  2459. line-height: 40rpx;
  2460. letter-spacing: 0.5%;
  2461. text-align: left;
  2462. }
  2463. .reply-time {
  2464. display: flex;
  2465. flex-direction: row;
  2466. justify-content: center;
  2467. align-items: center;
  2468. padding: 8rpx;
  2469. font-family: DM Sans;
  2470. font-size: 20rpx;
  2471. font-weight: 400;
  2472. line-height: 40rpx;
  2473. letter-spacing: 0.5%;
  2474. text-align: left;
  2475. border-radius: 12rpx;
  2476. background: #ECE1FD;
  2477. color: #8858C5;
  2478. }
  2479. .gwList {
  2480. width: 100%;
  2481. flex: 1;
  2482. overflow: auto;
  2483. .gwList-box {
  2484. width: 710rpx;
  2485. height: 100%;
  2486. .gwList-box-item {
  2487. width: 100%;
  2488. // height: 329rpx;
  2489. background-color: #ffffff;
  2490. border-radius: 12rpx;
  2491. margin-bottom: 20rpx;
  2492. padding-bottom: 20rpx;
  2493. }
  2494. .gwList-box-item-box {
  2495. width: 623rpx;
  2496. height: 100%;
  2497. .gwList-box-item-box-title {
  2498. margin-top: 28rpx;
  2499. }
  2500. .gwList-box-item-box-label {
  2501. margin-top: 14rpx;
  2502. }
  2503. .gwList-box-item-box-name {
  2504. margin-top: 14rpx;
  2505. color: #999999;
  2506. font-size: 28rpx;
  2507. font-weight: 500;
  2508. }
  2509. .gwList-box-item-box-line {
  2510. width: 100%;
  2511. border: 1rpx solid #E6E6E6;
  2512. margin-top: 30rpx;
  2513. margin-bottom: 20rpx;
  2514. }
  2515. .gwList-box-item-box-info {
  2516. font-size: 26rpx;
  2517. .gwList-box-item-box-info-l {
  2518. color: #1A1A1A;
  2519. display: flex;
  2520. align-items: center;
  2521. gap: 12rpx;
  2522. .people {
  2523. max-width: 110rpx;
  2524. overflow: hidden; //超出的文本隐藏
  2525. text-overflow: ellipsis; //溢出用省略号显示
  2526. white-space: nowrap; // 默认不换行;
  2527. }
  2528. }
  2529. .gwList-box-item-box-info-r {
  2530. color: #999999;
  2531. max-width: 50%;
  2532. overflow: hidden; //超出的文本隐藏
  2533. text-overflow: ellipsis; //溢出用省略号显示
  2534. white-space: nowrap; // 默认不换行;
  2535. }
  2536. }
  2537. }
  2538. }
  2539. }
  2540. .banner {
  2541. width: 100%;
  2542. height: 250rpx;
  2543. // margin-top: 20rpx;
  2544. .banner-box {
  2545. width: 686rpx;
  2546. height: 100%;
  2547. border-radius: 24rpx;
  2548. }
  2549. }
  2550. .isfixed {
  2551. border-radius: 0 !important;
  2552. }
  2553. .isfixeds {
  2554. // border-radius: 40rpx 40rpx 0 0;
  2555. }
  2556. .qySx-bg {
  2557. position: absolute;
  2558. top: 0;
  2559. z-index: 0;
  2560. width: 100%;
  2561. }
  2562. .qySx {
  2563. // position: fixed;
  2564. // top: 0;
  2565. // z-index: 999;
  2566. // width: 100%;
  2567. // background: linear-gradient(180.00deg, rgba(255, 102, 0, 1), rgba(255, 89, 89, 1) 83%);
  2568. // padding-bottom: 40rpx;
  2569. // padding: 20rpx;
  2570. margin-bottom: 12rpx;
  2571. .qySx-box {
  2572. width: 100%;
  2573. height: 100%;
  2574. border-radius: 12rpx;
  2575. box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.05);
  2576. background: rgba(255, 255, 255, 1);
  2577. padding: 28rpx;
  2578. position: relative;
  2579. z-index: 1;
  2580. margin: 24rpx 20rpx 0;
  2581. .qySx-box-row {
  2582. margin-bottom: 20rpx;
  2583. }
  2584. .qySx-box-l {
  2585. flex: 1;
  2586. white-space: nowrap;
  2587. overflow-x: auto;
  2588. }
  2589. .qySx-box-l-i {
  2590. color: rgba(153, 153, 153, 1);
  2591. font-family: DM Sans;
  2592. font-size: 28rpx;
  2593. font-weight: 400;
  2594. line-height: 36rpx;
  2595. letter-spacing: 0%;
  2596. text-align: left;
  2597. margin-right: 14rpx;
  2598. &.active {
  2599. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  2600. -webkit-background-clip: text;
  2601. -webkit-text-fill-color: transparent;
  2602. background-clip: text;
  2603. text-fill-color: transparent;
  2604. font-family: DM Sans;
  2605. font-size: 24rpx;
  2606. font-weight: 700;
  2607. line-height: 48rpx;
  2608. letter-spacing: 0%;
  2609. text-align: left;
  2610. }
  2611. }
  2612. .qySx-box-r {
  2613. color: #ffffff;
  2614. .attachment-icon {
  2615. width: 38rpx;
  2616. height: 38rpx;
  2617. }
  2618. }
  2619. }
  2620. .qySx-sx-box {
  2621. width: 100%;
  2622. margin-top: 0rpx;
  2623. .qySx-sx-box-l-i {
  2624. color: rgba(153, 153, 153, 1);
  2625. font-family: DM Sans;
  2626. font-size: 24rpx;
  2627. font-weight: 400;
  2628. line-height: 36rpx;
  2629. letter-spacing: 0%;
  2630. text-align: center;
  2631. margin-right: 20rpx;
  2632. border-radius: 6px;
  2633. background: rgba(198, 198, 198, 0.1);
  2634. padding: 8rpx 12rpx;
  2635. display: inline-block;
  2636. min-width: 60rpx;
  2637. white-space: nowrap;
  2638. &.active3 {
  2639. font-family: DM Sans;
  2640. font-size: 24rpx !important;
  2641. font-weight: 400 !important;
  2642. line-height: 36rpx;
  2643. letter-spacing: 0%;
  2644. text-align: left;
  2645. padding: 8rpx 12rpx !important;
  2646. color: rgba(1, 107, 246, 1) !important;
  2647. // background: #D6E7FD !important;
  2648. background: rgba(252, 233, 220, 1);
  2649. border: 1px solid rgba(1, 107, 246, 1);
  2650. }
  2651. }
  2652. .qySx-sx-box-r-i {
  2653. color: rgba(1, 107, 246, 1);
  2654. font-family: DM Sans;
  2655. font-size: 24rpx;
  2656. font-weight: 400;
  2657. line-height: 36rpx;
  2658. letter-spacing: 0%;
  2659. text-align: center;
  2660. margin-right: 20rpx;
  2661. border-radius: 6px;
  2662. // background: #D6E7FD;
  2663. background: rgba(252, 233, 220, 1);
  2664. padding: 8rpx 12rpx;
  2665. display: inline-block;
  2666. min-width: 60rpx;
  2667. white-space: nowrap;
  2668. cursor: pointer;
  2669. transition: all 0.3s ease;
  2670. border: 0.5px solid rgba(1, 107, 246, 1);
  2671. }
  2672. .qySx-sx-box-filter {
  2673. color: rgba(153, 153, 153, 1);
  2674. font-family: DM Sans;
  2675. font-size: 24rpx;
  2676. font-weight: 400;
  2677. line-height: 36rpx;
  2678. letter-spacing: 0%;
  2679. text-align: center;
  2680. border-radius: 6px;
  2681. background: rgba(198, 198, 198, 0.1);
  2682. padding: 8rpx 12rpx;
  2683. display: inline-block;
  2684. min-width: 60rpx;
  2685. white-space: nowrap;
  2686. cursor: pointer;
  2687. transition: all 0.3s ease;
  2688. }
  2689. }
  2690. }
  2691. .vipRecommend {
  2692. width: 100%;
  2693. // margin-top: 280rpx;
  2694. padding: 0 20rpx;
  2695. box-sizing: border-box;
  2696. .vipRecommend-box {
  2697. width: 100%;
  2698. background: #ffffff;
  2699. border-radius: 12rpx;
  2700. box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.05);
  2701. padding: 28rpx;
  2702. position: relative;
  2703. .vipRecommend-close {
  2704. position: absolute;
  2705. top: 24rpx;
  2706. right: 24rpx;
  2707. width: 48rpx;
  2708. height: 48rpx;
  2709. display: flex;
  2710. align-items: center;
  2711. justify-content: center;
  2712. border-radius: 50%;
  2713. .close-icon {
  2714. width: 48rpx;
  2715. height: 48rpx;
  2716. }
  2717. }
  2718. .vipRecommend-content {
  2719. padding-right: 60rpx;
  2720. .vipRecommend-title {
  2721. margin-bottom: 16rpx;
  2722. .job-title {
  2723. color: rgba(23, 23, 37, 1);
  2724. font-family: DM Sans;
  2725. font-size: 28rpx;
  2726. font-weight: 700;
  2727. line-height: 48rpx;
  2728. text-align: left;
  2729. margin-right: 8rpx;
  2730. }
  2731. .job-status {
  2732. color: rgba(156, 164, 171, 1);
  2733. font-family: DM Sans;
  2734. font-size: 24rpx;
  2735. font-weight: 400;
  2736. line-height: 40rpx;
  2737. letter-spacing: 0.5%;
  2738. text-align: left;
  2739. }
  2740. }
  2741. .vipRecommend-message {
  2742. color: rgba(102, 102, 102, 1);
  2743. font-family: DM Sans;
  2744. font-size: 24rpx;
  2745. font-weight: 400;
  2746. line-height: 32rpx;
  2747. letter-spacing: 0.5%;
  2748. text-align: left;
  2749. margin-bottom: 16rpx;
  2750. }
  2751. .vipRecommend-hint {
  2752. color: rgba(102, 102, 102, 1);
  2753. font-family: DM Sans;
  2754. font-size: 18rpx;
  2755. font-weight: 400;
  2756. line-height: 20rpx;
  2757. letter-spacing: 0.5%;
  2758. text-align: left;
  2759. }
  2760. }
  2761. }
  2762. }
  2763. .qyList {
  2764. width: 100%;
  2765. overflow: auto;
  2766. flex: 1;
  2767. /* 技能标签区域 */
  2768. .resume-skills {
  2769. margin: 20rpx 0; // 与上下模块的间距
  2770. .skills-label {
  2771. font-size: 24rpx;
  2772. color: #212121;
  2773. font-weight: 500;
  2774. display: block;
  2775. margin-bottom: 12rpx;
  2776. }
  2777. .skills-tags {
  2778. gap: 16rpx; // 标签间距
  2779. .tag-item {
  2780. background: #F6F6F6;
  2781. color: #666666;
  2782. font-size: 22rpx;
  2783. padding: 8rpx 20rpx;
  2784. border-radius: 8rpx;
  2785. line-height: 32rpx;
  2786. }
  2787. }
  2788. }
  2789. .qyList-box {
  2790. width: 716rpx;
  2791. height: 100%;
  2792. .qyList-box-item {
  2793. width: 100%;
  2794. // height: 400rpx;
  2795. padding-bottom: 40rpx;
  2796. background-color: #ffffff;
  2797. border-radius: 24rpx;
  2798. margin-bottom: 20rpx;
  2799. .qyList-box-item-box {
  2800. width: 626rpx;
  2801. height: 100%;
  2802. }
  2803. .qyList-box-item-info {
  2804. margin-top: 40rpx;
  2805. }
  2806. .qyList-box-item-job {
  2807. width: 100%;
  2808. color: #121212;
  2809. font-size: 28rpx;
  2810. font-weight: 500;
  2811. margin-top: 20rpx;
  2812. }
  2813. .qyList-box-item-rem {
  2814. color: #999999;
  2815. font-size: 26rpx;
  2816. margin-top: 20rpx;
  2817. }
  2818. }
  2819. }
  2820. }
  2821. .announcement {
  2822. // background: #ffffff;
  2823. padding: 0px 0px 10px 10px;
  2824. margin-top: 20rpx;
  2825. }
  2826. .announcementbox {
  2827. width: 712upx;
  2828. height: 64upx;
  2829. background: #e5fff2;
  2830. border-radius: 32upx;
  2831. display: flex;
  2832. align-items: center;
  2833. padding: 0px 24upx;
  2834. }
  2835. .anount {
  2836. color: #00DD9A;
  2837. font-weight: bold;
  2838. }
  2839. .anounts {
  2840. width: 80%;
  2841. height: 64rpx;
  2842. color: #333333;
  2843. font-size: 24upx;
  2844. }
  2845. .activeColor {
  2846. color: #016bf6 !important;
  2847. border: 1rpx solid #016bf6;
  2848. background: #D6E7FD !important;
  2849. }
  2850. .skillTag{
  2851. padding: 8rpx;
  2852. border-radius: 8rpx;
  2853. background: rgba(198, 198, 198, 0.1);
  2854. color: rgba(153, 153, 153, 1);
  2855. font-family: DM Sans;
  2856. font-size: 20rpx;
  2857. font-weight: 400;
  2858. line-height: 20rpx;
  2859. }
  2860. </style>