im.vue 111 KB

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