im.vue 96 KB

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