im.vue 96 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377
  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. },
  1448. // 切换工作描述展开状态
  1449. toggleJobDesc() {
  1450. this.isJobDescExpanded = !this.isJobDescExpanded;
  1451. },
  1452. getUserInfo() {
  1453. this.$Request.get("/app/user/selectUserById").then(res => {
  1454. if (res.code == 0) {
  1455. if (this.userType == 1) { //用户
  1456. if (res.data.isUserVip == 1) { //判断用户是否是vip
  1457. this.isVip = true
  1458. } else {
  1459. this.isVip = false
  1460. }
  1461. } else { //企业
  1462. if (res.data.isCompanyVip == 1) { //判断企业用户是否是vip
  1463. this.isVip = true
  1464. } else {
  1465. this.isVip = false
  1466. }
  1467. }
  1468. }
  1469. })
  1470. },
  1471. /**
  1472. * @param {Object} type 1:语音 2视频
  1473. */
  1474. sendCallVideo(type) {
  1475. if (!this.isVip) {
  1476. uni.showModal({
  1477. title: '提示',
  1478. content: type == 1 ? '语音为会员专属功能,请开通会员!' : '视频为会员专属功能,请开通会员!',
  1479. confirmText: '开通会员',
  1480. cancelText: '取消',
  1481. confirmColor: '#00B88F',
  1482. complete(ret) {
  1483. if (ret.confirm) {
  1484. uni.navigateTo({
  1485. url: '/my/vip/index'
  1486. })
  1487. }
  1488. }
  1489. })
  1490. return
  1491. }
  1492. if (this.isVideo) {
  1493. return
  1494. }
  1495. this.isVideo = true
  1496. let data = {
  1497. focusedUserId: this.byUserId, //对方的userId
  1498. messageType: type == 1 ? 21 : 20,
  1499. userId: uni.getStorageSync('userId'), //我的userId
  1500. userType: this.userType, //1:用户 2:企业,
  1501. postPushId: this.postPushId,
  1502. resumesId: this.resumesId
  1503. }
  1504. let that = this
  1505. this.$Request.postJson('/app/chat/insertChatConversationByChatVideo', data).then(res => {
  1506. if (res.code == 0) {
  1507. //isRol 1:发起人 2:收到人
  1508. console.log(res)
  1509. uni.navigateTo({
  1510. url: '/my/videoVoice/videoVoice?byUserId=' + this.byUserId +
  1511. '&chatContentId=' + res.data.chatContentId +
  1512. '&isRol=1&messageType=' + data.messageType + '&chatConversationId=' + res
  1513. .data
  1514. .chatConversationId + '&userType=' + data.userType + '&postPushId=' + data
  1515. .postPushId + '&resumesId=' + data.resumesId,
  1516. success() {
  1517. uni.setStorageSync('isDial', true)
  1518. uni.setStorageSync('videoStatus', 1)
  1519. that.isVideo = false
  1520. }
  1521. })
  1522. } else {
  1523. that.isVideo = false
  1524. uni.showToast({
  1525. title: res.msg,
  1526. icon: 'none'
  1527. })
  1528. }
  1529. })
  1530. },
  1531. scroll(e) {
  1532. this.old.scrollTop = e.detail.scrollTop
  1533. },
  1534. // 开启订阅消息
  1535. openMsg() {
  1536. console.log('订阅消息')
  1537. var that = this
  1538. uni.getSetting({
  1539. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  1540. success(ret) {
  1541. console.log(ret.subscriptionsSetting, '------------------')
  1542. // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
  1543. if (ret.subscriptionsSetting.itemSettings) {
  1544. uni.setStorageSync('sendMsg', true)
  1545. uni.openSetting({ // 打开设置页
  1546. success(rea) {
  1547. console.log(rea.authSetting)
  1548. }
  1549. });
  1550. } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  1551. console.log(99999)
  1552. uni.setStorageSync('sendMsg', false)
  1553. uni.showModal({
  1554. title: '提示',
  1555. content: '为了更好的体验,请绑定消息推送',
  1556. confirmText: '确定',
  1557. cancelText: '取消',
  1558. confirmColor: '#00B88F',
  1559. success: function(res) {
  1560. if (res.confirm) {
  1561. console.log(that.arr)
  1562. wx.requestSubscribeMessage({
  1563. tmplIds: that.arr,
  1564. success(re) {
  1565. console.log(JSON.stringify(re),
  1566. '++++++++++++++')
  1567. var datas = JSON.stringify(re);
  1568. if (datas.indexOf("accept") != -1) {
  1569. console.log(re)
  1570. uni.setStorageSync('sendMsg', true)
  1571. }
  1572. },
  1573. fail: (res) => {
  1574. console.log(res)
  1575. }
  1576. })
  1577. uni.setStorageSync('sendMsg', true)
  1578. console.log('确认')
  1579. that.showModal = false
  1580. } else if (res.cancel) {
  1581. console.log('取消')
  1582. uni.setStorageSync('sendMsg', false)
  1583. that.showModal = true
  1584. }
  1585. }
  1586. })
  1587. }
  1588. }
  1589. })
  1590. },
  1591. /**
  1592. * @param {Object} info 内容
  1593. * @param {Object} userType 用户类型
  1594. * @param {Object} type 参数类型
  1595. */
  1596. copyss(info, userType, type) {
  1597. let content = ''
  1598. switch (type) {
  1599. //复制手机号
  1600. case 'phone':
  1601. if (userType == 1) {
  1602. content = JSON.parse(info).companyPhone
  1603. } else {
  1604. content = JSON.parse(info).userPhone
  1605. }
  1606. break;
  1607. //复制微信号
  1608. case 'wx':
  1609. if (userType == 1) {
  1610. content = JSON.parse(info).companyWx
  1611. } else {
  1612. content = JSON.parse(info).userWx
  1613. }
  1614. break;
  1615. default:
  1616. break;
  1617. }
  1618. this.copy(content)
  1619. },
  1620. openMapss(latitude, longitude, name) {
  1621. uni.openLocation({
  1622. latitude: latitude - 0, //要去的纬度-地址
  1623. longitude: longitude - 0, //要去的经度-地址
  1624. name: name, //地址名称
  1625. address: name, //详细地址名称
  1626. success: function() {
  1627. console.log('导航成功');
  1628. },
  1629. fail: function(error) {
  1630. console.log(error)
  1631. }
  1632. });
  1633. },
  1634. goMapss() {
  1635. let that = this
  1636. uni.chooseLocation({
  1637. success: function(res) {
  1638. console.log('位置名称:' + res.name);
  1639. console.log('详细地址:' + res.address);
  1640. console.log('纬度:' + res.latitude);
  1641. console.log('经度:' + res.longitude);
  1642. let mapsValue = JSON.stringify(res);
  1643. that.setChatSave(18, mapsValue)
  1644. // console.log(typeof(res))
  1645. // return
  1646. that.showMore();
  1647. }
  1648. });
  1649. },
  1650. //接受邀请
  1651. setJuJues(item) {
  1652. // #ifdef MP-WEIXIN
  1653. if (uni.getStorageSync('sendMsg')) {
  1654. // console.log('授权+1')
  1655. wx.requestSubscribeMessage({
  1656. tmplIds: this.arr,
  1657. success(re) {
  1658. // console.log(JSON.stringify(re), 111111111111)
  1659. var datas = JSON.stringify(re);
  1660. if (datas.indexOf("accept") != -1) {
  1661. // console.log(re)
  1662. }
  1663. },
  1664. fail: (res) => {
  1665. // console.log(res)
  1666. }
  1667. })
  1668. }
  1669. // #endif
  1670. let that = this
  1671. uni.showModal({
  1672. title: '提示',
  1673. content: '确定接受来自' + item.company.companyName + '的面试邀请吗?',
  1674. confirmColor: '#00B88F',
  1675. complete(ret) {
  1676. if (ret.confirm) {
  1677. let data = {
  1678. recordId: item.recordId,
  1679. type: 1
  1680. }
  1681. that.$Request.getT("/app/interviewRecord/userUpdateInter", data).then(res => {
  1682. if (res.code == 0) {
  1683. uni.showToast({
  1684. // title: '已接受来自' + item.company.companyName + '的面试邀请'
  1685. title: '已接受面试邀请'
  1686. })
  1687. that.msshow = false
  1688. } else {
  1689. uni.showToast({
  1690. title: res.msg,
  1691. icon: 'none'
  1692. })
  1693. }
  1694. })
  1695. }
  1696. }
  1697. })
  1698. },
  1699. //去导航
  1700. goMapDap(info) {
  1701. uni.openLocation({
  1702. latitude: info.lat,
  1703. longitude: info.lng,
  1704. address: info.detailedAddress,
  1705. name: info.detailedAddress,
  1706. complete(ret) {
  1707. }
  1708. })
  1709. },
  1710. //拒绝邀请
  1711. setJuJue(item) {
  1712. let that = this
  1713. uni.showModal({
  1714. title: '提示',
  1715. content: '确定拒绝来自' + item.company.companyName + '的面试邀请吗?',
  1716. confirmColor: '#00B88F',
  1717. complete(ret) {
  1718. if (ret.confirm) {
  1719. let data = {
  1720. recordId: item.recordId,
  1721. type: 2
  1722. }
  1723. that.$Request.getT("/app/interviewRecord/userUpdateInter", data).then(res => {
  1724. if (res.code == 0) {
  1725. uni.showToast({
  1726. title: '已拒绝来自' + item.company.companyName + '的面试邀请'
  1727. })
  1728. that.msshow = false
  1729. } else {
  1730. uni.showToast({
  1731. title: res.msg,
  1732. icon: 'none'
  1733. })
  1734. }
  1735. })
  1736. }
  1737. }
  1738. })
  1739. },
  1740. //获取用户是否有面试记录
  1741. getInterviewList() {
  1742. let data = {
  1743. userId: uni.getStorageSync('userId'),
  1744. status: 1,
  1745. postPushId: this.postPushId
  1746. }
  1747. this.$Request.getT("/app/interviewRecord/interviewList", data).then(res => {
  1748. if (res.code == 0) {
  1749. if ((res.data.records).length > 0) {
  1750. this.records = res.data.records[0]
  1751. this.msshow = true
  1752. } else {
  1753. this.msshow = false
  1754. }
  1755. } else {
  1756. uni.showToast({
  1757. title: res.msg,
  1758. icon: 'none'
  1759. })
  1760. this.msshow = false
  1761. }
  1762. })
  1763. },
  1764. submitMs() {
  1765. if (!this.miamshi.interviewDateTime) {
  1766. this.$refs.uToast.show({
  1767. title: '请选择面试时间',
  1768. type: 'default',
  1769. position: 'bottom'
  1770. })
  1771. return
  1772. }
  1773. if (!this.miamshi.detailedAddress) {
  1774. this.$refs.uToast.show({
  1775. title: '请选择面试地点',
  1776. type: 'default',
  1777. position: 'bottom'
  1778. })
  1779. return
  1780. }
  1781. let that = this
  1782. uni.showModal({
  1783. title: '提示',
  1784. content: '确定发起面试邀请吗?',
  1785. confirmColor: '#00B88F',
  1786. complete(ret) {
  1787. if (ret.confirm) {
  1788. let data = {
  1789. interviewDateTime: that.miamshi.interviewDateTime + ':00',
  1790. companyId: uni.getStorageSync('companyId'),
  1791. remarks: that.miamshi.remarks,
  1792. userId: that.byUserId, //求职者id
  1793. postPushId: that.postPushId,
  1794. province: that.miamshi.province,
  1795. city: that.miamshi.city,
  1796. county: that.miamshi.county,
  1797. lng: that.miamshi.lng,
  1798. lat: that.miamshi.lat,
  1799. detailedAddress: that.miamshi.detailedAddress
  1800. }
  1801. that.$Request.postJson("/app/interviewRecord/saveInterview", data).then(res => {
  1802. if (res.code == 0) {
  1803. uni.showToast({
  1804. title: '面试邀请已发送'
  1805. })
  1806. that.mianshiShow = false
  1807. } else {
  1808. that.mianshiShow = false
  1809. uni.showToast({
  1810. title: res.msg,
  1811. icon: 'none'
  1812. })
  1813. }
  1814. })
  1815. }
  1816. }
  1817. })
  1818. },
  1819. //关闭弹窗的时候清空表单的值
  1820. cleanMs() {
  1821. this.miamshi = {
  1822. interviewDateTime: '', //面试时间
  1823. companyId: '', //公司id
  1824. remarks: '', //面试备注
  1825. userId: '', //面试者id
  1826. postPushId: '', //岗位id
  1827. province: '', //省
  1828. city: '', //市
  1829. county: '', //区
  1830. lng: '', //经度
  1831. lat: '', //纬度
  1832. detailedAddress: '', //详细地址
  1833. }
  1834. },
  1835. // 点击调起地图选择位置
  1836. goMap() {
  1837. let that = this
  1838. uni.chooseLocation({
  1839. success: function(res) {
  1840. let arrress = res.address
  1841. let reg = /.+?(省|市|自治区|自治州|县|区)/g;
  1842. let adds = arrress.match(reg)
  1843. console.log(adds)
  1844. that.miamshi.province = adds[0]
  1845. that.miamshi.city = adds[1]
  1846. that.miamshi.county = adds[2]
  1847. that.miamshi.detailedAddress = res.address + '' + res.name
  1848. that.miamshi.lat = res.latitude
  1849. that.miamshi.lng = res.longitude
  1850. }
  1851. });
  1852. },
  1853. //选择面试时间
  1854. mianshiConfirm(e) {
  1855. //获取当前时间的年份
  1856. let date = new Date()
  1857. let year = date.getFullYear()
  1858. this.miamshi.interviewDateTime = year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute
  1859. },
  1860. mianshiF() {
  1861. // #ifdef MP-WEIXIN
  1862. if (uni.getStorageSync('sendMsg')) {
  1863. // console.log('授权+1')
  1864. wx.requestSubscribeMessage({
  1865. tmplIds: this.arr,
  1866. success(re) {
  1867. // console.log(JSON.stringify(re), 111111111111)
  1868. var datas = JSON.stringify(re);
  1869. if (datas.indexOf("accept") != -1) {
  1870. // console.log(re)
  1871. }
  1872. },
  1873. fail: (res) => {
  1874. // console.log(res)
  1875. }
  1876. })
  1877. }
  1878. // #endif
  1879. let data = {
  1880. userId: this.byUserId,
  1881. postPushId: this.postPushId
  1882. }
  1883. this.$Request.getT("/app/interviewRecord/isSendView", data).then(res => {
  1884. if (res.code == 0) {
  1885. if (res.data) {
  1886. this.mianshiShow = true
  1887. } else {
  1888. uni.showToast({
  1889. title: '已发送过面试邀请',
  1890. icon: 'none'
  1891. })
  1892. this.mianshiShow = false
  1893. }
  1894. } else {
  1895. this.mianshiShow = false
  1896. uni.showToast({
  1897. title: res.msg,
  1898. icon: 'none'
  1899. })
  1900. }
  1901. })
  1902. },
  1903. //请求拒绝
  1904. refuseFun(id) {
  1905. let that = this
  1906. uni.showModal({
  1907. title: '提示',
  1908. content: '确定拒绝吗?',
  1909. confirmColor: '#00B88F',
  1910. complete(ret) {
  1911. if (ret.confirm) {
  1912. let data = {
  1913. chatContentId: id
  1914. }
  1915. that.$Request.getT("/app/chat/refuseReqs", data).then(res => {
  1916. if (res.code == 0) {
  1917. uni.showToast({
  1918. title: '已拒绝'
  1919. })
  1920. that.setChatSave(24)
  1921. that.getTimeOrListItem1()
  1922. that.getStatusInfo()
  1923. } else {
  1924. uni.showToast({
  1925. title: res.msg,
  1926. icon: 'none'
  1927. })
  1928. }
  1929. })
  1930. }
  1931. }
  1932. })
  1933. },
  1934. // 同意简历请求并发送简历
  1935. sendResumesSave() {
  1936. let that = this
  1937. let data = {
  1938. to: this.byUserId, //接收人的userId
  1939. postPushId: this.postPushId, //岗位id
  1940. }
  1941. this.$Request.postT("/app/resumes/sendResumes", data).then(res => {
  1942. if (res.code == 0) {
  1943. uni.showToast({
  1944. title: '简历已发送',
  1945. })
  1946. that.setChatSave(24)
  1947. that.getTimeOrListItem1()
  1948. that.getStatusInfo()
  1949. } else {
  1950. uni.showToast({
  1951. title: res.msg,
  1952. icon: 'none'
  1953. })
  1954. }
  1955. })
  1956. },
  1957. resumesTy() {
  1958. let that = this
  1959. uni.showModal({
  1960. title: '提示',
  1961. content: '确定发送简历给对方?',
  1962. confirmColor: '#00B88F',
  1963. complete(ret) {
  1964. if (ret.confirm) {
  1965. that.sendResumesSave()
  1966. }
  1967. }
  1968. })
  1969. },
  1970. //求简历
  1971. giveSendResumes() {
  1972. let that = this
  1973. uni.showModal({
  1974. title: '提示',
  1975. content: '是否将简历请求发送给对方?,对方同意后将会收到对方的简历',
  1976. confirmColor: '#00B88F',
  1977. complete(ret) {
  1978. if (ret.confirm) {
  1979. that.setChatSave(9)
  1980. }
  1981. }
  1982. })
  1983. },
  1984. //发简历
  1985. sendResumes() {
  1986. let that = this
  1987. uni.showModal({
  1988. title: '提示',
  1989. content: '是否将简历发送给对方?',
  1990. confirmColor: '#00B88F',
  1991. complete(ret) {
  1992. if (ret.confirm) {
  1993. that.sendResumesSave()
  1994. }
  1995. }
  1996. })
  1997. },
  1998. //获取交换状态
  1999. getStatusInfo() {
  2000. let data = {
  2001. chatConversationId: this.chatConversationId
  2002. }
  2003. this.$Request.getT("/app/chat/getConversationInfo", data).then(res => {
  2004. if (res.code == 0) {
  2005. if (res.data.isSendWx) {
  2006. this.isSendWx = true
  2007. } else {
  2008. this.isSendWx = false
  2009. }
  2010. if (res.data.isSendPhone) {
  2011. this.isSendPhone = true
  2012. } else {
  2013. this.isSendPhone = false
  2014. }
  2015. }
  2016. })
  2017. },
  2018. //交换微信号弹窗
  2019. currentWchat() {
  2020. let that = this
  2021. if (!uni.getStorageSync('weChatNum')) {
  2022. uni.showModal({
  2023. title: '提示',
  2024. content: '请先再个人信息页面完善微信号后操作',
  2025. confirmColor: '#00B88F',
  2026. confirmText: '去完善',
  2027. complete(re) {
  2028. if (re.confirm) {
  2029. uni.navigateTo({
  2030. url: '/pages/my/userinfo'
  2031. })
  2032. }
  2033. }
  2034. })
  2035. return
  2036. }
  2037. if (this.isSendWx == false) {
  2038. this.wechatExchangeShow = true;
  2039. } else {
  2040. uni.showToast({
  2041. title: '已交换过微信号,请查看聊天记录',
  2042. icon: 'none'
  2043. })
  2044. }
  2045. },
  2046. //同意交换手机号/微信
  2047. tongyi(messageType, chatContentId) {
  2048. if (messageType == 6 && !uni.getStorageSync('weChatNum')) {
  2049. uni.showModal({
  2050. title: '提示',
  2051. content: '请先再个人信息页面完善微信号后操作',
  2052. confirmColor: '#00B88F',
  2053. confirmText: '去完善',
  2054. complete(re) {
  2055. if (re.confirm) {
  2056. uni.navigateTo({
  2057. url: '/pages/my/userinfo'
  2058. })
  2059. }
  2060. }
  2061. })
  2062. return
  2063. }
  2064. let that = this
  2065. uni.showModal({
  2066. title: '提示',
  2067. content: messageType == 5 ? '同意后将交换手机号,是否同意?' : '同意后将交换微信号,是否同意?',
  2068. confirmColor: '#00B88F',
  2069. complete(ret) {
  2070. if (ret.confirm) {
  2071. let data = {
  2072. messageType: messageType,
  2073. chatContentId: chatContentId
  2074. }
  2075. that.$Request.postT("/app/chat/sendPhoneOrWx", data).then(res => {
  2076. if (res.code == 0) {
  2077. that.setChatSave(24)
  2078. that.getTimeOrListItem1()
  2079. that.getStatusInfo()
  2080. }
  2081. })
  2082. }
  2083. }
  2084. })
  2085. },
  2086. //交换手机号弹窗
  2087. currentPhone() {
  2088. if (this.isSendPhone == false) {
  2089. this.phoneExchangeShow = true;
  2090. } else {
  2091. uni.showToast({
  2092. title: '已交换过手机号,请查看聊天记录',
  2093. icon: 'none'
  2094. })
  2095. }
  2096. },
  2097. // 取消交换手机号
  2098. cancelPhoneExchange() {
  2099. this.phoneExchangeShow = false;
  2100. },
  2101. // 确认交换手机号
  2102. confirmPhoneExchange() {
  2103. this.phoneExchangeShow = false;
  2104. this.setChatSave(5);
  2105. },
  2106. // 取消微信交换
  2107. cancelWechatExchange() {
  2108. this.wechatExchangeShow = false;
  2109. },
  2110. // 确认微信交换
  2111. confirmWechatExchange() {
  2112. this.wechatExchangeShow = false;
  2113. this.setChatSave(6);
  2114. },
  2115. goNav(url) {
  2116. uni.navigateTo({
  2117. url: url
  2118. })
  2119. },
  2120. //获取简历数据
  2121. getResumesInfo(id) {
  2122. this.$Request.getT("/app/resumes/selectResumesByResumesId", {
  2123. userId: uni.getStorageSync('userId'),
  2124. resumesId: id,
  2125. companyId: uni.getStorageSync('companyId')
  2126. }).then(res => {
  2127. if (res.code == 0) {
  2128. let title = res.data.resumesName
  2129. uni.setNavigationBarTitle({
  2130. title: title
  2131. })
  2132. this.resumesInfo = res.data
  2133. // this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare.split(',')
  2134. }
  2135. })
  2136. },
  2137. gotoInfo(id) {
  2138. uni.navigateTo({
  2139. url: '/pages/index/game/order?postPushId=' + id
  2140. })
  2141. },
  2142. //获取岗位数据
  2143. getPostPushInfo(id) {
  2144. this.$Request.getT("/app/postPush/selectPostPushDetails", {
  2145. userId: uni.getStorageSync('userId'),
  2146. postPushId: id
  2147. }).then(res => {
  2148. if (res.code == 0) {
  2149. let title = res.data.company.companyName
  2150. uni.setNavigationBarTitle({
  2151. title: title
  2152. })
  2153. this.postPushInfo = res.data
  2154. this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare.split(',')
  2155. }
  2156. })
  2157. },
  2158. caozuoActive(item, type) {
  2159. if (type == 1) {
  2160. this.activelist = [{
  2161. text: '复制',
  2162. color: 'black',
  2163. fontSize: 24
  2164. }, {
  2165. text: '撤回',
  2166. color: 'black',
  2167. fontSize: 24
  2168. }]
  2169. } else {
  2170. this.activelist = [{
  2171. text: '撤回',
  2172. color: 'black',
  2173. fontSize: 24
  2174. }]
  2175. }
  2176. this.activeInfo = item
  2177. this.showActive = true
  2178. },
  2179. activeclick(index) {
  2180. if (this.activelist[index].text == '复制') { // 复制
  2181. this.copy(this.activeInfo.content)
  2182. } else { //撤回
  2183. let t2 = this.activeInfo.createTimes; //格式不正确需要转换
  2184. let aftert2 = new Date(t2.replace(/-/g, "/")); //转换
  2185. let data = new Date(); //获取当前时间
  2186. let times = data.getTime() - aftert2.getTime(); //时间差的毫秒数
  2187. //计算分钟数
  2188. let minu = parseInt(times / (1000 * 60))
  2189. if (minu > 5) {
  2190. uni.showToast({
  2191. title: '超过五分钟无法撤回',
  2192. icon: 'none'
  2193. })
  2194. } else {
  2195. let that = this
  2196. uni.showModal({
  2197. title: '提示',
  2198. content: '确定要撤回吗?',
  2199. confirmColor: '#00B88F',
  2200. complete(ret) {
  2201. if (ret.confirm) {
  2202. that.$Request.postT('/app/chat/deleteChatContentById', {
  2203. chatContentId: that.activeInfo.chatContentId
  2204. })
  2205. .then(res => {
  2206. if (res.code == 0) {
  2207. uni.showToast({
  2208. title: '已撤回',
  2209. icon: 'none'
  2210. })
  2211. that.getTimeOrListItem1();
  2212. }
  2213. });
  2214. }
  2215. }
  2216. })
  2217. }
  2218. }
  2219. },
  2220. //跳转
  2221. click(index) {
  2222. console.log(index)
  2223. switch (index) {
  2224. case 0: //简历
  2225. uni.navigateTo({
  2226. url: '/pages/index/game/orderDet?userId=' + this.tUserId
  2227. })
  2228. break;
  2229. case 1: //企业
  2230. uni.navigateTo({
  2231. url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + this.companyId + '&type=yes'
  2232. })
  2233. break;
  2234. default:
  2235. break;
  2236. }
  2237. },
  2238. //消息公告
  2239. getMessage() {
  2240. this.$Request.getT('/app/common/type/311')
  2241. .then(res => {
  2242. if (res.code == 0) {
  2243. this.messages = res.data.value
  2244. }
  2245. });
  2246. },
  2247. showChangYongSelect() {
  2248. this.showMore();
  2249. this.showChangYong = !this.showChangYong;
  2250. },
  2251. selConfirm(e) {
  2252. // this.form.game = e[0].label
  2253. // this.form.gameId = e[0].value
  2254. this.content = e[0].label;
  2255. this.setChatSave(1);
  2256. },
  2257. getChangYong() {
  2258. this.$Request.getT('/app/message/selectMessageByUserId?page=1&limit=100&state=20')
  2259. .then(res => {
  2260. if (res.code == 0) {
  2261. this.changYongList = [];
  2262. res.data.list.forEach(d => {
  2263. let data = {
  2264. label: d.content,
  2265. value: d.id
  2266. }
  2267. this.changYongList.push(data);
  2268. });
  2269. }
  2270. });
  2271. },
  2272. goGuanZhu(item) {
  2273. this.hideDrawer();
  2274. this.tUserId = item.userId
  2275. this.$Request.get('/app/user/selectUserByIds', {
  2276. 'userId': item.userId
  2277. }).then(res => {
  2278. if (res.code == 0) {
  2279. if (res.data.userType == 1 || res.data.userType == null) { //个人
  2280. uni.navigateTo({
  2281. url: '/pages/index/game/orderDet?userId=' + item.userId
  2282. })
  2283. } else {
  2284. this.$Request.get('/app/resumes/selectResumesByUserIds', {
  2285. 'userId': item.userId
  2286. }).then(ret => {
  2287. if (ret.code == 0) {
  2288. if (ret.data && JSON.stringify(ret.data) != '{}') { //有简历则选择
  2289. this.$Request.get('/app/company/selectCompanyByUserIds', {
  2290. userId: item.userId
  2291. }).then(ree => {
  2292. if (ree.code == 0) {
  2293. this.companyId = ree.data.companyId
  2294. }
  2295. });
  2296. this.show = true
  2297. } else { //没有简历直接跳转企业详情
  2298. this.$Request.get('/app/company/selectCompanyByUserIds', {
  2299. userId: item.userId
  2300. }).then(ree => {
  2301. if (ree.code == 0) {
  2302. uni.navigateTo({
  2303. url: '/my/enterpriseInfo/enterpriseInfo?companyId=' +
  2304. ree.data.companyId + '&type=yes'
  2305. })
  2306. }
  2307. });
  2308. }
  2309. }
  2310. });
  2311. }
  2312. }
  2313. });
  2314. //去关注页面
  2315. },
  2316. //添加常用语/自动回复
  2317. goAdd() {
  2318. this.showMore();
  2319. uni.navigateTo({
  2320. url: '/pages/msg/addmsg'
  2321. });
  2322. },
  2323. goHistory() {
  2324. this.showMore();
  2325. uni.navigateTo({
  2326. url: '/pages/msg/chathistory?chatConversationId=' + this.chatConversationId
  2327. });
  2328. },
  2329. insertChat() {
  2330. let userId = this.$queue.getData('userId');
  2331. let data = {
  2332. focusedUserId: this.byUserId,
  2333. userId: userId
  2334. }
  2335. this.$Request.postJson('/appChat/insertChatConversation', data).then(res => {
  2336. if (res.code == 0 && res.data) {
  2337. this.chatConversationId = res.data.chatConversationId;
  2338. this.getTimeOrListItem1();
  2339. }
  2340. });
  2341. },
  2342. //更多功能(点击+弹出)
  2343. showMore() {
  2344. this.isVoice = false;
  2345. this.hideEmoji = true;
  2346. if (this.hideMore) {
  2347. this.hideMore = false;
  2348. this.openDrawer();
  2349. } else {
  2350. this.hideDrawer();
  2351. }
  2352. },
  2353. // 打开抽屉
  2354. openDrawer() {
  2355. this.popupLayerClass = 'showLayer';
  2356. },
  2357. // 隐藏抽屉
  2358. hideDrawer() {
  2359. this.popupLayerClass = '';
  2360. setTimeout(() => {
  2361. this.hideMore = true;
  2362. this.hideEmoji = true;
  2363. }, 150);
  2364. },
  2365. // 选择表情
  2366. chooseEmoji() {
  2367. this.hideMore = true;
  2368. if (this.hideEmoji) {
  2369. this.hideEmoji = false;
  2370. this.openDrawer();
  2371. } else {
  2372. this.hideDrawer();
  2373. }
  2374. },
  2375. //添加表情
  2376. addEmoji(em) {
  2377. this.textMsg += em.alt;
  2378. },
  2379. //获取焦点,如果不是选表情ing,则关闭抽屉
  2380. textareaFocus() {
  2381. if (this.popupLayerClass == 'showLayer' && this.hideMore == false) {
  2382. this.hideDrawer();
  2383. }
  2384. },
  2385. //替换表情符号为图片
  2386. replaceEmoji(str) {
  2387. let replacedStr = str.replace(/\[([^(\]|\[)]*)\]/g, (item, index) => {
  2388. console.log("item: " + item);
  2389. for (let i = 0; i < this.emojiList.length; i++) {
  2390. let row = this.emojiList[i];
  2391. for (let j = 0; j < row.length; j++) {
  2392. let EM = row[j];
  2393. if (EM.alt == item) {
  2394. //在线表情路径,图文混排必须使用网络路径,请上传一份表情到你的服务器后再替换此路径
  2395. //比如你上传服务器后,你的100.gif路径为https://www.xxx.com/emoji/100.gif 则替换onlinePath填写为https://www.xxx.com/emoji/
  2396. let onlinePath = 'https://s2.ax1x.com/2019/04/12/'
  2397. let imgstr = '<img src="' + onlinePath + this.onlineEmoji[EM.url] + '">';
  2398. console.log("imgstr: " + imgstr);
  2399. return imgstr;
  2400. }
  2401. }
  2402. }
  2403. });
  2404. return '<div style="display: flex;align-items: center;word-wrap:break-word;">' + replacedStr + '</div>';
  2405. },
  2406. // 播放语音
  2407. playVoice(msg, index) {
  2408. console.log(msg)
  2409. this.playMsgid = index;
  2410. this.AUDIO.src = msg;
  2411. this.$nextTick(function() {
  2412. this.AUDIO.play();
  2413. });
  2414. },
  2415. // 录音开始
  2416. voiceBegin(e) {
  2417. if (e.touches.length > 1) {
  2418. return;
  2419. }
  2420. this.initPoint.Y = e.touches[0].clientY;
  2421. this.initPoint.identifier = e.touches[0].identifier;
  2422. this.RECORDER.start({
  2423. format: "mp3"
  2424. }); //录音开始,
  2425. },
  2426. //录音开始UI效果
  2427. recordBegin(e) {
  2428. this.recording = true;
  2429. this.voiceTis = '松开 结束';
  2430. this.recordLength = 0;
  2431. this.recordTimer = setInterval(() => {
  2432. this.recordLength++;
  2433. }, 1000)
  2434. },
  2435. // 录音被打断
  2436. voiceCancel() {
  2437. this.recording = false;
  2438. this.voiceTis = '按住 说话';
  2439. this.recordTis = '手指上滑 取消发送'
  2440. this.willStop = true; //不发送录音
  2441. this.RECORDER.stop(); //录音结束
  2442. },
  2443. // 录音中(判断是否触发上滑取消发送)
  2444. voiceIng(e) {
  2445. if (!this.recording) {
  2446. return;
  2447. }
  2448. let touche = e.touches[0];
  2449. //上滑一个导航栏的高度触发上滑取消发送
  2450. if (this.initPoint.Y - touche.clientY >= uni.upx2px(100)) {
  2451. this.willStop = true;
  2452. this.recordTis = '松开手指 取消发送'
  2453. } else {
  2454. this.willStop = false;
  2455. this.recordTis = '手指上滑 取消发送'
  2456. }
  2457. },
  2458. // 结束录音
  2459. voiceEnd(e) {
  2460. if (!this.recording) {
  2461. return;
  2462. }
  2463. this.recording = false;
  2464. this.voiceTis = '按住 说话';
  2465. this.recordTis = '手指上滑 取消发送'
  2466. this.RECORDER.stop(); //录音结束
  2467. },
  2468. //录音结束(回调文件)
  2469. recordEnd(e) {
  2470. clearInterval(this.recordTimer);
  2471. if (!this.willStop) {
  2472. this.$queue.showLoading('发送中...')
  2473. console.log("e: " + JSON.stringify(e));
  2474. let msg = {
  2475. length: 0,
  2476. url: e.tempFilePath
  2477. }
  2478. let min = parseInt(this.recordLength / 60);
  2479. let sec = this.recordLength % 60;
  2480. min = min < 10 ? '0' + min : min;
  2481. sec = sec < 10 ? '0' + sec : sec;
  2482. msg.length = min + ':' + sec;
  2483. console.log('msg.length___:' + msg.length)
  2484. uni.uploadFile({ // 上传接口
  2485. url: this.config("APIHOST1") + '/alioss/upload', //真实的接口地址
  2486. filePath: e.tempFilePath,
  2487. name: 'file',
  2488. success: (uploadFileRes) => {
  2489. uni.hideLoading();
  2490. this.content = JSON.parse(uploadFileRes.data).data;
  2491. console.log("语音:" + this.content)
  2492. this.setChatSave(3, msg.length);
  2493. uni.hideLoading();
  2494. }
  2495. });
  2496. } else {
  2497. console.log('取消发送录音');
  2498. }
  2499. this.willStop = false;
  2500. },
  2501. // 切换语音/文字输入
  2502. switchVoice() {
  2503. this.hideDrawer();
  2504. this.isVoice = this.isVoice ? false : true;
  2505. },
  2506. copy(content) {
  2507. uni.showModal({
  2508. title: '温馨提示',
  2509. content: '确认要复制此文字吗?',
  2510. showCancel: true,
  2511. cancelText: '取消',
  2512. confirmText: '确认',
  2513. confirmColor: '#00B88F',
  2514. success: res => {
  2515. if (res.confirm) {
  2516. uni.setClipboardData({
  2517. data: content,
  2518. success: r => {
  2519. this.$queue.showToast('复制成功');
  2520. }
  2521. });
  2522. }
  2523. }
  2524. });
  2525. },
  2526. h5Copy(content) {
  2527. if (!document.queryCommandSupported('copy')) {
  2528. // 不支持
  2529. return false
  2530. }
  2531. let textarea = document.createElement("textarea")
  2532. textarea.value = content
  2533. textarea.readOnly = "readOnly"
  2534. document.body.appendChild(textarea)
  2535. textarea.select() // 选择对象
  2536. textarea.setSelectionRange(0, content.length) //核心
  2537. let result = document.execCommand("copy") // 执行浏览器复制命令
  2538. textarea.remove()
  2539. return result
  2540. },
  2541. getDateDiff(data) {
  2542. // 传进来的data必须是日期格式,不能是时间戳
  2543. //var str = data;
  2544. //将字符串转换成时间格式
  2545. var timePublish = new Date(data);
  2546. var timeNow = new Date();
  2547. var minute = 1000 * 60;
  2548. var hour = minute * 60;
  2549. var day = hour * 24;
  2550. var month = day * 30;
  2551. var result = "2";
  2552. var diffValue = timeNow - timePublish;
  2553. var diffMonth = diffValue / month;
  2554. var diffWeek = diffValue / (7 * day);
  2555. var diffDay = diffValue / day;
  2556. var diffHour = diffValue / hour;
  2557. var diffMinute = diffValue / minute;
  2558. if (diffMonth > 3) {
  2559. result = timePublish.getFullYear() + "-";
  2560. result += timePublish.getMonth() + "-";
  2561. result += timePublish.getDate();
  2562. } else if (diffMonth > 1) { //月
  2563. result = data.substring(0, 10);
  2564. } else if (diffWeek > 1) { //周
  2565. result = data.substring(0, 10);
  2566. } else if (diffDay > 1) { //天
  2567. result = data.substring(0, 10);
  2568. } else if (diffHour > 1) { //小时
  2569. result = parseInt(diffHour) + "小时前";
  2570. } else if (diffMinute > 1) { //分钟
  2571. result = parseInt(diffMinute) + "分钟前";
  2572. } else {
  2573. result = "刚刚";
  2574. }
  2575. return result;
  2576. },
  2577. // 发送心跳包
  2578. startHeartbeat() {
  2579. // HeartBeat 这里是和后端约定好的值,我们发送给后端,后端再把这个值返给我们
  2580. // 目的就是让后端知道我们一直在
  2581. const heartbeatMsg = 'HeartBeat';
  2582. const sendHeartbeat = () => {
  2583. if (this.isOpen) {
  2584. console.log('发送HeartBeat')
  2585. uni.sendSocketMessage({
  2586. data: heartbeatMsg,
  2587. }).catch(error => {
  2588. console.log('发送心跳消息失败:', error);
  2589. //发送消息失败则进行重新链接
  2590. this.connect()
  2591. });
  2592. }
  2593. };
  2594. this.socketTimer = setInterval(sendHeartbeat, HEARTBEAT_INTERVAL);
  2595. },
  2596. // 开始重连
  2597. reconnect() {
  2598. if (!this.isOpen) {
  2599. clearTimeout(this.socketTimer);
  2600. this.socketTimer = setTimeout(() => {
  2601. console.log('开始重连...');
  2602. this.connect();
  2603. }, RECONNECT_INTERVAL);
  2604. }
  2605. },
  2606. connect() {
  2607. // #ifdef MP-WEIXIN
  2608. if (uni.getStorageSync('sendMsg')) {
  2609. // console.log('授权+1')
  2610. wx.requestSubscribeMessage({
  2611. tmplIds: this.arr,
  2612. success(re) {
  2613. // console.log(JSON.stringify(re), 111111111111)
  2614. var datas = JSON.stringify(re);
  2615. if (datas.indexOf("accept") != -1) {
  2616. // console.log(re)
  2617. }
  2618. },
  2619. fail: (res) => {
  2620. // console.log(res)
  2621. }
  2622. })
  2623. }
  2624. // #endif
  2625. let that = this
  2626. let userId = this.$queue.getData('userId');
  2627. uni.showLoading({
  2628. title: '连接中...'
  2629. })
  2630. uni.connectSocket({
  2631. // url: 'wss://h5.youxb.icu/wss/sqx_fast/chatSocket/' + userId,
  2632. // url: this.config("WSHOST1") + userId,
  2633. url: configdata.WSHOST1 + '' + userId,
  2634. // url: 'wss://zp.xianmaxiong.com/wss/chatSocket/' + userId,
  2635. // url: 'ws://192.168.0.128:7152/sqx_fast/chatSocket/' + userId,
  2636. data() {
  2637. return {
  2638. msg: 'Hello'
  2639. }
  2640. },
  2641. header: {
  2642. 'content-type': 'application/json'
  2643. },
  2644. method: 'GET',
  2645. success(res) {
  2646. // 这里是接口调用成功的回调,不是连接成功的回调,请注意
  2647. },
  2648. fail(err) {
  2649. // 这里是接口调用失败的回调,不是连接失败的回调,请注意
  2650. }
  2651. })
  2652. uni.onSocketOpen((res) => {
  2653. uni.hideLoading()
  2654. that.isOpen = true;
  2655. that.startHeartbeat()
  2656. if (that.mapsValue) {
  2657. that.setChatSave(18, that.mapsValue)
  2658. }
  2659. })
  2660. uni.onSocketError((err) => {
  2661. uni.hideLoading()
  2662. //如果连接异常那么把状态设置为false
  2663. that.isOpen = false;
  2664. //并尝试进行重连
  2665. that.reconnect();
  2666. })
  2667. uni.onSocketMessage((res) => {
  2668. if (res.data == 'HeartBeat') { //如果是心跳回推则不进行处理
  2669. return
  2670. }
  2671. this.getTimeOrListItem1();
  2672. console.log('onMessage', res)
  2673. })
  2674. uni.onSocketClose((res) => {
  2675. uni.hideLoading()
  2676. that.isOpen = false;
  2677. //链接关闭的时候也尝试进行重连
  2678. // that.reconnect();
  2679. })
  2680. },
  2681. close() {
  2682. uni.closeSocket()
  2683. },
  2684. getTimeOrListItem1() {
  2685. let userId = this.$queue.getData('userId')
  2686. this.$Request.getT('/app/chat/selectChatContent?page=' + this.page + '&limit=' + this.size +
  2687. '&chatConversationId=' + this.chatConversationId + '&userId=' + userId).then(
  2688. res => {
  2689. // this.ListItem = [];
  2690. if (res.data) {
  2691. var time = '';
  2692. res.data.list.forEach(d => {
  2693. d.createTimes = d.createTime;
  2694. d.createTime = this.getDateDiff(d.createTime);
  2695. if (d.createTime === time) {
  2696. d.createTime = '';
  2697. } else {
  2698. time = d.createTime;
  2699. }
  2700. if (d.type === 4) {
  2701. let data = d.content.split(',');
  2702. d.content = data;
  2703. }
  2704. if (d.type === 3) {
  2705. let data = d.content.split(',');
  2706. d.content = data;
  2707. }
  2708. if (d.messageType === 18) {
  2709. d.content = JSON.parse(d.content);
  2710. d.markers = [{
  2711. id: 1,
  2712. latitude: d.content.latitude,
  2713. longitude: d.content.longitude,
  2714. width: 20,
  2715. height: 20,
  2716. iconPath: '../../static/images/mapMarker.png',
  2717. callout: {
  2718. content: d.content.name,
  2719. color: '#000', //文字颜色
  2720. fontSize: 10, //文本大小
  2721. padding: 10, //附近留白
  2722. borderRadius: 24, //边框圆角
  2723. bgColor: '#FFFFFF', //背景颜色
  2724. display: 'ALWAYS', //常显
  2725. }
  2726. }]
  2727. }
  2728. // this.ListItem.push(d);
  2729. });
  2730. this.ListItem = res.data.list
  2731. this.ListItem.reverse();
  2732. this.scrollTop = this.old.scrollTop
  2733. this.$nextTick(() => {
  2734. this.scrollTop = 99999
  2735. })
  2736. this.getStatusInfo()
  2737. }
  2738. uni.hideLoading();
  2739. });
  2740. },
  2741. setChatSave(type, url) {
  2742. //type:1文字 2图片
  2743. if (type === 1 && this.content == '') {
  2744. this.$queue.showToast('请输入聊天内容');
  2745. return;
  2746. }
  2747. if (type != 3 && type != 2 && this.$queue.getChatSearchKeys(this.content)) {
  2748. uni.showToast({
  2749. title: "输入内容带有非法关键字请重新输入",
  2750. mask: false,
  2751. duration: 1500,
  2752. icon: "none"
  2753. });
  2754. return;
  2755. }
  2756. // if (type === 1 && this.$queue.getChatSearchKeys(this.content) != -1) {
  2757. // uni.showToast({
  2758. // title: "输入内容带有非法关键字请重新输入",
  2759. // mask: false,
  2760. // duration: 1500,
  2761. // icon: "none"
  2762. // });
  2763. // return;
  2764. // }
  2765. let userId = this.$queue.getData('userId');
  2766. if (type === 4) {
  2767. this.content = url;
  2768. }
  2769. if (type === 18) { //定位
  2770. this.content = url;
  2771. }
  2772. let data = {};
  2773. if (type == 3) {
  2774. data = {
  2775. userId: this.byUserId,
  2776. content: this.content,
  2777. width: url,
  2778. messageType: type,
  2779. chatConversationId: this.chatConversationId
  2780. }
  2781. } else if (type == 5) { //交换手机号
  2782. data = {
  2783. userId: this.byUserId,
  2784. content: '手机号请求',
  2785. messageType: type,
  2786. chatConversationId: this.chatConversationId
  2787. }
  2788. } else if (type == 6) { //交换微信号
  2789. data = {
  2790. userId: this.byUserId,
  2791. content: '微信号请求',
  2792. messageType: type,
  2793. chatConversationId: this.chatConversationId
  2794. }
  2795. } else if (type == 9) { //简历请求
  2796. data = {
  2797. userId: this.byUserId,
  2798. content: '简历请求',
  2799. messageType: type,
  2800. chatConversationId: this.chatConversationId
  2801. }
  2802. } else if (type == 24) {
  2803. data = {
  2804. userId: this.byUserId,
  2805. content: '刷新',
  2806. messageType: type,
  2807. chatConversationId: this.chatConversationId
  2808. }
  2809. } else {
  2810. data = {
  2811. userId: this.byUserId,
  2812. content: this.content,
  2813. messageType: type,
  2814. chatConversationId: this.chatConversationId
  2815. }
  2816. }
  2817. data = JSON.stringify(data);
  2818. let that = this;
  2819. uni.sendSocketMessage({
  2820. data: data,
  2821. success(res) {
  2822. that.mapsValue = ''
  2823. let image_url = that.$queue.getData('image_url');
  2824. if (!image_url) {
  2825. image_url = '/static/logo.png';
  2826. }
  2827. let datas = {
  2828. chat: {
  2829. userHead: image_url
  2830. },
  2831. content: that.content,
  2832. type: type,
  2833. sendType: 1
  2834. }
  2835. that.ListItem.push(datas);
  2836. setTimeout(() => {
  2837. that.getTimeOrListItem1();
  2838. that.content = '';
  2839. }, 50);
  2840. console.log(that.content);
  2841. },
  2842. fail(err) {
  2843. console.log(err);
  2844. }
  2845. })
  2846. },
  2847. //发送图片
  2848. chooseImage(sourceType) {
  2849. let that = this
  2850. uni.chooseImage({
  2851. count: 1,
  2852. sourceType: ['album'],
  2853. success: res => {
  2854. for (let i = 0; i < res.tempFilePaths.length; i++) {
  2855. this.$queue.showLoading("上传中...");
  2856. uni.uploadFile({ // 上传接口
  2857. url: this.config("APIHOST1") + '/alioss/upload', //真实的接口地址
  2858. filePath: res.tempFilePaths[i],
  2859. name: 'file',
  2860. success: (uploadFileRes) => {
  2861. let content = JSON.parse(uploadFileRes.data).data;
  2862. // this.setChatSave(2);
  2863. uni.hideLoading();
  2864. let data = {
  2865. userId: that.byUserId,
  2866. content: content,
  2867. messageType: 2,
  2868. chatConversationId: that.chatConversationId
  2869. }
  2870. data = JSON.stringify(data);
  2871. uni.sendSocketMessage({
  2872. data: data,
  2873. success(res) {
  2874. let image_url = that.$queue.getData(
  2875. 'image_url');
  2876. if (!image_url) {
  2877. image_url = '/static/logo.png';
  2878. }
  2879. let datas = {
  2880. chat: {
  2881. userHead: image_url
  2882. },
  2883. content: content,
  2884. type: 2,
  2885. sendType: 1
  2886. }
  2887. that.ListItem.push(datas);
  2888. setTimeout(() => {
  2889. that.getTimeOrListItem1();
  2890. }, 50);
  2891. },
  2892. fail(err) {
  2893. console.log(err);
  2894. }
  2895. })
  2896. }
  2897. });
  2898. }
  2899. }
  2900. })
  2901. },
  2902. config: function(name) {
  2903. var info = null;
  2904. if (name) {
  2905. var name2 = name.split("."); //字符分割
  2906. if (name2.length > 1) {
  2907. info = configdata[name2[0]][name2[1]] || null;
  2908. } else {
  2909. info = configdata[name] || null;
  2910. }
  2911. if (info == null) {
  2912. let web_config = cache.get("web_config");
  2913. if (web_config) {
  2914. if (name2.length > 1) {
  2915. info = web_config[name2[0]][name2[1]] || null;
  2916. } else {
  2917. info = web_config[name] || null;
  2918. }
  2919. }
  2920. }
  2921. }
  2922. return info;
  2923. },
  2924. //查看大图
  2925. viewImg(item) {
  2926. let imgsArray = [];
  2927. imgsArray[0] = item;
  2928. uni.previewImage({
  2929. current: 0,
  2930. urls: imgsArray
  2931. });
  2932. },
  2933. },
  2934. };
  2935. </script>
  2936. <style lang="scss">
  2937. @import "../msg/css/style.scss";
  2938. // 展开按钮样式
  2939. .expand-btn {
  2940. text-align: left;
  2941. margin-top: 20rpx;
  2942. padding: 10rpx 0;
  2943. .expand-text {
  2944. color: #007AFF;
  2945. font-size: 28rpx;
  2946. }
  2947. }
  2948. // 时间和收藏样式
  2949. .time-favorite {
  2950. padding: 10rpx 0;
  2951. .time-text {
  2952. color: rgba(156, 164, 171, 1);
  2953. font-family: DM Sans;
  2954. font-size: 12px;
  2955. font-weight: 400;
  2956. line-height: 20px;
  2957. letter-spacing: undefined;
  2958. text-align: right;
  2959. }
  2960. .favorite-btn {
  2961. color: rgba(156, 164, 171, 1);
  2962. font-size: 12px;
  2963. .favorite-icon {
  2964. margin-right: 8rpx;
  2965. font-size: 12px;
  2966. }
  2967. .favorite-text {
  2968. font-size: 12px;
  2969. }
  2970. }
  2971. }
  2972. .avatorm {
  2973. width: 100%;
  2974. // height: 100rpx;
  2975. margin-top: 20rpx;
  2976. color: #000;
  2977. .avatorm-box {
  2978. width: 90%;
  2979. height: 100%;
  2980. .avatorm-box-item {
  2981. margin-bottom: 10rpx;
  2982. .avatorm-box-item-t {
  2983. width: 30%;
  2984. }
  2985. .avatorm-box-item-r {
  2986. width: 70%;
  2987. }
  2988. }
  2989. }
  2990. }
  2991. .mssTitle {
  2992. width: 100%;
  2993. margin-top: 30rpx;
  2994. text-align: center;
  2995. font-size: 30rpx;
  2996. color: #000;
  2997. font-weight: bold;
  2998. }
  2999. .btnm {
  3000. width: 100%;
  3001. margin-top: 20rpx;
  3002. height: 80rpx;
  3003. margin-bottom: 100rpx;
  3004. .btn-box {
  3005. width: 686rpx;
  3006. height: 100%;
  3007. .btnItem {
  3008. display: flex;
  3009. align-items: center;
  3010. justify-content: center;
  3011. width: 200rpx;
  3012. height: 100%;
  3013. border-radius: 14rpx;
  3014. }
  3015. .btn-close {
  3016. color: #00B88F;
  3017. border: 1rpx solid #00B88F;
  3018. }
  3019. .btn-sub {
  3020. color: #FFFFFF;
  3021. background-color: #00B88F;
  3022. }
  3023. }
  3024. }
  3025. .mianshiTime {
  3026. width: 100%;
  3027. margin-top: 20rpx;
  3028. .mianshiTime-box {
  3029. padding-bottom: 20rpx;
  3030. width: 686rpx;
  3031. height: 100%;
  3032. color: #000000;
  3033. border-bottom: 1rpx solid #F2F2F7;
  3034. .mianshiTime-box-ti {
  3035. height: 100%;
  3036. margin-top: 20rpx;
  3037. }
  3038. }
  3039. }
  3040. .mianshiTitle {
  3041. width: 100%;
  3042. margin-top: 30rpx;
  3043. font-size: 30rpx;
  3044. text-align: center;
  3045. font-weight: bold;
  3046. color: #000000;
  3047. }
  3048. .qyList-box-item {
  3049. width: 100%;
  3050. // height: 400rpx;
  3051. padding-bottom: 40rpx;
  3052. background-color: #ffffff;
  3053. border-radius: 24rpx;
  3054. margin-bottom: 20rpx;
  3055. .qyList-box-item-box {
  3056. width: 626rpx;
  3057. height: 100%;
  3058. }
  3059. .qyList-box-item-info {
  3060. margin-top: 40rpx;
  3061. }
  3062. .qyList-box-item-job {
  3063. color: #121212;
  3064. font-size: 28rpx;
  3065. font-weight: 500;
  3066. margin-top: 20rpx;
  3067. }
  3068. .qyList-box-item-rem {
  3069. color: #999999;
  3070. font-size: 26rpx;
  3071. margin-top: 20rpx;
  3072. }
  3073. }
  3074. .topSe {
  3075. width: 100%;
  3076. height: 100%;
  3077. // padding-top: 80rpx;
  3078. background-color: #FFFFFF;
  3079. box-sizing: border-box;
  3080. .topSe-box {
  3081. width: 686rpx;
  3082. height: 100%;
  3083. .topSe-box-item {
  3084. font-size: 24rpx;
  3085. width: 80rpx;
  3086. }
  3087. }
  3088. }
  3089. .jobs {
  3090. width: 100%;
  3091. .jobs-box {
  3092. width: 95%;
  3093. }
  3094. }
  3095. .gwList-box-item {
  3096. width: 100%;
  3097. // height: 329rpx;
  3098. border: 0.5px solid rgba(227, 231, 236, 1);
  3099. background: #FDFDFD;
  3100. border-radius: 24rpx;
  3101. // margin-bottom: 20rpx;
  3102. padding-bottom: 20rpx;
  3103. }
  3104. .gwList-box-item-box {
  3105. width: 100%;
  3106. height: 100%;
  3107. padding: 0 40rpx;
  3108. .gwList-box-item-box-title {
  3109. margin-top: 30rpx;
  3110. text:nth-of-type(1) {
  3111. color: rgba(23, 23, 37, 1);
  3112. font-family: DM Sans;
  3113. font-size: 24px;
  3114. font-weight: 700;
  3115. line-height: 24px;
  3116. letter-spacing: 0%;
  3117. text-align: left;
  3118. }
  3119. text:nth-of-type(2) {
  3120. color: rgba(1, 107, 246, 1);
  3121. font-family: DM Sans;
  3122. font-size: 16px;
  3123. font-weight: 700;
  3124. line-height: 20px;
  3125. letter-spacing: 0.5%;
  3126. text-align: right;
  3127. }
  3128. }
  3129. .gwList-box-item-box-label {
  3130. margin-top: 30rpx;
  3131. }
  3132. .gwList-box-item-box-name {
  3133. color: rgba(156, 164, 171, 1);
  3134. font-family: DM Sans;
  3135. font-size: 16px;
  3136. font-weight: 400;
  3137. line-height: 20px;
  3138. letter-spacing: 0.5%;
  3139. text-align: left;
  3140. gap: 8rpx;
  3141. margin-top: 20rpx;
  3142. }
  3143. .gwList-box-item-box-line {
  3144. width: 100%;
  3145. border: 1rpx solid #E6E6E6;
  3146. margin-top: 30rpx;
  3147. margin-bottom: 20rpx;
  3148. }
  3149. .gwList-box-item-box-info-text {
  3150. color: rgba(153, 153, 153, 1);
  3151. font-family: DM Sans;
  3152. font-size: 12px;
  3153. font-weight: 400;
  3154. line-height: 12px;
  3155. letter-spacing: 0px;
  3156. text-align: left;
  3157. margin-bottom: 20rpx;
  3158. .job-description-item {
  3159. margin-bottom: 6rpx;
  3160. line-height: 1.2;
  3161. &:last-child {
  3162. margin-bottom: 0;
  3163. }
  3164. }
  3165. }
  3166. .gwList-box-item-box-info {
  3167. font-size: 26rpx;
  3168. padding-bottom: 20rpx;
  3169. border-bottom: 1rpx solid #E6E6E6;
  3170. .gwList-box-item-box-info-l {
  3171. color: #1A1A1A;
  3172. .people {
  3173. max-width: 110rpx;
  3174. overflow: hidden; //超出的文本隐藏
  3175. text-overflow: ellipsis; //溢出用省略号显示
  3176. white-space: nowrap; // 默认不换行;
  3177. color: rgba(156, 164, 171, 1);
  3178. font-family: DM Sans;
  3179. font-size: 14px;
  3180. font-weight: 400;
  3181. line-height: 20px;
  3182. letter-spacing: undefined;
  3183. text-align: left;
  3184. }
  3185. }
  3186. .gwList-box-item-box-info-r {
  3187. color: #999999;
  3188. width: 50%;
  3189. overflow: hidden; //超出的文本隐藏
  3190. text-overflow: ellipsis; //溢出用省略号显示
  3191. white-space: nowrap; // 默认不换行;
  3192. }
  3193. }
  3194. }
  3195. .xuanfu {
  3196. width: 100%;
  3197. display: flex;
  3198. justify-content: center;
  3199. align-items: center;
  3200. color: #00B88F;
  3201. .xuanfu-box {
  3202. width: 95%;
  3203. background-color: #FFFFFF;
  3204. border-radius: 10rpx;
  3205. padding: 20rpx 15rpx 20rpx 20rpx;
  3206. letter-spacing: 5rpx;
  3207. font-size: 26rpx;
  3208. }
  3209. }
  3210. page {
  3211. background: #FAFAFA;
  3212. color: #FFFFFF;
  3213. }
  3214. .chat-listitem {
  3215. display: flex;
  3216. margin-top: 20rpx;
  3217. padding: 10rpx;
  3218. }
  3219. .textColor {
  3220. color: #FFFFFF;
  3221. border-radius: 16px 16px 0px 16px;
  3222. background: rgba(1, 107, 246, 1);
  3223. }
  3224. .chat-listitem-text {
  3225. // color: #FFFFFF;
  3226. margin-top: 6rpx;
  3227. width: fit-content;
  3228. padding: 15rpx;
  3229. font-size: 30rpx;
  3230. height: max-content;
  3231. word-wrap: break-word;
  3232. word-break: break-all;
  3233. border-radius: 10rpx;
  3234. }
  3235. .chat-listitem-image-type4 {
  3236. color: #000000;
  3237. background: #FFFFFF;
  3238. width: fit-content;
  3239. font-size: 30rpx;
  3240. height: max-content;
  3241. word-wrap: break-word;
  3242. word-break: break-all;
  3243. border-top-left-radius: 20rpx;
  3244. border-top-right-radius: 20rpx;
  3245. }
  3246. .chat-listitem-image {
  3247. margin-top: 5rpx;
  3248. width: 75rpx;
  3249. height: 75rpx;
  3250. border-radius: 50%;
  3251. }
  3252. .save {
  3253. width: 130rpx;
  3254. text-align: center;
  3255. border-radius: 10rpx;
  3256. height: 70rpx;
  3257. background: #FFFFFF;
  3258. margin: 5rpx 10rpx 0;
  3259. line-height: 70rpx;
  3260. }
  3261. </style>