index.vue 80 KB

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