1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160 |
- <template>
- <view>
- <!-- 顶部操作 -->
- <view class="topSe flex justify-center" v-if="userType==1">
- <view class="topSe-box flex align-center justify-around">
- <view class="topSe-box-item flex flex-wrap justify-center" @click="currentPhone()">
- <image src="../../static/im/mobilePhone.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
- <view class="" style="color: #999999;">
- 换电话
- </view>
- </view>
- <view class="topSe-box-item flex flex-wrap justify-center" @click="currentWchat()">
- <image src="../../static/im/weiChat.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
- <view class="" style="color: #999999;">
- 换微信
- </view>
- </view>
- <view class="topSe-box-item flex flex-wrap justify-center" @click="sendResumes()">
- <image src="../../static/im/orderInfo.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
- <view class="" style="color: #999999;">
- 发简历
- </view>
- </view>
- </view>
- </view>
- <view class="topSe flex justify-center" v-else>
- <view class="topSe-box flex align-center justify-around">
- <view class="topSe-box-item flex flex-wrap justify-center" @click="currentPhone()">
- <image src="../../static/im/mobilePhone.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
- <view class="" style="color: #999999;">
- 换电话
- </view>
- </view>
- <view class="topSe-box-item flex flex-wrap justify-center" @click="currentWchat()">
- <image src="../../static/im/weiChat.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
- <view class="" style="color: #999999;">
- 换微信
- </view>
- </view>
- <view class="topSe-box-item flex flex-wrap justify-center" @click="giveSendResumes()">
- <image src="../../static/im/orderInfo.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
- <view class="" style="color: #999999;">
- 求简历
- </view>
- </view>
- <view class="topSe-box-item flex flex-wrap justify-center" @click="mianshiF()">
- <image src="../../static/im/mianshi.png" style="width: 40rpx;height: 40rpx;" mode=""></image>
- <view class="" style="color: #999999;">
- 约面试
- </view>
- </view>
- </view>
- </view>
- <scroll-view scroll-y="true" @touchstart="hideDrawer" @scroll="scroll" :scroll-top="scrollTop"
- style="height: calc(100vh - 200rpx);width: 100%;padding: 20rpx 0;">
- <!-- 温馨提示 -->
- <view class="xuanfu">
- <view class="xuanfu-box flex">
- <view class="" style="margin-right: 10rpx;">
- <!-- <image style="width: 30rpx;height: 30rpx;"
- src="https://zhaopin.xianmaxiong.com/file/uploadPath/2022/09/07/85e0d70ba1d9a78463b36bf7f92f6dca.png"
- mode=""></image> -->
- </view>
- <view class="">
- {{messages}}
- </view>
- </view>
- </view>
- <!-- 岗位简介 -->
- <view class="jobs flex justify-center" v-if="JSON.stringify(postPushInfo)!='{}'">
- <view class="jobs-box">
- <view class="gwList-box-item flex justify-center" @click="gotoInfo(postPushInfo.postPushId)">
- <view class="gwList-box-item-box">
- <view class="gwList-box-item-box-title flex justify-between align-center">
- <text>{{postPushInfo.stationName}}</text>
- <text>{{postPushInfo.salaryRange}}</text>
- </view>
- <view class="gwList-box-item-box-label flex align-center flex-wrap">
- <text
- style="color: #666666;font-size: 26rpx;padding: 10rpx 25rpx 10rpx 25rpx;background-color: #F6F6F6;border-radius: 8rpx;margin-right: 20rpx;margin-bottom: 20rpx;">
- {{postPushInfo.education}}
- </text>
- <text
- style="color: #666666;font-size: 26rpx;padding: 10rpx 25rpx 10rpx 25rpx;background-color: #F6F6F6;border-radius: 8rpx;margin-right: 20rpx;margin-bottom: 20rpx;">
- {{postPushInfo.experience}}
- </text>
- <text
- style="color: #666666;font-size: 26rpx;padding: 10rpx 25rpx 10rpx 25rpx;background-color: #F6F6F6;border-radius: 8rpx;margin-right: 20rpx;margin-bottom: 20rpx;"
- v-for="(ite,ind) in postPushInfo.positionWelfare" :key="ind">{{ite}}</text>
- </view>
- <view class="gwList-box-item-box-name flex justify-between align-center">
- <text>{{postPushInfo.company?postPushInfo.company.companyName:''}}</text>
- <text
- v-if="postPushInfo.company">{{postPushInfo.company?postPushInfo.company.companyPeople:'0人'}}</text>
- </view>
- <view class="gwList-box-item-box-line"></view>
- <view class="gwList-box-item-box-info flex justify-between align-center">
- <view class="gwList-box-item-box-info-l flex align-center">
- <image
- :src="postPushInfo.company?postPushInfo.company.companyLogo:'../../static/logo.png'"
- style="width: 58rpx;height: 58rpx;border-radius: 50%;margin-right: 20rpx;"
- mode=""></image>
- <view class="people" v-if="postPushInfo.company">
- {{postPushInfo.company.companyLegalPerson?postPushInfo.company.companyLegalPerson:'未知'}}
- </view>·创始人
- </view>
- <view class="gwList-box-item-box-info-r flex justify-end">
- {{postPushInfo.county}} {{postPushInfo.address}}
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 简历简介 -->
- <view class="jobs flex justify-center" v-if="JSON.stringify(resumesInfo)!='{}'">
- <view class="jobs-box">
- <view class="qyList-box-item flex justify-center"
- @click="goNav('/pages/index/game/orderDet?resumesId='+resumesInfo.resumesId)">
- <view class="qyList-box-item-box">
- <view class="qyList-box-item-info flex justify-between align-center">
- <view class="qyList-box-item-info-l">
- <view class="" style="color: #212121;font-size: 38rpx;font-weight: 800;">
- {{resumesInfo.resumesName}}
- </view>
- <view class="flex align-center flex-wrap"
- style="color: #999999;font-size: 26rpx;margin-top: 10rpx;">
- <text>{{resumesInfo.resumesAge}}岁</text>
- <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
- <text>{{resumesInfo.resumesWorkExperience}}</text>
- <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
- <text>{{resumesInfo.school}}</text>
- <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
- <text>期望{{resumesInfo.resumesCompensation}}</text>
- </view>
- </view>
- <view class="qyList-box-item-info-r">
- <image :src="resumesInfo.avatar?resumesInfo.avatar:'../../static/logo.png'"
- style="width: 95rpx;height: 95rpx;border-radius: 50%;" mode=""></image>
- </view>
- </view>
- <view class="qyList-box-item-job flex align-center">
- <u-icon name="heart-fill" color="#00B88F" size="30" style="margin-right: 16rpx;">
- </u-icon>
- 期望岗位:{{resumesInfo.resumesPost}}
- </view>
- <view class="qyList-box-item-job flex align-center"
- v-if="resumesInfo.resumesCompanyList[0]">
- <image src="../../static/images/qi.png"
- style="width: 30rpx;height: 32rpx;margin-right: 16rpx;" mode=""></image>
- {{resumesInfo.resumesCompanyList[0]?resumesInfo.resumesCompanyList[0].resumesTitle:''}}
- /
- {{resumesInfo.resumesCompanyList[0]?resumesInfo.resumesCompanyList[0].resumesPost:''}}
- </view>
- <view class="qyList-box-item-job flex align-center" v-else>
- <image src="../../static/images/qi.png"
- style="width: 30rpx;height: 32rpx;margin-right: 16rpx;" mode=""></image>
- 暂无
- </view>
- <view class="qyList-box-item-rem" v-if="resumesInfo.resumesDetails">
- 优势:{{resumesInfo.resumesDetails}}
- </view>
- </view>
- </view>
- </view>
- </view>
- <view style="display: flex;flex-direction: column;" v-for="(item,index) in ListItem" :id=" 'id-'+index">
- <view style="margin-top: 15rpx;width: 100%;text-align: center;font-size: 26rpx;color: #999999;"
- v-if="item.createTime">
- {{item.createTime}}
- </view>
- <view v-if="item.userId && userId != item.userId" style="width: 83%;margin-right: 15%;">
- <view class="chat-listitem" style="float: left;margin-left: 10rpx;">
- <view>
- <image @tap="goGuanZhu(item)" :src="item.avatar ? item.avatar : '/static/logo.png'"
- class="chat-listitem-image"></image>
- </view>
- <view v-if="item.content && item.messageType === 1" @longpress="copy(item.content)"
- class="chat-listitem-text"
- style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">{{item.content}}</view>
- <view v-if="item.messageType === 20" @tap="sendCallVideo(2)"
- class="chat-listitem-text flex align-center"
- style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
- 视频通话
- <image src="../../static/im/historyVideo_black.png"
- style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
- </view>
- <view v-if="item.messageType === 21" @tap="sendCallVideo(1)"
- class="chat-listitem-text flex align-center"
- style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
- 语音通话
- <image src="../../static/im/historyAudio_black.png"
- style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
- </view>
- <!-- 互换手机号 -->
- <view v-if="item.content && item.messageType === 5 && item.content=='手机号请求'"
- @longpress="copy(item.content)" class="chat-listitem-text"
- 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);">
- <view class="flex align-center">
- <image src="../../static/im/mobilePhone.png"
- style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
- 我想跟你交换手机号,是否同意?
- </view>
- <view class="flex justify-between" style="margin-top: 30rpx;font-size: 24rpx;">
- <view @click.stop="refuseFun(item.chatContentId)"
- class="flex justify-center align-center"
- style="width: 40%;height: 50rpx;background-color: #F5F5F5;border-radius: 12rpx;">
- 拒绝
- </view>
- <view @click.stop="tongyi(item.messageType,item.chatContentId)"
- class="flex justify-center align-center"
- style="width: 40%;height: 50rpx;background-color: #D9FEED;border-radius: 12rpx;">
- 同意
- </view>
- </view>
- </view>
- <view v-if="item.content && item.messageType === 5 && item.content!='手机号请求'"
- class="chat-listitem-text"
- style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
- 已同意交换手机号
- </view>
- <view v-if="item.content && item.messageType === 7"
- @longpress="copyss(item.content,item.userType,'phone')" class="chat-listitem-text"
- style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
- <view class="" v-if="item.userType==1">
- 我的手机号为:{{JSON.parse(item.content).userPhone}}
- </view>
- <view class="" v-else>
- 我的手机号为:{{JSON.parse(item.content).companyPhone}}
- </view>
- </view>
- <!-- 互换微信号 -->
- <view v-if="item.content && item.messageType === 6 && item.content=='微信号请求'"
- @longpress="copy(item.content)" class="chat-listitem-text"
- 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);">
- <view class="flex align-center">
- <image src="../../static/im/weiChat.png"
- style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
- 我想跟你交换微信号,是否同意?
- </view>
- <view class="flex justify-between" style="margin-top: 30rpx;font-size: 24rpx;">
- <view @click.stop="refuseFun(item.chatContentId)"
- class="flex justify-center align-center"
- style="width: 40%;height: 50rpx;background-color: #F5F5F5;border-radius: 12rpx;">
- 拒绝
- </view>
- <view @click.stop="tongyi(item.messageType,item.chatContentId)"
- class="flex justify-center align-center"
- style="width: 40%;height: 50rpx;background-color: #D9FEED;border-radius: 12rpx;">
- 同意
- </view>
- </view>
- </view>
- <view v-if="item.content && item.messageType === 6 && item.content!='微信号请求'"
- class="chat-listitem-text"
- style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
- 已同意交换微信号
- </view>
- <view v-if="item.content && item.messageType === 8"
- @longpress="copyss(item.content,item.userType,'wx')" class="chat-listitem-text"
- style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
- <view class="" v-if="item.userType==1">
- 我的微信号为:{{JSON.parse(item.content).userWx}}
- </view>
- <view class="" v-else>
- 我的微信号为:{{JSON.parse(item.content).companyWx}}
- </view>
- </view>
- <view v-if="item.content && item.messageType === 9 && item.content=='简历请求'"
- @longpress="copy(item.content)" class="chat-listitem-text"
- 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);">
- <view class="flex align-center">
- <image src="../../static/im/orderInfo.png"
- style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
- 我想要你的一份简历,是否同意?
- </view>
- <view class="flex justify-between" style="margin-top: 30rpx;font-size: 24rpx;">
- <view @click.stop="refuseFun(item.chatContentId)"
- class="flex justify-center align-center"
- style="width: 40%;height: 50rpx;background-color: #F5F5F5;border-radius: 12rpx;">
- 拒绝
- </view>
- <view @click.stop="resumesTy()" class="flex justify-center align-center"
- style="width: 40%;height: 50rpx;background-color: #D9FEED;border-radius: 12rpx;">
- 同意
- </view>
- </view>
- </view>
- <view v-if="item.content && item.messageType === 9 && item.content!='简历请求'"
- @longpress="copy(item.content)" class="chat-listitem-text"
- 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);">
- <view class="flex align-center">
- <image src="../../static/im/orderInfo.png"
- style="width: 60rpx;height: 60rpx;margin-right: 10rpx;" mode=""></image>
- {{item.content}}
- </view>
- </view>
- <view v-if="item.content && item.messageType === 10" class="chat-listitem-text"
- style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
- {{item.content}}
- </view>
- <view v-if="item.content && item.messageType === 12" class="chat-listitem-text"
- style="margin-left: 20rpx;color: #000000;background-color: #ffffff;">
- {{item.content}}已拒绝
- </view>
- <image @tap="viewImg(item.content)" v-if="item.content && item.messageType === 2"
- :src="item.content" style="height: 200rpx;width: 200rpx;margin-left: 20rpx;"></image>
- <image class="chat-listitem-text" @tap="viewImg(item.content)"
- v-if="item.content && item.messageType === 4"
- :src="'https://zp.118zp.com/emoji/' +item.content"
- style="height: 80rpx;width: 80rpx;margin-left: 20rpx;"></image>
- <view v-if="item.content && item.messageType === 3" class="chat-listitem-text bubble voice"
- :class="playMsgid == index?'play':''"
- style="margin-left: 20rpx;display: flex;align-items: center;"
- @tap="playVoice(item.content,index)">
- <image v-if="playMsgid != index" src="../../static/im/laba.png"
- style="width: 35upx;height: 40upx;margin-right: 10rpx;"></image>
- <image v-if="playMsgid == index" src="../../static/im/labagif.gif"
- style="width: 35upx;height: 40upx;margin-right: 10rpx;"></image>
- <view class="length">{{item.width ? item.width : 0}}</view>
- </view>
- <view class="chat-listitem-text "
- style="margin-left: 20rpx;color: #000000;background-color: #ffffff;"
- v-if="item.content && item.messageType === 18"
- @click="openMapss(item.content.latitude,item.content.longitude,item.content.address)">
- <view class="padding-sm flex">
- <!-- #ifdef APP -->
- <u-icon name="map-fill" color="#ffffff" size="28" style="margin-right: 10rpx;"></u-icon>
- <!-- #endif -->
- {{item.content.address}}
- </view>
- <!-- #ifndef APP -->
- <map style="width: 100%; height: 120px;" scale="14" :latitude="item.content.latitude"
- :longitude="item.content.longitude"
- @tap="openMapss(item.content.latitude,item.content.longitude,item.content.address)"
- :markers="item.markers">
- </map>
- <!-- #endif -->
- </view>
- </view>
- </view>
- <!-- ++++++++++++++++++++++++++ -->
- <view v-if="item.userId && userId == item.userId" style="width: 83%;margin-left: 15%;">
- <view class="chat-listitem" style="float: right;">
- <view v-if="item.content && item.messageType === 1" @longpress="caozuoActive(item,1)"
- class="chat-listitem-text textColor" style="margin-right: 20rpx;">{{item.content}}</view>
- <view v-if="item.messageType === 20" @tap="sendCallVideo(2)"
- class="chat-listitem-text textColor flex align-center" style="margin-right: 20rpx;">
- 视频通话
- <image src="../../static/im/historyVideo_white.png"
- style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
- </view>
- <view v-if="item.messageType === 21" @tap="sendCallVideo(1)"
- class="chat-listitem-text textColor flex align-center" style="margin-right: 20rpx;">
- 语音通话
- <image src="../../static/im/historyAudio_white.png"
- style="width: 50rpx;height: 50rpx;margin-left: 20rpx;" mode=""></image>
- </view>
- <view v-if="item.content && item.messageType === 5" class="chat-listitem-text textColor"
- style="margin-right: 20rpx;">
- 交换手机号请求已发送,等待对方同意
- </view>
- <view v-if="item.content && item.messageType === 7"
- @longpress="copyss(item.content,item.userType,'phone')" class="chat-listitem-text textColor"
- style="margin-right: 20rpx;">
- <view class="" v-if="item.userType==1">
- 我的手机号为:{{JSON.parse(item.content).userPhone}}
- </view>
- <view class="" v-else>
- 我的手机号为:{{JSON.parse(item.content).companyPhone}}
- </view>
- </view>
- <view v-if="item.content && item.messageType === 6" class="chat-listitem-text textColor"
- style="margin-right: 20rpx;">
- 交换微信号请求已发送,等待对方同意
- </view>
- <view v-if="item.content && item.messageType === 8"
- @longpress="copyss(item.content,item.userType,'wx')" class="chat-listitem-text textColor"
- style="margin-right: 20rpx;">
- <view class="" v-if="item.userType==1">
- 我的微信号为:{{JSON.parse(item.content).userWx}}
- </view>
- <view class="" v-else>
- 我的微信号为:{{JSON.parse(item.content).companyWx}}
- </view>
- </view>
- <view v-if="item.content && item.messageType === 9" class="chat-listitem-text textColor"
- style="margin-right: 20rpx;">
- 简历请求已发送,等待对方同意
- </view>
- <view v-if="item.content && item.messageType === 10" class="chat-listitem-text textColor"
- style="margin-right: 20rpx;">
- {{item.content}}
- </view>
- <view v-if="item.content && item.messageType === 12" class="chat-listitem-text textColor"
- style="margin-right: 20rpx;">
- {{item.content}}已拒绝
- </view>
- <view class="chat-listitem-text textColor" style="margin-right: 20rpx;"
- v-if="item.content && item.messageType === 18"
- @click="openMapss(item.content.latitude,item.content.longitude,item.content.address)">
- <view class="padding-sm flex">
- <!-- #ifdef APP -->
- <u-icon name="map-fill" color="#ffffff" size="28" style="margin-right: 10rpx;"></u-icon>
- <!-- #endif -->
- {{item.content.address}}
- </view>
- <!-- #ifndef APP -->
- <map style="width:520upx; height: 120px;" scale="14" :latitude="item.content.latitude"
- :longitude="item.content.longitude"
- @tap="openMapss(item.content.latitude,item.content.longitude,item.content.address)"
- :markers='item.markers'>
- </map>
- <!-- #endif -->
- </view>
- <!-- <view v-if="item.content && item.messageType === 1" @longpress="copy(item.content)"
- class="chat-listitem-text" style="margin-right: 20rpx;">{{item.content}}</view> -->
- <image @longpress="caozuoActive(item)" @tap="viewImg(item.content)"
- v-if="item.content && item.messageType === 2" :src="item.content"
- style="height: 200rpx;width: 200rpx;margin-right: 20rpx;"></image>
- <image class="chat-listitem-text textColor" @longpress="caozuoActive(item)"
- @tap="viewImg(item.content)" v-if="item.content && item.messageType === 4"
- :src="'https://zp.118zp.com/emoji/' +item.content"
- style="height: 80rpx;width: 80rpx;margin-right: 20rpx;">
- </image>
- <view v-if="item.content && item.messageType === 3"
- class="chat-listitem-text bubble voice textColor" :class="playMsgid == index?'play':''"
- style="margin-right: 20rpx;display: flex;align-items: center;"
- @longpress="caozuoActive(item)" @tap="playVoice(item.content,index)">
- <view class="length">{{item.width ? item.width : 0}}</view>
- <image v-if="playMsgid != index" src="../../static/im/labaleft.png"
- style="width: 35upx;height: 40upx;margin-left: 10rpx;"></image>
- <image v-if="playMsgid == index" src="../../static/im/labaleft.png"
- style="width: 35upx;height: 40upx;margin-left: 10rpx;"></image>
- </view>
- <view>
- <image :src="imageUrl" class="chat-listitem-image"></image>
- </view>
- </view>
- </view>
- </view>
- <!-- </view> -->
- </scroll-view>
- <!-- 底部聊天输入框 -->
- <!-- <view class="input-box">
- <view style="display: flex;margin-top: 15rpx;width: 100%;">
- <image src="https://renwu.xiansqx.com/img/20210817/024ca47bc591460daf76762a8e98283f.png" @click="chooseImage(['album'])" style="width: 60rpx;height: 60rpx;margin-top: 8rpx;"></image>
- <input confirm-type="send" @confirm='setChatSave(1)' type="text" v-model="content"
- style="width: 68%;height: 70rpx;background: #FFFFFF;margin: 4rpx 10rpx 0;border-radius: 10rpx;padding-left: 10rpx;" />
- <view class="save" @tap='setChatSave(1)'>发送</view>
- </view>
- </view> -->
- <!-- 长按操作菜单 -->
- <u-action-sheet :list="activelist" @click="activeclick" v-model="showActive" :tips="tips"></u-action-sheet>
- <!-- 抽屉栏 -->
- <view class="popup-layer" :class="popupLayerClass" @touchmove.stop.prevent="discard">
- <!-- 表情 -->
- <swiper class="emoji-swiper" indicator-active-color="#cccccc" :class="{hidden:hideEmoji}"
- indicator-dots="true" duration="150">
- <swiper-item v-for="(page1,pid) in emojiList" :key="pid">
- <view v-for="(em,eid) in page1" :key="eid" @tap="setChatSave(4,em.url)">
- <!-- <image src="../../static/emoji/100.gif" mode="widthFix"></image> -->
- <image mode="widthFix" :src="'https://zp.118zp.com/emoji/'+em.url"></image>
- </view>
- </swiper-item>
- </swiper>
- <!-- 更多功能 相册-拍照-红包 -->
- <view class="more-layer" :class="{hidden:hideMore}">
- <view class="list" style="color: #000000;">
- <!-- 上传图片 -->
- <view style="margin-bottom: 20rpx;">
- <view class="box" @click="chooseImage(['album'])">
- <view class="icon tupian2"></view>
- </view>
- <view style="width: 100%;text-align: center;">上传图片</view>
- </view>
- <!-- #ifdef H5 || APP -->
- <!-- 语音 -->
- <view style="margin-bottom: 20rpx;">
- <view class="box" @tap="sendCallVideo(1)">
- <image src="../../static/images/voice/audioCall.png" mode=""
- style="width: 76rpx;height: 76rpx;">
- </image>
- </view>
- <view style="width: 100%;text-align: center;">语音</view>
- </view>
- <!-- 视频 -->
- <view style="margin-bottom: 20rpx;">
- <view class="box" @tap="sendCallVideo(2)">
- <image src="../../static/images/voice/videoCall.png" mode=""
- style="width: 76rpx;height: 76rpx;">
- </image>
- </view>
- <view style="width: 100%;text-align: center;">视频</view>
- </view>
- <!-- #endif -->
- <!-- 常用语 -->
- <view style="margin-bottom: 20rpx;">
- <view class="box" @tap="showChangYongSelect">
- <view class="icon jianpan"></view>
- </view>
- <view style="width: 100%;text-align: center;">常用语句</view>
- </view>
- <!-- 添加常用语或自动回复内容 -->
- <view style="margin-bottom: 20rpx;">
- <view class="box" @tap="goAdd">
- <view class="icon add"></view>
- </view>
- <view style="width: 100%;text-align: center;">添加语句</view>
- </view>
- <view style="margin-bottom: 20rpx;">
- <view class="box" @tap="goMapss">
- <image src="../../static/images/weizhi.png" mode="" style="width: 76rpx;height: 76rpx;">
- </image>
- </view>
- <view style="width: 100%;text-align: center;">发送位置</view>
- </view>
- <view>
- <view class="box" @tap="goHistory">
- <view class="icon chehui"></view>
- </view>
- <view style="width: 100%;text-align: center;">聊天记录</view>
- </view>
- </view>
- </view>
- </view>
- <!-- 底部输入栏 -->
- <view class="input-box" :class="popupLayerClass" @touchmove.stop.prevent="discard">
- <!-- H5下不能录音,输入栏布局改动一下 -->
- <!-- #ifndef H5 -->
- <view class="voice">
- <view class="icon" :class="isVoice?'jianpan':'yuyin'" @tap="switchVoice"></view>
- </view>
- <!-- #endif -->
- <!-- #ifdef H5 -->
- <view class="more" @tap="showMore">
- <view class="icon add"></view>
- </view>
- <!-- #endif -->
- <view class="textbox">
- <view class="voice-mode" :class="[isVoice?'':'hidden',recording?'recording':'']"
- @touchstart="voiceBegin" @touchmove.stop.prevent="voiceIng" @touchend="voiceEnd"
- @touchcancel="voiceCancel">{{voiceTis}}</view>
- <view class="text-mode" :class="isVoice?'hidden':''">
- <view class="box">
- <input style="color: #000000;" auto-height="true" @confirm='setChatSave(1)' v-model="content"
- @focus="textareaFocus" />
- </view>
- <view class="em" @tap="chooseEmoji">
- <view class="icon biaoqing"></view>
- </view>
- </view>
- </view>
- <!-- #ifndef H5 -->
- <view class="more" @tap="showMore">
- <view class="icon add"></view>
- </view>
- <!-- #endif -->
- <view class="send" :class="isVoice?'hidden':''" @tap='setChatSave(1)'>
- <view class="btn">发送</view>
- </view>
- </view>
- <!-- 录音UI效果 -->
- <view class="record" :class="recording?'':'hidden'">
- <view class="ing" :class="willStop?'hidden':''">
- <view class="icon luyin2"></view>
- </view>
- <view class="cancel" :class="willStop?'':'hidden'">
- <view class="icon chehui"></view>
- </view>
- <view class="tis" :class="willStop?'change':''">{{recordTis}}</view>
- </view>
- <u-select v-model="showChangYong" title="常用词语" mode="single-column" :list="changYongList" @confirm="selConfirm">
- </u-select>
- <u-action-sheet :list="list" @click="click" v-model="show"></u-action-sheet>
- <u-popup v-model="mianshiShow" mode="bottom" z-index="998" :mask-close-able="false" border-radius="14"
- @close="cleanMs" :closeable="true">
- <view class="mianshiTitle">面试邀请</view>
- <view class="mianshiTime flex justify-center">
- <view class="mianshiTime-box flex justify-between align-center">
- <view class="">
- 面试时间
- </view>
- <view class="flex align-center mianshiTime-box-ti">
- <u-input disabled v-model="miamshi.interviewDateTime" @click="msTime=true" type="text"
- placeholder="请选择面试时间" />
- <u-icon name="arrow-right" style="margin-left: 10rpx;" color="#00B88F" size="28"
- @click="msTime=true"></u-icon>
- </view>
- </view>
- </view>
- <view class="mianshiTime flex justify-center">
- <view class="mianshiTime-box flex justify-between align-center">
- <view class="">
- 面试地址
- </view>
- <view class="flex align-center mianshiTime-box-ti">
- <u-input disabled @click="goMap()" v-model="miamshi.detailedAddress" type="text"
- placeholder="请选择面试地址" />
- <u-icon name="arrow-right" style="margin-left: 10rpx;" @click="goMap()" color="#00B88F"
- size="28"></u-icon>
- </view>
- </view>
- </view>
- <view class="mianshiTime flex justify-center">
- <view class="mianshiTime-box" style="border: none;">
- <view class="">
- 备注
- </view>
- <view class="flex align-center mianshiTime-box-ti">
- <u-input v-model="miamshi.remarks" type="textarea" input-align="left"
- style="padding: 10rpx;background-color: #F2F2F7;height: 200rpx;overflow: hidden;border-radius: 14rpx;width: 100%;"
- :auto-height="false" />
- </view>
- </view>
- </view>
- <view class="btnm flex justify-center">
- <view class="btn-box flex justify-around align-center">
- <view class="btn-close btnItem" @click="mianshiShow = false">
- 取消
- </view>
- <view class="btn-sub btnItem" @click="submitMs()">
- 确认
- </view>
- </view>
- </view>
- </u-popup>
- <u-toast ref="uToast" />
- <u-picker v-model="msTime" mode="time" :params="params" @confirm="mianshiConfirm" confirm-color="#00B88F">
- </u-picker>
- <!-- 面试邀请弹窗 -->
- <u-popup v-model="msshow" mode="center" z-index="998" border-radius="24" :mask-close-able="false" width="80%">
- <view class="mssTitle">
- 面试邀请
- </view>
- <view class="avatorm flex justify-center">
- <view class="avatorm-box flex justify-center">
- <block v-if="records.userEntity && records.userEntity.userAvatar">
- <image :src="records.userEntity.userAvatar"
- style="width: 100rpx;height: 100rpx;border-radius: 50%;" mode="">
- </image>
- </block>
- <block v-else>
- <image src="../../static/logo.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"
- mode="">
- </image>
- </block>
- <block v-if="records.company && records.company.companyLogo">
- <image :src="records.company.companyLogo"
- style="width: 100rpx;height: 100rpx;border-radius: 50%;" mode="">
- </image>
- </block>
- <block v-else>
- <image src="../../static/logo.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"
- mode="">
- </image>
- </block>
- </view>
- </view>
- <view class="avatorm flex justify-center">
- <view class="avatorm-box">
- <view class="avatorm-box-item flex">
- <view class="avatorm-box-item-t">
- 面试岗位:
- </view>
- <view class="avatorm-box-item-r">
- {{records.postPush?records.postPush.stationName:'未知'}}
- </view>
- </view>
- <view class="avatorm-box-item flex" v-if="records">
- <view class="avatorm-box-item-t">
- 面试时间:
- </view>
- <view class="avatorm-box-item-r">
- {{records.interviewDateTime}}
- </view>
- </view>
- <view class="avatorm-box-item flex" @click="goMapDap(records)">
- <view class="avatorm-box-item-t">
- 面试地点:
- </view>
- <view class="avatorm-box-item-r">
- {{records.detailedAddress}}
- <u-icon name="map-fill" color="#00B88F" size="28"></u-icon>
- </view>
- </view>
- <view class="avatorm-box-item flex">
- <view class="avatorm-box-item-t">
- 面试备注:
- </view>
- <view class="avatorm-box-item-r">
- {{records.remarks?records.remarks:'暂无'}}
- </view>
- </view>
- </view>
- </view>
- <view class="avatorm flex justify-center" v-if="records.company">
- <view class="avatorm-box flex justify-center">
- 来自{{records.company.companyName}}的面试邀请,是否接受?
- </view>
- </view>
- <view class="btnm flex justify-center" style="margin-bottom: 30rpx;">
- <view class="btn-box flex justify-around align-center">
- <view class="btn-close btnItem" @click="setJuJue(records)">
- 拒绝
- </view>
- <view class="btn-sub btnItem" @click="setJuJues(records)">
- 接受
- </view>
- </view>
- </view>
- </u-popup>
- </view>
- </template>
- <script>
- const RECONNECT_INTERVAL = 3000; // 延迟3秒后进行重连
- const HEARTBEAT_INTERVAL = 20000; // 每20秒发送一次心跳消息
- import configdata from '../../common/config.js';
- export default {
- data() {
- return {
- msshow: false,
- params: {
- year: false,
- month: true,
- day: true,
- hour: true,
- minute: true,
- second: false
- },
- msTime: false,
- miamshi: {
- interviewDateTime: '', //面试时间
- companyId: '', //公司id
- remarks: '', //面试备注
- userId: '', //面试者id
- postPushId: '', //岗位id
- province: '', //省
- city: '', //市
- county: '', //区
- lng: '', //经度
- lat: '', //纬度
- detailedAddress: '', //详细地址
- },
- tips: {
- text: '操作',
- color: 'black',
- fontSize: 28
- },
- activelist: [],
- showActive: false,
- list: [{
- text: '查看简历',
- color: 'black',
- fontSize: 28
- }, {
- text: '查看企业',
- color: 'black',
- fontSize: 28
- }],
- show: false,
- recordLength: 0,
- initPoint: {
- identifier: 0,
- Y: 0
- },
- showChangYong: false,
- changYongList: [],
- //播放语音相关参数
- AUDIO: uni.createInnerAudioContext(),
- playMsgid: null,
- VoiceTimer: null,
- //文字消息
- textMsg: '',
- //消息列表
- isHistoryLoading: false,
- scrollAnimation: false,
- scrollTop: 0,
- scrollToView: '',
- msgList: [],
- msgImgList: [],
- myuid: 0,
- //录音相关参数
- // #ifndef H5
- //H5不能录音
- RECORDER: uni.getRecorderManager(),
- // #endif
- isVoice: false,
- voiceTis: '按住 说话',
- recordTis: "手指上滑 取消发送",
- recording: false,
- willStop: false,
- initPoint: {
- identifier: 0,
- Y: 0
- },
- recordTimer: null,
- recordLength: 0,
- //播放语音相关参数
- AUDIO: uni.createInnerAudioContext(),
- playMsgid: null,
- VoiceTimer: null,
- // 抽屉参数
- popupLayerClass: '',
- // more参数
- hideMore: true,
- //表情定义
- hideEmoji: true,
- emojiList: [
- [{
- "url": "100.gif",
- alt: "[微笑]"
- }, {
- "url": "101.gif",
- alt: "[伤心]"
- }, {
- "url": "102.gif",
- alt: "[美女]"
- }, {
- "url": "103.gif",
- alt: "[发呆]"
- }, {
- "url": "104.gif",
- alt: "[墨镜]"
- }, {
- "url": "105.gif",
- alt: "[哭]"
- }, {
- "url": "106.gif",
- alt: "[羞]"
- }, {
- "url": "107.gif",
- alt: "[哑]"
- }, {
- "url": "108.gif",
- alt: "[睡]"
- }, {
- "url": "109.gif",
- alt: "[哭]"
- }, {
- "url": "110.gif",
- alt: "[囧]"
- }, {
- "url": "111.gif",
- alt: "[怒]"
- }, {
- "url": "112.gif",
- alt: "[调皮]"
- }, {
- "url": "113.gif",
- alt: "[笑]"
- }, {
- "url": "114.gif",
- alt: "[惊讶]"
- }, {
- "url": "115.gif",
- alt: "[难过]"
- }, {
- "url": "116.gif",
- alt: "[酷]"
- }, {
- "url": "117.gif",
- alt: "[汗]"
- }, {
- "url": "118.gif",
- alt: "[抓狂]"
- }, {
- "url": "119.gif",
- alt: "[吐]"
- }, {
- "url": "120.gif",
- alt: "[笑]"
- }, {
- "url": "121.gif",
- alt: "[快乐]"
- }, {
- "url": "122.gif",
- alt: "[奇]"
- }, {
- "url": "123.gif",
- alt: "[傲]"
- }],
- [{
- "url": "124.gif",
- alt: "[饿]"
- }, {
- "url": "125.gif",
- alt: "[累]"
- }, {
- "url": "126.gif",
- alt: "[吓]"
- }, {
- "url": "127.gif",
- alt: "[汗]"
- }, {
- "url": "128.gif",
- alt: "[高兴]"
- }, {
- "url": "129.gif",
- alt: "[闲]"
- }, {
- "url": "130.gif",
- alt: "[努力]"
- }, {
- "url": "131.gif",
- alt: "[骂]"
- }, {
- "url": "132.gif",
- alt: "[疑问]"
- }, {
- "url": "133.gif",
- alt: "[秘密]"
- }, {
- "url": "134.gif",
- alt: "[乱]"
- }, {
- "url": "135.gif",
- alt: "[疯]"
- }, {
- "url": "136.gif",
- alt: "[哀]"
- }, {
- "url": "137.gif",
- alt: "[鬼]"
- }, {
- "url": "138.gif",
- alt: "[打击]"
- }, {
- "url": "139.gif",
- alt: "[bye]"
- }, {
- "url": "140.gif",
- alt: "[汗]"
- }, {
- "url": "141.gif",
- alt: "[抠]"
- }, {
- "url": "142.gif",
- alt: "[鼓掌]"
- }, {
- "url": "143.gif",
- alt: "[糟糕]"
- }, {
- "url": "144.gif",
- alt: "[恶搞]"
- }, {
- "url": "145.gif",
- alt: "[什么]"
- }, {
- "url": "146.gif",
- alt: "[什么]"
- }, {
- "url": "147.gif",
- alt: "[累]"
- }],
- [{
- "url": "148.gif",
- alt: "[看]"
- }, {
- "url": "149.gif",
- alt: "[难过]"
- }, {
- "url": "150.gif",
- alt: "[难过]"
- }, {
- "url": "151.gif",
- alt: "[坏]"
- }, {
- "url": "152.gif",
- alt: "[亲]"
- }, {
- "url": "153.gif",
- alt: "[吓]"
- }, {
- "url": "154.gif",
- alt: "[可怜]"
- }, {
- "url": "155.gif",
- alt: "[刀]"
- }, {
- "url": "156.gif",
- alt: "[水果]"
- }, {
- "url": "157.gif",
- alt: "[酒]"
- }, {
- "url": "158.gif",
- alt: "[篮球]"
- }, {
- "url": "159.gif",
- alt: "[乒乓]"
- }, {
- "url": "160.gif",
- alt: "[咖啡]"
- }, {
- "url": "161.gif",
- alt: "[美食]"
- }, {
- "url": "162.gif",
- alt: "[动物]"
- }, {
- "url": "163.gif",
- alt: "[鲜花]"
- }, {
- "url": "164.gif",
- alt: "[枯]"
- }, {
- "url": "165.gif",
- alt: "[唇]"
- }, {
- "url": "166.gif",
- alt: "[爱]"
- }, {
- "url": "167.gif",
- alt: "[分手]"
- }, {
- "url": "168.gif",
- alt: "[生日]"
- }, {
- "url": "169.gif",
- alt: "[电]"
- }, {
- "url": "170.gif",
- alt: "[炸弹]"
- }, {
- "url": "171.gif",
- alt: "[刀子]"
- }],
- [{
- "url": "172.gif",
- alt: "[足球]"
- }, {
- "url": "173.gif",
- alt: "[瓢虫]"
- }, {
- "url": "174.gif",
- alt: "[翔]"
- }, {
- "url": "175.gif",
- alt: "[月亮]"
- }, {
- "url": "176.gif",
- alt: "[太阳]"
- }, {
- "url": "177.gif",
- alt: "[礼物]"
- }, {
- "url": "178.gif",
- alt: "[抱抱]"
- }, {
- "url": "179.gif",
- alt: "[拇指]"
- }, {
- "url": "180.gif",
- alt: "[贬低]"
- }, {
- "url": "181.gif",
- alt: "[握手]"
- }, {
- "url": "182.gif",
- alt: "[剪刀手]"
- }, {
- "url": "183.gif",
- alt: "[抱拳]"
- }, {
- "url": "184.gif",
- alt: "[勾引]"
- }, {
- "url": "185.gif",
- alt: "[拳头]"
- }, {
- "url": "186.gif",
- alt: "[小拇指]"
- }, {
- "url": "187.gif",
- alt: "[拇指八]"
- }, {
- "url": "188.gif",
- alt: "[食指]"
- }, {
- "url": "189.gif",
- alt: "[ok]"
- }, {
- "url": "190.gif",
- alt: "[情侣]"
- }, {
- "url": "191.gif",
- alt: "[爱心]"
- }, {
- "url": "192.gif",
- alt: "[蹦哒]"
- }, {
- "url": "193.gif",
- alt: "[颤抖]"
- }, {
- "url": "194.gif",
- alt: "[怄气]"
- }, {
- "url": "195.gif",
- alt: "[跳舞]"
- }],
- [{
- "url": "196.gif",
- alt: "[发呆]"
- }, {
- "url": "197.gif",
- alt: "[背着]"
- }, {
- "url": "198.gif",
- alt: "[伸手]"
- }, {
- "url": "199.gif",
- alt: "[耍帅]"
- }, {
- "url": "200.png",
- alt: "[微笑]"
- }, {
- "url": "201.png",
- alt: "[生病]"
- }, {
- "url": "202.png",
- alt: "[哭泣]"
- }, {
- "url": "203.png",
- alt: "[吐舌]"
- }, {
- "url": "204.png",
- alt: "[迷糊]"
- }, {
- "url": "205.png",
- alt: "[瞪眼]"
- }, {
- "url": "206.png",
- alt: "[恐怖]"
- }, {
- "url": "207.png",
- alt: "[忧愁]"
- }, {
- "url": "208.png",
- alt: "[眨眉]"
- }, {
- "url": "209.png",
- alt: "[闭眼]"
- }, {
- "url": "210.png",
- alt: "[鄙视]"
- }, {
- "url": "211.png",
- alt: "[阴暗]"
- }, {
- "url": "212.png",
- alt: "[小鬼]"
- }, {
- "url": "213.png",
- alt: "[礼物]"
- }, {
- "url": "214.png",
- alt: "[拜佛]"
- }, {
- "url": "215.png",
- alt: "[力量]"
- }, {
- "url": "216.png",
- alt: "[金钱]"
- }, {
- "url": "217.png",
- alt: "[蛋糕]"
- }, {
- "url": "218.png",
- alt: "[彩带]"
- }, {
- "url": "219.png",
- alt: "[礼物]"
- }, ]
- ],
- msg: false,
- type4: [],
- listRight: {
- chat: {
- userHead: ""
- },
- content: "",
- messageType: 1,
- type: 1
- },
- content: '',
- chatId: '',
- type: 1,
- ListItem: [],
- index: 0,
- page: 1,
- size: 100,
- byUserId: 0,
- imageUrl: '/static/logo.png',
- chatConversationId: 0,
- userId: 0,
- byNickName: '',
- countDown: '',
- messages: '',
- scrollInto: '',
- tUserId: '', //对方id
- companyId: '', //对方企业的id
- activeInfo: {},
- userType: '',
- postPushId: '', //岗位id
- resumesId: '', //简历id
- postPushInfo: {}, //岗位信息
- resumesInfo: {}, //简历信息
- isSendPhone: false, //是否交换手机号
- isSendWx: false, //是否交换微信
- mianshiShow: false, //约面试弹窗
- records: {}, //面试邀请信息
- recordsInter: '',
- mapsValue: '',
- showModal: true,
- arr: [],
- old: {
- scrollTop: 0 //记录旧的scrollTop值
- },
- isOpen: false, //scoket是否正在链接
- socketTimer: null, //心跳定时器
- isVip: false, //是否是会员
- isVideo: false, //是否打视频
- };
- },
- onUnload() {
- uni.closeSocket()
- uni.hideLoading()
- clearInterval(this.recordsInter)
- this.recordsInter = null
- clearInterval(this.socketTimer)
- this.socketTimer = null
- },
- onLoad(d) {
- console.log(d, 'zzzzzzzzz')
- if (d.postPushId) {
- this.postPushId = d.postPushId
- }
- if (d.resumesId) {
- this.resumesId = d.resumesId
- }
- this.userType = uni.getStorageSync('userType')
- if (this.userType == 1) {
- this.postPushId = d.postPushId
- //获取岗位信息
- this.getPostPushInfo(this.postPushId)
- this.getInterviewList()
- } else {
- this.resumesId = d.resumesId
- //获取简历信息
- this.getResumesInfo(this.resumesId)
- }
- this.userId = this.$queue.getData('userId');
- this.getMessage();
- this.connect();
- this.byNickName = d.byNickName;
- this.byUserId = d.byUserId;
- if (d.chatConversationId) {
- this.chatConversationId = d.chatConversationId;
- this.getTimeOrListItem1();
- } else {
- this.insertChat();
- }
- let image_url = this.$queue.getData('avatar');
- if (image_url && image_url !== 'undefined') {
- this.imageUrl = image_url;
- } else {
- this.imageUrl = '/static/logo.png';
- }
- // this.emojiList.forEach(d =>{
- // d.forEach(e =>{
- // console.log('/static/emoji/' + e.url)
- // });
- // });
- //语音自然播放结束
- this.AUDIO.onEnded((res) => {
- this.playMsgid = null;
- });
- // #ifndef H5
- //录音开始事件
- this.RECORDER.onStart((e) => {
- this.recordBegin(e);
- })
- //录音结束事件
- this.RECORDER.onStop((e) => {
- this.recordEnd(e);
- })
- // #endif
- },
- onShow() {
- if (this.chatConversationId) {
- this.getTimeOrListItem1();
- }
- // #ifdef MP-WEIXIN
- this.$Request.getT('/app/common/type/342').then(res => { //面试通知
- if (res.code == 0) {
- if (res.data && res.data.value) {
- this.arr.push(res.data.value)
- }
- }
- })
- if (this.showModal) {
- this.openMsg()
- }
- // #endif
- this.userType = uni.getStorageSync('userType')
- this.getChangYong();
- // if (this.isOpen) {
- // this.connect();
- // }
- if (this.userType == 1) {
- //获取用户是否有该岗位待接受的面试邀请
- this.recordsInter = setInterval(() => {
- this.getInterviewList()
- }, 5000)
- }
- this.getUserInfo()
- },
- onBackPress() {
- this.AUDIO.stop();
- this.playMsgid = null;
- },
- onHide() {
- // this.AUDIO.stop();
- // this.playMsgid = null;
- // uni.closeSocket()
- // clearInterval(this.recordsInter)
- // this.recordsInter = null
- },
- methods: {
- getUserInfo() {
- this.$Request.get("/app/user/selectUserById").then(res => {
- if (res.code == 0) {
- if (this.userType == 1) { //用户
- if (res.data.isUserVip == 1) { //判断用户是否是vip
- this.isVip = true
- } else {
- this.isVip = false
- }
- } else { //企业
- if (res.data.isCompanyVip == 1) { //判断企业用户是否是vip
- this.isVip = true
- } else {
- this.isVip = false
- }
- }
- }
- })
- },
- /**
- * @param {Object} type 1:语音 2视频
- */
- sendCallVideo(type) {
- if (!this.isVip) {
- uni.showModal({
- title: '提示',
- content: type == 1 ? '语音为会员专属功能,请开通会员!' : '视频为会员专属功能,请开通会员!',
- confirmText: '开通会员',
- cancelText: '取消',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- uni.navigateTo({
- url: '/my/vip/index'
- })
- }
- }
- })
- return
- }
- if (this.isVideo) {
- return
- }
- this.isVideo = true
- let data = {
- focusedUserId: this.byUserId, //对方的userId
- messageType: type == 1 ? 21 : 20,
- userId: uni.getStorageSync('userId'), //我的userId
- userType: this.userType, //1:用户 2:企业,
- postPushId: this.postPushId,
- resumesId: this.resumesId
- }
- let that = this
- this.$Request.postJson('/app/chat/insertChatConversationByChatVideo', data).then(res => {
- if (res.code == 0) {
- //isRol 1:发起人 2:收到人
- console.log(res)
- uni.navigateTo({
- url: '/my/videoVoice/videoVoice?byUserId=' + this.byUserId +
- '&chatContentId=' + res.data.chatContentId +
- '&isRol=1&messageType=' + data.messageType + '&chatConversationId=' + res
- .data
- .chatConversationId + '&userType=' + data.userType + '&postPushId=' + data
- .postPushId + '&resumesId=' + data.resumesId,
- success() {
- uni.setStorageSync('isDial', true)
- uni.setStorageSync('videoStatus', 1)
- that.isVideo = false
- }
- })
- } else {
- that.isVideo = false
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- })
- },
- scroll(e) {
- this.old.scrollTop = e.detail.scrollTop
- },
- // 开启订阅消息
- openMsg() {
- console.log('订阅消息')
- var that = this
- uni.getSetting({
- withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
- success(ret) {
- console.log(ret.subscriptionsSetting, '------------------')
- // if (ret.subscriptionsSetting.itemSettings && Object.keys(ret.subscriptionsSetting.itemSettings).length == 2) {
- if (ret.subscriptionsSetting.itemSettings) {
- uni.setStorageSync('sendMsg', true)
- uni.openSetting({ // 打开设置页
- success(rea) {
- console.log(rea.authSetting)
- }
- });
- } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
- console.log(99999)
- uni.setStorageSync('sendMsg', false)
- uni.showModal({
- title: '提示',
- content: '为了更好的体验,请绑定消息推送',
- confirmText: '确定',
- cancelText: '取消',
- confirmColor: '#00B88F',
- success: function(res) {
- if (res.confirm) {
- console.log(that.arr)
- wx.requestSubscribeMessage({
- tmplIds: that.arr,
- success(re) {
- console.log(JSON.stringify(re),
- '++++++++++++++')
- var datas = JSON.stringify(re);
- if (datas.indexOf("accept") != -1) {
- console.log(re)
- uni.setStorageSync('sendMsg', true)
- }
- },
- fail: (res) => {
- console.log(res)
- }
- })
- uni.setStorageSync('sendMsg', true)
- console.log('确认')
- that.showModal = false
- } else if (res.cancel) {
- console.log('取消')
- uni.setStorageSync('sendMsg', false)
- that.showModal = true
- }
- }
- })
- }
- }
- })
- },
- /**
- * @param {Object} info 内容
- * @param {Object} userType 用户类型
- * @param {Object} type 参数类型
- */
- copyss(info, userType, type) {
- let content = ''
- switch (type) {
- //复制手机号
- case 'phone':
- if (userType == 1) {
- content = JSON.parse(info).companyPhone
- } else {
- content = JSON.parse(info).userPhone
- }
- break;
- //复制微信号
- case 'wx':
- if (userType == 1) {
- content = JSON.parse(info).companyWx
- } else {
- content = JSON.parse(info).userWx
- }
- break;
- default:
- break;
- }
- this.copy(content)
- },
- openMapss(latitude, longitude, name) {
- uni.openLocation({
- latitude: latitude - 0, //要去的纬度-地址
- longitude: longitude - 0, //要去的经度-地址
- name: name, //地址名称
- address: name, //详细地址名称
- success: function() {
- console.log('导航成功');
- },
- fail: function(error) {
- console.log(error)
- }
- });
- },
- goMapss() {
- let that = this
- uni.chooseLocation({
- success: function(res) {
- console.log('位置名称:' + res.name);
- console.log('详细地址:' + res.address);
- console.log('纬度:' + res.latitude);
- console.log('经度:' + res.longitude);
- let mapsValue = JSON.stringify(res);
- that.setChatSave(18, mapsValue)
- // console.log(typeof(res))
- // return
- that.showMore();
- }
- });
- },
- //接受邀请
- setJuJues(item) {
- // #ifdef MP-WEIXIN
- if (uni.getStorageSync('sendMsg')) {
- // console.log('授权+1')
- wx.requestSubscribeMessage({
- tmplIds: this.arr,
- success(re) {
- // console.log(JSON.stringify(re), 111111111111)
- var datas = JSON.stringify(re);
- if (datas.indexOf("accept") != -1) {
- // console.log(re)
- }
- },
- fail: (res) => {
- // console.log(res)
- }
- })
- }
- // #endif
- let that = this
- uni.showModal({
- title: '提示',
- content: '确定接受来自' + item.company.companyName + '的面试邀请吗?',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- let data = {
- recordId: item.recordId,
- type: 1
- }
- that.$Request.getT("/app/interviewRecord/userUpdateInter", data).then(res => {
- if (res.code == 0) {
- uni.showToast({
- // title: '已接受来自' + item.company.companyName + '的面试邀请'
- title: '已接受面试邀请'
- })
- that.msshow = false
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- })
- }
- }
- })
- },
- //去导航
- goMapDap(info) {
- uni.openLocation({
- latitude: info.lat,
- longitude: info.lng,
- address: info.detailedAddress,
- name: info.detailedAddress,
- complete(ret) {
- }
- })
- },
- //拒绝邀请
- setJuJue(item) {
- let that = this
- uni.showModal({
- title: '提示',
- content: '确定拒绝来自' + item.company.companyName + '的面试邀请吗?',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- let data = {
- recordId: item.recordId,
- type: 2
- }
- that.$Request.getT("/app/interviewRecord/userUpdateInter", data).then(res => {
- if (res.code == 0) {
- uni.showToast({
- title: '已拒绝来自' + item.company.companyName + '的面试邀请'
- })
- that.msshow = false
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- })
- }
- }
- })
- },
- //获取用户是否有面试记录
- getInterviewList() {
- let data = {
- userId: uni.getStorageSync('userId'),
- status: 1,
- postPushId: this.postPushId
- }
- this.$Request.getT("/app/interviewRecord/interviewList", data).then(res => {
- if (res.code == 0) {
- if ((res.data.records).length > 0) {
- this.records = res.data.records[0]
- this.msshow = true
- } else {
- this.msshow = false
- }
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- this.msshow = false
- }
- })
- },
- submitMs() {
- if (!this.miamshi.interviewDateTime) {
- this.$refs.uToast.show({
- title: '请选择面试时间',
- type: 'default',
- position: 'bottom'
- })
- return
- }
- if (!this.miamshi.detailedAddress) {
- this.$refs.uToast.show({
- title: '请选择面试地点',
- type: 'default',
- position: 'bottom'
- })
- return
- }
- let that = this
- uni.showModal({
- title: '提示',
- content: '确定发起面试邀请吗?',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- let data = {
- interviewDateTime: that.miamshi.interviewDateTime + ':00',
- companyId: uni.getStorageSync('companyId'),
- remarks: that.miamshi.remarks,
- userId: that.byUserId, //求职者id
- postPushId: that.postPushId,
- province: that.miamshi.province,
- city: that.miamshi.city,
- county: that.miamshi.county,
- lng: that.miamshi.lng,
- lat: that.miamshi.lat,
- detailedAddress: that.miamshi.detailedAddress
- }
- that.$Request.postJson("/app/interviewRecord/saveInterview", data).then(res => {
- if (res.code == 0) {
- uni.showToast({
- title: '面试邀请已发送'
- })
- that.mianshiShow = false
- } else {
- that.mianshiShow = false
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- })
- }
- }
- })
- },
- //关闭弹窗的时候清空表单的值
- cleanMs() {
- this.miamshi = {
- interviewDateTime: '', //面试时间
- companyId: '', //公司id
- remarks: '', //面试备注
- userId: '', //面试者id
- postPushId: '', //岗位id
- province: '', //省
- city: '', //市
- county: '', //区
- lng: '', //经度
- lat: '', //纬度
- detailedAddress: '', //详细地址
- }
- },
- // 点击调起地图选择位置
- goMap() {
- let that = this
- uni.chooseLocation({
- success: function(res) {
- let arrress = res.address
- let reg = /.+?(省|市|自治区|自治州|县|区)/g;
- let adds = arrress.match(reg)
- console.log(adds)
- that.miamshi.province = adds[0]
- that.miamshi.city = adds[1]
- that.miamshi.county = adds[2]
- that.miamshi.detailedAddress = res.address + '' + res.name
- that.miamshi.lat = res.latitude
- that.miamshi.lng = res.longitude
- }
- });
- },
- //选择面试时间
- mianshiConfirm(e) {
- //获取当前时间的年份
- let date = new Date()
- let year = date.getFullYear()
- this.miamshi.interviewDateTime = year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute
- },
- mianshiF() {
- // #ifdef MP-WEIXIN
- if (uni.getStorageSync('sendMsg')) {
- // console.log('授权+1')
- wx.requestSubscribeMessage({
- tmplIds: this.arr,
- success(re) {
- // console.log(JSON.stringify(re), 111111111111)
- var datas = JSON.stringify(re);
- if (datas.indexOf("accept") != -1) {
- // console.log(re)
- }
- },
- fail: (res) => {
- // console.log(res)
- }
- })
- }
- // #endif
- let data = {
- userId: this.byUserId,
- postPushId: this.postPushId
- }
- this.$Request.getT("/app/interviewRecord/isSendView", data).then(res => {
- if (res.code == 0) {
- if (res.data) {
- this.mianshiShow = true
- } else {
- uni.showToast({
- title: '已发送过面试邀请',
- icon: 'none'
- })
- this.mianshiShow = false
- }
- } else {
- this.mianshiShow = false
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- })
- },
- //请求拒绝
- refuseFun(id) {
- let that = this
- uni.showModal({
- title: '提示',
- content: '确定拒绝吗?',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- let data = {
- chatContentId: id
- }
- that.$Request.getT("/app/chat/refuseReqs", data).then(res => {
- if (res.code == 0) {
- uni.showToast({
- title: '已拒绝'
- })
- that.setChatSave(24)
- that.getTimeOrListItem1()
- that.getStatusInfo()
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- })
- }
- }
- })
- },
- // 同意简历请求并发送简历
- sendResumesSave() {
- let that = this
- let data = {
- to: this.byUserId, //接收人的userId
- postPushId: this.postPushId, //岗位id
- }
- this.$Request.postT("/app/resumes/sendResumes", data).then(res => {
- if (res.code == 0) {
- uni.showToast({
- title: '简历已发送',
- })
- that.setChatSave(24)
- that.getTimeOrListItem1()
- that.getStatusInfo()
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none'
- })
- }
- })
- },
- resumesTy() {
- let that = this
- uni.showModal({
- title: '提示',
- content: '确定发送简历给对方?',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- that.sendResumesSave()
- }
- }
- })
- },
- //求简历
- giveSendResumes() {
- let that = this
- uni.showModal({
- title: '提示',
- content: '是否将简历请求发送给对方?,对方同意后将会收到对方的简历',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- that.setChatSave(9)
- }
- }
- })
- },
- //发简历
- sendResumes() {
- let that = this
- uni.showModal({
- title: '提示',
- content: '是否将简历发送给对方?',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- that.sendResumesSave()
- }
- }
- })
- },
- //获取交换状态
- getStatusInfo() {
- let data = {
- chatConversationId: this.chatConversationId
- }
- this.$Request.getT("/app/chat/getConversationInfo", data).then(res => {
- if (res.code == 0) {
- if (res.data.isSendWx) {
- this.isSendWx = true
- } else {
- this.isSendWx = false
- }
- if (res.data.isSendPhone) {
- this.isSendPhone = true
- } else {
- this.isSendPhone = false
- }
- }
- })
- },
- //交换微信号弹窗
- currentWchat() {
- let that = this
- if (!uni.getStorageSync('weChatNum')) {
- uni.showModal({
- title: '提示',
- content: '请先再个人信息页面完善微信号后操作',
- confirmColor: '#00B88F',
- confirmText: '去完善',
- complete(re) {
- if (re.confirm) {
- uni.navigateTo({
- url: '/pages/my/userinfo'
- })
- }
- }
- })
- return
- }
- if (this.isSendWx == false) {
- uni.showModal({
- title: '确定与对方交换微信吗?',
- content: '确定后,微信交换请求将发送给对方,对方同意后将会看到彼此的微信号',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- that.setChatSave(6)
- }
- }
- })
- } else {
- uni.showToast({
- title: '已交换过微信号,请查看聊天记录',
- icon: 'none'
- })
- }
- },
- //同意交换手机号/微信
- tongyi(messageType, chatContentId) {
- if (messageType == 6 && !uni.getStorageSync('weChatNum')) {
- uni.showModal({
- title: '提示',
- content: '请先再个人信息页面完善微信号后操作',
- confirmColor: '#00B88F',
- confirmText: '去完善',
- complete(re) {
- if (re.confirm) {
- uni.navigateTo({
- url: '/pages/my/userinfo'
- })
- }
- }
- })
- return
- }
- let that = this
- uni.showModal({
- title: '提示',
- content: messageType == 5 ? '同意后将交换手机号,是否同意?' : '同意后将交换微信号,是否同意?',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- let data = {
- messageType: messageType,
- chatContentId: chatContentId
- }
- that.$Request.postT("/app/chat/sendPhoneOrWx", data).then(res => {
- if (res.code == 0) {
- that.setChatSave(24)
- that.getTimeOrListItem1()
- that.getStatusInfo()
- }
- })
- }
- }
- })
- },
- //交换手机号弹窗
- currentPhone() {
- let that = this
- if (this.isSendPhone == false) {
- uni.showModal({
- title: '确定与对方交换电话吗?',
- content: '确定后,电话交换请求将发送给对方,对方同意后将会看到彼此的手机号',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- that.setChatSave(5)
- }
- }
- })
- } else {
- uni.showToast({
- title: '已交换过手机号,请查看聊天记录',
- icon: 'none'
- })
- }
- },
- goNav(url) {
- uni.navigateTo({
- url: url
- })
- },
- //获取简历数据
- getResumesInfo(id) {
- this.$Request.getT("/app/resumes/selectResumesByResumesId", {
- userId: uni.getStorageSync('userId'),
- resumesId: id,
- companyId: uni.getStorageSync('companyId')
- }).then(res => {
- if (res.code == 0) {
- let title = res.data.resumesName
- uni.setNavigationBarTitle({
- title: title
- })
- this.resumesInfo = res.data
- // this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare.split(',')
- }
- })
- },
- gotoInfo(id) {
- uni.navigateTo({
- url: '/pages/index/game/order?postPushId=' + id
- })
- },
- //获取岗位数据
- getPostPushInfo(id) {
- this.$Request.getT("/app/postPush/selectPostPushDetails", {
- userId: uni.getStorageSync('userId'),
- postPushId: id
- }).then(res => {
- if (res.code == 0) {
- let title = res.data.company.companyName
- uni.setNavigationBarTitle({
- title: title
- })
- this.postPushInfo = res.data
- this.postPushInfo.positionWelfare = this.postPushInfo.positionWelfare.split(',')
- }
- })
- },
- caozuoActive(item, type) {
- if (type == 1) {
- this.activelist = [{
- text: '复制',
- color: 'black',
- fontSize: 24
- }, {
- text: '撤回',
- color: 'black',
- fontSize: 24
- }]
- } else {
- this.activelist = [{
- text: '撤回',
- color: 'black',
- fontSize: 24
- }]
- }
- this.activeInfo = item
- this.showActive = true
- },
- activeclick(index) {
- if (this.activelist[index].text == '复制') { // 复制
- this.copy(this.activeInfo.content)
- } else { //撤回
- let t2 = this.activeInfo.createTimes; //格式不正确需要转换
- let aftert2 = new Date(t2.replace(/-/g, "/")); //转换
- let data = new Date(); //获取当前时间
- let times = data.getTime() - aftert2.getTime(); //时间差的毫秒数
- //计算分钟数
- let minu = parseInt(times / (1000 * 60))
- if (minu > 5) {
- uni.showToast({
- title: '超过五分钟无法撤回',
- icon: 'none'
- })
- } else {
- let that = this
- uni.showModal({
- title: '提示',
- content: '确定要撤回吗?',
- confirmColor: '#00B88F',
- complete(ret) {
- if (ret.confirm) {
- that.$Request.postT('/app/chat/deleteChatContentById', {
- chatContentId: that.activeInfo.chatContentId
- })
- .then(res => {
- if (res.code == 0) {
- uni.showToast({
- title: '已撤回',
- icon: 'none'
- })
- that.getTimeOrListItem1();
- }
- });
- }
- }
- })
- }
- }
- },
- //跳转
- click(index) {
- console.log(index)
- switch (index) {
- case 0: //简历
- uni.navigateTo({
- url: '/pages/index/game/orderDet?userId=' + this.tUserId
- })
- break;
- case 1: //企业
- uni.navigateTo({
- url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + this.companyId + '&type=yes'
- })
- break;
- default:
- break;
- }
- },
- //消息公告
- getMessage() {
- this.$Request.getT('/app/common/type/311')
- .then(res => {
- if (res.code == 0) {
- this.messages = res.data.value
- }
- });
- },
- showChangYongSelect() {
- this.showMore();
- this.showChangYong = !this.showChangYong;
- },
- selConfirm(e) {
- // this.form.game = e[0].label
- // this.form.gameId = e[0].value
- this.content = e[0].label;
- this.setChatSave(1);
- },
- getChangYong() {
- this.$Request.getT('/app/message/selectMessageByUserId?page=1&limit=100&state=20')
- .then(res => {
- if (res.code == 0) {
- this.changYongList = [];
- res.data.list.forEach(d => {
- let data = {
- label: d.content,
- value: d.id
- }
- this.changYongList.push(data);
- });
- }
- });
- },
- goGuanZhu(item) {
- this.hideDrawer();
- this.tUserId = item.userId
- this.$Request.get('/app/user/selectUserByIds', {
- 'userId': item.userId
- }).then(res => {
- if (res.code == 0) {
- if (res.data.userType == 1 || res.data.userType == null) { //个人
- uni.navigateTo({
- url: '/pages/index/game/orderDet?userId=' + item.userId
- })
- } else {
- this.$Request.get('/app/resumes/selectResumesByUserIds', {
- 'userId': item.userId
- }).then(ret => {
- if (ret.code == 0) {
- if (ret.data && JSON.stringify(ret.data) != '{}') { //有简历则选择
- this.$Request.get('/app/company/selectCompanyByUserIds', {
- userId: item.userId
- }).then(ree => {
- if (ree.code == 0) {
- this.companyId = ree.data.companyId
- }
- });
- this.show = true
- } else { //没有简历直接跳转企业详情
- this.$Request.get('/app/company/selectCompanyByUserIds', {
- userId: item.userId
- }).then(ree => {
- if (ree.code == 0) {
- uni.navigateTo({
- url: '/my/enterpriseInfo/enterpriseInfo?companyId=' +
- ree.data.companyId + '&type=yes'
- })
- }
- });
- }
- }
- });
- }
- }
- });
- //去关注页面
- },
- //添加常用语/自动回复
- goAdd() {
- this.showMore();
- uni.navigateTo({
- url: '/pages/msg/addmsg'
- });
- },
- goHistory() {
- this.showMore();
- uni.navigateTo({
- url: '/pages/msg/chathistory?chatConversationId=' + this.chatConversationId
- });
- },
- insertChat() {
- let userId = this.$queue.getData('userId');
- let data = {
- focusedUserId: this.byUserId,
- userId: userId
- }
- this.$Request.postJson('/appChat/insertChatConversation', data).then(res => {
- if (res.code == 0 && res.data) {
- this.chatConversationId = res.data.chatConversationId;
- this.getTimeOrListItem1();
- }
- });
- },
- //更多功能(点击+弹出)
- showMore() {
- this.isVoice = false;
- this.hideEmoji = true;
- if (this.hideMore) {
- this.hideMore = false;
- this.openDrawer();
- } else {
- this.hideDrawer();
- }
- },
- // 打开抽屉
- openDrawer() {
- this.popupLayerClass = 'showLayer';
- },
- // 隐藏抽屉
- hideDrawer() {
- this.popupLayerClass = '';
- setTimeout(() => {
- this.hideMore = true;
- this.hideEmoji = true;
- }, 150);
- },
- // 选择表情
- chooseEmoji() {
- this.hideMore = true;
- if (this.hideEmoji) {
- this.hideEmoji = false;
- this.openDrawer();
- } else {
- this.hideDrawer();
- }
- },
- //添加表情
- addEmoji(em) {
- this.textMsg += em.alt;
- },
- //获取焦点,如果不是选表情ing,则关闭抽屉
- textareaFocus() {
- if (this.popupLayerClass == 'showLayer' && this.hideMore == false) {
- this.hideDrawer();
- }
- },
- //替换表情符号为图片
- replaceEmoji(str) {
- let replacedStr = str.replace(/\[([^(\]|\[)]*)\]/g, (item, index) => {
- console.log("item: " + item);
- for (let i = 0; i < this.emojiList.length; i++) {
- let row = this.emojiList[i];
- for (let j = 0; j < row.length; j++) {
- let EM = row[j];
- if (EM.alt == item) {
- //在线表情路径,图文混排必须使用网络路径,请上传一份表情到你的服务器后再替换此路径
- //比如你上传服务器后,你的100.gif路径为https://www.xxx.com/emoji/100.gif 则替换onlinePath填写为https://www.xxx.com/emoji/
- let onlinePath = 'https://s2.ax1x.com/2019/04/12/'
- let imgstr = '<img src="' + onlinePath + this.onlineEmoji[EM.url] + '">';
- console.log("imgstr: " + imgstr);
- return imgstr;
- }
- }
- }
- });
- return '<div style="display: flex;align-items: center;word-wrap:break-word;">' + replacedStr + '</div>';
- },
- // 播放语音
- playVoice(msg, index) {
- console.log(msg)
- this.playMsgid = index;
- this.AUDIO.src = msg;
- this.$nextTick(function() {
- this.AUDIO.play();
- });
- },
- // 录音开始
- voiceBegin(e) {
- if (e.touches.length > 1) {
- return;
- }
- this.initPoint.Y = e.touches[0].clientY;
- this.initPoint.identifier = e.touches[0].identifier;
- this.RECORDER.start({
- format: "mp3"
- }); //录音开始,
- },
- //录音开始UI效果
- recordBegin(e) {
- this.recording = true;
- this.voiceTis = '松开 结束';
- this.recordLength = 0;
- this.recordTimer = setInterval(() => {
- this.recordLength++;
- }, 1000)
- },
- // 录音被打断
- voiceCancel() {
- this.recording = false;
- this.voiceTis = '按住 说话';
- this.recordTis = '手指上滑 取消发送'
- this.willStop = true; //不发送录音
- this.RECORDER.stop(); //录音结束
- },
- // 录音中(判断是否触发上滑取消发送)
- voiceIng(e) {
- if (!this.recording) {
- return;
- }
- let touche = e.touches[0];
- //上滑一个导航栏的高度触发上滑取消发送
- if (this.initPoint.Y - touche.clientY >= uni.upx2px(100)) {
- this.willStop = true;
- this.recordTis = '松开手指 取消发送'
- } else {
- this.willStop = false;
- this.recordTis = '手指上滑 取消发送'
- }
- },
- // 结束录音
- voiceEnd(e) {
- if (!this.recording) {
- return;
- }
- this.recording = false;
- this.voiceTis = '按住 说话';
- this.recordTis = '手指上滑 取消发送'
- this.RECORDER.stop(); //录音结束
- },
- //录音结束(回调文件)
- recordEnd(e) {
- clearInterval(this.recordTimer);
- if (!this.willStop) {
- this.$queue.showLoading('发送中...')
- console.log("e: " + JSON.stringify(e));
- let msg = {
- length: 0,
- url: e.tempFilePath
- }
- let min = parseInt(this.recordLength / 60);
- let sec = this.recordLength % 60;
- min = min < 10 ? '0' + min : min;
- sec = sec < 10 ? '0' + sec : sec;
- msg.length = min + ':' + sec;
- console.log('msg.length___:' + msg.length)
- uni.uploadFile({ // 上传接口
- url: this.config("APIHOST1") + '/alioss/upload', //真实的接口地址
- filePath: e.tempFilePath,
- name: 'file',
- success: (uploadFileRes) => {
- uni.hideLoading();
- this.content = JSON.parse(uploadFileRes.data).data;
- console.log("语音:" + this.content)
- this.setChatSave(3, msg.length);
- uni.hideLoading();
- }
- });
- } else {
- console.log('取消发送录音');
- }
- this.willStop = false;
- },
- // 切换语音/文字输入
- switchVoice() {
- this.hideDrawer();
- this.isVoice = this.isVoice ? false : true;
- },
- copy(content) {
- uni.showModal({
- title: '温馨提示',
- content: '确认要复制此文字吗?',
- showCancel: true,
- cancelText: '取消',
- confirmText: '确认',
- confirmColor: '#00B88F',
- success: res => {
- if (res.confirm) {
- uni.setClipboardData({
- data: content,
- success: r => {
- this.$queue.showToast('复制成功');
- }
- });
- }
- }
- });
- },
- h5Copy(content) {
- if (!document.queryCommandSupported('copy')) {
- // 不支持
- return false
- }
- let textarea = document.createElement("textarea")
- textarea.value = content
- textarea.readOnly = "readOnly"
- document.body.appendChild(textarea)
- textarea.select() // 选择对象
- textarea.setSelectionRange(0, content.length) //核心
- let result = document.execCommand("copy") // 执行浏览器复制命令
- textarea.remove()
- return result
- },
- getDateDiff(data) {
- // 传进来的data必须是日期格式,不能是时间戳
- //var str = data;
- //将字符串转换成时间格式
- var timePublish = new Date(data);
- var timeNow = new Date();
- var minute = 1000 * 60;
- var hour = minute * 60;
- var day = hour * 24;
- var month = day * 30;
- var result = "2";
- var diffValue = timeNow - timePublish;
- var diffMonth = diffValue / month;
- var diffWeek = diffValue / (7 * day);
- var diffDay = diffValue / day;
- var diffHour = diffValue / hour;
- var diffMinute = diffValue / minute;
- if (diffMonth > 3) {
- result = timePublish.getFullYear() + "-";
- result += timePublish.getMonth() + "-";
- result += timePublish.getDate();
- } else if (diffMonth > 1) { //月
- result = data.substring(0, 10);
- } else if (diffWeek > 1) { //周
- result = data.substring(0, 10);
- } else if (diffDay > 1) { //天
- result = data.substring(0, 10);
- } else if (diffHour > 1) { //小时
- result = parseInt(diffHour) + "小时前";
- } else if (diffMinute > 1) { //分钟
- result = parseInt(diffMinute) + "分钟前";
- } else {
- result = "刚刚";
- }
- return result;
- },
- // 发送心跳包
- startHeartbeat() {
- // HeartBeat 这里是和后端约定好的值,我们发送给后端,后端再把这个值返给我们
- // 目的就是让后端知道我们一直在
- const heartbeatMsg = 'HeartBeat';
- const sendHeartbeat = () => {
- if (this.isOpen) {
- console.log('发送HeartBeat')
- uni.sendSocketMessage({
- data: heartbeatMsg,
- }).catch(error => {
- console.log('发送心跳消息失败:', error);
- //发送消息失败则进行重新链接
- this.connect()
- });
- }
- };
- this.socketTimer = setInterval(sendHeartbeat, HEARTBEAT_INTERVAL);
- },
- // 开始重连
- reconnect() {
- if (!this.isOpen) {
- clearTimeout(this.socketTimer);
- this.socketTimer = setTimeout(() => {
- console.log('开始重连...');
- this.connect();
- }, RECONNECT_INTERVAL);
- }
- },
- connect() {
- // #ifdef MP-WEIXIN
- if (uni.getStorageSync('sendMsg')) {
- // console.log('授权+1')
- wx.requestSubscribeMessage({
- tmplIds: this.arr,
- success(re) {
- // console.log(JSON.stringify(re), 111111111111)
- var datas = JSON.stringify(re);
- if (datas.indexOf("accept") != -1) {
- // console.log(re)
- }
- },
- fail: (res) => {
- // console.log(res)
- }
- })
- }
- // #endif
- let that = this
- let userId = this.$queue.getData('userId');
- uni.showLoading({
- title: '连接中...'
- })
- uni.connectSocket({
- // url: 'wss://h5.youxb.icu/wss/sqx_fast/chatSocket/' + userId,
- // url: this.config("WSHOST1") + userId,
- url: configdata.WSHOST1 + '' + userId,
- // url: 'wss://zp.xianmaxiong.com/wss/chatSocket/' + userId,
- // url: 'ws://192.168.0.128:7152/sqx_fast/chatSocket/' + userId,
- data() {
- return {
- msg: 'Hello'
- }
- },
- header: {
- 'content-type': 'application/json'
- },
- method: 'GET',
- success(res) {
- // 这里是接口调用成功的回调,不是连接成功的回调,请注意
- },
- fail(err) {
- // 这里是接口调用失败的回调,不是连接失败的回调,请注意
- }
- })
- uni.onSocketOpen((res) => {
- uni.hideLoading()
- that.isOpen = true;
- that.startHeartbeat()
- if (that.mapsValue) {
- that.setChatSave(18, that.mapsValue)
- }
- })
- uni.onSocketError((err) => {
- uni.hideLoading()
- //如果连接异常那么把状态设置为false
- that.isOpen = false;
- //并尝试进行重连
- that.reconnect();
- })
- uni.onSocketMessage((res) => {
- if (res.data == 'HeartBeat') { //如果是心跳回推则不进行处理
- return
- }
- this.getTimeOrListItem1();
- console.log('onMessage', res)
- })
- uni.onSocketClose((res) => {
- uni.hideLoading()
- that.isOpen = false;
- //链接关闭的时候也尝试进行重连
- // that.reconnect();
- })
- },
- close() {
- uni.closeSocket()
- },
- getTimeOrListItem1() {
- let userId = this.$queue.getData('userId')
- this.$Request.getT('/app/chat/selectChatContent?page=' + this.page + '&limit=' + this.size +
- '&chatConversationId=' + this.chatConversationId + '&userId=' + userId).then(
- res => {
- // this.ListItem = [];
- if (res.data) {
- var time = '';
- res.data.list.forEach(d => {
- d.createTimes = d.createTime;
- d.createTime = this.getDateDiff(d.createTime);
- if (d.createTime === time) {
- d.createTime = '';
- } else {
- time = d.createTime;
- }
- if (d.type === 4) {
- let data = d.content.split(',');
- d.content = data;
- }
- if (d.type === 3) {
- let data = d.content.split(',');
- d.content = data;
- }
- if (d.messageType === 18) {
- d.content = JSON.parse(d.content);
- d.markers = [{
- id: 1,
- latitude: d.content.latitude,
- longitude: d.content.longitude,
- width: 20,
- height: 20,
- iconPath: '../../static/images/mapMarker.png',
- callout: {
- content: d.content.name,
- color: '#000', //文字颜色
- fontSize: 10, //文本大小
- padding: 10, //附近留白
- borderRadius: 24, //边框圆角
- bgColor: '#FFFFFF', //背景颜色
- display: 'ALWAYS', //常显
- }
- }]
- }
- // this.ListItem.push(d);
- });
- this.ListItem = res.data.list
- this.ListItem.reverse();
- this.scrollTop = this.old.scrollTop
- this.$nextTick(() => {
- this.scrollTop = 99999
- })
- this.getStatusInfo()
- }
- uni.hideLoading();
- });
- },
- setChatSave(type, url) {
- //type:1文字 2图片
- if (type === 1 && this.content == '') {
- this.$queue.showToast('请输入聊天内容');
- return;
- }
- if (type != 3 && type != 2 && this.$queue.getChatSearchKeys(this.content)) {
- uni.showToast({
- title: "输入内容带有非法关键字请重新输入",
- mask: false,
- duration: 1500,
- icon: "none"
- });
- return;
- }
- // if (type === 1 && this.$queue.getChatSearchKeys(this.content) != -1) {
- // uni.showToast({
- // title: "输入内容带有非法关键字请重新输入",
- // mask: false,
- // duration: 1500,
- // icon: "none"
- // });
- // return;
- // }
- let userId = this.$queue.getData('userId');
- if (type === 4) {
- this.content = url;
- }
- if (type === 18) { //定位
- this.content = url;
- }
- let data = {};
- if (type == 3) {
- data = {
- userId: this.byUserId,
- content: this.content,
- width: url,
- messageType: type,
- chatConversationId: this.chatConversationId
- }
- } else if (type == 5) { //交换手机号
- data = {
- userId: this.byUserId,
- content: '手机号请求',
- messageType: type,
- chatConversationId: this.chatConversationId
- }
- } else if (type == 6) { //交换微信号
- data = {
- userId: this.byUserId,
- content: '微信号请求',
- messageType: type,
- chatConversationId: this.chatConversationId
- }
- } else if (type == 9) { //简历请求
- data = {
- userId: this.byUserId,
- content: '简历请求',
- messageType: type,
- chatConversationId: this.chatConversationId
- }
- } else if (type == 24) {
- data = {
- userId: this.byUserId,
- content: '刷新',
- messageType: type,
- chatConversationId: this.chatConversationId
- }
- } else {
- data = {
- userId: this.byUserId,
- content: this.content,
- messageType: type,
- chatConversationId: this.chatConversationId
- }
- }
- data = JSON.stringify(data);
- let that = this;
- uni.sendSocketMessage({
- data: data,
- success(res) {
- that.mapsValue = ''
- let image_url = that.$queue.getData('image_url');
- if (!image_url) {
- image_url = '/static/logo.png';
- }
- let datas = {
- chat: {
- userHead: image_url
- },
- content: that.content,
- type: type,
- sendType: 1
- }
- that.ListItem.push(datas);
- setTimeout(() => {
- that.getTimeOrListItem1();
- that.content = '';
- }, 50);
- console.log(that.content);
- },
- fail(err) {
- console.log(err);
- }
- })
- },
- //发送图片
- chooseImage(sourceType) {
- let that = this
- uni.chooseImage({
- count: 1,
- sourceType: ['album'],
- success: res => {
- for (let i = 0; i < res.tempFilePaths.length; i++) {
- this.$queue.showLoading("上传中...");
- uni.uploadFile({ // 上传接口
- url: this.config("APIHOST1") + '/alioss/upload', //真实的接口地址
- filePath: res.tempFilePaths[i],
- name: 'file',
- success: (uploadFileRes) => {
- let content = JSON.parse(uploadFileRes.data).data;
- // this.setChatSave(2);
- uni.hideLoading();
- let data = {
- userId: that.byUserId,
- content: content,
- messageType: 2,
- chatConversationId: that.chatConversationId
- }
- data = JSON.stringify(data);
- uni.sendSocketMessage({
- data: data,
- success(res) {
- let image_url = that.$queue.getData(
- 'image_url');
- if (!image_url) {
- image_url = '/static/logo.png';
- }
- let datas = {
- chat: {
- userHead: image_url
- },
- content: content,
- type: 2,
- sendType: 1
- }
- that.ListItem.push(datas);
- setTimeout(() => {
- that.getTimeOrListItem1();
- }, 50);
- },
- fail(err) {
- console.log(err);
- }
- })
- }
- });
- }
- }
- })
- },
- config: function(name) {
- var info = null;
- if (name) {
- var name2 = name.split("."); //字符分割
- if (name2.length > 1) {
- info = configdata[name2[0]][name2[1]] || null;
- } else {
- info = configdata[name] || null;
- }
- if (info == null) {
- let web_config = cache.get("web_config");
- if (web_config) {
- if (name2.length > 1) {
- info = web_config[name2[0]][name2[1]] || null;
- } else {
- info = web_config[name] || null;
- }
- }
- }
- }
- return info;
- },
- //查看大图
- viewImg(item) {
- let imgsArray = [];
- imgsArray[0] = item;
- uni.previewImage({
- current: 0,
- urls: imgsArray
- });
- },
- },
- };
- </script>
- <style lang="scss">
- @import "../msg/css/style.scss";
- .avatorm {
- width: 100%;
- // height: 100rpx;
- margin-top: 20rpx;
- color: #000;
- .avatorm-box {
- width: 90%;
- height: 100%;
- .avatorm-box-item {
- margin-bottom: 10rpx;
- .avatorm-box-item-t {
- width: 30%;
- }
- .avatorm-box-item-r {
- width: 70%;
- }
- }
- }
- }
- .mssTitle {
- width: 100%;
- margin-top: 30rpx;
- text-align: center;
- font-size: 30rpx;
- color: #000;
- font-weight: bold;
- }
- .btnm {
- width: 100%;
- margin-top: 20rpx;
- height: 80rpx;
- margin-bottom: 100rpx;
- .btn-box {
- width: 686rpx;
- height: 100%;
- .btnItem {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 200rpx;
- height: 100%;
- border-radius: 14rpx;
- }
- .btn-close {
- color: #00B88F;
- border: 1rpx solid #00B88F;
- }
- .btn-sub {
- color: #FFFFFF;
- background-color: #00B88F;
- }
- }
- }
- .mianshiTime {
- width: 100%;
- margin-top: 20rpx;
- .mianshiTime-box {
- padding-bottom: 20rpx;
- width: 686rpx;
- height: 100%;
- color: #000000;
- border-bottom: 1rpx solid #F2F2F7;
- .mianshiTime-box-ti {
- height: 100%;
- margin-top: 20rpx;
- }
- }
- }
- .mianshiTitle {
- width: 100%;
- margin-top: 30rpx;
- font-size: 30rpx;
- text-align: center;
- font-weight: bold;
- color: #000000;
- }
- .qyList-box-item {
- width: 100%;
- // height: 400rpx;
- padding-bottom: 40rpx;
- background-color: #ffffff;
- border-radius: 24rpx;
- margin-bottom: 20rpx;
- .qyList-box-item-box {
- width: 626rpx;
- height: 100%;
- }
- .qyList-box-item-info {
- margin-top: 40rpx;
- }
- .qyList-box-item-job {
- color: #121212;
- font-size: 28rpx;
- font-weight: 500;
- margin-top: 20rpx;
- }
- .qyList-box-item-rem {
- color: #999999;
- font-size: 26rpx;
- margin-top: 20rpx;
- }
- }
- .topSe {
- width: 100%;
- height: 100rpx;
- background-color: #FFFFFF;
- .topSe-box {
- width: 686rpx;
- height: 100%;
- .topSe-box-item {
- font-size: 24rpx;
- width: 80rpx;
- }
- }
- }
- .jobs {
- width: 100%;
- margin-top: 20rpx;
- .jobs-box {
- width: 95%;
- }
- }
- .gwList-box-item {
- width: 100%;
- // height: 329rpx;
- background-color: #ffffff;
- border-radius: 24rpx;
- margin-bottom: 20rpx;
- padding-bottom: 20rpx;
- }
- .gwList-box-item-box {
- width: 623rpx;
- height: 100%;
- .gwList-box-item-box-title {
- margin-top: 30rpx;
- text:nth-of-type(1) {
- color: #1F1F1F;
- font-size: 38rpx;
- font-weight: 800;
- }
- text:nth-of-type(2) {
- color: #00B88F;
- font-size: 38rpx;
- font-weight: bold;
- }
- }
- .gwList-box-item-box-label {
- margin-top: 30rpx;
- }
- .gwList-box-item-box-name {
- margin-top: 24rpx;
- color: #999999;
- font-size: 28rpx;
- font-weight: 500;
- }
- .gwList-box-item-box-line {
- width: 100%;
- border: 1rpx solid #E6E6E6;
- margin-top: 30rpx;
- margin-bottom: 20rpx;
- }
- .gwList-box-item-box-info {
- font-size: 26rpx;
- .gwList-box-item-box-info-l {
- color: #1A1A1A;
- .people {
- max-width: 110rpx;
- overflow: hidden; //超出的文本隐藏
- text-overflow: ellipsis; //溢出用省略号显示
- white-space: nowrap; // 默认不换行;
- }
- }
- .gwList-box-item-box-info-r {
- color: #999999;
- width: 50%;
- overflow: hidden; //超出的文本隐藏
- text-overflow: ellipsis; //溢出用省略号显示
- white-space: nowrap; // 默认不换行;
- }
- }
- }
- .xuanfu {
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #00B88F;
- .xuanfu-box {
- width: 95%;
- background-color: #FFFFFF;
- border-radius: 10rpx;
- padding: 20rpx 15rpx 20rpx 20rpx;
- letter-spacing: 5rpx;
- font-size: 26rpx;
- }
- }
- page {
- background: #F5F5F5;
- color: #FFFFFF;
- }
- .chat-listitem {
- display: flex;
- margin-top: 20rpx;
- padding: 10rpx;
- }
- .textColor {
- color: #FFFFFF;
- background: #00B88F;
- }
- .chat-listitem-text {
- // color: #FFFFFF;
- margin-top: 6rpx;
- width: fit-content;
- padding: 15rpx;
- font-size: 30rpx;
- height: max-content;
- word-wrap: break-word;
- word-break: break-all;
- border-radius: 10rpx;
- }
- .chat-listitem-image-type4 {
- color: #000000;
- background: #FFFFFF;
- width: fit-content;
- font-size: 30rpx;
- height: max-content;
- word-wrap: break-word;
- word-break: break-all;
- border-top-left-radius: 20rpx;
- border-top-right-radius: 20rpx;
- }
- .chat-listitem-image {
- margin-top: 5rpx;
- width: 75rpx;
- height: 75rpx;
- border-radius: 5rpx;
- }
- .save {
- width: 130rpx;
- text-align: center;
- border-radius: 10rpx;
- height: 70rpx;
- background: #FFFFFF;
- margin: 5rpx 10rpx 0;
- line-height: 70rpx;
- }
- </style>
|