im.vue 101 KB

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