index.vue 81 KB

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