im.vue 105 KB

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