im.vue 96 KB

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