index.vue 81 KB

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