im.vue 111 KB

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