im.vue 111 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666
  1. <template>
  2. <view>
  3. <!-- 顶部导航栏 -->
  4. <view class="top-navbar">
  5. <view class="navbar-content">
  6. <!-- 左侧返回按钮 -->
  7. <view class="navbar-left" @click="goBack">
  8. <u-icon name="arrow-leftward" size="48" color="#333"></u-icon>
  9. </view>
  10. <!-- 中间用户信息 -->
  11. <view class="navbar-center">
  12. <view v-if="userType==1" class="user-info">
  13. <view class="avatar-container">
  14. <image :src="postPushInfo.hr&&postPushInfo.hr.hrImg || '../../static/logo.png'" class="user-avatar" mode="aspectFill"></image>
  15. <view class="status-indicator" :style="{ 'background': postPushInfo.user&&postPushInfo.user.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 0.1)' : '#999' }"></view>
  16. </view>
  17. <view class="user-details">
  18. <view class="user-name">{{ postPushInfo.user&&postPushInfo.user.userName || '未知' }}</view>
  19. <view class="user-title">{{ postPushInfo.company && postPushInfo.company.companyName ||(postPushInfo.company &&postPushInfo.company.companyAllName|| '未知公司') }} · {{postPushInfo.hr&&postPushInfo.hr.hrPosition || '未知'}}</view>
  20. </view>
  21. </view>
  22. <view v-else class="user-info">
  23. <view class="avatar-container">
  24. <image :src="resumesInfo.avatar || '../../static/logo.png'" class="user-avatar" mode="aspectFill"></image>
  25. <view class="status-indicator" :style="{ 'background': postPushInfo.user&&postPushInfo.user.onlineStatus == 'ONLINE' ? 'rgba(29, 209, 104, 0.1)' : '#999' }"></view>
  26. </view>
  27. <view class="user-details">
  28. <view class="user-name">{{ resumesInfo.userName || '未知' }}</view>
  29. <view class="user-title">{{ postPushInfo.ruleClassifyName || '未知岗位' }}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 右侧更多按钮 -->
  34. <view v-if="false" class="navbar-right" @click="showMoreOptions">
  35. <u-icon name="more-dot-fill" size="38" color="#333"></u-icon>
  36. </view>
  37. </view>
  38. </view>
  39. <!-- 顶部操作 -->
  40. <view class="topSe flex justify-center" v-if="userType==1">
  41. <view class="topSe-box flex align-center justify-around">
  42. <view class="topSe-box-item flex flex-wrap justify-center" @click="currentPhone()">
  43. <image src="../../static/im/mobilePhone2.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
  44. <view class="" style="color: #999999;">
  45. 换电话
  46. </view>
  47. <view v-if="isSendPhone" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  48. </view>
  49. <view class="topSe-box-item flex flex-wrap justify-center" @click="currentWchat()">
  50. <image src="../../static/im/weiChat2.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
  51. <view class="" style="color: #999999;">
  52. 换微信
  53. </view>
  54. <view v-if="isSendWx" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  55. </view>
  56. <view class="topSe-box-item flex flex-wrap justify-center" @click="sendResumes()">
  57. <image src="../../static/im/orderInfo2.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
  58. <view class="" style="color: #999999;">
  59. 发简历
  60. </view>
  61. <view v-if="isSendResumes" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  62. </view>
  63. <view class="topSe-box-item flex flex-wrap justify-center" @click="noIdtent()">
  64. <image src="../../static/im/nowei.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
  65. <view class="" style="color: #999999;">
  66. 无兴趣
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="topSe flex justify-center" v-else>
  72. <view class="topSe-box flex align-center justify-around">
  73. <view class="topSe-box-item flex flex-wrap justify-center" @click="currentPhone()">
  74. <image src="../../static/im/mobilePhone.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
  75. <view class="" style="color: #999999;">
  76. 换电话
  77. </view>
  78. <view v-if="isSendPhone" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  79. </view>
  80. <view class="topSe-box-item flex flex-wrap justify-center" @click="currentWchat()">
  81. <image src="../../static/im/weiChat.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
  82. <view class="" style="color: #999999;">
  83. 换微信
  84. </view>
  85. <view v-if="isSendWx" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  86. </view>
  87. <view class="topSe-box-item flex flex-wrap justify-center" @click="giveSendResumes()">
  88. <image src="../../static/im/orderInfo.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
  89. <view class="" style="color: #999999;">
  90. 求简历
  91. </view>
  92. <view v-if="isSendResumes" class="status-indicator"><u-icon name="checkmark-circle-fill"></u-icon></view>
  93. </view>
  94. <view class="topSe-box-item flex flex-wrap justify-center" @click="mianshiF()">
  95. <image src="../../static/im/mianshi.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
  96. <view class="" style="color: #999999;">
  97. 约面试
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <scroll-view scroll-y="true" @touchstart="hideDrawer" @scroll="scroll" :scroll-top="scrollTop"
  103. style="height: calc(100vh - 360rpx);width: 100%;padding: 20rpx 0;">
  104. <!-- 温馨提示 -->
  105. <!-- <view class="xuanfu">
  106. <view class="xuanfu-box flex">
  107. <view class="" style="margin-right: 10rpx;">
  108. <image style="width: 30rpx;height: 30rpx;"
  109. src="https://zhaopin.xianmaxiong.com/file/uploadPath/2022/09/07/85e0d70ba1d9a78463b36bf7f92f6dca.png"
  110. mode=""></image>
  111. </view>
  112. <view class="">
  113. {{messages}}
  114. </view>
  115. </view>
  116. </view> -->
  117. <!-- 岗位简介 -->
  118. <view class="jobs flex justify-center" v-if="JSON.stringify(postPushInfo)!='{}'&&userType==1">
  119. <view class="jobs-box">
  120. <view class="gwList-box-item flex justify-center" @click="gotoInfo(postPushInfo.postPushId)">
  121. <view class="gwList-box-item-box">
  122. <view class="gwList-box-item-box-title flex justify-between align-center">
  123. <text>{{postPushInfo.ruleClassifyName || '暂无岗位'}}</text>
  124. <text>{{postPushInfo.salaryRange}}</text>
  125. </view>
  126. <!-- 公司和人数 -->
  127. <view class="gwList-box-item-box-name flex align-center">
  128. <text>{{postPushInfo.company?postPushInfo.company.companyName:''}}</text>
  129. <text
  130. v-if="postPushInfo.company">{{postPushInfo.company?postPushInfo.company.companyPeople:'0人'}}</text>
  131. </view>
  132. <view class="gwList-box-item-box-label flex align-center flex-wrap">
  133. <!-- 本科 -->
  134. <text
  135. style="color: #666666;font-size: 26rpx;padding: 10rpx;background: rgba(198, 198, 198, 0.1);border-radius: 8rpx;margin-right: 10rpx;margin-bottom: 20rpx;">
  136. {{postPushInfo.education}}
  137. </text>
  138. <!-- 要求年限 -->
  139. <text
  140. style="color: #666666;font-size: 26rpx;padding: 10rpx;background: rgba(198, 198, 198, 0.1);border-radius: 8rpx;margin-right: 10rpx;margin-bottom: 20rpx;">
  141. {{postPushInfo.experience}}
  142. </text>
  143. <!-- 单双休 -->
  144. <text v-if="postPushInfo.company"
  145. style="color: #666666;font-size: 26rpx;padding: 10rpx;background: rgba(198, 198, 198, 0.1);border-radius: 8rpx;margin-right: 10rpx;margin-bottom: 20rpx;">
  146. {{postPushInfo.company.workRestTime}}
  147. </text>
  148. <!-- 岗位福利 -->
  149. <text v-for="(item, index) in postPushInfo.welfareTag ? postPushInfo.welfareTag.split(';') : []" :key="index"
  150. style="color: #666666;font-size: 26rpx;padding: 10rpx;background: rgba(198, 198, 198, 0.1);border-radius: 8rpx;margin-right: 10rpx;margin-bottom: 20rpx;">
  151. {{item}}
  152. </text>
  153. <text
  154. style="color: #666666;font-size: 26rpx;padding: 10rpx;background: rgba(198, 198, 198, 0.1);border-radius: 8rpx;margin-right: 10rpx;margin-bottom: 20rpx;"
  155. v-for="(ite,ind) in postPushInfo.positionWelfare" :key="ind">{{ite}}</text>
  156. </view>
  157. <!-- <view class="gwList-box-item-box-line"></view> -->
  158. <!-- 工作描述 -->
  159. <view class="gwList-box-item-box-info-text">
  160. <block v-if="isHtmlContent">
  161. <view :class="['job-description-item',!isJobDescExpanded?'job-description-itemAll':'']" v-html="postPushInfo.positionDetails"></view>
  162. </block>
  163. <block v-else>
  164. <view :class="['job-description-item',!isJobDescExpanded?'job-description-itemAll':'']">{{postPushInfo.positionDetails}}</view>
  165. </block>
  166. <!-- 展开/收起按钮 -->
  167. <view class="expand-btn" @click.stop="toggleJobDesc">
  168. <text class="expand-text">{{ isJobDescExpanded ? '收起' : '展开更多' }}</text>
  169. </view>
  170. </view>
  171. <!-- hr信息 -->
  172. <view class="gwList-box-item-box-info flex justify-between align-center">
  173. <view class="gwList-box-item-box-info-l flex align-center">
  174. <image
  175. :src="postPushInfo.hr&&postPushInfo.hr.hrImg?postPushInfo.hr.hrImg:'../../static/logo.png'"
  176. style="width: 58rpx;height: 58rpx;border-radius: 50%;margin-right: 20rpx;"
  177. mode=""></image>
  178. <view class="people">
  179. {{postPushInfo.user&&postPushInfo.user.userName?postPushInfo.user.userName:'未知'}}
  180. </view>·{{postPushInfo.hr&&postPushInfo.hr.hrPosition||'创始人'}}
  181. </view>
  182. <!--
  183. <view class="gwList-box-item-box-info-r flex justify-end">
  184. {{postPushInfo.county}} {{postPushInfo.address}}
  185. </view>
  186. -->
  187. </view>
  188. <!-- 时间和收藏 -->
  189. <view class="time-favorite flex justify-between align-center">
  190. <view class="time-text">
  191. {{conversationInfo.createTime&&conversationInfo.createTime}} 向你发起的沟通
  192. </view>
  193. <view :class="['favorite-btn flex align-center',postPushInfo.isCollection?'collectActived':'']" @click.stop="setCollection(postPushInfo.postPushId)">
  194. <text class="favorite-icon"><u-icon :name="postPushInfo.isCollection?'star-fill':'star'"></u-icon></text>
  195. <text class="favorite-text">收藏职位</text>
  196. </view>
  197. </view>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. <!-- 简历简介 -->
  203. <view class="jobs flex justify-center" v-if="JSON.stringify(resumesInfo)!='{}'"
  204. @click="goNav('/pages/talentSearch/resumeDetail?resumesId=' + resumesId + '&postPushId=' + postPushId + '&isShowBtn=' + 1)">
  205. <view class="talent-list">
  206. <view class="talent-card">
  207. <view class="talent-content">
  208. <!-- 头像和基本信息 -->
  209. <view class="talent-header">
  210. <image :src="resumesInfo&&resumesInfo.avatar||'../../static/logo.png'" class="talent-avatar" mode="aspectFill"></image>
  211. <view class="talent-info">
  212. <view class="talent-name-section">
  213. <view class="talent-name">期望:{{ resumesInfo.intentionRuleClassifyName }} <text class="talentRange">{{resumesInfo.intentionSalaryRange}}</text></view>
  214. <!-- <view class="talent-tags">
  215. <view class="status-tag online" v-if="resumesInfo.isOnline">在线</view>
  216. <view class="status-tag hot" v-if="talent.isHot">热门搜索</view>
  217. <view class="status-tag active" v-if="resumesInfo.lastActive">{{ resumesInfo.lastActive }}
  218. </view>
  219. </view> -->
  220. </view>
  221. <!-- 经验和薪资 -->
  222. <view class="talent-experience">
  223. <text class="experience-text">{{ resumesInfo.resumesWorkExperience || 0 }}年</text>
  224. <text class="education-salary">{{ postPushInfo.education}}</text>
  225. <text class="education-salary">{{ postPushInfo.salaryRange}}</text>
  226. <text class="status-text">{{ jobStatusList[resumesInfo.resumesStatus].text}}</text>
  227. </view>
  228. </view>
  229. </view>
  230. <!-- 当前职位 -->
  231. <view class="current-job">
  232. <image src="../../static/images/aixin.svg" class="job-icon" mode="aspectFit"></image>
  233. <text class="job-text">{{ resumesInfo.resumesListDtoList&&resumesInfo.resumesListDtoList.companyName||'' }}·{{ resumesInfo.resumesListDtoList&&resumesInfo.resumesListDtoList.lastWorkPosition||'' }}</text>
  234. </view>
  235. <!-- 求职期望 -->
  236. <view class="job-expectation">
  237. <image src="../../static/images/xiangzi.svg" class="job-icon" mode="aspectFit"></image>
  238. <text class="expectation-text">{{ resumesInfo.resumesListDtoList&&resumesInfo.resumesListDtoList.school||'' }}·{{ resumesInfo.resumesListDtoList&&resumesInfo.resumesListDtoList.profession||'' }}</text>
  239. </view>
  240. <!-- 技能标签 -->
  241. <view class="skill-tags">
  242. <view class="skill-tag" v-for="(skill, skillIndex) in resumesInfo.resumesListDtoList&&resumesInfo.resumesListDtoList.intentIndustry&&resumesInfo.resumesListDtoList.intentIndustry.split('/')||[]" :key="skillIndex">
  243. {{ skill }}
  244. </view>
  245. </view>
  246. <!-- 工作描述 -->
  247. <view class="job-description">
  248. <text class="description-text">{{ resumesInfo.adv }}</text>
  249. </view>
  250. </view>
  251. <view class="time-favorite flex justify-between align-center">
  252. <view class="time-text">
  253. {{conversationInfo.createTime&&conversationInfo.createTime.substring(0,10)}} 沟通的职位-{{resumesInfo.intentionRuleClassifyName}}
  254. </view>
  255. </view>
  256. </view>
  257. </view>
  258. </view>
  259. <!-- 聊天记录 -->
  260. <view style="display: flex;flex-direction: column;" v-for="(item,index) in ListItem" :key="index" :id=" 'id-'+index">
  261. <view class="system" v-if="item.createTime">
  262. {{item.createTime}}
  263. </view>
  264. <!---------------------------------- 系统消息开始----------------------------- -->
  265. <view v-if="item.content == '已收到简历' && item.messageType === 10" class="system">
  266. {{item.content}}
  267. </view>
  268. <!-- 对方消息 -->
  269. <block v-if="item.userId && userId != item.userId">
  270. <view v-if="item.content && item.messageType === 99" class="system">
  271. 您收到了{{item.content}}
  272. </view>
  273. <view v-if="item.content && item.messageType === 5 && item.content!='手机号请求'" class="system">
  274. 已同意交换手机号
  275. </view>
  276. <!-- 已同意简历请求 -->
  277. <view v-if="item.content && item.messageType === 9 && item.content!='简历请求'" class="system">
  278. {{item.content}}
  279. </view>
  280. <view v-if="item.content && item.messageType === 6 && item.content!='微信号请求'" class="system">
  281. 已同意交换微信号
  282. </view>
  283. </block>
  284. <!-- 我的消息 -->
  285. <block v-if="item.userId && userId == item.userId">
  286. <view v-if="item.content && item.messageType === 9" class="system">
  287. 简历请求已发送,等待对方同意
  288. </view>
  289. <view v-if="item.content && item.messageType === 5" class="system">
  290. 交换手机号请求已发送,等待对方同意
  291. </view>
  292. <view v-if="item.content && item.messageType === 6" class="system">
  293. 交换微信号请求已发送,等待对方同意
  294. </view>
  295. </block>
  296. <!---------------------------------- 系统消息结束----------------------------- -->
  297. <!-- 对方消息 -->
  298. <view v-if="item.userId && userId != item.userId && !(item.messageType === 99 || (item.messageType === 5 && item.content !== '手机号请求') || (item.messageType === 9 && item.content !== '简历请求') || (item.messageType === 6 && item.content !== '微信号请求'))" style="width: 83%;margin-right: 15%;">
  299. <view class="chat-listitem" style="float: left;margin-left: 10rpx;">
  300. <view @click="goGuanZhu" v-if="!(item.content == '已收到简历' && item.messageType === 10)">
  301. <image :lazy-load="true" mode="aspectFill" :src="item.avatar ? item.avatar : '/static/logo.png'"
  302. class="chat-listitem-image"></image>
  303. </view>
  304. <view v-if="item.content && item.messageType === 1" @longpress="copyAndJubao(item)"
  305. class="chat-listitem-text"
  306. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">{{item.content}}</view>
  307. <view v-if="item.messageType === 20" @tap="sendCallVideo(2)"
  308. class="chat-listitem-text flex align-center"
  309. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  310. 视频通话
  311. <image src="../../static/im/historyVideo_black.png"
  312. style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
  313. </view>
  314. <view v-if="item.messageType === 21" @tap="sendCallVideo(1)"
  315. class="chat-listitem-text flex align-center"
  316. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  317. 语音通话
  318. <image src="../../static/im/historyAudio_black.png"
  319. style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
  320. </view>
  321. <!-- 互换手机号 -->
  322. <view v-if="item.content && item.messageType === 5 && item.content=='手机号请求'"
  323. @longpress="copy(item.content)" class="chat-listitem-text"
  324. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  325. <view class="flex align-center">
  326. <image src="../../static/im/mobilePhone.png"
  327. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  328. 我想跟你交换手机号,是否同意?
  329. </view>
  330. <view class="flex justify-between" style="margin-top: 30rpx;font-size: 24rpx;">
  331. <view @click.stop="refuseFun(item.chatContentId)"
  332. class="flex justify-center align-center"
  333. style="width: 40%;height: 50rpx;background-color: #F5F5F5;border-radius: 12rpx;">
  334. 拒绝
  335. </view>
  336. <view @click.stop="tongyi(item.messageType,item.chatContentId)"
  337. class="flex justify-center align-center"
  338. style="width: 40%;height: 50rpx;background-color: #D9FEED;border-radius: 12rpx;">
  339. 同意
  340. </view>
  341. </view>
  342. </view>
  343. <view v-if="item.content && item.messageType === 7"
  344. @longpress="copyss(item.content,item.userType,'phone')" class="chat-listitem-text"
  345. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  346. <view class="" v-if="item.userType==1">
  347. 我的手机号为:{{JSON.parse(item.content).userPhone}}
  348. </view>
  349. <view class="" v-else>
  350. 我的手机号为:{{JSON.parse(item.content).companyPhone}}
  351. </view>
  352. </view>
  353. <!-- 互换微信号 -->
  354. <view v-if="item.content && item.messageType === 6 && item.content=='微信号请求'"
  355. @longpress="copy(item.content)" class="chat-listitem-text"
  356. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  357. <view class="flex align-center">
  358. <image src="../../static/im/weiChat.png"
  359. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  360. 我想跟你交换微信号,是否同意?
  361. </view>
  362. <view class="flex justify-between" style="margin-top: 30rpx;font-size: 24rpx;">
  363. <view @click.stop="refuseFun(item.chatContentId)"
  364. class="flex justify-center align-center"
  365. style="width: 40%;height: 50rpx;background-color: #F5F5F5;border-radius: 12rpx;">
  366. 拒绝
  367. </view>
  368. <view @click.stop="tongyi(item.messageType,item.chatContentId)"
  369. class="flex justify-center align-center"
  370. style="width: 40%;height: 50rpx;background-color: #D9FEED;border-radius: 12rpx;">
  371. 同意
  372. </view>
  373. </view>
  374. </view>
  375. <!-- <view v-if="item.content && item.messageType === 6 && item.content!='微信号请求'"
  376. class="chat-listitem-text"
  377. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  378. 已同意交换微信号
  379. </view> -->
  380. <view v-if="item.content && item.messageType === 8"
  381. @longpress="copyss(item.content,item.userType,'wx')" class="chat-listitem-text"
  382. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  383. <view class="" v-if="item.userType==1">
  384. 我的微信号为:{{JSON.parse(item.content).userWx}}
  385. </view>
  386. <view class="" v-else>
  387. 我的微信号为:{{JSON.parse(item.content).companyWx}}
  388. </view>
  389. </view>
  390. <view v-if="item.content && item.messageType === 9 && item.content=='简历请求'"
  391. @longpress="copy(item.content)" class="chat-listitem-text"
  392. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  393. <view class="flex align-center">
  394. <image src="../../static/im/orderInfo.png"
  395. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  396. 我想要你的一份简历,是否同意?
  397. </view>
  398. <view class="flex justify-between" style="margin-top: 30rpx;font-size: 24rpx;">
  399. <view @click.stop="refuseFun(item.chatContentId)"
  400. class="flex justify-center align-center"
  401. style="width: 40%;height: 50rpx;background-color: #F5F5F5;border-radius: 12rpx;">
  402. 拒绝
  403. </view>
  404. <view @click.stop="resumesTy()" class="flex justify-center align-center"
  405. style="width: 40%;height: 50rpx;background-color: #D9FEED;border-radius: 12rpx;">
  406. 同意
  407. </view>
  408. </view>
  409. </view>
  410. <!-- <view v-if="item.content && item.messageType === 9 && item.content!='简历请求'"
  411. @longpress="copy(item.content)" class="chat-listitem-text"
  412. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  413. <view class="flex align-center">
  414. <image src="../../static/im/orderInfo.png"
  415. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  416. {{item.content}}
  417. </view>
  418. </view> -->
  419. <view v-if="item.content !=='已收到简历' && item.messageType === 10 && item.userType == 1" class="chat-listitem-text bg-style"
  420. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;" @click="previewResume(item.content)">
  421. <view class="flex align-center">
  422. <image src="../../static/im/orderInfo.png"
  423. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  424. 附件简历
  425. </view>
  426. <view style="font-size: 20rpx;text-align: center;">(点击预览)</view>
  427. </view>
  428. <view v-if="item.content && item.messageType === 12" class="chat-listitem-text"
  429. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
  430. {{item.content}}已拒绝
  431. </view>
  432. <view class="chat-listitem-text bg-style" style="margin-left: 20rpx;"
  433. v-if="item.content && (item.messageType === 96 || item.messageType === 97)" @click="goToInterviewDetail(item)">{{item.content}}
  434. <view style="font-size: 20rpx;text-align: center;">(点击查看详情)</view>
  435. </view>
  436. <view v-if="item.content && item.messageType === 98" @click="goToInterviewDetail(item)"
  437. class="chat-listitem-text"
  438. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-left: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  439. <view class="flex align-center">
  440. <image src="../../static/im/msjg.svg"
  441. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;flex-shrink: 0;" mode="aspectFill"></image>
  442. {{item.content}}
  443. </view>
  444. </view>
  445. <image @tap="viewImg(item.content)" v-if="item.content && item.messageType === 2"
  446. :src="item.content" style="height: 200rpx;width: 200rpx;margin-left: 20rpx;" :lazy-load="true" mode="aspectFill"></image>
  447. <image class="chat-listitem-text"
  448. v-if="item.content && item.messageType === 4"
  449. :src="ossUrl +item.content"
  450. style="height: 80rpx;width: 80rpx;margin-left: 20rpx;" :lazy-load="true" mode="aspectFill"></image>
  451. <view v-if="item.content && item.messageType === 3" class="chat-listitem-text bubble voice textColorLeft"
  452. :class="playMsgid == index?'play':''"
  453. style="margin-left: 20rpx;display: flex;align-items: center;"
  454. @tap="playVoice(item.content,index)">
  455. <image v-if="playMsgid != index" src="../../static/im/laba.png"
  456. style="width: 35upx;height: 40upx;margin-right: 10rpx;"></image>
  457. <image v-if="playMsgid == index" src="../../static/im/labagif.gif"
  458. style="width: 35upx;height: 40upx;margin-right: 10rpx;"></image>
  459. <view class="length">{{item.width ? item.width : 0}}</view>
  460. </view>
  461. <view class="chat-listitem-text "
  462. style="margin-left: 20rpx;color: #000000;background-color: #ffffff;"
  463. v-if="item.content && item.messageType === 18"
  464. @click="openMapss(item.content.latitude,item.content.longitude,item.content.address)">
  465. <view class="padding-sm flex">
  466. <!-- #ifdef APP -->
  467. <u-icon name="map-fill" color="#ffffff" size="28" style="margin-right: 10rpx;"></u-icon>
  468. <!-- #endif -->
  469. {{item.content.address}}
  470. </view>
  471. <!-- #ifndef APP -->
  472. <map style="width: 100%; height: 120px;" scale="14" :latitude="item.content.latitude"
  473. :longitude="item.content.longitude"
  474. @tap="openMapss(item.content.latitude,item.content.longitude,item.content.address)"
  475. :markers="item.markers">
  476. </map>
  477. <!-- #endif -->
  478. </view>
  479. </view>
  480. </view>
  481. <!-- +++++++++++我的消息+++++++++++++++ -->
  482. <view v-if="item.userId && userId == item.userId && !(item.messageType === 9 || item.messageType === 5 || item.messageType === 6)" style="width: 83%;margin-left: 15%;">
  483. <view class="chat-listitem" style="float: right;">
  484. <view v-if="item.content && item.messageType === 1" @longpress="caozuoActive(item,1)"
  485. class="chat-listitem-text textColor" style="margin-right: 20rpx;">{{item.content}}</view>
  486. <view v-if="item.messageType === 20" @tap="sendCallVideo(2)"
  487. class="chat-listitem-text textColor flex align-center" style="margin-right: 20rpx;">
  488. 视频通话
  489. <image src="../../static/im/historyVideo_white.png"
  490. style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
  491. </view>
  492. <view v-if="item.messageType === 21" @tap="sendCallVideo(1)"
  493. class="chat-listitem-text textColor flex align-center" style="margin-right: 20rpx;">
  494. 语音通话
  495. <image src="../../static/im/historyAudio_white.png"
  496. style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
  497. </view>
  498. <view v-if="item.content && item.messageType === 7"
  499. @longpress="copyss(item.content,item.userType,'phone')" class="chat-listitem-text textColor"
  500. style="margin-right: 20rpx;">
  501. <view class="" v-if="item.userType==1">
  502. 我的手机号为:{{JSON.parse(item.content).userPhone}}
  503. </view>
  504. <view class="" v-else>
  505. 我的手机号为:{{JSON.parse(item.content).companyPhone}}
  506. </view>
  507. </view>
  508. <view v-if="item.content && item.messageType === 8"
  509. @longpress="copyss(item.content,item.userType,'wx')" class="chat-listitem-text textColor"
  510. style="margin-right: 20rpx;">
  511. <view class="" v-if="item.userType==1">
  512. 我的微信号为:{{JSON.parse(item.content).userWx}}
  513. </view>
  514. <view class="" v-else>
  515. 我的微信号为:{{JSON.parse(item.content).companyWx}}
  516. </view>
  517. </view>
  518. <view v-if="item.content !=='已收到简历' && item.messageType === 10 && item.userType == 1" class="chat-listitem-text textColor bg-style"
  519. style="margin-right: 20rpx;" @click="previewResume(item.content)">
  520. <view class="flex align-center">
  521. <image src="../../static/im/orderInfo.png"
  522. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
  523. 附件简历
  524. </view>
  525. <view style="font-size: 20rpx;text-align: center;">(点击预览)</view>
  526. </view>
  527. <view v-if="item.content && item.messageType === 12" class="chat-listitem-text textColor"
  528. style="margin-right: 20rpx;">
  529. {{item.content}}已拒绝
  530. </view>
  531. <view class="chat-listitem-text bg-style" style="margin-right: 20rpx;"
  532. v-if="item.content && (item.messageType === 96 || item.messageType === 97)" @click="goToInterviewDetail(item)">{{item.content}}
  533. <view style="font-size: 20rpx;text-align: center;">(点击查看详情)</view></view>
  534. <view v-if="item.content && item.messageType === 99" @click="goToInterviewDetail(item)"
  535. class="chat-listitem-text textColor"
  536. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-right: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  537. <view class="flex align-center">
  538. <image src="../../static/im/msyy.svg"
  539. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;flex-shrink: 0;" mode="aspectFill"></image>
  540. 您发送了{{item.content}}
  541. </view>
  542. <view style="font-size: 20rpx;text-align: center;">(点击查看详情)</view>
  543. </view>
  544. <view v-if="item.content && item.messageType === 98" @click="goToInterviewDetail(item)"
  545. class="chat-listitem-text textColor"
  546. style="padding-bottom: 20rpx;;padding-top: 20rpx;margin-right: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);">
  547. <view class="flex align-center">
  548. <image src="../../static/im/msjg.svg"
  549. style="width: 60rpx;height: 60rpx;margin-right: 10rpx;flex-shrink: 0;" mode="aspectFill"></image>
  550. {{item.content}}
  551. </view>
  552. </view>
  553. <view class="chat-listitem-text textColor" style="margin-right: 20rpx;"
  554. v-if="item.content && item.messageType === 18"
  555. @click="openMapss(item.content.latitude,item.content.longitude,item.content.address)">
  556. <view class="padding-sm flex">
  557. <!-- #ifdef APP -->
  558. <u-icon name="map-fill" color="#ffffff" size="28" style="margin-right: 10rpx;"></u-icon>
  559. <!-- #endif -->
  560. {{item.content.address}}
  561. </view>
  562. <!-- #ifndef APP -->
  563. <map style="width:520upx; height: 120px;" scale="14" :latitude="item.content.latitude"
  564. :longitude="item.content.longitude"
  565. @tap="openMapss(item.content.latitude,item.content.longitude,item.content.address)"
  566. :markers='item.markers'>
  567. </map>
  568. <!-- #endif -->
  569. </view>
  570. <!-- <view v-if="item.content && item.messageType === 1" @longpress="copy(item.content)"
  571. class="chat-listitem-text" style="margin-right: 20rpx;">{{item.content}}</view> -->
  572. <image @longpress="caozuoActive(item)" @tap="viewImg(item.content)"
  573. v-if="item.content && item.messageType === 2" :src="item.content"
  574. style="height: 200rpx;width: 200rpx;margin-right: 20rpx;" :lazy-load="true" mode="aspectFill"></image>
  575. <image class="chat-listitem-text textColor"
  576. v-if="item.content && item.messageType === 4"
  577. :src="ossUrl +item.content"
  578. style="height: 80rpx;width: 80rpx;margin-right: 20rpx;" :lazy-load="true" mode="aspectFill">
  579. </image>
  580. <view v-if="item.content && item.messageType === 3"
  581. class="chat-listitem-text bubble voice textColor" :class="playMsgid == index?'play':''"
  582. style="margin-right: 20rpx;display: flex;align-items: center;"
  583. @longpress="caozuoActive(item)" @tap="playVoice(item.content,index)">
  584. <view class="length">{{item.width ? item.width : 0}}</view>
  585. <image v-if="playMsgid != index" src="../../static/im/labaleft.png"
  586. style="width: 35upx;height: 40upx;margin-left: 10rpx;"></image>
  587. <image v-if="playMsgid == index" src="../../static/im/labaleft.png"
  588. style="width: 35upx;height: 40upx;margin-left: 10rpx;"></image>
  589. </view>
  590. <view v-if="!(item.content == '已收到简历' && item.messageType === 10)">
  591. <image :lazy-load="true" mode="aspectFill" :src="imageUrl" class="chat-listitem-image"></image>
  592. </view>
  593. </view>
  594. </view>
  595. </view>
  596. <!-- </view> -->
  597. </scroll-view>
  598. <!-- 底部聊天输入框 -->
  599. <!-- <view class="input-box">
  600. <view style="display: flex;margin-top: 15rpx;width: 100%;">
  601. <image src="https://renwu.xiansqx.com/img/20210817/024ca47bc591460daf76762a8e98283f.png" @click="chooseImage(['album'])" style="width: 60rpx;height: 60rpx;margin-top: 8rpx;"></image>
  602. <input confirm-type="send" @confirm='setChatSave(1)' type="text" v-model="content"
  603. style="width: 68%;height: 70rpx;background: #FFFFFF;margin: 4rpx 10rpx 0;border-radius: 10rpx;padding-left: 10rpx;" />
  604. <view class="save" @tap='setChatSave(1)'>发送</view>
  605. </view>
  606. </view> -->
  607. <!-- 长按操作菜单 -->
  608. <u-action-sheet :list="activelist" @click="activeclick" v-model="showActive" :tips="tips"></u-action-sheet>
  609. <!-- 抽屉栏 -->
  610. <view class="popup-layer" :class="popupLayerClass" @touchmove.stop.prevent="discard">
  611. <!-- 表情 -->
  612. <!-- <swiper class="emoji-swiper" indicator-active-color="#cccccc" :class="{hidden:hideEmoji}"
  613. indicator-dots="true" duration="150">
  614. <swiper-item v-for="(page1,pid) in emojiList" :key="pid">
  615. <view v-for="(em,eid) in page1" :key="eid" @tap="setChatSave(4,em.url)">
  616. <image mode="widthFix" :src="ossUrl+em.url"></image>
  617. </view>
  618. </swiper-item>
  619. </swiper> -->
  620. <scroll-view class="emoji-scroll" :class="{hidden:hideEmoji}" scroll-y="true">
  621. <view class="emoji-grid">
  622. <view
  623. class="emoji-item"
  624. v-for="(em, eid) in emojiList"
  625. :key="eid"
  626. @click="setChatSave(4,em.url)"
  627. >
  628. <image mode="widthFix" :src="ossUrl + em.url"></image>
  629. </view>
  630. </view>
  631. </scroll-view>
  632. <!-- 更多功能 相册-拍照-红包 -->
  633. <view class="more-layer" :class="{hidden:hideMore}">
  634. <view class="list" style="color: #000000;">
  635. <!-- 上传图片 -->
  636. <view style="margin-bottom: 30rpx;">
  637. <view class="box" @click="chooseImage(['album'])">
  638. <image src="../../static/im/tupian.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
  639. </view>
  640. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">上传图片</view>
  641. </view>
  642. <!-- #ifdef H5 || APP -->
  643. <!-- 语音 -->
  644. <view v-if="isVip" style="margin-bottom: 20rpx;">
  645. <view class="box" @tap="sendCallVideo(1)">
  646. <image src="../../static/im/yuyin.svg" mode=""
  647. style="width: 48rpx;height: 48rpx;">
  648. </image>
  649. </view>
  650. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">语音通话</view>
  651. </view>
  652. <!-- 视频 -->
  653. <view v-if="false" style="margin-bottom: 20rpx;">
  654. <view class="box" @tap="sendCallVideo(2)">
  655. <image src="../../static/im/shipin.svg" mode=""
  656. style="width: 48rpx;height: 48rpx;">
  657. </image>
  658. </view>
  659. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">视频通话</view>
  660. </view>
  661. <!-- #endif -->
  662. <!-- 常用语 -->
  663. <view style="margin-bottom: 20rpx;">
  664. <view class="box" @tap="showChangYongSelect">
  665. <view class="icon jianpan" style="font-size: 44rpx;"></view>
  666. </view>
  667. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">常用语句</view>
  668. </view>
  669. <!-- 添加常用语或自动回复内容 -->
  670. <view style="margin-bottom: 20rpx;">
  671. <view class="box" @tap="goAdd">
  672. <view class="icon add" style="font-size: 44rpx;"></view>
  673. </view>
  674. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">添加语句</view>
  675. </view>
  676. <view style="margin-bottom: 20rpx;">
  677. <view class="box" @tap="goMapss">
  678. <image src="../../static/images/weizhi.png" mode="" style="width: 48rpx;height: 48rpx;">
  679. </image>
  680. </view>
  681. <view style="width: 100%;text-align: center;color: #999;font-size: 20rpx;">发送位置</view>
  682. </view>
  683. <!-- <view>
  684. <view class="box" @tap="goHistory">
  685. <view class="icon chehui"></view>
  686. </view>
  687. <view style="width: 100%;text-align: center;">聊天记录</view>
  688. </view> -->
  689. </view>
  690. </view>
  691. </view>
  692. <!-- 底部输入栏 -->
  693. <view class="input-box" :class="popupLayerClass" @touchmove.stop.prevent="discard">
  694. <!-- H5下不能录音,输入栏布局改动一下 -->
  695. <!-- #ifndef H5 -->
  696. <view class="voice">
  697. <view class="icon" :class="isVoice?'jianpan':'yuyin'" @tap="switchVoice"></view>
  698. </view>
  699. <!-- #endif -->
  700. <view class="textbox">
  701. <view class="voice-mode" :class="[isVoice?'':'hidden',recording?'recording':'']"
  702. @touchstart="voiceBegin" @touchmove.stop.prevent="voiceIng" @touchend="voiceEnd"
  703. @touchcancel="voiceCancel">{{voiceTis}}</view>
  704. <view class="text-mode" :class="isVoice?'hidden':''">
  705. <!-- 常用语按钮 -->
  706. <view class="changgui" @tap="showChangYongSelect">
  707. <image src="../../static/im/changgui.svg" style="width: 56rpx;height: 56rpx;" mode=""></image>
  708. </view>
  709. <view class="box">
  710. <textarea style="color: #000000;" auto-height="true" @confirm='setChatSave(1)' v-model="content"
  711. @focus="textareaFocus" />
  712. </view>
  713. <view class="em" @tap="chooseEmoji">
  714. <image src="../../static/im/smail.svg" style="width: 56rpx;height: 56rpx;" mode=""></image>
  715. </view>
  716. <!-- #ifdef H5 -->
  717. <view class="more" @tap="showMore" style="height: 70rpx;">
  718. <image src="../../static/im/buleAdd.svg" style="width: 56rpx;height: 56rpx;" mode=""></image>
  719. </view>
  720. <!-- #endif -->
  721. </view>
  722. </view>
  723. <!-- #ifndef H5 -->
  724. <view class="more" @tap="showMore">
  725. <view class="icon add"></view>
  726. </view>
  727. <!-- #endif -->
  728. <view class="send" :class="isVoice?'hidden':''" @tap='setChatSave(1)'>
  729. <view class="btn">发送</view>
  730. </view>
  731. </view>
  732. <!-- 录音UI效果 -->
  733. <view class="record" :class="recording?'':'hidden'">
  734. <view class="ing" :class="willStop?'hidden':''">
  735. <view class="icon luyin2"></view>
  736. </view>
  737. <view class="cancel" :class="willStop?'':'hidden'">
  738. <view class="icon chehui"></view>
  739. </view>
  740. <view class="tis" :class="willStop?'change':''">{{recordTis}}</view>
  741. </view>
  742. <u-select v-model="showChangYong" title="常用词语" mode="single-column" :list="changYongList" @confirm="selConfirm">
  743. </u-select>
  744. <u-action-sheet :list="list" @click="click" v-model="show"></u-action-sheet>
  745. <!-- ——————————————————————————-废弃 开始——————————————————————---- -->
  746. <u-popup v-model="mianshiShow" mode="bottom" z-index="998" :mask-close-able="false" border-radius="14"
  747. @close="cleanMs" :closeable="true">
  748. <view class="mianshiTitle">面试邀请</view>
  749. <view class="mianshiTime flex justify-center">
  750. <view class="mianshiTime-box flex justify-between align-center">
  751. <view class="">
  752. 面试时间
  753. </view>
  754. <view class="flex align-center mianshiTime-box-ti">
  755. <u-input disabled v-model="miamshi.interviewDateTime" @click="msTime=true" type="text"
  756. placeholder="请选择面试时间" />
  757. <u-icon name="arrow-right" style="margin-left: 10rpx;" color="#016BF6" size="28"
  758. @click="msTime=true"></u-icon>
  759. </view>
  760. </view>
  761. </view>
  762. <view class="mianshiTime flex justify-center">
  763. <view class="mianshiTime-box flex justify-between align-center">
  764. <view class="">
  765. 面试地址
  766. </view>
  767. <view class="flex align-center mianshiTime-box-ti">
  768. <u-input disabled @click="goMap()" v-model="miamshi.detailedAddress" type="text"
  769. placeholder="请选择面试地址" />
  770. <u-icon name="arrow-right" style="margin-left: 10rpx;" @click="goMap()" color="#016BF6"
  771. size="28"></u-icon>
  772. </view>
  773. </view>
  774. </view>
  775. <view class="mianshiTime flex justify-center">
  776. <view class="mianshiTime-box" style="border: none;">
  777. <view class="">
  778. 备注
  779. </view>
  780. <view class="flex align-center mianshiTime-box-ti">
  781. <u-input v-model="miamshi.remarks" type="textarea" input-align="left"
  782. style="padding: 10rpx;background-color: #F2F2F7;height: 200rpx;overflow: hidden;border-radius: 14rpx;width: 100%;"
  783. :auto-height="false" />
  784. </view>
  785. </view>
  786. </view>
  787. <view class="btnm flex justify-center">
  788. <view class="btn-box flex justify-around align-center">
  789. <view class="btn-close btnItem" @click="mianshiShow = false">
  790. 取消
  791. </view>
  792. <view class="btn-sub btnItem" @click="submitMs()">
  793. 确认
  794. </view>
  795. </view>
  796. </view>
  797. </u-popup>
  798. <!-- ——————————————————————————-废弃 结束——————————————————————---- -->
  799. <u-toast ref="uToast" />
  800. <u-picker v-model="msTime" mode="time" :params="params" @confirm="mianshiConfirm" confirm-color="#016BF6">
  801. </u-picker>
  802. <!-- 面试邀请弹窗 -->
  803. <u-popup v-model="msshow" mode="center" z-index="998" border-radius="24" :mask-close-able="false" width="80%">
  804. <view class="mssTitle">
  805. 面试邀请
  806. </view>
  807. <view class="avatorm flex justify-center">
  808. <view class="avatorm-box flex justify-center">
  809. <block v-if="records.userEntity && records.userEntity.avatar">
  810. <image :src="records.userEntity.avatar"
  811. style="width: 100rpx;height: 100rpx;border-radius: 50%;" mode="aspectFill">
  812. </image>
  813. </block>
  814. <block v-else>
  815. <image src="../../static/logo.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"
  816. mode="">
  817. </image>
  818. </block>
  819. <block v-if="records.hr && records.hr.hrImg">
  820. <image :src="records.hr.hrImg"
  821. style="width: 100rpx;height: 100rpx;border-radius: 50%;" mode="aspectFill">
  822. </image>
  823. </block>
  824. <block v-else>
  825. <image src="../../static/logo.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"
  826. mode="">
  827. </image>
  828. </block>
  829. </view>
  830. </view>
  831. <view class="avatorm flex justify-center">
  832. <view class="avatorm-box">
  833. <view class="avatorm-box-item flex">
  834. <view class="avatorm-box-item-t">
  835. 面试岗位:
  836. </view>
  837. <view class="avatorm-box-item-r">
  838. {{records.postPush?records.postPush.ruleClassifyName:'未知'}}
  839. </view>
  840. </view>
  841. <view class="avatorm-box-item flex" v-if="records">
  842. <view class="avatorm-box-item-t">
  843. 面试时间:
  844. </view>
  845. <view class="avatorm-box-item-r">
  846. {{records.interviewDateTime&&records.interviewDateTime.substring(0, 10)||''}} {{records.detailTime}}
  847. </view>
  848. </view>
  849. <view class="avatorm-box-item flex" @click="goMapDap(records)">
  850. <view class="avatorm-box-item-t">
  851. 面试地点:
  852. </view>
  853. <view class="avatorm-box-item-r">
  854. {{records.detailedAddress}}
  855. <u-icon name="map-fill" color="#016BF6" size="28"></u-icon>
  856. </view>
  857. </view>
  858. <view class="avatorm-box-item flex">
  859. <view class="avatorm-box-item-t">
  860. 面试备注:
  861. </view>
  862. <view class="avatorm-box-item-r">
  863. {{records.remarks?records.remarks:'暂无'}}
  864. </view>
  865. </view>
  866. </view>
  867. </view>
  868. <view class="avatorm flex justify-center" v-if="records.company">
  869. <view class="avatorm-box flex justify-center">
  870. 来自{{records.company.companyAllName||records.company.companyName}}的面试邀请,是否接受?
  871. </view>
  872. </view>
  873. <view class="btnm flex justify-center" style="margin-bottom: 30rpx;">
  874. <view class="btn-box flex justify-around align-center">
  875. <view class="btn-close btnItem" @click="setJuJue(records)">
  876. 拒绝
  877. </view>
  878. <view class="btn-sub btnItem" @click="setJuJues(records)">
  879. 接受
  880. </view>
  881. </view>
  882. </view>
  883. </u-popup>
  884. <!-- 交换微信自定义弹窗 -->
  885. <u-popup v-model="wechatExchangeShow" mode="center" z-index="999" border-radius="24" :mask-close-able="false" width="80%">
  886. <view class="phone-exchange-popup">
  887. <!-- 顶部背景区域 -->
  888. <view class="phone-exchange-header">
  889. <image src="../../static/im/Artwork.png" class="phone-exchange-bg" mode="aspectFill"></image>
  890. </view>
  891. <!-- 中间内容区域 -->
  892. <view class="phone-exchange-content">
  893. <view class="phone-exchange-title">确认与对方交换微信吗?</view>
  894. <view class="phone-exchange-desc">交换成功后,双方可以查看彼此的微信号<br/>您可以前往个人中心管理微信号</view>
  895. </view>
  896. <!-- 底部按钮区域 -->
  897. <view class="phone-exchange-buttons">
  898. <view class="phone-exchange-btn phone-exchange-btn-cancel" @click="cancelWechatExchange">取消</view>
  899. <view class="phone-exchange-btn phone-exchange-btn-confirm" @click="confirmWechatExchange">确认</view>
  900. </view>
  901. </view>
  902. </u-popup>
  903. <!-- 交换手机号自定义弹窗 -->
  904. <u-popup v-model="phoneExchangeShow" mode="center" z-index="999" border-radius="24" :mask-close-able="false" width="80%">
  905. <view class="phone-exchange-popup">
  906. <!-- 顶部背景区域 -->
  907. <view class="phone-exchange-header">
  908. <image src="../../static/im/Artwork.png" class="phone-exchange-bg" mode="aspectFill"></image>
  909. </view>
  910. <!-- 中间内容区域 -->
  911. <view class="phone-exchange-content">
  912. <view class="phone-exchange-title">确认与对方交换电话吗?</view>
  913. <view class="phone-exchange-desc">交换成功后,双方可以查看彼此的电话号码<br/>您可以前往个人中心管理电话号码</view>
  914. </view>
  915. <!-- 底部按钮区域 -->
  916. <view class="phone-exchange-buttons">
  917. <view class="phone-exchange-btn phone-exchange-btn-cancel" @click="cancelPhoneExchange">取消</view>
  918. <view class="phone-exchange-btn phone-exchange-btn-confirm" @click="confirmPhoneExchange">确认</view>
  919. </view>
  920. </view>
  921. </u-popup>
  922. <!-- 简历弹框 -->
  923. <u-popup v-model="attachmentShow" z-index="99999" mode="bottom" border-radius="14" height="auto" :closeable="true">
  924. <attachment @select="selectAttachment" :content="attachmentContent"></attachment>
  925. </u-popup>
  926. <u-popup mode="top" ref="permission">
  927. <view class="popup-content">
  928. <view class="popup-text-permission">选择/拍摄照片需要相机/相册权限,用于发送媒体消息</view>
  929. </view>
  930. </u-popup>
  931. <u-popup mode="top" ref="microphonePermission">
  932. <view class="popup-content">
  933. <view class="popup-text-permission">录制语音需要录音权限,用于发送语音消息</view>
  934. </view>
  935. </u-popup>
  936. <u-popup mode="top" ref="locationPermission">
  937. <view class="popup-content">
  938. <view class="popup-text-permission">获取位置需要定位权限,用于发送位置消息</view>
  939. </view>
  940. </u-popup>
  941. </view>
  942. </template>
  943. <script>
  944. const RECONNECT_INTERVAL = 3000; // 延迟3秒后进行重连
  945. const HEARTBEAT_INTERVAL = 20000; // 每20秒发送一次心跳消息
  946. import configdata from '../../common/config.js';
  947. import emoji from '../../common/emoji.json';
  948. import attachment from '../../components/attachment.vue'
  949. import permision from '@/js_sdk/wa-permission/permission.js'
  950. export default {
  951. components: {
  952. attachment
  953. },
  954. data() {
  955. return {
  956. msshow: false,
  957. params: {
  958. year: false,
  959. month: true,
  960. day: true,
  961. hour: true,
  962. minute: true,
  963. second: false
  964. },
  965. msTime: false,
  966. miamshi: {
  967. interviewDateTime: '', //面试时间
  968. companyId: '', //公司id
  969. remarks: '', //面试备注
  970. userId: '', //面试者id
  971. postPushId: '', //岗位id
  972. province: '', //省
  973. city: '', //市
  974. county: '', //区
  975. lng: '', //经度
  976. lat: '', //纬度
  977. detailedAddress: '', //详细地址
  978. },
  979. tips: {
  980. text: '',
  981. color: 'black',
  982. fontSize: 28
  983. },
  984. activelist: [],
  985. showActive: false,
  986. list: [{
  987. text: '查看简历',
  988. color: 'black',
  989. fontSize: 28
  990. }, {
  991. text: '查看企业',
  992. color: 'black',
  993. fontSize: 28
  994. }],
  995. show: false,
  996. recordLength: 0,
  997. initPoint: {
  998. identifier: 0,
  999. Y: 0
  1000. },
  1001. showChangYong: false,
  1002. changYongList: [],
  1003. // 工作描述展开状态
  1004. isJobDescExpanded: false,
  1005. //播放语音相关参数
  1006. AUDIO: uni.createInnerAudioContext(),
  1007. playMsgid: null,
  1008. VoiceTimer: null,
  1009. //文字消息
  1010. textMsg: '',
  1011. //消息列表
  1012. isHistoryLoading: false,
  1013. scrollAnimation: false,
  1014. scrollTop: 0,
  1015. scrollToView: '',
  1016. msgList: [],
  1017. msgImgList: [],
  1018. myuid: 0,
  1019. //录音相关参数
  1020. // #ifndef H5
  1021. //H5不能录音
  1022. RECORDER: uni.getRecorderManager(),
  1023. // #endif
  1024. isVoice: false,
  1025. voiceTis: '按住 说话',
  1026. recordTis: "手指上滑 取消发送",
  1027. recording: false,
  1028. willStop: false,
  1029. initPoint: {
  1030. identifier: 0,
  1031. Y: 0
  1032. },
  1033. recordTimer: null,
  1034. recordLength: 0,
  1035. //播放语音相关参数
  1036. AUDIO: uni.createInnerAudioContext(),
  1037. playMsgid: null,
  1038. VoiceTimer: null,
  1039. // 抽屉参数
  1040. popupLayerClass: '',
  1041. // more参数
  1042. hideMore: true,
  1043. //表情定义
  1044. hideEmoji: true,
  1045. emojiList: emoji,
  1046. msg: false,
  1047. type4: [],
  1048. listRight: {
  1049. chat: {
  1050. userHead: ""
  1051. },
  1052. content: "",
  1053. messageType: 1,
  1054. type: 1
  1055. },
  1056. content: '',
  1057. chatId: '',
  1058. type: 1,
  1059. ListItem: [],
  1060. index: 0,
  1061. page: 1,
  1062. size: 100,
  1063. byUserId: 0,
  1064. imageUrl: '/static/logo.png',
  1065. chatConversationId: 0,
  1066. userId: 0,
  1067. byNickName: '',
  1068. countDown: '',
  1069. messages: '',
  1070. scrollInto: '',
  1071. tUserId: '', //对方id
  1072. companyId: '', //对方企业的id
  1073. activeInfo: {},
  1074. userType: '',
  1075. postPushId: '', //岗位id
  1076. resumesId: '', //简历id
  1077. postPushInfo: {}, //岗位信息
  1078. resumesInfo: {}, //简历信息
  1079. isSendPhone: false, //是否交换手机号
  1080. isSendWx: false, //是否交换微信
  1081. isSendResumes:false,
  1082. mianshiShow: false, //约面试弹窗
  1083. phoneExchangeShow: false, //交换手机号弹窗
  1084. wechatExchangeShow: false, //交换微信弹窗
  1085. records: {}, //面试邀请信息
  1086. recordsInter: '',
  1087. mapsValue: '',
  1088. showModal: true,
  1089. arr: [],
  1090. old: {
  1091. scrollTop: 0 //记录旧的scrollTop值
  1092. },
  1093. isOpen: false, //scoket是否正在链接
  1094. socketTimer: null, //心跳定时器
  1095. isVip: false, //是否是会员
  1096. isVideo: false, //是否打视频
  1097. ossUrl:configdata.ossUrl,
  1098. jobStatusList:[],
  1099. conversationInfo:{},
  1100. attachmentShow:false,
  1101. attachmentContent:[]
  1102. };
  1103. },
  1104. onUnload() {
  1105. uni.closeSocket()
  1106. uni.hideLoading()
  1107. uni.$off('updateAttachmentList')
  1108. clearInterval(this.recordsInter)
  1109. this.recordsInter = null
  1110. clearInterval(this.socketTimer)
  1111. this.socketTimer = null
  1112. },
  1113. computed: {
  1114. isHtmlContent() {
  1115. const str = this.postPushInfo?.positionDetails || '';
  1116. return /<[^>]+>/.test(str);
  1117. }
  1118. },
  1119. onLoad(d) {
  1120. console.log(d, 'zzzzzzzzz')
  1121. if (d.postPushId) {
  1122. this.postPushId = d.postPushId
  1123. }
  1124. if (d.resumesId) {
  1125. this.resumesId = d.resumesId
  1126. }
  1127. this.userType = uni.getStorageSync('userType')
  1128. if (this.userType == 1) {
  1129. this.postPushId = d.postPushId
  1130. //获取岗位信息
  1131. this.getPostPushInfo(this.postPushId)
  1132. this.getInterviewList()
  1133. } else {
  1134. this.resumesId = d.resumesId
  1135. this.postPushId = d.postPushId
  1136. this.getPostPushInfo(this.postPushId)
  1137. //获取简历信息
  1138. this.getResumesInfo(this.resumesId)
  1139. }
  1140. this.userId = this.$queue.getData('userId');
  1141. this.getMessage();
  1142. this.connect();
  1143. this.byNickName = d.byNickName;
  1144. this.byUserId = d.byUserId;
  1145. if (d.chatConversationId) {
  1146. this.chatConversationId = d.chatConversationId;
  1147. this.getTimeOrListItem1();
  1148. } else {
  1149. this.insertChat();
  1150. }
  1151. let image_url = this.$queue.getData('avatar');
  1152. if (image_url && image_url !== 'undefined') {
  1153. this.imageUrl = image_url;
  1154. } else {
  1155. this.imageUrl = '/static/logo.png';
  1156. }
  1157. // this.emojiList.forEach(d =>{
  1158. // d.forEach(e =>{
  1159. // console.log('/static/emoji/' + e.url)
  1160. // });
  1161. // });
  1162. //语音自然播放结束
  1163. this.AUDIO.onEnded((res) => {
  1164. this.playMsgid = null;
  1165. });
  1166. // #ifndef H5
  1167. //录音开始事件
  1168. this.RECORDER.onStart((e) => {
  1169. this.recordBegin(e);
  1170. })
  1171. //录音结束事件
  1172. this.RECORDER.onStop((e) => {
  1173. this.recordEnd(e);
  1174. })
  1175. // #endif
  1176. this.jobStatusList = this.$queue.resumesStatus()
  1177. this.$Request.get("/app/resumes/getAttachment").then(res => {
  1178. if (res.code == 0) {
  1179. this.attachmentContent=res.data
  1180. }
  1181. uni.hideLoading();
  1182. });
  1183. // #ifdef APP
  1184. //this.getAudioPermision()
  1185. // #endif
  1186. uni.$on('updateAttachmentList',()=>{
  1187. this.$Request.get("/app/resumes/getAttachment").then(res => {
  1188. if (res.code == 0) {
  1189. this.attachmentContent=res.data
  1190. }
  1191. uni.hideLoading();
  1192. });
  1193. })
  1194. },
  1195. onShow() {
  1196. if (this.chatConversationId) {
  1197. this.getTimeOrListItem1();
  1198. }
  1199. // #ifdef MP-WEIXIN
  1200. this.$Request.getT('/app/common/type/342').then(res => { //面试通知
  1201. if (res.code == 0) {
  1202. if (res.data && res.data.value) {
  1203. this.arr.push(res.data.value)
  1204. }
  1205. }
  1206. })
  1207. if (this.showModal) {
  1208. this.openMsg()
  1209. }
  1210. // #endif
  1211. this.userType = uni.getStorageSync('userType')
  1212. this.getChangYong();
  1213. // if (this.isOpen) {
  1214. // this.connect();
  1215. // }
  1216. if (this.userType == 1) {
  1217. //获取用户是否有该岗位待接受的面试邀请
  1218. this.recordsInter = setInterval(() => {
  1219. this.getInterviewList()
  1220. }, 5000)
  1221. }
  1222. this.getUserInfo()
  1223. },
  1224. onBackPress() {
  1225. this.AUDIO.stop();
  1226. this.playMsgid = null;
  1227. },
  1228. onHide() {
  1229. // this.AUDIO.stop();
  1230. // this.playMsgid = null;
  1231. // uni.closeSocket()
  1232. // clearInterval(this.recordsInter)
  1233. // this.recordsInter = null
  1234. },
  1235. methods: {
  1236. // 预览简历
  1237. previewResume(attachmentAddress){
  1238. const isFileLink = /^https?:\/\/.+\.(pdf|doc|docx|xls|xlsx)$/i.test(attachmentAddress);
  1239. if (!isFileLink) {
  1240. uni.showModal({
  1241. title: "提示",
  1242. content: "该简历无法预览",
  1243. showCancel: false,
  1244. });
  1245. return;
  1246. }
  1247. //#ifdef APP-PLUS
  1248. uni.downloadFile({
  1249. url: attachmentAddress,
  1250. success: function (res) {
  1251. var filePath = res.tempFilePath;
  1252. uni.openDocument({
  1253. filePath: filePath,
  1254. showMenu: true,
  1255. success: function (res) {
  1256. console.log('打开文档成功');
  1257. }
  1258. });
  1259. }
  1260. });
  1261. return;
  1262. //#endif
  1263. uni.navigateTo({
  1264. url: '/pages/index/webView?url=' + attachmentAddress + '&title=' + ''
  1265. });
  1266. },
  1267. goToInterviewDetail(item){
  1268. if(item.recordId){
  1269. uni.navigateTo({
  1270. url: `/my/jilu/bossMianshiDetail?recordId=${item.recordId}`
  1271. })
  1272. }
  1273. },
  1274. // 返回上一页
  1275. goBack() {
  1276. uni.navigateBack();
  1277. },
  1278. //获取麦克风/摄像头权限
  1279. async getAudioPermision() {
  1280. let status = permision.isIOS ? await permision.judgeIosPermission("record") : await permision
  1281. .requestAndroidPermission("android.permission.RECORD_AUDIO")
  1282. let status2 = permision.isIOS ? await permision.judgeIosPermission("camera") : await permision
  1283. .requestAndroidPermission("android.permission.CAMERA")
  1284. if (status === null || status === 1 || status == true) { //已经同意授权
  1285. console.log('获取到权限了')
  1286. } else { //未授权的
  1287. this.popupshowsq = true
  1288. }
  1289. },
  1290. // 显示更多选项
  1291. showMoreOptions() {
  1292. return this.$queue.showToast('waiting...')
  1293. // 可以添加更多选项的弹窗或菜单
  1294. // console.log('显示更多选项');
  1295. uni.navigateTo({
  1296. url:'/pages/msg/interviewInvitation'
  1297. })
  1298. },
  1299. // 切换工作描述展开状态
  1300. toggleJobDesc() {
  1301. this.isJobDescExpanded = !this.isJobDescExpanded;
  1302. },
  1303. getUserInfo() {
  1304. this.$Request.get("/app/user/selectUserById").then(res => {
  1305. if (res.code == 0) {
  1306. if (this.userType == 1) { //用户
  1307. if (res.data.isUserVip == 1) { //判断用户是否是vip
  1308. this.isVip = true
  1309. } else {
  1310. this.isVip = false
  1311. }
  1312. } else { //企业
  1313. if (res.data.isCompanyVip == 1) { //判断企业用户是否是vip
  1314. this.isVip = true
  1315. } else {
  1316. this.isVip = false
  1317. }
  1318. }
  1319. }
  1320. })
  1321. },
  1322. /**
  1323. * @param {Object} type 1:语音 2视频
  1324. */
  1325. sendCallVideo(type) {
  1326. if (!this.isVip) {
  1327. uni.showModal({
  1328. title: '提示',
  1329. content: type == 1 ? '语音为会员专属功能,请开通会员!' : '视频为会员专属功能,请开通会员!',
  1330. confirmText: '开通会员',
  1331. cancelText: '取消',
  1332. confirmColor: '#016BF6',
  1333. complete(ret) {
  1334. if (ret.confirm) {
  1335. uni.navigateTo({
  1336. url: '/pages/my/VIP/benefits'
  1337. })
  1338. }
  1339. }
  1340. })
  1341. return
  1342. }
  1343. if (this.isVideo) {
  1344. return
  1345. }
  1346. this.isVideo = true
  1347. let data = {
  1348. focusedUserId: this.byUserId, //对方的userId
  1349. messageType: type == 1 ? 21 : 20,
  1350. userId: uni.getStorageSync('userId'), //我的userId
  1351. userType: this.userType, //1:用户 2:企业,
  1352. postPushId: this.postPushId,
  1353. resumesId: this.resumesId
  1354. }
  1355. let that = this
  1356. this.$Request.postJson('/app/chat/insertChatConversationByChatVideo', data).then(res => {
  1357. if (res.code == 0) {
  1358. //isRol 1:发起人 2:收到人
  1359. console.log(res)
  1360. uni.navigateTo({
  1361. url: '/my/videoVoice/videoVoice?byUserId=' + this.byUserId +
  1362. '&chatContentId=' + res.data.chatContentId +
  1363. '&isRol=1&messageType=' + data.messageType + '&chatConversationId=' + res
  1364. .data
  1365. .chatConversationId + '&userType=' + data.userType + '&postPushId=' + data
  1366. .postPushId + '&resumesId=' + data.resumesId,
  1367. success() {
  1368. uni.setStorageSync('isDial', true)
  1369. uni.setStorageSync('videoStatus', 1)
  1370. that.isVideo = false
  1371. }
  1372. })
  1373. } else {
  1374. that.isVideo = false
  1375. uni.showToast({
  1376. title: res.msg,
  1377. icon: 'none'
  1378. })
  1379. }
  1380. })
  1381. },
  1382. scroll(e) {
  1383. this.old.scrollTop = e.detail.scrollTop
  1384. },
  1385. // 开启订阅消息
  1386. openMsg() {
  1387. console.log('订阅消息')
  1388. var that = this
  1389. uni.getSetting({
  1390. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  1391. success(ret) {
  1392. console.log(ret.subscriptionsSetting, '------------------')
  1393. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  1394. if (ret.subscriptionsSetting.itemSettings) {
  1395. uni.setStorageSync('sendMsg', true)
  1396. uni.openSetting({ // 打开设置页
  1397. success(rea) {
  1398. console.log(rea.authSetting)
  1399. }
  1400. });
  1401. } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  1402. console.log(99999)
  1403. uni.setStorageSync('sendMsg', false)
  1404. uni.showModal({
  1405. title: '提示',
  1406. content: '为了更好的体验,请绑定消息推送',
  1407. confirmText: '确定',
  1408. cancelText: '取消',
  1409. confirmColor: '#016BF6',
  1410. success: function(res) {
  1411. if (res.confirm) {
  1412. console.log(that.arr)
  1413. wx.requestSubscribeMessage({
  1414. tmplIds: that.arr,
  1415. success(re) {
  1416. console.log(JSON.stringify(re),
  1417. '++++++++++++++')
  1418. var datas = JSON.stringify(re);
  1419. if (datas.indexOf("accept") != -1) {
  1420. console.log(re)
  1421. uni.setStorageSync('sendMsg', true)
  1422. }
  1423. },
  1424. fail: (res) => {
  1425. console.log(res)
  1426. }
  1427. })
  1428. uni.setStorageSync('sendMsg', true)
  1429. console.log('确认')
  1430. that.showModal = false
  1431. } else if (res.cancel) {
  1432. console.log('取消')
  1433. uni.setStorageSync('sendMsg', false)
  1434. that.showModal = true
  1435. }
  1436. }
  1437. })
  1438. }
  1439. }
  1440. })
  1441. },
  1442. /**
  1443. * @param {Object} info 内容
  1444. * @param {Object} userType 用户类型
  1445. * @param {Object} type 参数类型
  1446. */
  1447. copyss(info, userType, type) {
  1448. let content = ''
  1449. switch (type) {
  1450. //复制手机号
  1451. case 'phone':
  1452. if (userType == 1) {
  1453. content = JSON.parse(info).companyPhone
  1454. } else {
  1455. content = JSON.parse(info).userPhone
  1456. }
  1457. break;
  1458. //复制微信号
  1459. case 'wx':
  1460. if (userType == 1) {
  1461. content = JSON.parse(info).companyWx
  1462. } else {
  1463. content = JSON.parse(info).userWx
  1464. }
  1465. break;
  1466. default:
  1467. break;
  1468. }
  1469. this.copy(content)
  1470. },
  1471. openMapss(latitude, longitude, name) {
  1472. uni.openLocation({
  1473. latitude: latitude - 0, //要去的纬度-地址
  1474. longitude: longitude - 0, //要去的经度-地址
  1475. name: name, //地址名称
  1476. address: name, //详细地址名称
  1477. success: function() {
  1478. console.log('导航成功');
  1479. },
  1480. fail: function(error) {
  1481. console.log(error)
  1482. }
  1483. });
  1484. },
  1485. async goMapss() {
  1486. let that = this
  1487. // #ifdef APP
  1488. const hasLocation = await this.$queue.checkPermission(
  1489. 'location',
  1490. '获取位置需要定位权限,用于发送位置消息',
  1491. this,'locationPermission'
  1492. );
  1493. if (!hasLocation) return;
  1494. // #endif
  1495. uni.chooseLocation({
  1496. success: function(res) {
  1497. console.log('位置名称:' + res.name);
  1498. console.log('详细地址:' + res.address);
  1499. console.log('纬度:' + res.latitude);
  1500. console.log('经度:' + res.longitude);
  1501. let mapsValue = JSON.stringify(res);
  1502. that.setChatSave(18, mapsValue)
  1503. // console.log(typeof(res))
  1504. // return
  1505. that.showMore();
  1506. }
  1507. });
  1508. },
  1509. //接受邀请
  1510. setJuJues(item) {
  1511. // #ifdef MP-WEIXIN
  1512. if (uni.getStorageSync('sendMsg')) {
  1513. // console.log('授权+1')
  1514. wx.requestSubscribeMessage({
  1515. tmplIds: this.arr,
  1516. success(re) {
  1517. // console.log(JSON.stringify(re), 111111111111)
  1518. var datas = JSON.stringify(re);
  1519. if (datas.indexOf("accept") != -1) {
  1520. // console.log(re)
  1521. }
  1522. },
  1523. fail: (res) => {
  1524. // console.log(res)
  1525. }
  1526. })
  1527. }
  1528. // #endif
  1529. let that = this
  1530. uni.showModal({
  1531. title: '提示',
  1532. content: '确定接受来自' + item.company.companyName + '的面试邀请吗?',
  1533. confirmColor: '#016BF6',
  1534. complete(ret) {
  1535. if (ret.confirm) {
  1536. let data = {
  1537. recordId: item.recordId,
  1538. type: 1
  1539. }
  1540. that.$Request.getT("/app/interviewRecord/userUpdateInter", data).then(res => {
  1541. if (res.code == 0) {
  1542. uni.showToast({
  1543. // title: '已接受来自' + item.company.companyName + '的面试邀请'
  1544. title: '已接受面试邀请'
  1545. })
  1546. that.msshow = false;
  1547. that.setChatSave(97,res.data)
  1548. } else {
  1549. uni.showToast({
  1550. title: res.msg,
  1551. icon: 'none'
  1552. })
  1553. }
  1554. })
  1555. }
  1556. }
  1557. })
  1558. },
  1559. //去导航
  1560. goMapDap(info) {
  1561. uni.openLocation({
  1562. latitude: info.lat,
  1563. longitude: info.lng,
  1564. address: info.detailedAddress,
  1565. name: info.detailedAddress,
  1566. complete(ret) {
  1567. }
  1568. })
  1569. },
  1570. //拒绝邀请
  1571. setJuJue(item) {
  1572. let that = this
  1573. uni.showModal({
  1574. title: '提示',
  1575. content: '确定拒绝来自' + item.company.companyName + '的面试邀请吗?',
  1576. confirmColor: '#016BF6',
  1577. complete(ret) {
  1578. if (ret.confirm) {
  1579. let data = {
  1580. recordId: item.recordId,
  1581. type: 2
  1582. }
  1583. that.$Request.getT("/app/interviewRecord/userUpdateInter", data).then(res => {
  1584. if (res.code == 0) {
  1585. uni.showToast({
  1586. title: '已拒绝来自' + item.company.companyName + '的面试邀请'
  1587. })
  1588. that.msshow = false;
  1589. that.setChatSave(96,res.data)
  1590. } else {
  1591. uni.showToast({
  1592. title: res.msg,
  1593. icon: 'none'
  1594. })
  1595. }
  1596. })
  1597. }
  1598. }
  1599. })
  1600. },
  1601. //获取用户是否有面试记录
  1602. getInterviewList() {
  1603. let data = {
  1604. /* userId: uni.getStorageSync('userId'), */
  1605. status: 1,
  1606. postPushId: this.postPushId
  1607. }
  1608. this.$Request.getT("/app/interviewRecord/interviewList", data).then(res => {
  1609. if (res.code == 0) {
  1610. if ((res.data.records).length > 0) {
  1611. this.records = res.data.records[0]
  1612. this.msshow = true
  1613. } else {
  1614. this.msshow = false
  1615. }
  1616. } else {
  1617. uni.showToast({
  1618. title: res.msg,
  1619. icon: 'none'
  1620. })
  1621. this.msshow = false
  1622. }
  1623. })
  1624. },
  1625. submitMs() {
  1626. if (!this.miamshi.interviewDateTime) {
  1627. this.$refs.uToast.show({
  1628. title: '请选择面试时间',
  1629. type: 'default',
  1630. position: 'bottom'
  1631. })
  1632. return
  1633. }
  1634. if (!this.miamshi.detailedAddress) {
  1635. this.$refs.uToast.show({
  1636. title: '请选择面试地点',
  1637. type: 'default',
  1638. position: 'bottom'
  1639. })
  1640. return
  1641. }
  1642. let that = this
  1643. uni.showModal({
  1644. title: '提示',
  1645. content: '确定发起面试邀请吗?',
  1646. confirmColor: '#016BF6',
  1647. complete(ret) {
  1648. if (ret.confirm) {
  1649. let data = {
  1650. interviewDateTime: that.miamshi.interviewDateTime + ':00',
  1651. companyId: uni.getStorageSync('companyId'),
  1652. remarks: that.miamshi.remarks,
  1653. userId: that.byUserId, //求职者id
  1654. postPushId: that.postPushId,
  1655. province: that.miamshi.province,
  1656. city: that.miamshi.city,
  1657. county: that.miamshi.county,
  1658. lng: that.miamshi.lng,
  1659. lat: that.miamshi.lat,
  1660. detailedAddress: that.miamshi.detailedAddress
  1661. }
  1662. that.$Request.postJson("/app/interviewRecord/saveInterview", data).then(res => {
  1663. if (res.code == 0) {
  1664. uni.showToast({
  1665. title: '面试邀请已发送'
  1666. })
  1667. that.mianshiShow = false
  1668. } else {
  1669. that.mianshiShow = false
  1670. uni.showToast({
  1671. title: res.msg,
  1672. icon: 'none'
  1673. })
  1674. }
  1675. })
  1676. }
  1677. }
  1678. })
  1679. },
  1680. //关闭弹窗的时候清空表单的值
  1681. cleanMs() {
  1682. this.miamshi = {
  1683. interviewDateTime: '', //面试时间
  1684. companyId: '', //公司id
  1685. remarks: '', //面试备注
  1686. userId: '', //面试者id
  1687. postPushId: '', //岗位id
  1688. province: '', //省
  1689. city: '', //市
  1690. county: '', //区
  1691. lng: '', //经度
  1692. lat: '', //纬度
  1693. detailedAddress: '', //详细地址
  1694. }
  1695. },
  1696. // 点击调起地图选择位置
  1697. goMap() {
  1698. let that = this
  1699. uni.chooseLocation({
  1700. success: function(res) {
  1701. let arrress = res.address
  1702. let reg = /.+?(省|市|自治区|自治州|县|区)/g;
  1703. let adds = arrress.match(reg)
  1704. console.log(adds)
  1705. that.miamshi.province = adds[0]
  1706. that.miamshi.city = adds[1]
  1707. that.miamshi.county = adds[2]
  1708. that.miamshi.detailedAddress = res.address + '' + res.name
  1709. that.miamshi.lat = res.latitude
  1710. that.miamshi.lng = res.longitude
  1711. }
  1712. });
  1713. },
  1714. //选择面试时间
  1715. mianshiConfirm(e) {
  1716. //获取当前时间的年份
  1717. let date = new Date()
  1718. let year = date.getFullYear()
  1719. this.miamshi.interviewDateTime = year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute
  1720. },
  1721. mianshiF() {
  1722. // #ifdef MP-WEIXIN
  1723. if (uni.getStorageSync('sendMsg')) {
  1724. // console.log('授权+1')
  1725. wx.requestSubscribeMessage({
  1726. tmplIds: this.arr,
  1727. success(re) {
  1728. // console.log(JSON.stringify(re), 111111111111)
  1729. var datas = JSON.stringify(re);
  1730. if (datas.indexOf("accept") != -1) {
  1731. // console.log(re)
  1732. }
  1733. },
  1734. fail: (res) => {
  1735. // console.log(res)
  1736. }
  1737. })
  1738. }
  1739. // #endif
  1740. let data = {
  1741. userId: this.byUserId,
  1742. postPushId: this.postPushId
  1743. }
  1744. this.$Request.getT("/app/interviewRecord/isSendView", data).then(res => {
  1745. if (res.code == 0) {
  1746. //这里要判断是boss还是求职者,跳不同的页面 bossMianshiDetail
  1747. if (!res.data) {//表示没有面试,去约面试
  1748. //this.mianshiShow = true
  1749. if(!this.resumesInfo&&!this.resumesInfo.userId)
  1750. return this.$queue.showToast('简历用户信息获取失败')
  1751. uni.navigateTo({
  1752. url:`/pages/msg/interviewInvitation?postPushId=${this.postPushId}&resumesId=${this.resumesId}&interviewerId=${this.resumesInfo.userId}`
  1753. })
  1754. } else {
  1755. //这里的逻辑是不是应跳到面试详情了?
  1756. uni.navigateTo({
  1757. url:`/my/jilu/bossMianshiDetail?recordId=${res.data}&companyId=${uni.getStorageSync('companyId')}`
  1758. })
  1759. uni.showToast({
  1760. title: '已发送过面试邀请',
  1761. icon: 'none'
  1762. })
  1763. this.mianshiShow = false
  1764. }
  1765. } else {
  1766. this.mianshiShow = false
  1767. uni.showToast({
  1768. title: res.msg,
  1769. icon: 'none'
  1770. })
  1771. }
  1772. })
  1773. },
  1774. //请求拒绝
  1775. refuseFun(id) {
  1776. let that = this
  1777. uni.showModal({
  1778. title: '提示',
  1779. content: '确定拒绝吗?',
  1780. confirmColor: '#016BF6',
  1781. complete(ret) {
  1782. if (ret.confirm) {
  1783. let data = {
  1784. chatContentId: id
  1785. }
  1786. that.$Request.getT("/app/chat/refuseReqs", data).then(res => {
  1787. if (res.code == 0) {
  1788. uni.showToast({
  1789. title: '已拒绝'
  1790. })
  1791. that.setChatSave(24)
  1792. that.getTimeOrListItem1()
  1793. that.getStatusInfo()
  1794. } else {
  1795. uni.showToast({
  1796. title: res.msg,
  1797. icon: 'none'
  1798. })
  1799. }
  1800. })
  1801. }
  1802. }
  1803. })
  1804. },
  1805. selectAttachment(item){
  1806. this.attachmentShow=false
  1807. let that = this
  1808. let data = {
  1809. to: this.byUserId, //接收人的userId
  1810. postPushId: this.postPushId, //岗位id
  1811. resumesAttachmentId:item.resumesAttachmentId
  1812. }
  1813. this.$Request.postT("/app/resumes/sendResumes", data).then(res => {
  1814. if (res.code == 0) {
  1815. uni.showToast({
  1816. title: '简历已发送',
  1817. })
  1818. that.setChatSave(24,item.attachmentAddress,'jl')
  1819. that.getTimeOrListItem1()
  1820. that.getStatusInfo()
  1821. } else {
  1822. uni.showToast({
  1823. title: res.msg,
  1824. icon: 'none'
  1825. })
  1826. }
  1827. })
  1828. },
  1829. // 同意简历请求并发送简历
  1830. sendResumesSave() {
  1831. this.attachmentShow=true
  1832. },
  1833. resumesTy() {
  1834. let that = this
  1835. return that.sendResumesSave()
  1836. uni.showModal({
  1837. title: '提示',
  1838. content: '确定发送简历给对方?',
  1839. confirmColor: '#016BF6',
  1840. complete(ret) {
  1841. if (ret.confirm) {
  1842. that.sendResumesSave()
  1843. }
  1844. }
  1845. })
  1846. },
  1847. //求简历
  1848. giveSendResumes() {
  1849. let that = this
  1850. uni.showModal({
  1851. title: '提示',
  1852. content: '是否将简历请求发送给对方?,对方同意后将会收到对方的简历',
  1853. confirmColor: '#016BF6',
  1854. complete(ret) {
  1855. if (ret.confirm) {
  1856. that.setChatSave(9)
  1857. }
  1858. }
  1859. })
  1860. },
  1861. //发简历
  1862. sendResumes() {
  1863. let that = this
  1864. return that.sendResumesSave()
  1865. uni.showModal({
  1866. title: '提示',
  1867. content: '是否将简历发送给对方?',
  1868. confirmColor: '#016BF6',
  1869. complete(ret) {
  1870. if (ret.confirm) {
  1871. that.sendResumesSave()
  1872. }
  1873. }
  1874. })
  1875. },
  1876. //获取交换状态
  1877. getStatusInfo() {
  1878. let data = {
  1879. chatConversationId: this.chatConversationId
  1880. }
  1881. this.$Request.getT("/app/chat/getConversationInfo", data).then(res => {
  1882. if (res.code == 0) {
  1883. this.conversationInfo=res.data
  1884. if (res.data.isSendWx) {
  1885. this.isSendWx = true
  1886. } else {
  1887. this.isSendWx = false
  1888. }
  1889. if (res.data.isSendPhone) {
  1890. this.isSendPhone = true
  1891. } else {
  1892. this.isSendPhone = false
  1893. }
  1894. if(res.data.isSendResumes)
  1895. this.isSendResumes=true
  1896. else
  1897. this.isSendResumes=false
  1898. }
  1899. })
  1900. },
  1901. //交换微信号弹窗
  1902. currentWchat() {
  1903. let that = this
  1904. if (!uni.getStorageSync('weChatNum')) {
  1905. uni.showModal({
  1906. title: '提示',
  1907. content: '请先再个人信息页面完善微信号后操作',
  1908. confirmColor: '#016BF6',
  1909. confirmText: '去完善',
  1910. complete(re) {
  1911. if (re.confirm) {
  1912. uni.navigateTo({
  1913. url: '/pages/my/userinfo'
  1914. })
  1915. }
  1916. }
  1917. })
  1918. return
  1919. }
  1920. if (this.isSendWx == false) {
  1921. this.wechatExchangeShow = true;
  1922. } else {
  1923. uni.showToast({
  1924. title: '已交换过微信号,请查看聊天记录',
  1925. icon: 'none'
  1926. })
  1927. }
  1928. },
  1929. //同意交换手机号/微信
  1930. tongyi(messageType, chatContentId) {
  1931. if (messageType == 6 && !uni.getStorageSync('weChatNum')) {
  1932. uni.showModal({
  1933. title: '提示',
  1934. content: '请先再个人信息页面完善微信号后操作',
  1935. confirmColor: '#016BF6',
  1936. confirmText: '去完善',
  1937. complete(re) {
  1938. if (re.confirm) {
  1939. uni.navigateTo({
  1940. url: '/pages/my/userinfo'
  1941. })
  1942. }
  1943. }
  1944. })
  1945. return
  1946. }
  1947. let that = this
  1948. uni.showModal({
  1949. title: '提示',
  1950. content: messageType == 5 ? '同意后将交换手机号,是否同意?' : '同意后将交换微信号,是否同意?',
  1951. confirmColor: '#016BF6',
  1952. complete(ret) {
  1953. if (ret.confirm) {
  1954. let data = {
  1955. messageType: messageType,
  1956. chatContentId: chatContentId
  1957. }
  1958. that.$Request.postT("/app/chat/sendPhoneOrWx", data).then(res => {
  1959. if (res.code == 0) {
  1960. that.setChatSave(24)
  1961. that.getTimeOrListItem1()
  1962. that.getStatusInfo()
  1963. }
  1964. })
  1965. }
  1966. }
  1967. })
  1968. },
  1969. //交换手机号弹窗
  1970. currentPhone() {
  1971. if (this.isSendPhone == false) {
  1972. this.phoneExchangeShow = true;
  1973. } else {
  1974. uni.showToast({
  1975. title: '已交换过手机号,请查看聊天记录',
  1976. icon: 'none'
  1977. })
  1978. }
  1979. },
  1980. // 取消交换手机号
  1981. cancelPhoneExchange() {
  1982. this.phoneExchangeShow = false;
  1983. },
  1984. // 确认交换手机号
  1985. confirmPhoneExchange() {
  1986. this.phoneExchangeShow = false;
  1987. this.setChatSave(5);
  1988. },
  1989. // 取消微信交换
  1990. cancelWechatExchange() {
  1991. this.wechatExchangeShow = false;
  1992. },
  1993. // 确认微信交换
  1994. confirmWechatExchange() {
  1995. this.wechatExchangeShow = false;
  1996. this.setChatSave(6);
  1997. },
  1998. goNav(url) {
  1999. uni.navigateTo({
  2000. url: url
  2001. })
  2002. },
  2003. //获取简历数据
  2004. getResumesInfo(id) {
  2005. var that=this
  2006. this.$Request.getT("/app/resumes/selectResumesByResumesId", {
  2007. userId: uni.getStorageSync('userId'),
  2008. resumesId: id,
  2009. companyId: uni.getStorageSync('companyId')
  2010. }).then(res => {
  2011. if (res.code == 0) {
  2012. let title = res.data.userName
  2013. uni.setNavigationBarTitle({
  2014. title: title
  2015. })
  2016. res.data.intentionRuleClassifyName=this.postPushInfo.ruleClassifyName
  2017. res.data.intentionSalaryRange=this.postPushInfo.salaryRange
  2018. res.data.intentionExprence=[]
  2019. res.data.intentionList.forEach(function(item){
  2020. if(item.ruleClassifyName==that.postPushInfo.ruleClassifyName){
  2021. res.data.intentionRuleClassifyName=item.ruleClassifyName
  2022. res.data.intentionSalaryRange=item.salaryRange
  2023. res.data.intentionExprence=item.industry&&item.industry.split('/')||[]
  2024. }
  2025. })
  2026. this.resumesInfo = res.data
  2027. // this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare.split(',')
  2028. }
  2029. })
  2030. },
  2031. noIdtent(){
  2032. this.content='抱歉,我对该岗位暂无兴趣';
  2033. this.setChatSave(1)
  2034. },
  2035. gotoInfo(id) {
  2036. uni.navigateTo({
  2037. url: '/pages/index/game/order?postPushId=' + id
  2038. })
  2039. },
  2040. //获取岗位数据
  2041. getPostPushInfo(id) {
  2042. this.$Request.getT("/app/postPush/selectPostPushDetails", {
  2043. userId: uni.getStorageSync('userId'),
  2044. postPushId: id
  2045. }).then(res => {
  2046. if (res.code == 0) {
  2047. if(this.userType==1){
  2048. let title = res.data.company?res.data.company.companyName:'聊天'
  2049. uni.setNavigationBarTitle({
  2050. title: title
  2051. })
  2052. }
  2053. this.postPushInfo = res.data
  2054. this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare&&this.postPushInfo.positionWelfare.split(',')||[]
  2055. }
  2056. })
  2057. },
  2058. caozuoActive(item, type) {
  2059. if (type == 1) {
  2060. this.activelist = [{
  2061. text: '复制',
  2062. color: 'black',
  2063. fontSize: 24
  2064. }, {
  2065. text: '撤回',
  2066. color: 'black',
  2067. fontSize: 24
  2068. }]
  2069. } else {
  2070. this.activelist = [{
  2071. text: '撤回',
  2072. color: 'black',
  2073. fontSize: 24
  2074. }]
  2075. }
  2076. this.activeInfo = item
  2077. this.showActive = true
  2078. },
  2079. activeclick(index) {
  2080. if (this.activelist[index].text == '复制') { // 复制
  2081. this.copy(this.activeInfo.content)
  2082. } else { //撤回
  2083. let t2 = this.activeInfo.createTimes; //格式不正确需要转换
  2084. let aftert2 = new Date(t2.replace(/-/g, "/")); //转换
  2085. let data = new Date(); //获取当前时间
  2086. let times = data.getTime() - aftert2.getTime(); //时间差的毫秒数
  2087. //计算分钟数
  2088. let minu = parseInt(times / (1000 * 60))
  2089. if (minu > 5) {
  2090. uni.showToast({
  2091. title: '超过五分钟无法撤回',
  2092. icon: 'none'
  2093. })
  2094. } else {
  2095. let that = this
  2096. uni.showModal({
  2097. title: '提示',
  2098. content: '确定要撤回吗?',
  2099. confirmColor: '#016BF6',
  2100. complete(ret) {
  2101. if (ret.confirm) {
  2102. that.$Request.postT('/app/chat/deleteChatContentById', {
  2103. chatContentId: that.activeInfo.chatContentId
  2104. })
  2105. .then(res => {
  2106. if (res.code == 0) {
  2107. uni.showToast({
  2108. title: '已撤回',
  2109. icon: 'none'
  2110. })
  2111. that.getTimeOrListItem1();
  2112. }
  2113. });
  2114. }
  2115. }
  2116. })
  2117. }
  2118. }
  2119. },
  2120. //跳转
  2121. click(index) {
  2122. console.log(index)
  2123. switch (index) {
  2124. case 0: //简历
  2125. uni.navigateTo({
  2126. url: '/pages/index/game/orderDet?userId=' + this.tUserId
  2127. })
  2128. break;
  2129. case 1: //企业
  2130. uni.navigateTo({
  2131. url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + this.companyId + '&type=yes'
  2132. })
  2133. break;
  2134. default:
  2135. break;
  2136. }
  2137. },
  2138. //消息公告
  2139. getMessage() {
  2140. this.$Request.getT('/app/common/type/311')
  2141. .then(res => {
  2142. if (res.code == 0) {
  2143. this.messages = res.data.value
  2144. }
  2145. });
  2146. },
  2147. showChangYongSelect() {
  2148. this.showMore();
  2149. this.showChangYong = !this.showChangYong;
  2150. },
  2151. selConfirm(e) {
  2152. // this.form.game = e[0].label
  2153. // this.form.gameId = e[0].value
  2154. this.content = e[0].label;
  2155. this.showMore();
  2156. this.showChangYong = false;
  2157. // this.setChatSave(1);
  2158. },
  2159. getChangYong() {
  2160. let state = 0
  2161. if(this.userType == 1){
  2162. state = 70
  2163. }else{
  2164. state = 80
  2165. }
  2166. this.$Request.getT(`/app/message/selectMessageByType?page=1&limit=100&state=${state}`)
  2167. .then(res => {
  2168. if (res.code == 0) {
  2169. this.changYongList = [{label:'你好啊,可以聊一聊~',value:0}];
  2170. res.data.list.forEach(d => {
  2171. let data = {
  2172. label: d.content,
  2173. value: d.id
  2174. }
  2175. this.changYongList.push(data);
  2176. });
  2177. }
  2178. });
  2179. },
  2180. goGuanZhu() {
  2181. if(this.userType == 1){
  2182. this.gotoInfo(this.postPushInfo.postPushId)
  2183. }else{
  2184. this.goNav('/pages/talentSearch/resumeDetail?resumesId=' + this.resumesId + '&postPushId=' + this.postPushId + '&isShowBtn=' + 1)
  2185. }
  2186. // this.hideDrawer();
  2187. // this.tUserId = item.userId
  2188. // this.$Request.get('/app/user/selectUserByIds', {
  2189. // 'userId': item.userId
  2190. // }).then(res => {
  2191. // if (res.code == 0) {
  2192. // if (res.data.userType == 1 || res.data.userType == null) { //个人
  2193. // uni.navigateTo({
  2194. // url: '/pages/index/game/orderDet?userId=' + item.userId
  2195. // })
  2196. // } else {
  2197. // this.$Request.get('/app/resumes/selectResumesByUserIds', {
  2198. // 'userId': item.userId
  2199. // }).then(ret => {
  2200. // if (ret.code == 0) {
  2201. // if (ret.data && JSON.stringify(ret.data) != '{}') { //有简历则选择
  2202. // this.$Request.get('/app/company/selectCompanyByUserIds', {
  2203. // userId: item.userId
  2204. // }).then(ree => {
  2205. // if (ree.code == 0) {
  2206. // this.companyId = ree.data.companyId
  2207. // }
  2208. // });
  2209. // this.show = true
  2210. // } else { //没有简历直接跳转企业详情
  2211. // this.$Request.get('/app/company/selectCompanyByUserIds', {
  2212. // userId: item.userId
  2213. // }).then(ree => {
  2214. // if (ree.code == 0) {
  2215. // uni.navigateTo({
  2216. // url: '/my/enterpriseInfo/enterpriseInfo?companyId=' +
  2217. // ree.data.companyId + '&type=yes'
  2218. // })
  2219. // }
  2220. // });
  2221. // }
  2222. // }
  2223. // });
  2224. // }
  2225. // }
  2226. // });
  2227. },
  2228. //添加常用语/自动回复
  2229. goAdd() {
  2230. this.showMore();
  2231. uni.navigateTo({
  2232. url: '/pages/msg/addmsg',
  2233. success: (res) => {
  2234. // 监听返回的数据
  2235. res.eventChannel.on('selectData', (data) => {
  2236. console.log('子页面返回的数据:', data);
  2237. this.content = data;
  2238. });
  2239. }
  2240. });
  2241. },
  2242. goHistory() {
  2243. this.showMore();
  2244. uni.navigateTo({
  2245. url: '/pages/msg/chathistory?chatConversationId=' + this.chatConversationId
  2246. });
  2247. },
  2248. insertChat() {
  2249. let userId = this.$queue.getData('userId');
  2250. let data = {
  2251. focusedUserId: this.byUserId,
  2252. userId: userId
  2253. }
  2254. this.$Request.postJson('/appChat/insertChatConversation', data).then(res => {
  2255. if (res.code == 0 && res.data) {
  2256. this.chatConversationId = res.data.chatConversationId;
  2257. this.getTimeOrListItem1();
  2258. }
  2259. });
  2260. },
  2261. //更多功能(点击+弹出)
  2262. showMore() {
  2263. this.isVoice = false;
  2264. this.hideEmoji = true;
  2265. if (this.hideMore) {
  2266. this.hideMore = false;
  2267. this.openDrawer();
  2268. } else {
  2269. this.hideDrawer();
  2270. }
  2271. },
  2272. // 打开抽屉
  2273. openDrawer() {
  2274. this.popupLayerClass = 'showLayer';
  2275. },
  2276. // 隐藏抽屉
  2277. hideDrawer() {
  2278. this.popupLayerClass = '';
  2279. setTimeout(() => {
  2280. this.hideMore = true;
  2281. this.hideEmoji = true;
  2282. }, 150);
  2283. },
  2284. // 选择表情
  2285. chooseEmoji() {
  2286. this.hideMore = true;
  2287. if (this.hideEmoji) {
  2288. this.hideEmoji = false;
  2289. this.openDrawer();
  2290. } else {
  2291. this.hideDrawer();
  2292. }
  2293. },
  2294. //添加表情
  2295. addEmoji(em) {
  2296. this.textMsg += em.alt;
  2297. },
  2298. //获取焦点,如果不是选表情ing,则关闭抽屉
  2299. textareaFocus() {
  2300. if (this.popupLayerClass == 'showLayer' && this.hideMore == false) {
  2301. this.hideDrawer();
  2302. }
  2303. },
  2304. //替换表情符号为图片
  2305. replaceEmoji(str) {
  2306. let replacedStr = str.replace(/\[([^(\]|\[)]*)\]/g, (item, index) => {
  2307. console.log("item: " + item);
  2308. for (let i = 0; i < this.emojiList.length; i++) {
  2309. let row = this.emojiList[i];
  2310. for (let j = 0; j < row.length; j++) {
  2311. let EM = row[j];
  2312. if (EM.alt == item) {
  2313. //在线表情路径,图文混排必须使用网络路径,请上传一份表情到你的服务器后再替换此路径
  2314. //比如你上传服务器后,你的100.gif路径为https://www.xxx.com/emoji/100.gif 则替换onlinePath填写为https://www.xxx.com/emoji/
  2315. let onlinePath = 'https://s2.ax1x.com/2019/04/12/'
  2316. let imgstr = '<img src="' + onlinePath + this.onlineEmoji[EM.url] + '">';
  2317. console.log("imgstr: " + imgstr);
  2318. return imgstr;
  2319. }
  2320. }
  2321. }
  2322. });
  2323. return '<div style="display: flex;align-items: center;word-wrap:break-word;">' + replacedStr + '</div>';
  2324. },
  2325. // 播放语音
  2326. playVoice(msg, index) {
  2327. console.log(msg)
  2328. this.playMsgid = index;
  2329. this.AUDIO.src = msg;
  2330. this.$nextTick(function() {
  2331. this.AUDIO.play();
  2332. });
  2333. },
  2334. // 录音开始
  2335. async voiceBegin(e) {
  2336. let that = this
  2337. // 1. 先判断系统类型,区分Android/iOS权限
  2338. const hasPermission = await this.$queue.checkPermission(
  2339. 'microphone',
  2340. '选择/拍摄照片需要相机/相册权限,用于发送图片消息',
  2341. this,
  2342. 'microphonePermission'
  2343. );
  2344. // 2. 如果未授权或者用户拒绝,显示提示
  2345. if (!hasPermission) {
  2346. return;
  2347. }
  2348. if (e.touches.length > 1) {
  2349. return;
  2350. }
  2351. this.initPoint.Y = e.touches[0].clientY;
  2352. this.initPoint.identifier = e.touches[0].identifier;
  2353. this.RECORDER.start({
  2354. format: "mp3"
  2355. }); //录音开始,
  2356. },
  2357. //录音开始UI效果
  2358. recordBegin(e) {
  2359. this.recording = true;
  2360. this.voiceTis = '松开 结束';
  2361. this.recordLength = 0;
  2362. this.recordTimer = setInterval(() => {
  2363. this.recordLength++;
  2364. }, 1000)
  2365. },
  2366. // 录音被打断
  2367. voiceCancel() {
  2368. this.recording = false;
  2369. this.voiceTis = '按住 说话';
  2370. this.recordTis = '手指上滑 取消发送'
  2371. this.willStop = true; //不发送录音
  2372. this.RECORDER.stop(); //录音结束
  2373. },
  2374. // 录音中(判断是否触发上滑取消发送)
  2375. voiceIng(e) {
  2376. if (!this.recording) {
  2377. return;
  2378. }
  2379. let touche = e.touches[0];
  2380. //上滑一个导航栏的高度触发上滑取消发送
  2381. if (this.initPoint.Y - touche.clientY >= uni.upx2px(100)) {
  2382. this.willStop = true;
  2383. this.recordTis = '松开手指 取消发送'
  2384. } else {
  2385. this.willStop = false;
  2386. this.recordTis = '手指上滑 取消发送'
  2387. }
  2388. },
  2389. // 结束录音
  2390. voiceEnd(e) {
  2391. if (!this.recording) {
  2392. return;
  2393. }
  2394. this.recording = false;
  2395. this.voiceTis = '按住 说话';
  2396. this.recordTis = '手指上滑 取消发送'
  2397. this.RECORDER.stop(); //录音结束
  2398. },
  2399. //录音结束(回调文件)
  2400. recordEnd(e) {
  2401. clearInterval(this.recordTimer);
  2402. if (!this.willStop) {
  2403. this.$queue.showLoading('发送中...')
  2404. console.log("e: " + JSON.stringify(e));
  2405. let msg = {
  2406. length: 0,
  2407. url: e.tempFilePath
  2408. }
  2409. let min = parseInt(this.recordLength / 60);
  2410. let sec = this.recordLength % 60;
  2411. min = min < 10 ? '0' + min : min;
  2412. sec = sec < 10 ? '0' + sec : sec;
  2413. msg.length = min + ':' + sec;
  2414. console.log('msg.length___:' + msg.length)
  2415. uni.uploadFile({ // 上传接口
  2416. url: this.config("APIHOST1") + '/alioss/upload', //真实的接口地址
  2417. filePath: e.tempFilePath,
  2418. name: 'file',
  2419. success: (uploadFileRes) => {
  2420. uni.hideLoading();
  2421. this.content = JSON.parse(uploadFileRes.data).data;
  2422. console.log("语音:" + this.content)
  2423. this.setChatSave(3, msg.length);
  2424. uni.hideLoading();
  2425. }
  2426. });
  2427. } else {
  2428. console.log('取消发送录音');
  2429. }
  2430. this.willStop = false;
  2431. },
  2432. // 切换语音/文字输入
  2433. switchVoice() {
  2434. this.hideDrawer();
  2435. this.isVoice = this.isVoice ? false : true;
  2436. },
  2437. copy(content) {
  2438. uni.showModal({
  2439. title: '温馨提示',
  2440. content: '确认要复制此文字吗?',
  2441. showCancel: true,
  2442. cancelText: '取消',
  2443. confirmText: '确认',
  2444. confirmColor: '#016BF6',
  2445. success: res => {
  2446. if (res.confirm) {
  2447. uni.setClipboardData({
  2448. data: content,
  2449. success: r => {
  2450. this.$queue.showToast('复制成功');
  2451. }
  2452. });
  2453. }
  2454. }
  2455. });
  2456. },
  2457. h5Copy(content) {
  2458. if (!document.queryCommandSupported('copy')) {
  2459. // 不支持
  2460. return false
  2461. }
  2462. let textarea = document.createElement("textarea")
  2463. textarea.value = content
  2464. textarea.readOnly = "readOnly"
  2465. document.body.appendChild(textarea)
  2466. textarea.select() // 选择对象
  2467. textarea.setSelectionRange(0, content.length) //核心
  2468. let result = document.execCommand("copy") // 执行浏览器复制命令
  2469. textarea.remove()
  2470. return result
  2471. },
  2472. getDateDiff(data) {
  2473. // 1️⃣ 手动解析字符串,避免 iOS 时区问题
  2474. let timePublish;
  2475. if (typeof data === 'string') {
  2476. // 格式:2026-01-05 18:46:39
  2477. const parts = data.split(/[- :]/);
  2478. // 注意:月份从 0 开始
  2479. timePublish = new Date(parts[0], parts[1] - 1, parts[2], parts[3] || 0, parts[4] || 0, parts[5] || 0);
  2480. } else {
  2481. timePublish = new Date(data);
  2482. }
  2483. const timeNow = new Date();
  2484. const publishYear = timePublish.getFullYear();
  2485. const publishMonth = timePublish.getMonth() + 1;
  2486. const publishDate = timePublish.getDate();
  2487. const publishHour = timePublish.getHours().toString().padStart(2, '0');
  2488. const publishMinute = timePublish.getMinutes().toString().padStart(2, '0');
  2489. const oneDay = 1000 * 60 * 60 * 24;
  2490. // 用本地时间差计算天数
  2491. const diffDays = Math.floor((timeNow.setHours(0, 0, 0, 0) - timePublish.setHours(0, 0, 0, 0)) / oneDay);
  2492. const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  2493. const weekStr = weekDays[timePublish.getDay()];
  2494. const sameYear = publishYear === timeNow.getFullYear();
  2495. let result = '';
  2496. if (diffDays === 0) {
  2497. result = `${publishHour}:${publishMinute}`;
  2498. } else if (diffDays === 1) {
  2499. result = `昨天 ${publishHour}:${publishMinute}`;
  2500. } else if (diffDays < 7) {
  2501. result = `${weekStr} ${publishHour}:${publishMinute}`;
  2502. } else if (sameYear) {
  2503. result = `${publishMonth}月${publishDate}日 ${publishHour}:${publishMinute}`;
  2504. } else {
  2505. result = `${publishYear}年${publishMonth}月${publishDate}日 ${publishHour}:${publishMinute}`;
  2506. }
  2507. return result;
  2508. },
  2509. // 发送心跳包
  2510. startHeartbeat() {
  2511. // HeartBeat 这里是和后端约定好的值,我们发送给后端,后端再把这个值返给我们
  2512. // 目的就是让后端知道我们一直在
  2513. const heartbeatMsg = 'HeartBeat';
  2514. const sendHeartbeat = () => {
  2515. if (this.isOpen) {
  2516. console.log('发送HeartBeat')
  2517. uni.sendSocketMessage({
  2518. data: heartbeatMsg,
  2519. }).catch(error => {
  2520. console.log('发送心跳消息失败:', error);
  2521. //发送消息失败则进行重新链接
  2522. this.connect()
  2523. });
  2524. }
  2525. };
  2526. this.socketTimer = setInterval(sendHeartbeat, HEARTBEAT_INTERVAL);
  2527. },
  2528. // 开始重连
  2529. reconnect() {
  2530. if (!this.isOpen) {
  2531. clearTimeout(this.socketTimer);
  2532. this.socketTimer = setTimeout(() => {
  2533. console.log('开始重连...');
  2534. this.connect();
  2535. }, RECONNECT_INTERVAL);
  2536. }
  2537. },
  2538. connect() {
  2539. // #ifdef MP-WEIXIN
  2540. if (uni.getStorageSync('sendMsg')) {
  2541. // console.log('授权+1')
  2542. wx.requestSubscribeMessage({
  2543. tmplIds: this.arr,
  2544. success(re) {
  2545. // console.log(JSON.stringify(re), 111111111111)
  2546. var datas = JSON.stringify(re);
  2547. if (datas.indexOf("accept") != -1) {
  2548. // console.log(re)
  2549. }
  2550. },
  2551. fail: (res) => {
  2552. // console.log(res)
  2553. }
  2554. })
  2555. }
  2556. // #endif
  2557. let that = this
  2558. let userId = this.$queue.getData('userId');
  2559. uni.showLoading({
  2560. title: '连接中...'
  2561. })
  2562. uni.closeSocket()
  2563. uni.connectSocket({
  2564. // url: 'wss://h5.youxb.icu/wss/sqx_fast/chatSocket/' + userId,
  2565. // url: this.config("WSHOST1") + userId,
  2566. url: configdata.WSHOST1 + '' + userId,
  2567. // url: 'wss://h5.bosszan.com/wss/chatSocket/' + userId,
  2568. // url: 'ws://192.168.0.128:7152/sqx_fast/chatSocket/' + userId,
  2569. data() {
  2570. return {
  2571. msg: 'Hello'
  2572. }
  2573. },
  2574. header: {
  2575. 'content-type': 'application/json'
  2576. },
  2577. method: 'GET',
  2578. success(res) {
  2579. // 这里是接口调用成功的回调,不是连接成功的回调,请注意
  2580. },
  2581. fail(err) {
  2582. // 这里是接口调用失败的回调,不是连接失败的回调,请注意
  2583. }
  2584. })
  2585. uni.onSocketOpen((res) => {
  2586. uni.hideLoading()
  2587. that.isOpen = true;
  2588. that.startHeartbeat()
  2589. if (that.mapsValue) {
  2590. that.setChatSave(18, that.mapsValue)
  2591. }
  2592. })
  2593. uni.onSocketError((err) => {
  2594. uni.hideLoading()
  2595. //如果连接异常那么把状态设置为false
  2596. that.isOpen = false;
  2597. //并尝试进行重连
  2598. that.reconnect();
  2599. })
  2600. uni.onSocketMessage((res) => {
  2601. if (res.data == 'HeartBeat') { //如果是心跳回推则不进行处理
  2602. return
  2603. }
  2604. let msg
  2605. try {
  2606. msg = JSON.parse(res.data)
  2607. } catch (e) {
  2608. that.getTimeOrListItem1();
  2609. return;
  2610. }
  2611. if (msg.type === 'kickOut') {
  2612. uni.showModal({
  2613. title: '提示',
  2614. content: msg.content,
  2615. showCancel: false,
  2616. success() {
  2617. that.$queue.logout();
  2618. uni.reLaunch({ url: '/pages/public/loginphone?type=1' })
  2619. }
  2620. })
  2621. }else{
  2622. that.getTimeOrListItem1();
  2623. }
  2624. })
  2625. uni.onSocketClose((res) => {
  2626. uni.hideLoading()
  2627. that.isOpen = false;
  2628. //链接关闭的时候也尝试进行重连
  2629. // that.reconnect();
  2630. })
  2631. },
  2632. close() {
  2633. uni.closeSocket()
  2634. },
  2635. getTimeOrListItem1() {
  2636. let userId = this.$queue.getData('userId')
  2637. this.$Request.getT('/app/chat/selectChatContent?page=' + this.page + '&limit=' + this.size +
  2638. '&chatConversationId=' + this.chatConversationId + '&userId=' + userId).then(
  2639. res => {
  2640. // this.ListItem = [];
  2641. if (res.data) {
  2642. var time = '';
  2643. res.data.list.forEach(d => {
  2644. d.createTimes = d.createTime;
  2645. d.createTime = this.getDateDiff(d.createTime);
  2646. if (d.createTime === time) {
  2647. d.createTime = '';
  2648. } else {
  2649. time = d.createTime;
  2650. }
  2651. if (d.type === 4) {
  2652. let data = d.content.split(',');
  2653. d.content = data;
  2654. }
  2655. if (d.type === 3) {
  2656. let data = d.content.split(',');
  2657. d.content = data;
  2658. }
  2659. if (d.messageType === 18) {
  2660. d.content = JSON.parse(d.content);
  2661. d.markers = [{
  2662. id: 1,
  2663. latitude: d.content.latitude,
  2664. longitude: d.content.longitude,
  2665. width: 20,
  2666. height: 20,
  2667. iconPath: '../../static/images/mapMarker.png',
  2668. callout: {
  2669. content: d.content.name,
  2670. color: '#000', //文字颜色
  2671. fontSize: 10, //文本大小
  2672. padding: 10, //附近留白
  2673. borderRadius: 24, //边框圆角
  2674. bgColor: '#FFFFFF', //背景颜色
  2675. display: 'ALWAYS', //常显
  2676. }
  2677. }]
  2678. }
  2679. // this.ListItem.push(d);
  2680. });
  2681. this.ListItem = res.data.list
  2682. this.ListItem.reverse();
  2683. this.scrollTop = this.old.scrollTop
  2684. this.$nextTick(() => {
  2685. this.scrollTop = 99999
  2686. })
  2687. this.getStatusInfo()
  2688. }
  2689. uni.hideLoading();
  2690. });
  2691. },
  2692. setChatSave(type, url,val) {
  2693. //type:1文字 2图片
  2694. if (type === 1 && this.content == '') {
  2695. this.$queue.showToast('请输入聊天内容');
  2696. return;
  2697. }
  2698. if (type != 3 && type != 2 && this.$queue.getChatSearchKeys(this.content)) {
  2699. uni.showToast({
  2700. title: "输入内容带有非法关键字请重新输入",
  2701. mask: false,
  2702. duration: 1500,
  2703. icon: "none"
  2704. });
  2705. return;
  2706. }
  2707. // if (type === 1 && this.$queue.getChatSearchKeys(this.content) != -1) {
  2708. // uni.showToast({
  2709. // title: "输入内容带有非法关键字请重新输入",
  2710. // mask: false,
  2711. // duration: 1500,
  2712. // icon: "none"
  2713. // });
  2714. // return;
  2715. // }
  2716. let userId = this.$queue.getData('userId');
  2717. if (type === 4) {
  2718. this.content = url;
  2719. }
  2720. if (type === 18) { //定位
  2721. this.content = url;
  2722. }
  2723. let data = {};
  2724. if (type == 3) {
  2725. data = {
  2726. userId: this.byUserId,
  2727. content: this.content,
  2728. width: url,
  2729. messageType: type,
  2730. chatConversationId: this.chatConversationId
  2731. }
  2732. } else if (type == 5) { //交换手机号
  2733. data = {
  2734. userId: this.byUserId,
  2735. content: '手机号请求',
  2736. messageType: type,
  2737. chatConversationId: this.chatConversationId
  2738. }
  2739. } else if (type == 6) { //交换微信号
  2740. data = {
  2741. userId: this.byUserId,
  2742. content: '微信号请求',
  2743. messageType: type,
  2744. chatConversationId: this.chatConversationId
  2745. }
  2746. } else if (type == 9) { //简历请求
  2747. data = {
  2748. userId: this.byUserId,
  2749. content: '简历请求',
  2750. messageType: type,
  2751. chatConversationId: this.chatConversationId
  2752. }
  2753. } else if (type == 24 && !val) {
  2754. data = {
  2755. userId: this.byUserId,
  2756. content: '刷新',
  2757. messageType: type,
  2758. chatConversationId: this.chatConversationId
  2759. }
  2760. } else if (type == 24 && val) {
  2761. data = {
  2762. userId: this.byUserId,
  2763. content: url,
  2764. messageType: type,
  2765. chatConversationId: this.chatConversationId
  2766. }
  2767. } else if (type == 96){
  2768. data = {
  2769. userId: this.byUserId,
  2770. content: '已拒绝面试邀请',
  2771. messageType: type,
  2772. chatConversationId: this.chatConversationId,
  2773. recordId:url
  2774. }
  2775. }else if(type == 97){
  2776. data = {
  2777. userId: this.byUserId,
  2778. content: '已接受面试邀请',
  2779. messageType: type,
  2780. chatConversationId: this.chatConversationId,
  2781. recordId:url
  2782. }
  2783. }else {
  2784. data = {
  2785. userId: this.byUserId,
  2786. content: this.content,
  2787. messageType: type,
  2788. chatConversationId: this.chatConversationId
  2789. }
  2790. }
  2791. data = JSON.stringify(data);
  2792. let that = this;
  2793. uni.sendSocketMessage({
  2794. data: data,
  2795. success(res) {
  2796. that.mapsValue = ''
  2797. let image_url = that.$queue.getData('image_url');
  2798. if (!image_url) {
  2799. image_url = '/static/logo.png';
  2800. }
  2801. let datas = {
  2802. chat: {
  2803. userHead: image_url
  2804. },
  2805. content: that.content,
  2806. type: type,
  2807. sendType: 1
  2808. }
  2809. that.ListItem.push(datas);
  2810. setTimeout(() => {
  2811. that.getTimeOrListItem1();
  2812. that.content = '';
  2813. that.hideDrawer();
  2814. }, 50);
  2815. console.log(that.content);
  2816. },
  2817. fail(err) {
  2818. console.log(err);
  2819. }
  2820. })
  2821. },
  2822. //发送图片
  2823. async chooseImage(sourceType) {
  2824. let that = this
  2825. // 1. 先判断系统类型,区分Android/iOS权限
  2826. const hasPermission = await this.$queue.checkPermission(
  2827. 'camera',
  2828. '选择/拍摄照片需要相机/相册权限,用于发送图片消息',
  2829. this
  2830. );
  2831. // 2. 如果未授权或者用户拒绝,显示提示
  2832. if (!hasPermission) {
  2833. return;
  2834. }
  2835. uni.chooseImage({
  2836. count: 1,
  2837. sourceType: ['album','camera'],
  2838. success: res => {
  2839. for (let i = 0; i < res.tempFilePaths.length; i++) {
  2840. this.$queue.showLoading("上传中...");
  2841. uni.uploadFile({ // 上传接口
  2842. url: this.config("APIHOST1") + '/alioss/upload', //真实的接口地址
  2843. filePath: res.tempFilePaths[i],
  2844. name: 'file',
  2845. success: (uploadFileRes) => {
  2846. let content = JSON.parse(uploadFileRes.data).data;
  2847. uni.hideLoading();
  2848. let data = {
  2849. userId: that.byUserId,
  2850. content: content,
  2851. messageType: 2,
  2852. chatConversationId: that.chatConversationId
  2853. }
  2854. data = JSON.stringify(data);
  2855. uni.sendSocketMessage({
  2856. data: data,
  2857. success(res) {
  2858. let image_url = that.$queue.getData(
  2859. 'image_url');
  2860. if (!image_url) {
  2861. image_url = '/static/logo.png';
  2862. }
  2863. let datas = {
  2864. chat: {
  2865. userHead: image_url
  2866. },
  2867. content: content,
  2868. type: 2,
  2869. sendType: 1
  2870. }
  2871. that.ListItem.push(datas);
  2872. setTimeout(() => {
  2873. that.getTimeOrListItem1();
  2874. that.hideDrawer();
  2875. }, 50);
  2876. },
  2877. fail(err) {
  2878. console.log(err);
  2879. }
  2880. })
  2881. }
  2882. });
  2883. }
  2884. }
  2885. })
  2886. },
  2887. config: function(name) {
  2888. var info = null;
  2889. if (name) {
  2890. var name2 = name.split("."); //字符分割
  2891. if (name2.length > 1) {
  2892. info = configdata[name2[0]][name2[1]] || null;
  2893. } else {
  2894. info = configdata[name] || null;
  2895. }
  2896. if (info == null) {
  2897. let web_config = cache.get("web_config");
  2898. if (web_config) {
  2899. if (name2.length > 1) {
  2900. info = web_config[name2[0]][name2[1]] || null;
  2901. } else {
  2902. info = web_config[name] || null;
  2903. }
  2904. }
  2905. }
  2906. }
  2907. return info;
  2908. },
  2909. //查看大图
  2910. viewImg(item) {
  2911. let imgsArray = [];
  2912. imgsArray[0] = item;
  2913. uni.previewImage({
  2914. current: 0,
  2915. urls: imgsArray
  2916. });
  2917. },
  2918. /**
  2919. * 收藏岗位
  2920. */
  2921. setCollection(postPushId) {
  2922. this.$Request.postT("/app/myCollection/saveCollection", {
  2923. postPushId: postPushId,
  2924. type: 1
  2925. }).then(res => {
  2926. if (res.code == 0) {
  2927. uni.showToast({
  2928. title: res.msg
  2929. })
  2930. this.postPushInfo.isCollection=1-(this.postPushInfo.isCollection?this.postPushInfo.isCollection:0)
  2931. }
  2932. })
  2933. },
  2934. copyAndJubao(item) {
  2935. var that=this
  2936. uni.showActionSheet({
  2937. itemList: ['举报', '复制'],
  2938. success(res) {
  2939. if (res.tapIndex === 0) {
  2940. setTimeout(() => {
  2941. that.$queue.showToast('该用户聊天信息举报已成功提交审核');
  2942. }, 200);
  2943. } else if (res.tapIndex === 1) {
  2944. that.copy(item.content);
  2945. }
  2946. },
  2947. fail(res) {
  2948. console.log(res.errMsg);
  2949. }
  2950. });
  2951. }
  2952. },
  2953. };
  2954. </script>
  2955. <style lang="scss">
  2956. @import "../msg/css/style.scss";
  2957. // 展开按钮样式
  2958. .expand-btn {
  2959. text-align: left;
  2960. margin-top: 20rpx;
  2961. padding: 10rpx 0;
  2962. .expand-text {
  2963. color: #007AFF;
  2964. font-size: 28rpx;
  2965. }
  2966. }
  2967. // 时间和收藏样式
  2968. .time-favorite {
  2969. padding: 10rpx 0;
  2970. .time-text {
  2971. color: rgba(156, 164, 171, 1);
  2972. font-family: DM Sans;
  2973. font-size: 12px;
  2974. font-weight: 400;
  2975. line-height: 20px;
  2976. letter-spacing: undefined;
  2977. text-align: right;
  2978. }
  2979. .favorite-btn {
  2980. color: rgba(156, 164, 171, 1);
  2981. font-size: 12px;
  2982. .favorite-icon {
  2983. margin-right: 8rpx;
  2984. font-size: 12px;
  2985. }
  2986. .favorite-text {
  2987. font-size: 12px;
  2988. }
  2989. }
  2990. .collectActived{
  2991. color: #016BF6;
  2992. }
  2993. }
  2994. .avatorm {
  2995. width: 100%;
  2996. // height: 100rpx;
  2997. margin-top: 20rpx;
  2998. color: #000;
  2999. .avatorm-box {
  3000. width: 90%;
  3001. height: 100%;
  3002. .avatorm-box-item {
  3003. margin-bottom: 10rpx;
  3004. .avatorm-box-item-t {
  3005. width: 30%;
  3006. }
  3007. .avatorm-box-item-r {
  3008. width: 70%;
  3009. }
  3010. }
  3011. }
  3012. }
  3013. .mssTitle {
  3014. width: 100%;
  3015. margin-top: 30rpx;
  3016. text-align: center;
  3017. font-size: 30rpx;
  3018. color: #000;
  3019. font-weight: bold;
  3020. }
  3021. .btnm {
  3022. width: 100%;
  3023. margin-top: 20rpx;
  3024. height: 80rpx;
  3025. margin-bottom: 100rpx;
  3026. .btn-box {
  3027. width: 686rpx;
  3028. height: 100%;
  3029. .btnItem {
  3030. display: flex;
  3031. align-items: center;
  3032. justify-content: center;
  3033. width: 200rpx;
  3034. height: 100%;
  3035. border-radius: 14rpx;
  3036. }
  3037. .btn-close {
  3038. color: #016BF6;
  3039. border: 1rpx solid #016BF6;
  3040. }
  3041. .btn-sub {
  3042. color: #FFFFFF;
  3043. background-color: #016BF6;
  3044. }
  3045. }
  3046. }
  3047. .mianshiTime {
  3048. width: 100%;
  3049. margin-top: 20rpx;
  3050. .mianshiTime-box {
  3051. padding-bottom: 20rpx;
  3052. width: 686rpx;
  3053. height: 100%;
  3054. color: #000000;
  3055. border-bottom: 1rpx solid #F2F2F7;
  3056. .mianshiTime-box-ti {
  3057. height: 100%;
  3058. margin-top: 20rpx;
  3059. }
  3060. }
  3061. }
  3062. .mianshiTitle {
  3063. width: 100%;
  3064. margin-top: 30rpx;
  3065. font-size: 30rpx;
  3066. text-align: center;
  3067. font-weight: bold;
  3068. color: #000000;
  3069. }
  3070. .qyList-box-item {
  3071. width: 100%;
  3072. // height: 400rpx;
  3073. padding-bottom: 40rpx;
  3074. background-color: #ffffff;
  3075. border-radius: 24rpx;
  3076. margin-bottom: 20rpx;
  3077. .qyList-box-item-box {
  3078. width: 626rpx;
  3079. height: 100%;
  3080. }
  3081. .qyList-box-item-info {
  3082. margin-top: 40rpx;
  3083. }
  3084. .qyList-box-item-job {
  3085. color: #121212;
  3086. font-size: 28rpx;
  3087. font-weight: 500;
  3088. margin-top: 20rpx;
  3089. }
  3090. .qyList-box-item-rem {
  3091. color: #999999;
  3092. font-size: 26rpx;
  3093. margin-top: 20rpx;
  3094. }
  3095. }
  3096. .topSe {
  3097. width: 100%;
  3098. height: 100%;
  3099. // padding-top: 80rpx;
  3100. background-color: #FFFFFF;
  3101. box-sizing: border-box;
  3102. .topSe-box {
  3103. width: 686rpx;
  3104. height: 100%;
  3105. .topSe-box-item {
  3106. font-size: 24rpx;
  3107. width: 80rpx;
  3108. position: relative;
  3109. .status-indicator{
  3110. position: absolute;
  3111. top: -12rpx;
  3112. right: 12rpx;
  3113. width: 20rpx;
  3114. height: 20rpx;
  3115. color: #4CAF50;
  3116. }
  3117. }
  3118. }
  3119. }
  3120. .jobs {
  3121. width: 100%;
  3122. .jobs-box {
  3123. width: 95%;
  3124. }
  3125. }
  3126. .gwList-box-item {
  3127. width: 100%;
  3128. // height: 329rpx;
  3129. border: 0.5px solid rgba(227, 231, 236, 1);
  3130. background: #FDFDFD;
  3131. border-radius: 24rpx;
  3132. // margin-bottom: 20rpx;
  3133. padding-bottom: 20rpx;
  3134. }
  3135. .gwList-box-item-box {
  3136. width: 100%;
  3137. height: 100%;
  3138. padding: 0 40rpx;
  3139. .gwList-box-item-box-title {
  3140. margin-top: 30rpx;
  3141. text:nth-of-type(1) {
  3142. color: rgba(23, 23, 37, 1);
  3143. font-family: DM Sans;
  3144. font-size: 24px;
  3145. font-weight: 700;
  3146. line-height: 24px;
  3147. letter-spacing: 0%;
  3148. text-align: left;
  3149. }
  3150. text:nth-of-type(2) {
  3151. color: rgba(1, 107, 246, 1);
  3152. font-family: DM Sans;
  3153. font-size: 16px;
  3154. font-weight: 700;
  3155. line-height: 20px;
  3156. letter-spacing: 0.5%;
  3157. text-align: right;
  3158. }
  3159. }
  3160. .gwList-box-item-box-label {
  3161. margin-top: 30rpx;
  3162. }
  3163. .gwList-box-item-box-name {
  3164. color: rgba(156, 164, 171, 1);
  3165. font-family: DM Sans;
  3166. font-size: 16px;
  3167. font-weight: 400;
  3168. line-height: 20px;
  3169. letter-spacing: 0.5%;
  3170. text-align: left;
  3171. gap: 8rpx;
  3172. margin-top: 20rpx;
  3173. }
  3174. .gwList-box-item-box-line {
  3175. width: 100%;
  3176. border: 1rpx solid #E6E6E6;
  3177. margin-top: 30rpx;
  3178. margin-bottom: 20rpx;
  3179. }
  3180. .gwList-box-item-box-info-text {
  3181. color: rgba(153, 153, 153, 1);
  3182. font-family: DM Sans;
  3183. font-size: 12px;
  3184. font-weight: 400;
  3185. line-height: 12px;
  3186. letter-spacing: 0px;
  3187. text-align: left;
  3188. margin-bottom: 20rpx;
  3189. white-space: pre-wrap;
  3190. .job-description-item {
  3191. margin-bottom: 6rpx;
  3192. line-height: 1.2;
  3193. &:last-child {
  3194. margin-bottom: 0;
  3195. }
  3196. }
  3197. .job-description-itemAll{
  3198. display: -webkit-box;
  3199. -webkit-line-clamp: 4;
  3200. -webkit-box-orient: vertical;
  3201. overflow: hidden;
  3202. text-overflow: ellipsis;
  3203. }
  3204. }
  3205. .gwList-box-item-box-info {
  3206. font-size: 26rpx;
  3207. padding-bottom: 20rpx;
  3208. border-bottom: 1rpx solid #E6E6E6;
  3209. .gwList-box-item-box-info-l {
  3210. color: #1A1A1A;
  3211. .people {
  3212. max-width: 110rpx;
  3213. overflow: hidden; //超出的文本隐藏
  3214. text-overflow: ellipsis; //溢出用省略号显示
  3215. white-space: nowrap; // 默认不换行;
  3216. color: rgba(156, 164, 171, 1);
  3217. font-family: DM Sans;
  3218. font-size: 14px;
  3219. font-weight: 400;
  3220. line-height: 20px;
  3221. letter-spacing: undefined;
  3222. text-align: left;
  3223. }
  3224. }
  3225. .gwList-box-item-box-info-r {
  3226. color: #999999;
  3227. width: 50%;
  3228. overflow: hidden; //超出的文本隐藏
  3229. text-overflow: ellipsis; //溢出用省略号显示
  3230. white-space: nowrap; // 默认不换行;
  3231. }
  3232. }
  3233. }
  3234. .xuanfu {
  3235. width: 100%;
  3236. display: flex;
  3237. justify-content: center;
  3238. align-items: center;
  3239. color: #016BF6;
  3240. .xuanfu-box {
  3241. width: 95%;
  3242. background-color: #FFFFFF;
  3243. border-radius: 10rpx;
  3244. padding: 20rpx 15rpx 20rpx 20rpx;
  3245. letter-spacing: 5rpx;
  3246. font-size: 26rpx;
  3247. }
  3248. }
  3249. page {
  3250. background: #FAFAFA;
  3251. color: #FFFFFF;
  3252. }
  3253. .chat-listitem {
  3254. display: flex;
  3255. margin-top: 20rpx;
  3256. padding: 10rpx;
  3257. }
  3258. .textColor {
  3259. color: #FFFFFF;
  3260. border-radius: 16px 16px 0px 16px;
  3261. background: rgba(1, 107, 246, 1);
  3262. }
  3263. .textColorLeft{
  3264. color: #000;
  3265. border-radius: 16px 16px 0px 16px;
  3266. background: #fff;
  3267. }
  3268. .chat-listitem-text {
  3269. // color: #FFFFFF;
  3270. margin-top: 6rpx;
  3271. width: fit-content;
  3272. padding: 15rpx;
  3273. font-size: 30rpx;
  3274. height: max-content;
  3275. word-wrap: break-word;
  3276. word-break: break-all;
  3277. border-radius: 10rpx;
  3278. }
  3279. .chat-listitem-image-type4 {
  3280. color: #000000;
  3281. background: #FFFFFF;
  3282. width: fit-content;
  3283. font-size: 30rpx;
  3284. height: max-content;
  3285. word-wrap: break-word;
  3286. word-break: break-all;
  3287. border-top-left-radius: 20rpx;
  3288. border-top-right-radius: 20rpx;
  3289. }
  3290. .chat-listitem-image {
  3291. margin-top: 5rpx;
  3292. width: 75rpx;
  3293. height: 75rpx;
  3294. border-radius: 50%;
  3295. }
  3296. .save {
  3297. width: 130rpx;
  3298. text-align: center;
  3299. border-radius: 10rpx;
  3300. height: 70rpx;
  3301. background: #FFFFFF;
  3302. margin: 5rpx 10rpx 0;
  3303. line-height: 70rpx;
  3304. }
  3305. .talent-list {
  3306. // margin-top: 280rpx; // 已改为动态计算,在模板中通过 :style 设置
  3307. padding: 20rpx;
  3308. z-index: 100;
  3309. position: relative;
  3310. width:96%
  3311. }
  3312. .talent-card {
  3313. background-color: #ffffff;
  3314. border-radius: 16rpx;
  3315. margin-bottom: 20rpx;
  3316. padding: 30rpx;
  3317. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  3318. .time-favorite{
  3319. border-top: 1px solid #efefef;
  3320. margin-top: 20rpx;
  3321. }
  3322. }
  3323. .talent-content {
  3324. .talent-header {
  3325. display: flex;
  3326. align-items: flex-start;
  3327. .talent-avatar {
  3328. width: 80rpx;
  3329. height: 80rpx;
  3330. border-radius: 50%;
  3331. margin-right: 20rpx;
  3332. }
  3333. .talent-info {
  3334. flex: 1;
  3335. .talentRange{
  3336. color: #016BF6;
  3337. font-size: 24rpx;
  3338. margin-left: 10rpx;
  3339. }
  3340. .talent-name-section {
  3341. display: flex;
  3342. align-items: center;
  3343. justify-content: flex-start;
  3344. width: 100%;
  3345. margin-bottom: 6rpx;
  3346. }
  3347. .talent-name {
  3348. color: rgba(51, 51, 51, 1);
  3349. font-family: DM Sans;
  3350. font-size: 28rpx;
  3351. font-weight: 500;
  3352. line-height: 36rx;
  3353. letter-spacing: 0.5%;
  3354. text-align: left;
  3355. margin-right: 16rpx;
  3356. }
  3357. .talent-tags {
  3358. display: flex;
  3359. flex-wrap: wrap;
  3360. gap: 10rpx;
  3361. .status-tag {
  3362. padding: 8rpx;
  3363. border-radius: 12rpx;
  3364. font-size: 18rpx;
  3365. font-family: DM Sans;
  3366. font-weight: 400;
  3367. line-height: 20rpx;
  3368. letter-spacing: -0.5px;
  3369. text-align: left;
  3370. &.online {
  3371. background: rgba(213, 255, 231, 1);
  3372. color: rgba(29, 209, 104, 1);
  3373. }
  3374. &.hot {
  3375. background: rgba(252, 233, 220, 1);
  3376. color: rgba(1, 107, 246, 1);
  3377. }
  3378. &.active {
  3379. color: rgba(153, 153, 153, 1);
  3380. }
  3381. }
  3382. }
  3383. }
  3384. }
  3385. .talent-experience {
  3386. display: flex;
  3387. align-items: center;
  3388. margin-bottom: 12rpx;
  3389. gap: 16rpx;
  3390. color: rgba(156, 164, 171, 1);
  3391. font-family: DM Sans;
  3392. font-size: 24rpx;
  3393. font-weight: 400;
  3394. line-height: 32rpx;
  3395. letter-spacing: 0.5%;
  3396. text-align: left;
  3397. }
  3398. .current-job {
  3399. display: flex;
  3400. align-items: center;
  3401. margin-bottom: 12rpx;
  3402. .job-icon {
  3403. width: 40rpx;
  3404. height: 40rpx;
  3405. margin-right: 8rpx;
  3406. }
  3407. .job-text {
  3408. color: rgba(156, 164, 171, 1);
  3409. font-family: DM Sans;
  3410. font-size: 24rpx;
  3411. font-weight: 400;
  3412. line-height: 40rpx;
  3413. letter-spacing: 0.5%;
  3414. text-align: left;
  3415. }
  3416. }
  3417. .job-expectation {
  3418. display: flex;
  3419. align-items: center;
  3420. margin-bottom: 16rpx;
  3421. .job-icon {
  3422. width: 40rpx;
  3423. height: 40rpx;
  3424. margin-right: 8rpx;
  3425. }
  3426. .expectation-text {
  3427. color: rgba(156, 164, 171, 1);
  3428. font-family: DM Sans;
  3429. font-size: 24rpx;
  3430. font-weight: 400;
  3431. line-height: 40rpx;
  3432. letter-spacing: 0.5%;
  3433. text-align: left;
  3434. }
  3435. }
  3436. .skill-tags {
  3437. display: flex;
  3438. flex-wrap: wrap;
  3439. gap: 10rpx;
  3440. margin-bottom: 16rpx;
  3441. .skill-tag {
  3442. padding: 8rpx;
  3443. background: rgba(198, 198, 198, 0.1);
  3444. border-radius: 12rpx;
  3445. color: rgba(153, 153, 153, 1);
  3446. font-family: DM Sans;
  3447. font-size: 20rpx;
  3448. font-weight: 400;
  3449. line-height: 20rpx;
  3450. letter-spacing: -0.5px;
  3451. text-align: left;
  3452. }
  3453. }
  3454. .job-description {
  3455. margin-bottom: 12rpx;
  3456. width: 100%;
  3457. .description-text {
  3458. color: rgba(97, 110, 124, 1);
  3459. font-family: DM Sans;
  3460. font-size: 24rpx;
  3461. font-weight: 400;
  3462. line-height: 32rpx;
  3463. letter-spacing: 0px;
  3464. text-align: left;
  3465. display: -webkit-box;
  3466. -webkit-line-clamp: 2;
  3467. /* 只显示2行 */
  3468. -webkit-box-orient: vertical;
  3469. overflow: hidden;
  3470. /* 隐藏超出内容 */
  3471. text-overflow: ellipsis;
  3472. /* 显示省略号 */
  3473. }
  3474. }
  3475. .work-period {
  3476. text-align: right;
  3477. .period-text {
  3478. font-size: 22rpx;
  3479. color: #999;
  3480. }
  3481. }
  3482. }
  3483. .bg-style{
  3484. padding-bottom: 20rpx;;padding-top: 20rpx;margin-right: 20rpx;color: #000000;background-color: #ffffff;border: 1rpx solid #c6fee7;background: linear-gradient(to bottom, #D9FEED, #ffffff);
  3485. }
  3486. .emoji-scroll {
  3487. height: 300rpx;
  3488. overflow: hidden;
  3489. background-color: #fff;
  3490. }
  3491. .emoji-grid {
  3492. display: grid;
  3493. grid-template-columns: repeat(8, 1fr);
  3494. grid-gap: 12rpx;
  3495. padding-bottom: 24rpx;
  3496. }
  3497. .emoji-item {
  3498. display: flex;
  3499. align-items: center;
  3500. justify-content: center;
  3501. }
  3502. .emoji-item image {
  3503. width: 60rpx;
  3504. height: 60rpx;
  3505. }
  3506. .system{
  3507. margin-top: 15rpx;width: 100%;text-align: center;font-size: 26rpx;color: #999999;
  3508. }
  3509. </style>