im.vue 111 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732
  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. url: this.$Request.config('APIHOST1') + '/alioss/upload', //真实的接口地址
  2354. filePath: e.tempFilePath,
  2355. name: 'file',
  2356. success: (uploadFileRes) => {
  2357. uni.hideLoading();
  2358. this.content = JSON.parse(uploadFileRes.data).data;
  2359. console.log("语音:" + this.content)
  2360. this.setChatSave(3, msg.length);
  2361. uni.hideLoading();
  2362. }
  2363. });
  2364. } else {
  2365. console.log('取消发送录音');
  2366. }
  2367. this.willStop = false;
  2368. },
  2369. // 切换语音/文字输入
  2370. switchVoice() {
  2371. this.hideDrawer();
  2372. this.isVoice = this.isVoice ? false : true;
  2373. },
  2374. copy(content) {
  2375. uni.showModal({
  2376. title: '温馨提示',
  2377. content: '确认要复制此文字吗?',
  2378. showCancel: true,
  2379. cancelText: '取消',
  2380. confirmText: '确认',
  2381. confirmColor: '#016BF6',
  2382. success: res => {
  2383. if (res.confirm) {
  2384. uni.setClipboardData({
  2385. data: content,
  2386. success: r => {
  2387. this.$queue.showToast('复制成功');
  2388. }
  2389. });
  2390. }
  2391. }
  2392. });
  2393. },
  2394. h5Copy(content) {
  2395. if (!document.queryCommandSupported('copy')) {
  2396. // 不支持
  2397. return false
  2398. }
  2399. let textarea = document.createElement("textarea")
  2400. textarea.value = content
  2401. textarea.readOnly = "readOnly"
  2402. document.body.appendChild(textarea)
  2403. textarea.select() // 选择对象
  2404. textarea.setSelectionRange(0, content.length) //核心
  2405. let result = document.execCommand("copy") // 执行浏览器复制命令
  2406. textarea.remove()
  2407. return result
  2408. },
  2409. getDateDiff(data) {
  2410. // 1️⃣ 手动解析字符串,避免 iOS 时区问题
  2411. let timePublish;
  2412. if (typeof data === 'string') {
  2413. // 格式:2026-01-05 18:46:39
  2414. const parts = data.split(/[- :]/);
  2415. // 注意:月份从 0 开始
  2416. timePublish = new Date(parts[0], parts[1] - 1, parts[2], parts[3] || 0, parts[4] || 0, parts[5] || 0);
  2417. } else {
  2418. timePublish = new Date(data);
  2419. }
  2420. const timeNow = new Date();
  2421. const publishYear = timePublish.getFullYear();
  2422. const publishMonth = timePublish.getMonth() + 1;
  2423. const publishDate = timePublish.getDate();
  2424. const publishHour = timePublish.getHours().toString().padStart(2, '0');
  2425. const publishMinute = timePublish.getMinutes().toString().padStart(2, '0');
  2426. const oneDay = 1000 * 60 * 60 * 24;
  2427. // 用本地时间差计算天数
  2428. const diffDays = Math.floor((timeNow.setHours(0, 0, 0, 0) - timePublish.setHours(0, 0, 0, 0)) / oneDay);
  2429. const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  2430. const weekStr = weekDays[timePublish.getDay()];
  2431. const sameYear = publishYear === timeNow.getFullYear();
  2432. let result = '';
  2433. if (diffDays === 0) {
  2434. result = `${publishHour}:${publishMinute}`;
  2435. } else if (diffDays === 1) {
  2436. result = `昨天 ${publishHour}:${publishMinute}`;
  2437. } else if (diffDays < 7) {
  2438. result = `${weekStr} ${publishHour}:${publishMinute}`;
  2439. } else if (sameYear) {
  2440. result = `${publishMonth}月${publishDate}日 ${publishHour}:${publishMinute}`;
  2441. } else {
  2442. result = `${publishYear}年${publishMonth}月${publishDate}日 ${publishHour}:${publishMinute}`;
  2443. }
  2444. return result;
  2445. },
  2446. // 发送心跳包
  2447. startHeartbeat() {
  2448. // HeartBeat 这里是和后端约定好的值,我们发送给后端,后端再把这个值返给我们
  2449. // 目的就是让后端知道我们一直在
  2450. const heartbeatMsg = 'HeartBeat';
  2451. const sendHeartbeat = () => {
  2452. if (this.isOpen) {
  2453. console.log('发送HeartBeat')
  2454. uni.sendSocketMessage({
  2455. data: heartbeatMsg,
  2456. }).catch(error => {
  2457. console.log('发送心跳消息失败:', error);
  2458. //发送消息失败则进行重新链接
  2459. this.connect()
  2460. });
  2461. }
  2462. };
  2463. this.socketTimer = setInterval(sendHeartbeat, HEARTBEAT_INTERVAL);
  2464. },
  2465. // 开始重连
  2466. reconnect() {
  2467. if (!this.isOpen) {
  2468. clearTimeout(this.socketTimer);
  2469. this.socketTimer = setTimeout(() => {
  2470. console.log('开始重连...');
  2471. this.connect();
  2472. }, RECONNECT_INTERVAL);
  2473. }
  2474. },
  2475. connect() {
  2476. // #ifdef MP-WEIXIN
  2477. if (uni.getStorageSync('sendMsg')) {
  2478. // console.log('授权+1')
  2479. wx.requestSubscribeMessage({
  2480. tmplIds: this.arr,
  2481. success(re) {
  2482. // console.log(JSON.stringify(re), 111111111111)
  2483. var datas = JSON.stringify(re);
  2484. if (datas.indexOf("accept") != -1) {
  2485. // console.log(re)
  2486. }
  2487. },
  2488. fail: (res) => {
  2489. // console.log(res)
  2490. }
  2491. })
  2492. }
  2493. // #endif
  2494. let that = this
  2495. let userId = this.$queue.getData('userId');
  2496. uni.showLoading({
  2497. title: '连接中...'
  2498. })
  2499. uni.closeSocket()
  2500. uni.connectSocket({
  2501. // url: 'wss://h5.youxb.icu/wss/sqx_fast/chatSocket/' + userId,
  2502. // url: this.config("WSHOST1") + userId,
  2503. url: this.$Request.config('WSHOST1') + '' + userId,
  2504. // url: 'wss://h5.bosszan.com/wss/chatSocket/' + userId,
  2505. // url: 'ws://192.168.0.128:7152/sqx_fast/chatSocket/' + userId,
  2506. data() {
  2507. return {
  2508. msg: 'Hello'
  2509. }
  2510. },
  2511. header: {
  2512. 'content-type': 'application/json'
  2513. },
  2514. method: 'GET',
  2515. success(res) {
  2516. // 这里是接口调用成功的回调,不是连接成功的回调,请注意
  2517. },
  2518. fail(err) {
  2519. // 这里是接口调用失败的回调,不是连接失败的回调,请注意
  2520. }
  2521. })
  2522. uni.onSocketOpen((res) => {
  2523. uni.hideLoading()
  2524. that.isOpen = true;
  2525. that.startHeartbeat()
  2526. if (that.mapsValue) {
  2527. that.setChatSave(18, that.mapsValue)
  2528. }
  2529. })
  2530. uni.onSocketError((err) => {
  2531. uni.hideLoading()
  2532. //如果连接异常那么把状态设置为false
  2533. that.isOpen = false;
  2534. //并尝试进行重连
  2535. that.reconnect();
  2536. })
  2537. uni.onSocketMessage((res) => {
  2538. if (res.data == 'HeartBeat') { //如果是心跳回推则不进行处理
  2539. return
  2540. }
  2541. let msg
  2542. try {
  2543. msg = JSON.parse(res.data)
  2544. } catch (e) {
  2545. that.getTimeOrListItem1();
  2546. return;
  2547. }
  2548. if (msg.type === 'kickOut') {
  2549. uni.showModal({
  2550. title: '提示',
  2551. content: msg.content,
  2552. showCancel: false,
  2553. success() {
  2554. // 退出极光推送
  2555. logoutJP(() => {
  2556. that.$queue.logout();
  2557. // #ifdef H5
  2558. uni.reLaunch({ url: '/pages/public/loginphone?type=2' })
  2559. // #endif
  2560. // #ifndef H5
  2561. uni.reLaunch({ url: '/pages/public/loginV2' })
  2562. // #endif
  2563. })
  2564. }
  2565. })
  2566. }else{
  2567. that.getTimeOrListItem1();
  2568. }
  2569. })
  2570. uni.onSocketClose((res) => {
  2571. uni.hideLoading()
  2572. that.isOpen = false;
  2573. //链接关闭的时候也尝试进行重连
  2574. // that.reconnect();
  2575. })
  2576. },
  2577. close() {
  2578. uni.closeSocket()
  2579. },
  2580. getTimeOrListItem1() {
  2581. let userId = this.$queue.getData('userId')
  2582. this.$Request.getT('/app/chat/selectChatContent?page=' + this.page + '&limit=' + this.size +
  2583. '&chatConversationId=' + this.chatConversationId + '&userId=' + userId).then(
  2584. res => {
  2585. // this.ListItem = [];
  2586. if (res.data) {
  2587. var time = '';
  2588. res.data.list.forEach(d => {
  2589. d.createTimes = d.createTime;
  2590. d.createTime = d.createTime ? this.getDateDiff(d.createTime) : '';
  2591. if (d.createTime === time) {
  2592. d.createTime = '';
  2593. } else {
  2594. time = d.createTime;
  2595. }
  2596. if (d.type === 4) {
  2597. let data = d.content.split(',');
  2598. d.content = data;
  2599. }
  2600. if (d.type === 3) {
  2601. let data = d.content.split(',');
  2602. d.content = data;
  2603. }
  2604. if (d.messageType === 18) {
  2605. d.content = JSON.parse(d.content);
  2606. d.markers = [{
  2607. id: 1,
  2608. latitude: d.content.latitude,
  2609. longitude: d.content.longitude,
  2610. width: 20,
  2611. height: 20,
  2612. iconPath: '../../static/images/mapMarker.png',
  2613. callout: {
  2614. content: d.content.name,
  2615. color: '#000', //文字颜色
  2616. fontSize: 10, //文本大小
  2617. padding: 10, //附近留白
  2618. borderRadius: 24, //边框圆角
  2619. bgColor: '#FFFFFF', //背景颜色
  2620. display: 'ALWAYS', //常显
  2621. }
  2622. }]
  2623. }
  2624. // this.ListItem.push(d);
  2625. });
  2626. this.ListItem = res.data.list
  2627. // this.ListItem.reverse();
  2628. this.scrollTop = this.old.scrollTop
  2629. this.$nextTick(() => {
  2630. this.scrollTop = 99999
  2631. })
  2632. this.getStatusInfo()
  2633. }
  2634. uni.hideLoading();
  2635. });
  2636. },
  2637. setChatSave(type, url,val) {
  2638. //type:1文字 2图片
  2639. if (type === 1 && this.content == '') {
  2640. this.$queue.showToast('请输入聊天内容');
  2641. return;
  2642. }
  2643. if (type != 3 && type != 2 && this.$queue.getChatSearchKeys(this.content)) {
  2644. uni.showToast({
  2645. title: "输入内容带有非法关键字请重新输入",
  2646. mask: false,
  2647. duration: 1500,
  2648. icon: "none"
  2649. });
  2650. return;
  2651. }
  2652. // if (type === 1 && this.$queue.getChatSearchKeys(this.content) != -1) {
  2653. // uni.showToast({
  2654. // title: "输入内容带有非法关键字请重新输入",
  2655. // mask: false,
  2656. // duration: 1500,
  2657. // icon: "none"
  2658. // });
  2659. // return;
  2660. // }
  2661. let userId = this.$queue.getData('userId');
  2662. if (type === 4) {
  2663. this.content = url;
  2664. }
  2665. if (type === 18) { //定位
  2666. this.content = url;
  2667. }
  2668. let data = {};
  2669. if (type == 3) {
  2670. data = {
  2671. userId: this.byUserId,
  2672. content: this.content,
  2673. width: url,
  2674. messageType: type,
  2675. chatConversationId: this.chatConversationId
  2676. }
  2677. } else if (type == 5) { //交换手机号
  2678. data = {
  2679. userId: this.byUserId,
  2680. content: '手机号请求',
  2681. messageType: type,
  2682. chatConversationId: this.chatConversationId
  2683. }
  2684. } else if (type == 6) { //交换微信号
  2685. data = {
  2686. userId: this.byUserId,
  2687. content: '微信号请求',
  2688. messageType: type,
  2689. chatConversationId: this.chatConversationId
  2690. }
  2691. } else if (type == 9) { //简历请求
  2692. data = {
  2693. userId: this.byUserId,
  2694. content: '简历请求',
  2695. messageType: type,
  2696. chatConversationId: this.chatConversationId
  2697. }
  2698. } else if (type == 24 && !val) {
  2699. data = {
  2700. userId: this.byUserId,
  2701. content: '刷新',
  2702. messageType: type,
  2703. chatConversationId: this.chatConversationId
  2704. }
  2705. } else if (type == 24 && val) {
  2706. data = {
  2707. userId: this.byUserId,
  2708. content: url,
  2709. messageType: type,
  2710. chatConversationId: this.chatConversationId
  2711. }
  2712. } else if (type == 96){
  2713. data = {
  2714. userId: this.byUserId,
  2715. content: '已拒绝面试邀请',
  2716. messageType: type,
  2717. chatConversationId: this.chatConversationId,
  2718. recordId:url
  2719. }
  2720. }else if(type == 97){
  2721. data = {
  2722. userId: this.byUserId,
  2723. content: '已接受面试邀请',
  2724. messageType: type,
  2725. chatConversationId: this.chatConversationId,
  2726. recordId:url
  2727. }
  2728. }else {
  2729. data = {
  2730. userId: this.byUserId,
  2731. content: this.content,
  2732. messageType: type,
  2733. chatConversationId: this.chatConversationId
  2734. }
  2735. }
  2736. data = JSON.stringify(data);
  2737. let that = this;
  2738. uni.sendSocketMessage({
  2739. data: data,
  2740. success(res) {
  2741. that.mapsValue = ''
  2742. let image_url = that.$queue.getData('image_url');
  2743. if (!image_url) {
  2744. image_url = '/static/logo.png';
  2745. }
  2746. let datas = {
  2747. chat: {
  2748. userHead: image_url
  2749. },
  2750. content: that.content,
  2751. type: type,
  2752. sendType: 1
  2753. }
  2754. that.ListItem.push(datas);
  2755. setTimeout(() => {
  2756. that.getTimeOrListItem1();
  2757. that.content = '';
  2758. that.hideDrawer();
  2759. }, 50);
  2760. console.log(that.content);
  2761. },
  2762. fail(err) {
  2763. console.log(err);
  2764. }
  2765. })
  2766. },
  2767. //发送图片
  2768. async chooseImage(sourceType) {
  2769. let that = this
  2770. // 1. 先判断系统类型,区分Android/iOS权限
  2771. const hasPermission = await this.$queue.checkPermission(
  2772. 'camera',
  2773. '选择/拍摄照片需要相机/相册权限,用于发送图片消息',
  2774. this
  2775. );
  2776. // 2. 如果未授权或者用户拒绝,显示提示
  2777. if (!hasPermission) {
  2778. return;
  2779. }
  2780. uni.chooseImage({
  2781. count: 1,
  2782. sourceType: ['album','camera'],
  2783. success: res => {
  2784. for (let i = 0; i < res.tempFilePaths.length; i++) {
  2785. this.$queue.showLoading("上传中...");
  2786. uni.uploadFile({ // 上传接口
  2787. // url: this.config("APIHOST1") + '/alioss/upload', //真实的接口地址
  2788. url: this.$Request.config('APIHOST1') + '/alioss/upload',
  2789. filePath: res.tempFilePaths[i],
  2790. name: 'file',
  2791. success: (uploadFileRes) => {
  2792. let content = JSON.parse(uploadFileRes.data).data;
  2793. uni.hideLoading();
  2794. let data = {
  2795. userId: that.byUserId,
  2796. content: content,
  2797. messageType: 2,
  2798. chatConversationId: that.chatConversationId
  2799. }
  2800. data = JSON.stringify(data);
  2801. uni.sendSocketMessage({
  2802. data: data,
  2803. success(res) {
  2804. let image_url = that.$queue.getData(
  2805. 'image_url');
  2806. if (!image_url) {
  2807. image_url = '/static/logo.png';
  2808. }
  2809. let datas = {
  2810. chat: {
  2811. userHead: image_url
  2812. },
  2813. content: content,
  2814. type: 2,
  2815. sendType: 1
  2816. }
  2817. that.ListItem.push(datas);
  2818. setTimeout(() => {
  2819. that.getTimeOrListItem1();
  2820. that.hideDrawer();
  2821. }, 50);
  2822. },
  2823. fail(err) {
  2824. console.log(err);
  2825. }
  2826. })
  2827. }
  2828. });
  2829. }
  2830. }
  2831. })
  2832. },
  2833. config: function(name) {
  2834. var info = null;
  2835. if (name) {
  2836. var name2 = name.split("."); //字符分割
  2837. if (name2.length > 1) {
  2838. info = configdata[name2[0]][name2[1]] || null;
  2839. } else {
  2840. info = configdata[name] || null;
  2841. }
  2842. if (info == null) {
  2843. let web_config = cache.get("web_config");
  2844. if (web_config) {
  2845. if (name2.length > 1) {
  2846. info = web_config[name2[0]][name2[1]] || null;
  2847. } else {
  2848. info = web_config[name] || null;
  2849. }
  2850. }
  2851. }
  2852. }
  2853. return info;
  2854. },
  2855. //查看大图
  2856. viewImg(item) {
  2857. let imgsArray = [];
  2858. imgsArray[0] = item;
  2859. uni.previewImage({
  2860. current: 0,
  2861. urls: imgsArray
  2862. });
  2863. },
  2864. /**
  2865. * 收藏岗位
  2866. */
  2867. setCollection(postPushId) {
  2868. this.$Request.postT("/app/myCollection/saveCollection", {
  2869. postPushId: postPushId,
  2870. type: 1
  2871. }).then(res => {
  2872. if (res.code == 0) {
  2873. uni.showToast({
  2874. title: res.msg
  2875. })
  2876. this.postPushInfo.isCollection=1-(this.postPushInfo.isCollection?this.postPushInfo.isCollection:0)
  2877. }
  2878. })
  2879. },
  2880. copyAndJubao(item) {
  2881. var that=this
  2882. uni.showActionSheet({
  2883. itemList: ['举报', '复制'],
  2884. success(res) {
  2885. if (res.tapIndex === 0) {
  2886. setTimeout(() => {
  2887. that.$queue.showToast('该用户聊天信息举报已成功提交审核');
  2888. }, 200);
  2889. } else if (res.tapIndex === 1) {
  2890. that.copy(item.content);
  2891. }
  2892. },
  2893. fail(res) {
  2894. console.log(res.errMsg);
  2895. }
  2896. });
  2897. },
  2898. // 取消置顶/置顶
  2899. setCancelTop() {
  2900. if (this.updating) return
  2901. this.updating = true
  2902. uni.showLoading({ title: '处理中' })
  2903. this.$Request.getT('/app/chat/updateChatTop', {
  2904. chatConversationId: this.chatConversationId,
  2905. isTop: this.isTop ? 0 : 1
  2906. }).then(res => {
  2907. if (res.code == 0) {
  2908. this.$queue.showToast('操作成功')
  2909. } else {
  2910. this.$queue.showToast(res.msg || '操作失败')
  2911. }
  2912. }).finally(() => {
  2913. this.updating = false
  2914. uni.hideLoading()
  2915. })
  2916. },
  2917. // 删除会话
  2918. deleteChatById() {
  2919. uni.showModal({
  2920. title: '提示',
  2921. content: '是否确定删除该会话?',
  2922. cancelText: '取消',
  2923. confirmText: '删除',
  2924. success: (res) => {
  2925. if (res.confirm) {
  2926. if (this.updating) return
  2927. this.updating = true
  2928. uni.showLoading({ title: '处理中' })
  2929. this.$Request.get(`/app/chat/deleteConversation?chatConversationId=${this.chatConversationId}`)
  2930. .then(res => {
  2931. if(res.code == 0){
  2932. this.$queue.showToast('操作成功')
  2933. setTimeout(() => {
  2934. uni.navigateBack()
  2935. }, 1500)
  2936. }else{
  2937. this.$queue.showToast(res.msg || '操作失败')
  2938. }
  2939. }).finally(() => {
  2940. this.updating = false
  2941. uni.hideLoading()
  2942. });
  2943. }
  2944. }
  2945. });
  2946. }
  2947. },
  2948. };
  2949. </script>
  2950. <style lang="scss" scoped>
  2951. @import "../msg/css/style.scss";
  2952. // 展开按钮样式
  2953. .expand-btn {
  2954. text-align: left;
  2955. margin-top: 20rpx;
  2956. padding: 10rpx 0;
  2957. .expand-text {
  2958. color: #007AFF;
  2959. font-size: 28rpx;
  2960. }
  2961. }
  2962. // 时间和收藏样式
  2963. .time-favorite {
  2964. padding: 10rpx 0;
  2965. .time-text {
  2966. color: rgba(156, 164, 171, 1);
  2967. font-family: DM Sans;
  2968. font-size: 12px;
  2969. font-weight: 400;
  2970. line-height: 20px;
  2971. letter-spacing: undefined;
  2972. text-align: right;
  2973. }
  2974. .favorite-btn {
  2975. color: rgba(156, 164, 171, 1);
  2976. font-size: 12px;
  2977. .favorite-icon {
  2978. margin-right: 8rpx;
  2979. font-size: 12px;
  2980. }
  2981. .favorite-text {
  2982. font-size: 12px;
  2983. }
  2984. }
  2985. .collectActived{
  2986. color: #016BF6;
  2987. }
  2988. }
  2989. .avatorm {
  2990. width: 100%;
  2991. // height: 100rpx;
  2992. margin-top: 20rpx;
  2993. color: #000;
  2994. .avatorm-box {
  2995. width: 90%;
  2996. height: 100%;
  2997. .avatorm-box-item {
  2998. margin-bottom: 10rpx;
  2999. .avatorm-box-item-t {
  3000. width: 30%;
  3001. }
  3002. .avatorm-box-item-r {
  3003. width: 70%;
  3004. }
  3005. }
  3006. }
  3007. }
  3008. .mssTitle {
  3009. width: 100%;
  3010. margin-top: 30rpx;
  3011. text-align: center;
  3012. font-size: 30rpx;
  3013. color: #000;
  3014. font-weight: bold;
  3015. }
  3016. .btnm {
  3017. width: 100%;
  3018. margin-top: 20rpx;
  3019. height: 80rpx;
  3020. margin-bottom: 100rpx;
  3021. .btn-box {
  3022. width: 686rpx;
  3023. height: 100%;
  3024. .btnItem {
  3025. display: flex;
  3026. align-items: center;
  3027. justify-content: center;
  3028. width: 200rpx;
  3029. height: 100%;
  3030. border-radius: 14rpx;
  3031. }
  3032. .btn-close {
  3033. color: #016BF6;
  3034. border: 1rpx solid #016BF6;
  3035. }
  3036. .btn-sub {
  3037. color: #FFFFFF;
  3038. background-color: #016BF6;
  3039. }
  3040. }
  3041. }
  3042. .mianshiTime {
  3043. width: 100%;
  3044. margin-top: 20rpx;
  3045. .mianshiTime-box {
  3046. padding-bottom: 20rpx;
  3047. width: 686rpx;
  3048. height: 100%;
  3049. color: #000000;
  3050. border-bottom: 1rpx solid #F2F2F7;
  3051. .mianshiTime-box-ti {
  3052. height: 100%;
  3053. margin-top: 20rpx;
  3054. }
  3055. }
  3056. }
  3057. .mianshiTitle {
  3058. width: 100%;
  3059. margin-top: 30rpx;
  3060. font-size: 30rpx;
  3061. text-align: center;
  3062. font-weight: bold;
  3063. color: #000000;
  3064. }
  3065. .qyList-box-item {
  3066. width: 100%;
  3067. // height: 400rpx;
  3068. padding-bottom: 40rpx;
  3069. background-color: #ffffff;
  3070. border-radius: 24rpx;
  3071. margin-bottom: 20rpx;
  3072. .qyList-box-item-box {
  3073. width: 626rpx;
  3074. height: 100%;
  3075. }
  3076. .qyList-box-item-info {
  3077. margin-top: 40rpx;
  3078. }
  3079. .qyList-box-item-job {
  3080. color: #121212;
  3081. font-size: 28rpx;
  3082. font-weight: 500;
  3083. margin-top: 20rpx;
  3084. }
  3085. .qyList-box-item-rem {
  3086. color: #999999;
  3087. font-size: 26rpx;
  3088. margin-top: 20rpx;
  3089. }
  3090. }
  3091. .topSe {
  3092. width: 100%;
  3093. height: 100%;
  3094. // padding-top: 80rpx;
  3095. background-color: #FFFFFF;
  3096. box-sizing: border-box;
  3097. .topSe-box {
  3098. width: 686rpx;
  3099. height: 100%;
  3100. .topSe-box-item {
  3101. font-size: 24rpx;
  3102. width: 80rpx;
  3103. position: relative;
  3104. .status-indicator{
  3105. position: absolute;
  3106. top: -12rpx;
  3107. right: 12rpx;
  3108. width: 20rpx;
  3109. height: 20rpx;
  3110. color: #4CAF50;
  3111. }
  3112. }
  3113. }
  3114. }
  3115. .jobs {
  3116. width: 100%;
  3117. .jobs-box {
  3118. width: 95%;
  3119. }
  3120. }
  3121. .gwList-box-item {
  3122. width: 100%;
  3123. // height: 329rpx;
  3124. border: 0.5px solid rgba(227, 231, 236, 1);
  3125. background: #FDFDFD;
  3126. border-radius: 24rpx;
  3127. // margin-bottom: 20rpx;
  3128. padding-bottom: 20rpx;
  3129. }
  3130. .gwList-box-item-box {
  3131. width: 100%;
  3132. height: 100%;
  3133. padding: 0 40rpx;
  3134. .gwList-box-item-box-title {
  3135. margin-top: 30rpx;
  3136. text:nth-of-type(1) {
  3137. color: rgba(23, 23, 37, 1);
  3138. font-family: DM Sans;
  3139. font-size: 24px;
  3140. font-weight: 700;
  3141. line-height: 24px;
  3142. letter-spacing: 0%;
  3143. text-align: left;
  3144. }
  3145. text:nth-of-type(2) {
  3146. color: rgba(1, 107, 246, 1);
  3147. font-family: DM Sans;
  3148. font-size: 16px;
  3149. font-weight: 700;
  3150. line-height: 20px;
  3151. letter-spacing: 0.5%;
  3152. text-align: right;
  3153. }
  3154. }
  3155. .gwList-box-item-box-label {
  3156. margin-top: 30rpx;
  3157. }
  3158. .gwList-box-item-box-name {
  3159. color: rgba(156, 164, 171, 1);
  3160. font-family: DM Sans;
  3161. font-size: 16px;
  3162. font-weight: 400;
  3163. line-height: 20px;
  3164. letter-spacing: 0.5%;
  3165. text-align: left;
  3166. gap: 8rpx;
  3167. margin-top: 20rpx;
  3168. }
  3169. .gwList-box-item-box-line {
  3170. width: 100%;
  3171. border: 1rpx solid #E6E6E6;
  3172. margin-top: 30rpx;
  3173. margin-bottom: 20rpx;
  3174. }
  3175. .gwList-box-item-box-info-text {
  3176. color: rgba(153, 153, 153, 1);
  3177. font-family: DM Sans;
  3178. font-size: 12px;
  3179. font-weight: 400;
  3180. line-height: 12px;
  3181. letter-spacing: 0px;
  3182. text-align: left;
  3183. margin-bottom: 20rpx;
  3184. white-space: pre-wrap;
  3185. .job-description-item {
  3186. margin-bottom: 6rpx;
  3187. line-height: 1.2;
  3188. &:last-child {
  3189. margin-bottom: 0;
  3190. }
  3191. }
  3192. .job-description-itemAll{
  3193. display: -webkit-box;
  3194. -webkit-line-clamp: 4;
  3195. -webkit-box-orient: vertical;
  3196. overflow: hidden;
  3197. text-overflow: ellipsis;
  3198. }
  3199. }
  3200. .gwList-box-item-box-info {
  3201. font-size: 26rpx;
  3202. padding-bottom: 20rpx;
  3203. border-bottom: 1rpx solid #E6E6E6;
  3204. .gwList-box-item-box-info-l {
  3205. color: #1A1A1A;
  3206. .people {
  3207. max-width: 110rpx;
  3208. overflow: hidden; //超出的文本隐藏
  3209. text-overflow: ellipsis; //溢出用省略号显示
  3210. white-space: nowrap; // 默认不换行;
  3211. color: rgba(156, 164, 171, 1);
  3212. font-family: DM Sans;
  3213. font-size: 14px;
  3214. font-weight: 400;
  3215. line-height: 20px;
  3216. letter-spacing: undefined;
  3217. text-align: left;
  3218. }
  3219. }
  3220. .gwList-box-item-box-info-r {
  3221. color: #999999;
  3222. width: 50%;
  3223. overflow: hidden; //超出的文本隐藏
  3224. text-overflow: ellipsis; //溢出用省略号显示
  3225. white-space: nowrap; // 默认不换行;
  3226. }
  3227. }
  3228. }
  3229. .xuanfu {
  3230. width: 100%;
  3231. display: flex;
  3232. justify-content: center;
  3233. align-items: center;
  3234. color: #016BF6;
  3235. .xuanfu-box {
  3236. width: 95%;
  3237. background-color: #FFFFFF;
  3238. border-radius: 10rpx;
  3239. padding: 20rpx 15rpx 20rpx 20rpx;
  3240. letter-spacing: 5rpx;
  3241. font-size: 26rpx;
  3242. }
  3243. }
  3244. page {
  3245. background: #FAFAFA;
  3246. color: #FFFFFF;
  3247. }
  3248. .chat-listitem {
  3249. display: flex;
  3250. margin-top: 20rpx;
  3251. .message-status {
  3252. align-self: flex-end;
  3253. color: rgba(102, 102, 102, 1) !important;
  3254. font-size: 16rpx;
  3255. margin-right: 16rpx;
  3256. white-space: nowrap;
  3257. }
  3258. }
  3259. .other-chat-listitem {
  3260. .chat-listitem-text {
  3261. border-radius: 0 32rpx 32rpx 32rpx;
  3262. }
  3263. }
  3264. .textColor {
  3265. color: #FFFFFF;
  3266. border-radius: 16px 16px 0px 16px;
  3267. background: rgba(1, 107, 246, 1);
  3268. }
  3269. .textColorLeft{
  3270. color: #000;
  3271. border-radius: 16px 16px 0px 16px;
  3272. background: #fff;
  3273. }
  3274. .chat-listitem-text {
  3275. // color: #FFFFFF;
  3276. width: fit-content;
  3277. padding: 30rpx;
  3278. font-size: 24rpx;
  3279. font-weight: 400;
  3280. line-height: 32rpx;
  3281. height: max-content;
  3282. word-wrap: break-word;
  3283. word-break: break-all;
  3284. // border-radius: 10rpx;
  3285. border-radius: 32rpx 32rpx 0px 32rpx;
  3286. // background: var(--016BF6, rgba(1, 107, 246, 1));
  3287. }
  3288. // 确认卡片样式(电话、微信)
  3289. .confirm-card {
  3290. width: 560rpx;
  3291. background: #fff;
  3292. padding: 16rpx 32rpx;
  3293. border-radius: 4rpx;
  3294. color: rgba(51, 51, 51, 1);
  3295. font-size: 24rpx;
  3296. font-weight: 500;
  3297. line-height: 32rpx;
  3298. margin: 0 20rpx;
  3299. .confirm-button {
  3300. width: 170rpx;
  3301. height: 60rpx;
  3302. border-radius: 60rpx;
  3303. border: 1px solid #016BF6;
  3304. color: rgba(1, 107, 246, 1);
  3305. text-align: center;
  3306. margin-right: 16rpx;
  3307. }
  3308. .plain {
  3309. background: rgba(1, 107, 246, 0.1);
  3310. border-color: rgba(1, 107, 246, 0.1);
  3311. }
  3312. }
  3313. .full-button {
  3314. width: 100%;
  3315. height: 60rpx;
  3316. line-height: 60rpx;
  3317. border-radius: 60rpx;
  3318. text-align: center;
  3319. background: rgba(1, 107, 246, 0.1);
  3320. color: rgba(1, 107, 246, 1);
  3321. font-size: 24rpx;
  3322. font-weight: 500;
  3323. line-height: 60rpx;
  3324. margin-top: 20rpx;
  3325. &.my-full-button {
  3326. background: #fff;
  3327. }
  3328. }
  3329. .chat-listitem-image-type4 {
  3330. color: #000000;
  3331. background: #FFFFFF;
  3332. width: fit-content;
  3333. font-size: 30rpx;
  3334. height: max-content;
  3335. word-wrap: break-word;
  3336. word-break: break-all;
  3337. border-top-left-radius: 20rpx;
  3338. border-top-right-radius: 20rpx;
  3339. }
  3340. .chat-listitem-image {
  3341. display: block;
  3342. margin-top: 5rpx;
  3343. width: 84rpx;
  3344. height: 84rpx;
  3345. border-radius: 50%;
  3346. }
  3347. .save {
  3348. width: 130rpx;
  3349. text-align: center;
  3350. border-radius: 10rpx;
  3351. height: 70rpx;
  3352. background: #FFFFFF;
  3353. margin: 5rpx 10rpx 0;
  3354. line-height: 70rpx;
  3355. }
  3356. .talent-list {
  3357. // margin-top: 280rpx; // 已改为动态计算,在模板中通过 :style 设置
  3358. padding: 20rpx;
  3359. z-index: 100;
  3360. position: relative;
  3361. width:96%
  3362. }
  3363. .talent-card {
  3364. background-color: #ffffff;
  3365. border-radius: 16rpx;
  3366. margin-bottom: 20rpx;
  3367. padding: 30rpx;
  3368. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  3369. .time-favorite{
  3370. border-top: 1px solid #efefef;
  3371. margin-top: 20rpx;
  3372. }
  3373. }
  3374. .talent-content {
  3375. .talent-header {
  3376. display: flex;
  3377. align-items: flex-start;
  3378. .talent-avatar {
  3379. width: 80rpx;
  3380. height: 80rpx;
  3381. border-radius: 50%;
  3382. margin-right: 20rpx;
  3383. }
  3384. .talent-info {
  3385. flex: 1;
  3386. .talentRange{
  3387. color: #016BF6;
  3388. font-size: 24rpx;
  3389. margin-left: 10rpx;
  3390. }
  3391. .talent-name-section {
  3392. display: flex;
  3393. align-items: center;
  3394. justify-content: flex-start;
  3395. width: 100%;
  3396. margin-bottom: 6rpx;
  3397. }
  3398. .talent-name {
  3399. color: rgba(51, 51, 51, 1);
  3400. font-family: DM Sans;
  3401. font-size: 28rpx;
  3402. font-weight: 500;
  3403. line-height: 36rx;
  3404. letter-spacing: 0.5%;
  3405. text-align: left;
  3406. margin-right: 16rpx;
  3407. }
  3408. .talent-tags {
  3409. display: flex;
  3410. flex-wrap: wrap;
  3411. gap: 10rpx;
  3412. .status-tag {
  3413. padding: 8rpx;
  3414. border-radius: 12rpx;
  3415. font-size: 18rpx;
  3416. font-family: DM Sans;
  3417. font-weight: 400;
  3418. line-height: 20rpx;
  3419. letter-spacing: -0.5px;
  3420. text-align: left;
  3421. &.online {
  3422. background: rgba(213, 255, 231, 1);
  3423. color: rgba(29, 209, 104, 1);
  3424. }
  3425. &.hot {
  3426. background: rgba(252, 233, 220, 1);
  3427. color: rgba(1, 107, 246, 1);
  3428. }
  3429. &.active {
  3430. color: rgba(153, 153, 153, 1);
  3431. }
  3432. }
  3433. }
  3434. }
  3435. }
  3436. .talent-experience {
  3437. display: flex;
  3438. align-items: center;
  3439. margin-bottom: 12rpx;
  3440. gap: 16rpx;
  3441. color: rgba(156, 164, 171, 1);
  3442. font-family: DM Sans;
  3443. font-size: 24rpx;
  3444. font-weight: 400;
  3445. line-height: 32rpx;
  3446. letter-spacing: 0.5%;
  3447. text-align: left;
  3448. }
  3449. .current-job {
  3450. display: flex;
  3451. align-items: center;
  3452. margin-bottom: 12rpx;
  3453. .job-icon {
  3454. width: 40rpx;
  3455. height: 40rpx;
  3456. margin-right: 8rpx;
  3457. }
  3458. .job-text {
  3459. color: rgba(156, 164, 171, 1);
  3460. font-family: DM Sans;
  3461. font-size: 24rpx;
  3462. font-weight: 400;
  3463. line-height: 40rpx;
  3464. letter-spacing: 0.5%;
  3465. text-align: left;
  3466. }
  3467. }
  3468. .job-expectation {
  3469. display: flex;
  3470. align-items: center;
  3471. margin-bottom: 16rpx;
  3472. .job-icon {
  3473. width: 40rpx;
  3474. height: 40rpx;
  3475. margin-right: 8rpx;
  3476. }
  3477. .expectation-text {
  3478. color: rgba(156, 164, 171, 1);
  3479. font-family: DM Sans;
  3480. font-size: 24rpx;
  3481. font-weight: 400;
  3482. line-height: 40rpx;
  3483. letter-spacing: 0.5%;
  3484. text-align: left;
  3485. }
  3486. }
  3487. .skill-tags {
  3488. display: flex;
  3489. flex-wrap: wrap;
  3490. gap: 10rpx;
  3491. margin-bottom: 16rpx;
  3492. .skill-tag {
  3493. padding: 8rpx;
  3494. background: rgba(198, 198, 198, 0.1);
  3495. border-radius: 12rpx;
  3496. color: rgba(153, 153, 153, 1);
  3497. font-family: DM Sans;
  3498. font-size: 20rpx;
  3499. font-weight: 400;
  3500. line-height: 20rpx;
  3501. letter-spacing: -0.5px;
  3502. text-align: left;
  3503. }
  3504. }
  3505. .job-description {
  3506. margin-bottom: 12rpx;
  3507. width: 100%;
  3508. .description-text {
  3509. color: rgba(97, 110, 124, 1);
  3510. font-family: DM Sans;
  3511. font-size: 24rpx;
  3512. font-weight: 400;
  3513. line-height: 32rpx;
  3514. letter-spacing: 0px;
  3515. text-align: left;
  3516. display: -webkit-box;
  3517. -webkit-line-clamp: 2;
  3518. /* 只显示2行 */
  3519. -webkit-box-orient: vertical;
  3520. overflow: hidden;
  3521. /* 隐藏超出内容 */
  3522. text-overflow: ellipsis;
  3523. /* 显示省略号 */
  3524. }
  3525. }
  3526. .work-period {
  3527. text-align: right;
  3528. .period-text {
  3529. font-size: 22rpx;
  3530. color: #999;
  3531. }
  3532. }
  3533. }
  3534. .resume-file-card {
  3535. padding: 20rpx 32rpx;
  3536. color: rgba(51, 51, 51, 1);
  3537. font-size: 24rpx;
  3538. font-weight: 500;
  3539. line-height: 36rpx;
  3540. background: #fff;
  3541. margin-left: 20rpx;
  3542. &.my-resume-file-card {
  3543. background: #016bf6;
  3544. color: #fff;
  3545. }
  3546. }
  3547. .bg-style{
  3548. 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);
  3549. }
  3550. .emoji-scroll {
  3551. height: 300rpx;
  3552. overflow: hidden;
  3553. background-color: #fff;
  3554. }
  3555. .emoji-grid {
  3556. display: grid;
  3557. grid-template-columns: repeat(8, 1fr);
  3558. grid-gap: 12rpx;
  3559. padding-bottom: 24rpx;
  3560. }
  3561. .emoji-item {
  3562. display: flex;
  3563. align-items: center;
  3564. justify-content: center;
  3565. }
  3566. .emoji-item image {
  3567. width: 60rpx;
  3568. height: 60rpx;
  3569. }
  3570. .system{
  3571. margin-top: 15rpx;width: 100%;text-align: center;font-size: 20rpx;color: #999999;
  3572. }
  3573. .system-time {
  3574. font-size: 16rpx;
  3575. line-height: 20rpx;
  3576. color: rgba(102, 102, 102, 1);
  3577. }
  3578. </style>