im.vue 112 KB

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