Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

Receivedetailabout.vue 64 KiB

3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
3 anni fa
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326
  1. <template>
  2. <view class="box">
  3. <view class="headbox">
  4. <!-- 顶部时间 -->
  5. <view class="headboxhead">
  6. <view class="boxhead1">{{datetiem}}</view>
  7. <view class="boxhead2" v-if="jiaoseshow">
  8. <image v-if="Alladdtodigest==1" @click="tappick()" src="../../../../static/images/pike.png" mode=""></image>
  9. <image v-if="Alladdtodigest==0" @click="notappick()" src="../../../../static/images/nopike.png" mode=""></image>
  10. </view>
  11. </view>
  12. <!-- <view class="inputbox" v-if="guanjianciishow">
  13. <view class="thisinput" @click="tosearch()">
  14. 请输入或选择
  15. </view>
  16. </view> -->
  17. <!-- 标记顾问 -->
  18. <view class="headboxbott">
  19. <view class="headovfu">
  20. <u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="roleindex" @change="tapspagek2()"
  21. inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist" :is-scroll="true">
  22. </u-tabs-swiper>
  23. </view>
  24. <view class="headpade">
  25. <view class="biaoji" @tap="tagtap()">标记</view>
  26. </view>
  27. </view>
  28. </view>
  29. <scroll-view :scroll-top="scrollTop" lower-threshold='100px' @scrolltolower="ltolower()"
  30. upper-threshold='40px' @scrolltoupper="rolltoupper()"
  31. :scroll-into-view="scrollId" scroll-y="true" class="zhuti text scroll-Y">
  32. <!-- 聊天记录-->
  33. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  34. <view :id="'dialog'+i" class="fileName">录音文件</view>
  35. <view class="text" :id="'dialog'+csdFileindex+'text'+item.bg"
  36. :class="{active: item.bg < playNow && item.ed > playNow && i==0}"
  37. v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker">
  38. <view class="avatar">
  39. <view v-if="item.speaker == 1" style="color: #60CBEC;">
  40. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  41. <text v-else>A</text>
  42. </view>
  43. <view v-if="item.speaker == 2" style="color: #EC8B47;">
  44. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  45. <text v-else>B</text>
  46. </view>
  47. <view v-if="item.speaker == 3" style="color: #4F861E;">
  48. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  49. <text v-else>C</text>
  50. </view>
  51. <view v-if="item.speaker == 4" style="color: #9F61C8;">
  52. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  53. <text v-else>D</text>
  54. </view>
  55. <view v-if="item.speaker == 5" style="color: #4980C8;">
  56. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  57. <text v-else>E</text>
  58. </view>
  59. <view v-if="item.speaker == 6" style="color: #60CBEC;">
  60. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  61. <text v-else>F</text>
  62. </view>
  63. <view v-if="item.speaker == 7" style="color: #EC8B47;">
  64. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  65. <text v-else>G</text>
  66. </view>
  67. <view v-if="item.speaker == 8" style="color: #4F861E;">
  68. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  69. <text v-else>H</text>
  70. </view>
  71. <view v-if="item.speaker == 9" style="color: #9F61C8;">
  72. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  73. <text v-else>I</text>
  74. </view>
  75. <view v-if="item.speaker == 10" style="color: #9F61C8;">
  76. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  77. <text v-else>J</text>
  78. </view>
  79. <view v-if="item.speaker == 11" style="color: #9F61C8;">
  80. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  81. <text v-else>K</text>
  82. </view>
  83. <view v-if="item.speaker == 12" style="color: #9F61C8;">
  84. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  85. <text v-else>L</text>
  86. </view>
  87. <view v-if="item.speaker == 13" style="color: #9F61C8;">
  88. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  89. <text v-else>M</text>
  90. </view>
  91. <view v-if="item.speaker == 14" style="color: #9F61C8;">
  92. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  93. <text v-else>N</text>
  94. </view>
  95. <view v-if="item.speaker == 15" style="color: #9F61C8;">
  96. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  97. <text v-else>O</text>
  98. </view>
  99. <view v-if="item.speaker == 16" style="color: #9F61C8;">
  100. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  101. <text v-else>P</text>
  102. </view>
  103. </view>
  104. <view class="content">
  105. <view @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view>
  106. <view class="tankuangcss" v-if="item.isshow">
  107. <view @click="clickcopy()"
  108. style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制
  109. </view>
  110. <view @click="Oftenthewrongword()"
  111. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">常错词
  112. </view>
  113. <view v-if="jiaoseshow" @click="Addtheessence()"
  114. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">加精华
  115. </view>
  116. <view @click="clickbofang(dialog.backindex,item)"
  117. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 14rpx;">播放
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. </scroll-view>
  124. <view class="bottombox">
  125. <!-- 播放块 -->
  126. <view class="bottomhead">
  127. <view class="audio-play" @tap="changePlayState">
  128. <image class="image" mode="widthFix"
  129. :src="audioPlay ? 'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/pause.png' : 'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/play.png'">
  130. </image>
  131. </view>
  132. <view class="audio-slider">
  133. <view class="audio-time">
  134. <text>{{currentTimeStr}}</text>
  135. </view>
  136. <slider class="slider" min="0" :max="sliderMax"
  137. @change="sliderChangeComplate" block-size="14" :value="sliderValue" activeColor="blue"></slider>
  138. <view class="audio-time">
  139. <text>{{timeStr}}</text>
  140. </view>
  141. </view>
  142. </view>
  143. <!-- 底部弹框 -->
  144. <view class="botbotmm">
  145. <view class="tmmchen" @click="guanjiancishifo()">
  146. <image src="../../../../static/images/audioinfo1.png" mode=""></image>
  147. <view>关键词</view>
  148. </view>
  149. <view class="fill"></view>
  150. <view class="tmmchen" @click="Receivedetailsabouttab('intention')">
  151. <image src="../../../../static/images/audioinfo3.png" mode=""></image>
  152. <view>客户意向</view>
  153. </view>
  154. <view class="fill"></view>
  155. <view class="tmmchen" @click="Receivedetailsabouttab('Pinspeak')">
  156. <image src="../../../../static/images/audioinfo4.png" mode=""></image>
  157. <view>销讲执行</view>
  158. </view>
  159. <view class="fill"></view>
  160. <view class="tmmchen" @click="Receivedetailsabouttab('Receivedetailsabout')">
  161. <image src="../../../../static/images/audioinfo2.png" mode=""></image>
  162. <view>接待信息</view>
  163. </view>
  164. </view>
  165. </view>
  166. <!-- 回到顶部 -->
  167. <!-- <view class="backTop" @click="gotoTop">
  168. <image src="/static/images/backTop.png" mode=""></image>
  169. </view> -->
  170. <!-- 标记 -->
  171. <view class="zhezhoa" v-if="biojiisshow" @tap="unmarktap()"></view>
  172. <view class="bounced" v-if="biojiisshow">
  173. <view class="jiajinghuatit">标记为顾问</view>
  174. <view style="width: 95%;display: flex;flex-wrap: wrap;margin: 0 auto;padding-top: 30rpx;padding-bottom: 30rpx;">
  175. <view class="viewclace" :class="roleindexbiaoji == index ? 'bosdttom' : ''"
  176. @click="biaojixuanze(index)" v-for="(item,index) in tablist.slice(1,tablist.length)" :key="index">
  177. <view>{{item.name}}</view>
  178. </view>
  179. </view>
  180. <view class="bounced3" style="margin-top: 20rpx;">
  181. <view class="bounced3-1" @tap="unmarktap()">取消</view>
  182. <view class="bounced3-2" @tap="Confirmthetag()">确认</view>
  183. </view>
  184. </view>
  185. <!-- 接待详情 -->
  186. <view class="zhezhoa" @click="clenReceivedetailsabout()" v-if="Receivedetailsabout"></view>
  187. <view class="followingpop-up" v-if="Receivedetailsabout">
  188. <view class="guanbibox">
  189. <image class="guanbixen" @click="clenReceivedetailsabout()" src="../../../../static/images/Shutdown.png" mode=""></image>
  190. <view class="cenisboxtab">
  191. <view class="cenisboxtabview">
  192. <view>接待详情</view>
  193. </view>
  194. </view>
  195. </view>
  196. <view class="cenisbox">
  197. <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
  198. <view style="width: 25%;color: #666666;font-size: 26rpx;">接待顾问</view>
  199. <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.agentName}}</view>
  200. </view>
  201. <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
  202. <view style="width: 25%;color: #666666;font-size: 26rpx;">意向项目</view>
  203. <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.projectName}}</view>
  204. </view>
  205. <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
  206. <view style="width: 25%;color: #666666;font-size: 26rpx;">接待开始时间</view>
  207. <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.staTime}}</view>
  208. </view>
  209. <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
  210. <view style="width: 25%;color: #666666;font-size: 26rpx;">接待结束时间</view>
  211. <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.endTime1}}</view>
  212. </view>
  213. <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
  214. <view style="width: 25%;color: #666666;font-size: 26rpx;">录音时长</view>
  215. <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.mm}}分钟</view>
  216. </view>
  217. </view>
  218. </view>
  219. <!-- 销讲执行 -->
  220. <view class="zhezhoa" @click="clenReceivedetailsabout()" v-if="Pinspeak"></view>
  221. <view class="followingpop-up" v-if="Pinspeak">
  222. <view class="guanbibox">
  223. <image class="guanbixen" @click="clenReceivedetailsabout()" src="../../../../static/images/Shutdown.png" mode=""></image>
  224. <view class="cenisboxtab">
  225. <view class="cenisboxtabview">
  226. <view>销讲执行</view>
  227. </view>
  228. </view>
  229. </view>
  230. <view class="pingfenbox" >
  231. <view :class="{ activecllasscet: zhixingcenterindex == 0 }" @click="recordclick(0)">销讲总执行率{{totalRate}}%</view>
  232. <view v-if="methodsisshow==true" :class="{ activecllasscet: zhixingcenterindex == 1 }" @click="recordclick(1)">禁忌执行</view>
  233. </view>
  234. <view v-if="zhixingcenterindex == 0" class="cenisbox">
  235. <view style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
  236. <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标</view>
  237. <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率</view>
  238. </view>
  239. <view class="Level-box" v-for="(item,index) in ratelist" :key="index">
  240. <view class="Level1che" @click="changeshow(item,1)">
  241. <view class="title1">{{item.name.substring(0,8)}}</view>
  242. <view class="leve1-jindu">
  243. <view class="jindutiao">
  244. <view class="huanxing" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
  245. <view class="text">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%</view>
  246. </view>
  247. </view>
  248. <view class="jiantobox">
  249. <image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
  250. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  251. </view>
  252. </view>
  253. <view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
  254. <view class="Level2che" @click="changeshow2(subitem,1)" >
  255. <view class="title1">{{subitem.name.substring(0,8)}}</view>
  256. <view class="leve1-jindu" >
  257. <view class="zhixing" v-if="!subitem.selected">已执行</view>
  258. <view class="zhixing2" v-else>未执行</view>
  259. </view>
  260. <view class="jiantobox">
  261. <image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
  262. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  263. </view>
  264. </view>
  265. <view class="hsnrtest" v-if="subitem.show">话术内容</view>
  266. <view class="Level3che" @tap="clickaudeopal(che)" v-if="subitem.show" v-for="(che,inc) in subitem.children" :key='inc'>
  267. <view class="title1" >{{inc+1}}.{{che.name}}</view>
  268. <view class="jiantobox">
  269. <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png" mode="" />
  270. </view>
  271. </view>
  272. <view v-if="subitem.show" style="width: 100%;height: 30rpx;"></view>
  273. </view>
  274. </view>
  275. </view>
  276. <view v-if="zhixingcenterindex == 1">
  277. <view v-if="prohibitedlist.length!=0" class="title1-12" @click="tapbadge(item)" v-for="(item,index) in prohibitedlist" :key='index'>{{index+1}}.{{item}}</view>
  278. <view v-if="prohibitedlist.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;">暂无数据</view>
  279. </view>
  280. </view>
  281. <!-- 客户意向 -->
  282. <view class="zhezhoa" @click="clenReceivedetailsabout()" v-if="intention"></view>
  283. <view class="followingpop-up" v-if="intention">
  284. <view class="guanbibox">
  285. <image class="guanbixen" @click="clenReceivedetailsabout()" src="../../../../static/images/Shutdown.png" mode=""></image>
  286. <view class="cenisboxtab">
  287. <view class="cenisboxtabview">
  288. <view>客户意向</view>
  289. </view>
  290. </view>
  291. </view>
  292. <view class="pingfenbox" >
  293. <view :class="{ activecllasscet: kehuyixiangcenterindex == 0 }" @click="customerofintention(0)">系统分析</view>
  294. <view :class="{ activecllasscet: kehuyixiangcenterindex == 1 }" @click="customerofintention(1)">人工校准</view>
  295. </view>
  296. <view v-if="kehuyixiangcenterindex==0" class="cenisbox">
  297. <view style="width: 100%;height: 100%;text-align: center;margin-top: 200rpx;" v-if="Acquirecustomerintentlist.length==0">
  298. 暂无数据
  299. </view>
  300. <view v-if="Acquirecustomerintentlist.length!=0" class="jianbox" v-for="(item,index) in Acquirecustomerintentlist" :key='index'>
  301. <view class="jianbox-cen">
  302. <view class="jianboxtext">{{item.name}}</view>
  303. <view class="jianboxjian" @click="Acquishow(index)">
  304. <image v-if="item.isshow==false" class="jiantop" src="/static/images/jiantop.png" mode=""></image>
  305. <image v-if="item.isshow==true" class="jiantop1" src="/static/images/jianbutton.png" mode=""></image>
  306. </view>
  307. </view>
  308. <view style="width: 690rpx;margin: 0 auto;display: flex;flex-wrap: wrap;" v-if="item.isshow==true">
  309. <view class="sdfsaf" v-if="chend.showType==0"
  310. v-for="(chend,i) in item.children" :key='i' @click="argece(chend)">
  311. <view class="jiangshang sdfsaf">{{chend.text}}</view>
  312. </view>
  313. <view class="sdfsaf" v-if="chend.showType==1" @click="argece(chend)"
  314. v-for="(chend,i) in item.children" :key='i'>
  315. <view class="jiangshang1 sdfsaf" >{{chend.text}}</view>
  316. </view>
  317. </view>
  318. </view>
  319. </view>
  320. <view class="cenisbox" v-if="kehuyixiangcenterindex==1">
  321. <view style="width: 100%;height: 100%;text-align: center;margin-top: 200rpx;" v-if="Acquirecustomerintentlist2.length==0">
  322. 暂无数据
  323. </view>
  324. <view class="jianbox" v-if="Acquirecustomerintentlist2.length!=0" v-for="(item,index) in Acquirecustomerintentlist2" :key='index'>
  325. <view class="jianbox-cen">
  326. <view class="jianboxtext">{{item.name}}</view>
  327. <view class="jianboxjian" @click="Acquishow2(index)">
  328. <image v-if="item.isshow==false" class="jiantop" src="/static/images/jiantop.png" mode=""></image>
  329. <image v-if="item.isshow==true" class="jiantop1" src="/static/images/jianbutton.png" mode=""></image>
  330. </view>
  331. </view>
  332. <view class="bioqianwayl" v-if="item.isshow==true">
  333. <view class="jiangshang" v-for="(chend,i) in item.children" :key='i' v-if="chend.selected==0">{{chend.text}}</view>
  334. </view>
  335. </view>
  336. </view>
  337. <view class="calibration" @click="tocalibration()">校准</view>
  338. </view>
  339. <!-- 加入常错词 -->
  340. <view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view>
  341. <view class="bounced" v-if="isshow2">
  342. <view class="tian-view">
  343. <viwe class="tian-view-t1"></viwe>
  344. <viwe class="tian-view-t2">常错词:</viwe>
  345. <viwe class="tian-view-t3">
  346. <input type="text" v-model="thewrongword" class="tian-input" placeholder="请输入" />
  347. </viwe>
  348. </view>
  349. <view class="tian-view">
  350. <viwe class="tian-view-t1"></viwe>
  351. <viwe class="tian-view-t2">正确词:</viwe>
  352. <viwe class="tian-view-t3">
  353. <input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" />
  354. </viwe>
  355. </view>
  356. <view class="bounced3">
  357. <view class="bounced3-1" @tap="Cancelout">取消</view>
  358. <view class="bounced3-2" @tap="Confirmtheexit">确认</view>
  359. </view>
  360. </view>
  361. <!-- 加精华 -->
  362. <view class="zhezhoa" v-if="isshow3" @tap="Cancelout2"></view>
  363. <view class="bounced" v-if="isshow3">
  364. <view class="jiajinghuatit">加精华</view>
  365. <view style="width: 100%;text-indent: 20rpx;font-size: 28rpx;">选择标签</view>
  366. <view class="jiajinghuaview">
  367. <view class="jighuaview2" v-for="(item,index) in biaoqianlist" :key="index"
  368. :class="biaoqianindex == index ? 'biaoqiantom' : ''">
  369. <view class="view1-text" @click="tapbiaoqianclisck(index)">{{item.name}}</view>
  370. </view>
  371. </view>
  372. <view class="bounced3">
  373. <view class="bounced3-1" @tap="Cancelout2">取消</view>
  374. <view class="bounced3-2" @tap="Confirmtheexit2">确认</view>
  375. </view>
  376. </view>
  377. </view>
  378. </template>
  379. <script>
  380. var app = getApp();
  381. var util = require("../../../../utils/util.js");
  382. var config = require("../../../../config");
  383. export default {
  384. data() {
  385. return {
  386. kehuyixiangcenterindex:0,
  387. Acquirecustomerintentlist2:[],
  388. zhixingcenterindex:0,
  389. prohibitedlist:[],
  390. guanjianciishow:false,
  391. Aimg: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAACqVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3////9/f39/f3////////9/f3////////////9/f3////9/f39/f3////9/f3////////9/f3////9/f3////////////////9/f39/f3////////9/f39/f3////9/f39/f3////////9/f39/f3////////9/f39/f39/f3////////////////+/v7+/v7////+/v7////+/v7////+/v7+/v7////////+/v7+/v7////+/v7////+/v7////////////////////////////+/v7////+/v7////+/v7+/v7////////////+/v7////+/v7////+/v7+/v7////////+/v7////+/v7////////+/v7////////+/v7////+/v7+/v7+/v7////////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7+/v7////+/v5jdC9iAAAA4nRSTlMAAQIDBAUGBwgLDA0ODxARExQVFhgbHB4fICEiIyQmJygpKy4wMTIzNDY3ODk6Oz0+P0BBQkRGR0lKTE5PUFFTVFVXWFlcXV9gYWJjZWZnaGlqa2xtbm9wcXJzdHV2d3h6e319foGBgoODh4mKiouMjI2QkZKSk5OUlpeYmZmam5ycnZ+foKGio6SmqKmpq6yur7CwsbGytba5uru8wMDBwcLCw8XGx8jJysrLzM7P0dLT1dXW1tfY2drc3N7f4OHh5Obm5+jp6uvs7vDx8vLz8/T09fX29/f4+fn6+vz8/f7+RVDt+wAAA55JREFUGBntwf9/1HMAB/DX7XYbuXWV1cyMoixfugrRGNXytW33pbVdJ83XkiMLSb4LJd/zZUi0SKT5FmGS77HUVaixnHP2+kt8vt3Zbp/3+7P3XR5+8XziP1E4uiYcrh1bjMNi6NzXumnoeX3eSOSrpHUv+zi0ogJ5qd3JLN1XuJGzwqW0sW4oclT0Im19XIqcuNdQ4D0vcnEDhdYgB2f+SbFZUHbEdkrsLYeqFko9CEVH7qJUohxqLqODO6BmLR18XwAVRQfpZDxUnExHjVBRR0eroGIZHX0AFe10tA8qdtNZIRR00VEPVLxLRzuh4jk62gIVy+joSaiI0tECqPDT0blQ4f6RDpI+KHmYDjZBzWQ6aIaibZSK+6BoOqViUOXqoER8BJSdlqJYFDm4h0LveJAD7+cUiFciJ1U/01aiGjk65zfaSF6EnE3azQEO1iAPFZuZZes45MUT3cM+emLFyNfwK3fQ8k1sFA6L0cElTzx9d1OVC/8bNG/gzY+GQaKk461gCQZr8iMHSNZD4nySv6wYj0EYFv2UhqcgcTsN70ePhtzER3+lJe6BxXP9jTctvrl1yS1jkLaNlkTbBR6IlF3dyT78sHh+oqkSlrJe/uOH1jGw4apem2I/1yLtGRo6kRZiP73t57mQxb+Z2dqRdikNtyLtBWb78Cz05bomyQH+KIGljIYaWNxxDtC72ouMgsdpZzosHhqqYDmFdraOQNpttHUfLKU0TITlKtra6IZpCu3tgMVPQx0sG2ivDqaVFDgOppk0LIbJm6C9DTB1UCAMU4SGZ2GqocAumL6jQBtMMRq2wLScAik3dMV/UWB/EQwrafgSpk6KlEJ3LIXOgGE9DQdgqKDQSdBNoNAiGL6i6SjowhSaAt1UCm2CzpOk6QTonqfQJdBdSKGkD5pKWqZCU7iHQtdB10KxWmjOpqUJmtMp9gB091LsIWiCtCyFZiHFXoZuHcW+hiZGy0vQvE2xT6DbTolKAI/R8hmA4SmKdUG3jxIhAG/QkigAZlAi6QJQTJk2AF1MGwXcRRkfgJGU2V8EHzP8wBeUqQQwllKTcCozpuFESk0AMJNSC3AxM8KYT6lpAFootRGLmLEQ6ynVCCBAqcSQ1cy4f8ghSs0HcMzvlKp+lRmvVFMqNQ6aaIoyd3Yy49vllOmuh+H4WZFIpFnTpJmjadTM1oQ1oVAgFNQENA0N9f01BIKh8OzGOU3NkbmXzwuV41/wNztgHKhu7WKTAAAAAElFTkSuQmCC",
  392. scrollTop: 0,
  393. scrollId: "",
  394. audioPlay: false, //当前的播放状态控制
  395. currentTimeStr: "00:00", //当前进度的时间
  396. timeStr: "00:00", //总的时间
  397. sliderValue: 0, //进度条最小值
  398. sliderMax: 0, //进度条最大值
  399. roleindex: 0,
  400. biojiisshow:false,//标记显隐
  401. roleindexbiaoji:0,//标记下标
  402. tablist:[],//标记集合
  403. Receivedetailsabout:false,//接待详情显示隐藏
  404. Pinspeak:false,
  405. intention:false,
  406. yixingindex:0,//意向,统计切换
  407. customerId:'',
  408. luyinList:[],
  409. recordPath:'',//
  410. datetiem:'',
  411. Alladdtodigest:0,
  412. innerAudioContext:'',
  413. textindex:0,//下拉 转写文件下标
  414. toptextindex:0,//上拉 转写文件下标
  415. dialogList: [], //录音识别列表
  416. csdFileindex: 0,
  417. speaker:'',
  418. newluyinList:[],
  419. playNow: 0,
  420. ratelist:[],
  421. totalRate:'',
  422. userlistobj:{},
  423. Acquirecustomerintentlist:[],
  424. options1:[],
  425. messagelisy: [],
  426. changanitem: {},
  427. duihuawenjianid: "",
  428. thewrongword: "", //错误词
  429. reswrongword: "", //正确词
  430. userInfo:{},
  431. jiaoseshow:true,
  432. isshow2: false,
  433. isshow3: false,
  434. biaoqianid: "",
  435. biaoqianlist: [],
  436. biaoqianindex: 0,
  437. dshfkjsdkksodofydwfkhwdfkjh:0,
  438. buildingID:'',
  439. methodsisshow:false,
  440. calibration:0,
  441. textItself:'',
  442. argtextindex1:0,
  443. argtextindex2:0
  444. };
  445. },
  446. onShow() {
  447. this.intention=false;
  448. this.kehuyixiangcenterindex=0;
  449. this.buildingID = uni.getStorageSync('buildingID').id;
  450. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  451. if(this.userInfo.dataCode==6 || this.userInfo.dataCode==3){
  452. this.methodsisshow=false;
  453. }else{
  454. this.methodsisshow=true;
  455. }
  456. if (this.userInfo.dataCode == 6) {
  457. this.jiaoseshow = false
  458. }
  459. var pages = getCurrentPages();
  460. var currPage = pages[pages.length - 1]; //当前页面
  461. var info = currPage.data.info;
  462. if(info){
  463. info=info;
  464. console.log('1')
  465. }else{
  466. info={
  467. bg:0
  468. }
  469. }
  470. this.innerAudioContext = uni.createInnerAudioContext();
  471. this.innerAudioContext.autoplay = false;
  472. this.innerAudioContext.title = '音频';
  473. this.onPlay()
  474. this.onPause()
  475. this.onCanplay()
  476. this.onEnded()
  477. this.onSeeking()
  478. this.onSeeked()
  479. this.TimeUpdate()
  480. this.init(info)
  481. },
  482. onLoad(options) {
  483. this.customerId=options.customerId;
  484. },
  485. // 在组件实例被从页面节点树移除时执行
  486. destroyed: function() {
  487. //暂停
  488. // this.innerAudioContext.pause()
  489. // 销毁
  490. this.innerAudioContext.destroy();
  491. },
  492. // 销毁实例
  493. onUnload: function() {
  494. //暂停
  495. // this.innerAudioContext.pause()
  496. // 销毁
  497. this.innerAudioContext.destroy();
  498. },
  499. methods: {
  500. //关键词点击
  501. tapbadge(item){
  502. //进搜索页面
  503. uni.navigateTo({
  504. url: '/pages/learning/Keywordsearch?customerId='+this.customerId +"&keyword="+item +"&skpl="+ "2"
  505. })
  506. },
  507. recordclick(i){
  508. this.zhixingcenterindex=i;
  509. if(i==0){
  510. this.getRatelist()
  511. }else{
  512. console.log('999')
  513. this.huoqujinji()
  514. }
  515. },
  516. //获取禁忌
  517. huoqujinji(){
  518. uni.showLoading({
  519. title: '加载中'
  520. });
  521. this.$u.get("/customer/findTabooWordsByCusId", {
  522. cusId: this.customerId
  523. }).then(res => {
  524. if (res.length) {
  525. this.prohibitedlist=res;
  526. }
  527. setTimeout(function() {
  528. uni.hideLoading();
  529. }, 1000);
  530. })
  531. },
  532. guanjiancishifo(){
  533. // this.guanjianciishow=!this.guanjianciishow;
  534. this.innerAudioContext.destroy();
  535. uni.navigateTo({
  536. url: '/pages/center/Piabodata/Customerportrait/Detailsofthesearch?customerId='+this.customerId
  537. })
  538. },
  539. tosearch(){
  540. this.innerAudioContext.destroy();
  541. uni.navigateTo({
  542. url: '/pages/center/Piabodata/Customerportrait/Detailsofthesearch?customerId='+this.customerId
  543. })
  544. },
  545. //标签选择
  546. tapbiaoqianclisck(index) {
  547. console.log(index)
  548. this.biaoqianindex = index;
  549. this.biaoqianid = this.biaoqianlist[index].id
  550. },
  551. //加精华
  552. Addtheessence() {
  553. this.isshow3 = true;
  554. this.biaoqianlist = []
  555. let parames={
  556. "itemId":this.buildingID
  557. }
  558. this.$u.post("/addtodigest/findAllYi", parames).then(data => {
  559. this.biaoqianlist = data
  560. this.biaoqianlist.unshift({
  561. name: "逼单话术",
  562. id: 0
  563. })
  564. })
  565. // util.getRequestPromise(config.service.findAllYi, {}, false).then(data => {
  566. // this.biaoqianlist = data
  567. // this.biaoqianlist.unshift({
  568. // name: "逼单话术",
  569. // id: 0
  570. // })
  571. // });
  572. },
  573. // 取消加精
  574. Cancelout2() {
  575. this.isshow3 = false;
  576. this.dialogList.forEach(res => {
  577. res.message.forEach(asd => {
  578. asd.isshow = false;
  579. })
  580. })
  581. },
  582. // 确认加精
  583. Confirmtheexit2() {
  584. if (this.biaoqianid) {
  585. this.biaoqianid = this.biaoqianid
  586. } else {
  587. this.biaoqianid = 0
  588. }
  589. this.isshow3 = false;
  590. this.dialogList.forEach(res => {
  591. res.message.forEach(asd => {
  592. asd.isshow = false;
  593. })
  594. })
  595. let objdata = {
  596. "itemId":this.buildingID,
  597. "carId": this.customerId, //客户id
  598. "startTime": this.changanitem.bg, //开始时间
  599. "startFile": this.duihuawenjianid, //对话所在录音文件id
  600. "endTime": this.changanitem.ed, //结束时间
  601. "marketingId": this.biaoqianid, //对应一级父id
  602. "jjTransfer": this.changanitem.onebest, //选中对话
  603. "status": 1
  604. }
  605. uni.request({
  606. url: config.service.addATD,
  607. method: "POST",
  608. header: {
  609. 'content-type': 'application/json',
  610. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  611. },
  612. data: objdata,
  613. success: (data) => {
  614. if (data.data.code == 10000) {
  615. uni.showToast({
  616. title: '加精成功',
  617. duration: 2000
  618. });
  619. } else {
  620. uni.showToast({
  621. title: data.data.message,
  622. duration: 2000
  623. });
  624. }
  625. }
  626. })
  627. },
  628. //确认加入常错词
  629. Confirmtheexit() {
  630. if (this.thewrongword) {
  631. if (this.reswrongword) {
  632. let parames = {
  633. customerId:this.customerId,
  634. cupid: this.luyinList[this.csdFileindex].id,
  635. wrongWord: this.thewrongword, //错误词
  636. correctWord: this.reswrongword, //正确词
  637. translateHtmlContent: this.messagelisy,
  638. }
  639. this.isshow2 = false;
  640. let sas=this.textItself.replace(this.thewrongword,this.reswrongword)
  641. this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas;
  642. this.dialogList.forEach(res => {
  643. res.message.forEach(asd => {
  644. asd.isshow = false;
  645. })
  646. })
  647. this.$u.post("/corpus/addCorrectWord", parames).then(data => {
  648. this.thewrongword = "";
  649. this.reswrongword = "";
  650. })
  651. } else {
  652. uni.showToast({
  653. title: '正确值不能为空',
  654. duration: 2000
  655. });
  656. return
  657. }
  658. } else {
  659. uni.showToast({
  660. title: '错误词不能为空',
  661. duration: 2000
  662. });
  663. return
  664. }
  665. },
  666. //取消加入常错词
  667. Cancelout() {
  668. this.isshow2 = false;
  669. this.dialogList.forEach(res => {
  670. res.message.forEach(asd => {
  671. asd.isshow = false;
  672. })
  673. })
  674. },
  675. //加入长错词
  676. Oftenthewrongword() {
  677. this.reswrongword = "";
  678. this.isshow2 = true;
  679. },
  680. //长按对话
  681. changanxiaoguo(item, index, i) {
  682. this.messagelisy = [];
  683. this.changanitem = {};
  684. this.duihuawenjianid = "",
  685. this.dialogList.forEach(res => {
  686. res.message.forEach(asd => {
  687. asd.isshow = false;
  688. })
  689. })
  690. this.changanitem = item;
  691. this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
  692. this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
  693. this.textItself=item.onebest;
  694. let onebest=item.onebest;
  695. this.thewrongword =onebest.replace(/<.*?>/ig,"");
  696. this.messagelisy = this.dialogList[i].message
  697. this.argtextindex1=i;
  698. this.argtextindex2=index;
  699. this.$forceUpdate()
  700. },
  701. onPlay(){
  702. this.innerAudioContext.onPlay(() => {
  703. // 播放监听
  704. console.log('播放!');
  705. this.audioPlay = true;
  706. wx.enableAlertBeforeUnload({
  707. message: "是否确认退出详情页面?",
  708. success: function (res) {
  709. console.log("方法注册成功:", res);
  710. },
  711. fail: function (errMsg) {
  712. console.log("方法注册失败:", errMsg);
  713. },
  714. });
  715. });
  716. },
  717. onPause(){
  718. this.innerAudioContext.onPause(() => {
  719. wx.disableAlertBeforeUnload({
  720. success:function(res){
  721. console.log(res)
  722. },
  723. fail:function(e){
  724. console.log(e)
  725. }
  726. });
  727. // 暂停监听
  728. console.log('暂停播放!');
  729. this.audioPlay = false
  730. });
  731. },
  732. onCanplay() {
  733. this.innerAudioContext.onCanplay((callback) => {
  734. console.log("缓冲回调",this.innerAudioContext.duration);
  735. })
  736. },
  737. onEnded(){
  738. this.innerAudioContext.onEnded(() => {
  739. // 结束播放监听
  740. console.log('播放结束!');
  741. this.audioPlay = false;
  742. });
  743. },
  744. onSeeking(){
  745. this.innerAudioContext.onSeeking((res) => {
  746. console.log("进行跳转", res);
  747. })
  748. },
  749. onSeeked(){
  750. this.innerAudioContext.onSeeked((res) => {
  751. console.log("结束跳转", res);
  752. this.$forceUpdate()
  753. });
  754. },
  755. TimeUpdate(){
  756. this.innerAudioContext.onTimeUpdate(() => {
  757. const {
  758. currentTime,
  759. duration
  760. } = this.innerAudioContext;
  761. this.playNow = parseInt(currentTime * 1000)
  762. if (this.dialogList.length == 0) {
  763. return
  764. } else {
  765. const message = this.dialogList[0].message;
  766. for (let i = 0; i < message.length; i++) {
  767. if (Number(message[i].bg) < this.playNow && Number(message[i].ed) > this.playNow) {
  768. this.scrollId = "dialog" + '0' + "text" + message[i].bg;
  769. break;
  770. }
  771. }
  772. }
  773. this.sliderValue = parseInt(currentTime);
  774. const currTimeStr = this.formatTime(currentTime);
  775. // 变动的时间
  776. this.currentTimeStr = currTimeStr;
  777. //进度条最大值
  778. this.sliderMax = this.luyinList[0].recordDuration;
  779. this.$forceUpdate()
  780. });
  781. },
  782. init(info) {
  783. this.sliderMax = 0; //进度条最大值
  784. this.timeStr = "00:00"; //总的时间
  785. const parames = {
  786. pageNum: 1,
  787. pageSize: 100,
  788. query: {
  789. customerId: this.customerId
  790. }
  791. }
  792. this.$u.post("/corpus/findByPage", parames).then(res => {
  793. if (res && res.length) {
  794. this.luyinList = res;
  795. this.recordPath = res[0].recordPath;
  796. this.calibration=res[0].calibration;
  797. if(this.calibration==0){
  798. this.kehuyixiangcenterindex=0;
  799. }else{
  800. this.kehuyixiangcenterindex=1;
  801. }
  802. this.sliderMax = this.getTime(res[0].recordDuration)
  803. this.timeStr = this.getTime(res[0].recordDuration)
  804. this.datetiem = res[0].receptionTime;
  805. this.Alladdtodigest=res[0].status;
  806. this.getCorpusAnalysis(info)
  807. this.creatAudio()
  808. }
  809. })
  810. },
  811. // 获取转义后的对话结果
  812. getCorpusAnalysis(info) {
  813. this.dialogList = [];
  814. this.newluyinList=[]
  815. uni.request({
  816. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&bg="+info.bg+"&speaker="+this.roleindex, //仅为示例,并非真实接口地址。并非真实接口地址。
  817. method: "GET",
  818. header: {
  819. 'content-type': 'application/json',
  820. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  821. },
  822. success: (data) => {
  823. this.tablist=[];
  824. let jsonInfo = JSON.parse(data.data.data.audioContent);
  825. for(var i=0;i<=data.data.data.speakerNum;i++){
  826. if(i==0){
  827. this.tablist.push({
  828. name:'全部'
  829. })
  830. }else if(i==1){
  831. this.tablist.push({
  832. name:'A'
  833. })
  834. }else if(i==2){
  835. this.tablist.push({
  836. name:'B'
  837. })
  838. }else if(i==3){
  839. this.tablist.push({
  840. name:'C'
  841. })
  842. }else if(i==4){
  843. this.tablist.push({
  844. name:'D'
  845. })
  846. }else if(i==5){
  847. this.tablist.push({
  848. name:'E'
  849. })
  850. }else if(i==6){
  851. this.tablist.push({
  852. name:'F'
  853. })
  854. }else if(i==7){
  855. this.tablist.push({
  856. name:'G'
  857. })
  858. }else if(i==8){
  859. this.tablist.push({
  860. name:'H'
  861. })
  862. }else if(i==9){
  863. this.tablist.push({
  864. name:'I'
  865. })
  866. }else if(i==10){
  867. this.tablist.push({
  868. name:'J'
  869. })
  870. }else if(i==11){
  871. this.tablist.push({
  872. name:'K'
  873. })
  874. }else if(i==12){
  875. this.tablist.push({
  876. name:'L'
  877. })
  878. }else if(i==13){
  879. this.tablist.push({
  880. name:'M'
  881. })
  882. }else if(i==14){
  883. this.tablist.push({
  884. name:'N'
  885. })
  886. }else if(i==15){
  887. this.tablist.push({
  888. name:'O'
  889. })
  890. }else{
  891. this.tablist.push({
  892. name:'P'
  893. })
  894. }
  895. }
  896. this.tablist[data.data.data.speaker].name=this.tablist[data.data.data.speaker].name+"顾问";
  897. this.roleindexbiaoji=data.data.data.speaker-1;
  898. this.dshfkjsdkksodofydwfkhwdfkjh=data.data.data.speaker-1;
  899. this.speaker=data.data.data.speaker;
  900. //上拉标记点
  901. this.textindex=data.data.data.index;
  902. //下拉标记点
  903. this.toptextindex=data.data.data.index;
  904. jsonInfo.forEach(item=>{
  905. item.message=JSON.parse(item.onebest)
  906. item.backindex=this.csdFileindex;
  907. if(info.onebest){
  908. item.message.forEach(che=>{
  909. if(che.onebest==info.onebest){
  910. che.onebest=`<font style='color: red'>${che.onebest}</font>`;
  911. }
  912. })
  913. }
  914. })
  915. this.newluyinList=jsonInfo;
  916. this.dialogList.push(jsonInfo[this.textindex]);
  917. this.dialogList.forEach(res => {
  918. res.message.forEach(asd => {
  919. asd.isshow = false;
  920. })
  921. })
  922. var itc=parseInt(info.bg/1000)
  923. this.adasdasdasd(itc)
  924. }
  925. })
  926. },
  927. //复制
  928. clickcopy() {
  929. var that = this;
  930. uni.setClipboardData({
  931. data: that.thewrongword,
  932. success: function() {
  933. that.dialogList.forEach(res => {
  934. res.message.forEach(asd => {
  935. asd.isshow = false;
  936. })
  937. })
  938. that.$forceUpdate();
  939. console.log('success');
  940. }
  941. });
  942. },
  943. //长按点击播放
  944. clickbofang(dialog,item) {
  945. this.innerAudioContext.pause()
  946. this.dialogList.forEach(res => {
  947. res.message.forEach(asd => {
  948. asd.isshow = false;
  949. })
  950. })
  951. this.$forceUpdate()
  952. let platetime=item.bg;
  953. let newtime=item.bg/1000;
  954. this.dialogList=[]
  955. uni.request({
  956. url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&bg="+platetime, //仅为示例,并非真实接口地址。
  957. method: "GET",
  958. header: {
  959. 'content-type': 'application/json',
  960. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  961. },
  962. success: (data) => {
  963. this.textindex=data.data.data.index;
  964. this.toptextindex=data.data.data.index;
  965. this.dialogList.push(this.newluyinList[data.data.data.index])
  966. const currTimeStr = this.formatTime(newtime)
  967. this.currentTimeStr = currTimeStr
  968. this.innerAudioContext.seek(newtime);
  969. this.innerAudioContext.play();
  970. }
  971. })
  972. },
  973. //音频前进回退
  974. sliderChangeComplate(e) {
  975. let platetime=e.detail.value*1000;
  976. this.dialogList=[]
  977. uni.request({
  978. url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&bg="+platetime, //仅为示例,并非真实接口地址。
  979. method: "GET",
  980. header: {
  981. 'content-type': 'application/json',
  982. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  983. },
  984. success: (data) => {
  985. this.textindex=data.data.data.index;
  986. this.toptextindex=data.data.data.index;
  987. if(data.data.data.index>this.newluyinList.length){
  988. this.dialogList.push(this.newluyinList[0])
  989. }else{
  990. this.dialogList.push(this.newluyinList[data.data.data.index])
  991. }
  992. const currTimeStr = this.formatTime(e.detail.value)
  993. this.currentTimeStr = currTimeStr
  994. this.innerAudioContext.seek(e.detail.value);
  995. this.innerAudioContext.play();
  996. }
  997. })
  998. },
  999. //搜索跳转
  1000. adasdasdasd(e) {
  1001. const currTimeStr = this.formatTime(e)
  1002. this.currentTimeStr = currTimeStr
  1003. this.innerAudioContext.seek(e);
  1004. if(uni.getStorageSync('entrance')==1){
  1005. return
  1006. }else{
  1007. this.innerAudioContext.play();
  1008. }
  1009. },
  1010. // 播放/暂停
  1011. changePlayState(){
  1012. if (this.audioPlay == false) {
  1013. this.innerAudioContext.play();
  1014. } else {
  1015. this.innerAudioContext.pause()
  1016. }
  1017. },
  1018. //录音实例
  1019. creatAudio() {
  1020. this.innerAudioContext = uni.createInnerAudioContext();
  1021. if(uni.getStorageSync('entrance')==1){
  1022. this.innerAudioContext.autoplay = false;
  1023. }else{
  1024. this.innerAudioContext.autoplay = true;
  1025. }
  1026. this.innerAudioContext.src = this.recordPath;
  1027. this.innerAudioContext.title = '音频';
  1028. this.onPlay()
  1029. this.onPause()
  1030. this.onCanplay()
  1031. this.onEnded()
  1032. this.onSeeking()
  1033. this.onSeeked()
  1034. this.TimeUpdate()
  1035. },
  1036. formatTime(num) {
  1037. //格式化时间格式
  1038. num = num.toFixed(0);
  1039. let second = num % 60;
  1040. if (second < 10) second = '0' + second;
  1041. let min = Math.floor(num / 60);
  1042. if (min < 10) min = '0' + min;
  1043. return min + ":" + second;
  1044. },
  1045. //意向统计切换
  1046. Intentiontoswitch(i){
  1047. this.yixingindex=i;
  1048. if(i==1){
  1049. this.statistical()
  1050. }
  1051. },
  1052. statistical(){
  1053. this.$u.get("/matchKeywords/findCARKeywords", {
  1054. customerId: this.customerId
  1055. }).then(res => {
  1056. res.forEach(item=>{
  1057. if(item.isInterval==0){
  1058. item.name=item.name+item.unit+ '-'+ item.endName+item.unit;
  1059. }
  1060. })
  1061. this.options1=res;
  1062. })
  1063. },
  1064. //接待详情点击
  1065. Receivedetailsabouttab(stringa){
  1066. if(stringa=='Receivedetailsabout'){
  1067. this.gituserlist()
  1068. this.Receivedetailsabout=true;
  1069. }else if(stringa=='Pinspeak'){
  1070. this.getRatelist()
  1071. this.Pinspeak=true;
  1072. }else{
  1073. if(this.kehuyixiangcenterindex==0){
  1074. this.Acquirecustomerintent()
  1075. }else{
  1076. this.Acquirecustomerintent2()
  1077. }
  1078. this.intention=true;
  1079. }
  1080. },
  1081. //获取用户信息
  1082. gituserlist(){
  1083. this.$u.get("/matchKeywords/personalReceptionRecord", {
  1084. customerId: this.customerId
  1085. }).then(res => {
  1086. res.endTime1=res.endTime.substring(0, 19);
  1087. this.userlistobj=res;
  1088. })
  1089. },
  1090. Acquishow2(i){
  1091. this.Acquirecustomerintentlist2[i].isshow=!this.Acquirecustomerintentlist2[i].isshow;
  1092. },
  1093. tocalibration(){
  1094. this.innerAudioContext.destroy();
  1095. uni.navigateTo({
  1096. url: '/pages/mine/calibration?id='+this.customerId
  1097. });
  1098. },
  1099. customerofintention(i){
  1100. this.kehuyixiangcenterindex=i;
  1101. if(i==0){
  1102. this.Acquirecustomerintent()
  1103. }else{
  1104. this.Acquirecustomerintent2()
  1105. }
  1106. },
  1107. //获取人工校准意向信息
  1108. Acquirecustomerintent2(){
  1109. this.Acquirecustomerintentlist2=[];
  1110. this.$u.get("/matchKeywords/findManualCalibration", {
  1111. customerId: this.customerId,
  1112. type:1
  1113. }).then(res => {
  1114. res.forEach(item=>{
  1115. item.isshow=true;
  1116. item.children.forEach(chend=>{
  1117. if(chend.isInterval==0){
  1118. chend.text=chend.name+chend.unit+'-'+chend.endName+chend.unit
  1119. }else{
  1120. chend.text=chend.name
  1121. }
  1122. })
  1123. })
  1124. this.Acquirecustomerintentlist2=res;
  1125. })
  1126. },
  1127. //获取意向信息
  1128. Acquirecustomerintent(){
  1129. this.$u.get("/matchKeywords/findSystemAnalysis", {
  1130. customerId: this.customerId
  1131. }).then(res => {
  1132. res.forEach(item=>{
  1133. item.isshow=true;
  1134. item.children.forEach(chend=>{
  1135. if(chend.isInterval==0){
  1136. chend.text=chend.name+chend.unit+'-'+chend.endName+chend.unit
  1137. }else{
  1138. chend.text=chend.name
  1139. }
  1140. })
  1141. })
  1142. this.Acquirecustomerintentlist=res;
  1143. })
  1144. },
  1145. Acquishow(i){
  1146. this.Acquirecustomerintentlist[i].isshow=!this.Acquirecustomerintentlist[i].isshow;
  1147. },
  1148. Edittag(item,chend,index,i){
  1149. var selected='';
  1150. if(chend.selected==0){
  1151. selected=1;
  1152. this.Acquirecustomerintentlist[index].children[i].selected=1;
  1153. }else{
  1154. selected=0;
  1155. this.Acquirecustomerintentlist[index].children[i].selected=0;
  1156. }
  1157. this.$u.post("/matchKeywords/updatePersonalMatchData", {
  1158. carId: this.customerId,
  1159. selected:selected,
  1160. name:chend.name,
  1161. pid:chend.pid,
  1162. level:chend.level,
  1163. endName:chend.endName,
  1164. keywordsId:chend.keywordsId
  1165. }).then(res => {
  1166. })
  1167. },
  1168. //取消接待详情
  1169. clenReceivedetailsabout(){
  1170. this.Receivedetailsabout=false;
  1171. this.Pinspeak=false;
  1172. this.intention=false;
  1173. },
  1174. //标记选择角色
  1175. biaojixuanze(index){
  1176. this.roleindexbiaoji=index;
  1177. },
  1178. //标记顾问
  1179. tagtap(){
  1180. this.biojiisshow=!this.biojiisshow;
  1181. },
  1182. //取消标记
  1183. unmarktap(){
  1184. this.biojiisshow=false;
  1185. this.roleindexbiaoji=this.dshfkjsdkksodofydwfkhwdfkjh;
  1186. },
  1187. //确认标记
  1188. Confirmthetag(){
  1189. var num=this.roleindexbiaoji+1;
  1190. uni.request({
  1191. url: config.service.markConsultant + '?id=' + this.luyinList[this.csdFileindex].id+"&speaker="+num+'&customerId='+this.customerId, //仅为示例,并非真实接口地址。
  1192. method: "GET",
  1193. header: {
  1194. 'content-type': 'application/json',
  1195. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  1196. },
  1197. success: (data) => {
  1198. this.biojiisshow=false;
  1199. this.biaojiyuyi()
  1200. this.fenjiaoseunfo()
  1201. uni.showToast({
  1202. title: '标记成功',
  1203. duration: 2000
  1204. });
  1205. },
  1206. })
  1207. },
  1208. //标记语义词
  1209. biaojiyuyi(){
  1210. let parames={
  1211. carId:this.customerId
  1212. }
  1213. this.$u.post("/matchKeywords/toMatchKeywords", parames).then(res => {
  1214. console.log(res)
  1215. })
  1216. },
  1217. //标记tab切换
  1218. tapspagek2(index) {
  1219. this.roleindex = index;
  1220. this.newluyinList=[];
  1221. this.fenjiaoseunfo()
  1222. },
  1223. // 跳转客户意向
  1224. argece(item) {
  1225. console.log(item)
  1226. this.innerAudioContext.destroy();
  1227. if (item.selected == 0) {
  1228. console.log(item)
  1229. uni.navigateTo({
  1230. url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item.keywordsId + "&type=" + 1
  1231. })
  1232. }
  1233. },
  1234. //分角色标记刷新
  1235. fenjiaoseunfo(){
  1236. var bgcd=this.sliderValue*1000;
  1237. this.newluyinList=[];
  1238. this.dialogList = [];
  1239. uni.request({
  1240. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&bg="+bgcd+"&speaker="+this.roleindex, //仅为示例,并非真实接口地址。
  1241. method: "GET",
  1242. header: {
  1243. 'content-type': 'application/json',
  1244. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  1245. },
  1246. success: (data) => {
  1247. this.tablist=[];
  1248. let jsonInfo = JSON.parse(data.data.data.audioContent);
  1249. for(var i=0;i<=data.data.data.speakerNum;i++){
  1250. if(i==0){
  1251. this.tablist.push({
  1252. name:'全部'
  1253. })
  1254. }else if(i==1){
  1255. this.tablist.push({
  1256. name:'A'
  1257. })
  1258. }else if(i==2){
  1259. this.tablist.push({
  1260. name:'B'
  1261. })
  1262. }else if(i==3){
  1263. this.tablist.push({
  1264. name:'C'
  1265. })
  1266. }else if(i==4){
  1267. this.tablist.push({
  1268. name:'D'
  1269. })
  1270. }else if(i==5){
  1271. this.tablist.push({
  1272. name:'E'
  1273. })
  1274. }else if(i==6){
  1275. this.tablist.push({
  1276. name:'F'
  1277. })
  1278. }else if(i==7){
  1279. this.tablist.push({
  1280. name:'G'
  1281. })
  1282. }else if(i==8){
  1283. this.tablist.push({
  1284. name:'H'
  1285. })
  1286. }else if(i==9){
  1287. this.tablist.push({
  1288. name:'I'
  1289. })
  1290. }else if(i==10){
  1291. this.tablist.push({
  1292. name:'J'
  1293. })
  1294. }else if(i==11){
  1295. this.tablist.push({
  1296. name:'K'
  1297. })
  1298. }else if(i==12){
  1299. this.tablist.push({
  1300. name:'L'
  1301. })
  1302. }else if(i==13){
  1303. this.tablist.push({
  1304. name:'M'
  1305. })
  1306. }else if(i==14){
  1307. this.tablist.push({
  1308. name:'N'
  1309. })
  1310. }else if(i==15){
  1311. this.tablist.push({
  1312. name:'O'
  1313. })
  1314. }else{
  1315. this.tablist.push({
  1316. name:'P'
  1317. })
  1318. }
  1319. }
  1320. this.tablist[data.data.data.speaker].name=this.tablist[data.data.data.speaker].name+"顾问";
  1321. this.roleindexbiaoji=data.data.data.speaker-1;
  1322. this.dshfkjsdkksodofydwfkhwdfkjh=data.data.data.speaker-1;
  1323. this.speaker=data.data.data.speaker;
  1324. //上拉标记点
  1325. this.textindex=data.data.data.index;
  1326. //下拉标记点
  1327. this.toptextindex=data.data.data.index;
  1328. jsonInfo.forEach(item=>{
  1329. item.message=JSON.parse(item.onebest)
  1330. item.backindex=this.csdFileindex
  1331. })
  1332. this.newluyinList=jsonInfo;
  1333. if(this.textindex==null){
  1334. return
  1335. }else{
  1336. this.dialogList.push(jsonInfo[this.textindex]);
  1337. }
  1338. }
  1339. })
  1340. },
  1341. getTime(time) {
  1342. return util.formatSecond(time)
  1343. },
  1344. //回到顶部
  1345. gotoTop() {
  1346. console.log("11111111111111111")
  1347. this.scrollId = null;
  1348. this.$nextTick(() => {
  1349. this.scrollId = "top";
  1350. })
  1351. },
  1352. //评分上下显隐
  1353. changeshow(item, type) {
  1354. item.show = !item.show;
  1355. },
  1356. changeshow2(item, type){
  1357. item.show = !item.show;
  1358. },
  1359. // 获取评分
  1360. getRatelist() {
  1361. if (this.ratelist.length == 0) {
  1362. uni.showLoading({
  1363. title: '加载中'
  1364. });
  1365. this.$u.get("/customer/findzkMByCusId", {
  1366. cusId: this.customerId
  1367. }).then(res => {
  1368. if (res.length) {
  1369. let level1 = []
  1370. let level2rate = 0
  1371. res.forEach(item => {
  1372. if (item.pid == 0) {
  1373. level1.push({
  1374. id: item.marketingId,
  1375. rate: item.fraction,
  1376. name: item.name,
  1377. sort: item.sort,
  1378. show: false,
  1379. ratepercent: 0,
  1380. children: []
  1381. })
  1382. } else {
  1383. if (item.selected == 0) {
  1384. level2rate += item.fraction
  1385. }
  1386. }
  1387. })
  1388. this.totalRate = level2rate;
  1389. res.forEach(subitem => {
  1390. let subitempid = subitem.pid
  1391. level1.forEach(item => {
  1392. if (subitempid == item.id) {
  1393. if (subitem.selected == 0) {
  1394. item.ratepercent += subitem.fraction
  1395. }
  1396. item.children.push({
  1397. id: subitem.id,
  1398. rate: subitem.fraction,
  1399. selected: subitem.selected,
  1400. name: subitem.name,
  1401. show: false,
  1402. marketingId:subitem.marketingId,
  1403. children: []
  1404. })
  1405. }
  1406. })
  1407. })
  1408. res.forEach(subitem => {
  1409. let subitempid = subitem.pid
  1410. level1.forEach(chen=>{
  1411. chen.children.forEach(zxc=>{
  1412. if(subitempid == zxc.marketingId){
  1413. zxc.children.push({
  1414. id: subitem.id,
  1415. rate: subitem.fraction,
  1416. selected: subitem.selected,
  1417. name: subitem.name,
  1418. marketingId:subitem.marketingId,
  1419. })
  1420. }
  1421. })
  1422. })
  1423. })
  1424. level1[0].show = true;
  1425. level1[0].children[0].show = true;
  1426. this.ratelist = level1
  1427. }
  1428. setTimeout(function() {
  1429. uni.hideLoading();
  1430. }, 1000);
  1431. })
  1432. }
  1433. },
  1434. //评分点击
  1435. clickaudeopal(item){
  1436. if(item.selected==0){
  1437. uni.navigateTo({
  1438. url: '/pages/mine/ScoringPlaylist?customerId='+this.customerId +"&id="+item.marketingId + "&type=0"
  1439. })
  1440. }
  1441. },
  1442. //下一页
  1443. ltolower() {
  1444. var lengthcz=this.newluyinList.length-1;
  1445. if (this.textindex >= lengthcz) {
  1446. uni.showToast({
  1447. title: '到底了',
  1448. duration: 2000
  1449. });
  1450. return
  1451. }else {
  1452. this.textindex=this.textindex+1;
  1453. this.newluyinList[this.textindex].message.forEach(item=>{
  1454. this.dialogList[0].message.push(item)
  1455. })
  1456. }
  1457. console.log("下一页",this.textindex)
  1458. },
  1459. //上一页
  1460. rolltoupper() {
  1461. if(this.toptextindex == 0){
  1462. // uni.showToast({
  1463. // title: '到头了',
  1464. // duration: 2000
  1465. // });
  1466. return
  1467. }else {
  1468. if(this.dialogList[0]==undefined ){
  1469. return
  1470. }else{
  1471. this.toptextindex=this.toptextindex-1;
  1472. let reverselist=this.newluyinList[this.toptextindex].message;
  1473. let runlist=reverselist.reverse();
  1474. runlist.forEach(item=>{
  1475. this.dialogList[0].message.unshift(item)
  1476. })
  1477. }
  1478. }
  1479. console.log("上一页",this.toptextindex)
  1480. },
  1481. // 取消全部加精
  1482. notappick() {
  1483. var that = this;
  1484. uni.showModal({
  1485. title: '提示',
  1486. content: '确认取消加精?',
  1487. success: function(res) {
  1488. if (res.confirm) {
  1489. console.log('用户点击确定');
  1490. uni.request({
  1491. url: config.service.delATD + "?carId=" + that.customerId+'&itemId='+that.buildingID,
  1492. method: "GET",
  1493. header: {
  1494. 'content-type': 'application/json',
  1495. 'Access-Token': uni.getStorageSync('weapp_session_login_data')
  1496. .token
  1497. },
  1498. success: (data) => {
  1499. if (data.data.code == 10000) {
  1500. that.Alladdtodigest = 1
  1501. uni.showToast({
  1502. title: '取消成功',
  1503. duration: 2000
  1504. });
  1505. } else {
  1506. uni.showToast({
  1507. title: data.data.message,
  1508. duration: 2000
  1509. });
  1510. }
  1511. }
  1512. })
  1513. } else if (res.cancel) {
  1514. console.log('用户点击取消');
  1515. }
  1516. }
  1517. });
  1518. },
  1519. //全部加精
  1520. tappick() {
  1521. var that = this;
  1522. uni.showModal({
  1523. title: '提示',
  1524. content: '确认加精?',
  1525. success: function(res) {
  1526. if (res.confirm) {
  1527. console.log('用户点击确定');
  1528. let objdata = {
  1529. "carId": that.customerId, //客户id
  1530. "status": 0,
  1531. "itemId":that.buildingID,
  1532. }
  1533. uni.request({
  1534. url: config.service.addATD,
  1535. method: "POST",
  1536. header: {
  1537. 'content-type': 'application/json',
  1538. 'Access-Token': uni.getStorageSync('weapp_session_login_data')
  1539. .token
  1540. },
  1541. data: objdata,
  1542. success: (data) => {
  1543. if (data.data.code == 10000) {
  1544. that.Alladdtodigest = 0
  1545. uni.showToast({
  1546. title: '加精成功',
  1547. duration: 2000
  1548. });
  1549. } else {
  1550. uni.showToast({
  1551. title: data.data.message,
  1552. duration: 2000
  1553. });
  1554. }
  1555. }
  1556. })
  1557. } else if (res.cancel) {
  1558. console.log('用户点击取消');
  1559. }
  1560. }
  1561. });
  1562. },
  1563. }
  1564. };
  1565. </script>
  1566. <style lang="scss" scoped>
  1567. .box{
  1568. width: 100%;
  1569. height: 100vh;
  1570. display:flex;
  1571. flex-direction:column;
  1572. .pingfenbox{
  1573. width: 100%;
  1574. height: 60rpx;
  1575. line-height: 60rpx;
  1576. border-bottom: 1px solid #E0E0E0;
  1577. display: flex;
  1578. }
  1579. .pingfenbox view{
  1580. flex: 1;
  1581. text-align: center;
  1582. font-size: 28rpx;
  1583. text-indent: 20rpx;
  1584. }
  1585. .activecllasscet{
  1586. background: #2671E2;
  1587. color: #FFFFFF;
  1588. }
  1589. .title1-12{
  1590. font-size: 28rpx;
  1591. color:#2671E2;
  1592. font-weight: 400;
  1593. text-indent: 30rpx;
  1594. margin-top: 18rpx;
  1595. }
  1596. .headbox{
  1597. width: 100%;
  1598. min-height: 173rpx;
  1599. border-bottom: 1px solid #E0E0E0;
  1600. }
  1601. .zhuti{
  1602. flex:1;
  1603. overflow:auto;
  1604. }
  1605. .bottombox{
  1606. width: 100%;
  1607. height: 170rpx;
  1608. border-top: 1px solid #E0E0E0;
  1609. .bottomhead{
  1610. width: 100%;
  1611. height: 81rpx;
  1612. border-bottom: 1px solid #E0E0E0;
  1613. display: flex;
  1614. justify-content: space-between;
  1615. align-items: center;
  1616. .audio-slider {
  1617. width: 87%;
  1618. display: flex;
  1619. justify-content: space-between;
  1620. align-items: center;
  1621. padding-right: 30rpx;
  1622. }
  1623. .audio-slider .slider {
  1624. width: 100%;
  1625. padding: 0px 15rpx;
  1626. box-sizing: border-box;
  1627. }
  1628. .audio-time {
  1629. width: 110rpx;
  1630. text-align: right;
  1631. font-size: 26rpx;
  1632. line-height: 28rpx;
  1633. color: #70798D;
  1634. display: flex;
  1635. justify-content: space-between;
  1636. }
  1637. .audio-play {
  1638. width: 48rpx;
  1639. height: 48rpx;
  1640. flex-shrink: 0;
  1641. }
  1642. .audio-play .image {
  1643. width: 100%;
  1644. height: 100%;
  1645. margin-left: 30rpx;
  1646. }
  1647. }
  1648. .botbotmm{
  1649. width: 100%;
  1650. height: 88rpx;
  1651. display: flex;
  1652. align-items: center;
  1653. }
  1654. }
  1655. }
  1656. .headboxhead{
  1657. width: 100%;
  1658. height: 84rpx;
  1659. border-bottom: 1px solid #E0E0E0;
  1660. display: flex;
  1661. .boxhead1{
  1662. width: 50%;
  1663. color: #303030;
  1664. height: 84rpx;
  1665. line-height: 84rpx;
  1666. font-size: 28rpx;
  1667. text-indent: 30rpx;
  1668. }
  1669. .boxhead2{
  1670. width: 46%;
  1671. height: 84rpx;
  1672. text-align: right;
  1673. }
  1674. }
  1675. .boxhead2 image{
  1676. width: 36rpx;
  1677. height: 36rpx;
  1678. margin-top: 24rpx;
  1679. }
  1680. .headboxbott{
  1681. width: 100%;
  1682. height:88rpx;
  1683. display: flex;
  1684. align-items: center;
  1685. .headovfu{
  1686. flex: 1;
  1687. height: 88rpx;
  1688. overflow: hidden;
  1689. }
  1690. .headpade{
  1691. width: 160rpx;
  1692. height: 60rpx;
  1693. display: flex;
  1694. justify-content: center;
  1695. align-items: center;
  1696. border-left: 1px solid #D6D6D6;
  1697. .biaoji{
  1698. width: 100rpx;
  1699. height: 48rpx;
  1700. background: #E6625B;
  1701. border-radius: 24rpx;
  1702. text-align: center;
  1703. line-height: 48rpx;
  1704. color: #FFFFFF;
  1705. font-size: 26rpx;
  1706. }
  1707. }
  1708. }
  1709. .fill{
  1710. width: 2rpx;
  1711. height: 41rpx;
  1712. background: #E0E0E0;
  1713. }
  1714. .tmmchen{
  1715. width: 25%;
  1716. height: 88rpx;
  1717. text-align: center;
  1718. color: #666666;
  1719. font-size: 18rpx;
  1720. }
  1721. .tmmchen image{
  1722. width: 40rpx;
  1723. height: 40rpx;
  1724. margin-top: 10rpx;
  1725. margin-bottom: 2rpx;
  1726. }
  1727. .zhezhoa {
  1728. position: fixed;
  1729. top: 0;
  1730. left: 0;
  1731. z-index: 999;
  1732. width: 100%;
  1733. height: 100vh;
  1734. opacity: 0.5;
  1735. background-color: #666666;
  1736. }
  1737. .followingpop-up{
  1738. width: 100%;
  1739. height: 75vh;
  1740. background: #FFFFFF;
  1741. position: fixed;
  1742. background: #FFFFFF;
  1743. left: 0px;
  1744. bottom: 0px;
  1745. z-index: 1000;
  1746. display:flex;
  1747. flex-direction:column;
  1748. // position: relative;
  1749. .calibration{
  1750. width: 90rpx;
  1751. height: 90rpx;
  1752. background: #2671E2;
  1753. text-align: center;
  1754. line-height: 90rpx;
  1755. border-radius: 50%;
  1756. color: #FFFFFF;
  1757. position: absolute;
  1758. right: 30rpx;
  1759. bottom: 100rpx;
  1760. }
  1761. .guanbibox{
  1762. width: 100%;
  1763. padding-bottom: 20rpx;
  1764. margin-top: 20rpx;
  1765. border-bottom: 1px solid #E0E0E0;
  1766. position: relative;
  1767. .guanbixen{
  1768. width:30rpx;
  1769. height:30rpx;
  1770. position: absolute;
  1771. right: 30rpx;
  1772. top: 6rpx;
  1773. }
  1774. .cenisboxtab{
  1775. width: 100%;
  1776. display: flex;
  1777. .cenisboxtabview{
  1778. flex: 1;
  1779. display: flex;
  1780. align-items: center;
  1781. justify-content: center;
  1782. color: #333333;
  1783. font-size: 30rpx;
  1784. font-weight: 600;
  1785. }
  1786. }
  1787. }
  1788. .cenisbox{
  1789. flex:1;
  1790. overflow:auto;
  1791. .jianbox{
  1792. width: 100%;
  1793. border-bottom: 1px solid #E0E0E0;
  1794. padding-top: 24rpx;
  1795. padding-bottom: 24rpx;
  1796. .jianbox-cen{
  1797. width: 100%;
  1798. height: 78rpx;
  1799. // border-bottom: 1px solid #E0E0E0;
  1800. display: flex;
  1801. .jianboxtext{
  1802. flex: 1;
  1803. height: 100%;
  1804. font-size: 30rpx;
  1805. font-weight: 600;
  1806. line-height: 78rpx;
  1807. color: #333333;
  1808. text-indent: 30rpx;
  1809. }
  1810. .jianboxjian{
  1811. width: 80rpx;
  1812. height: 100%;
  1813. line-height: 78rpx;
  1814. text-align: center;
  1815. }
  1816. }
  1817. .bioqianwayl{
  1818. width: 690rpx;
  1819. margin: 0 auto;
  1820. display: flex;
  1821. flex-wrap: wrap;
  1822. }
  1823. .bioqianwayl view{
  1824. padding-left: 24rpx;
  1825. padding-right: 24rpx;
  1826. padding-top: 10rpx;
  1827. padding-bottom: 10rpx;
  1828. margin-right: 24rpx;
  1829. margin-top: 20rpx;
  1830. border-radius: 8rpx;
  1831. font-size: 26rpx;
  1832. }
  1833. }
  1834. }
  1835. }
  1836. .jiantop{
  1837. width: 14rpx;
  1838. height: 24rpx;
  1839. }
  1840. .jiantop1{
  1841. width: 20rpx;
  1842. height: 14rpx;
  1843. }
  1844. .sdfsaf{
  1845. padding-left: 24rpx;
  1846. padding-right: 24rpx;
  1847. padding-top: 10rpx;
  1848. padding-bottom: 10rpx;
  1849. border-radius: 8rpx;
  1850. font-size: 26rpx;
  1851. }
  1852. .yixingindexclass{
  1853. border-bottom: 3px solid #2671E2;
  1854. }
  1855. .cenisboxdspl{
  1856. width: 94%;
  1857. margin: 0 auto;
  1858. padding-bottom: 24rpx;
  1859. display: flex;
  1860. flex-wrap: wrap;
  1861. .cenisboxdsplview{
  1862. padding-left: 24rpx;
  1863. padding-right: 24rpx;
  1864. padding-top: 10rpx;
  1865. padding-bottom: 10rpx;
  1866. background: #F4F8FD;
  1867. color: #2671E2;
  1868. font-size: 26rpx;
  1869. margin-right: 24rpx;
  1870. margin-top: 24rpx;
  1871. }
  1872. }
  1873. .bounced {
  1874. width: 570upx;
  1875. background: #FFFFFF;
  1876. z-index: 1000;
  1877. border-radius: 10upx;
  1878. position: fixed;
  1879. left: 50%;
  1880. top: 50%;
  1881. transform: translate(-50%, -50%);
  1882. /* 50%为自身尺寸的一半 */
  1883. .jiajinghuatit {
  1884. width: 100%;
  1885. height: 68rpx;
  1886. font-size: 30rpx;
  1887. text-align: center;
  1888. line-height: 68rpx;
  1889. }
  1890. .jiajinghuaview {
  1891. padding: 18rpx 18rpx 18rpx 18rpx;
  1892. display: flex;
  1893. flex-wrap: wrap;
  1894. .jiajinghuaview1 {
  1895. padding: 8rpx 8rpx 8rpx 8rpx;
  1896. font-size: 26rpx;
  1897. border-radius: 12rpx;
  1898. border: 1px solid #979797;
  1899. margin-left: 8rpx;
  1900. }
  1901. .jighuaview2 {
  1902. padding: 8rpx 18rpx 8rpx 18rpx;
  1903. font-size: 26rpx;
  1904. border-radius: 12rpx;
  1905. border: 1px solid #979797;
  1906. margin-left: 20rpx;
  1907. margin-top: 10rpx;
  1908. display: flex;
  1909. .view1-text {
  1910. text-align: center;
  1911. }
  1912. .view1-img {
  1913. width: 50rpx;
  1914. }
  1915. }
  1916. }
  1917. .bounced3 {
  1918. height: 100upx;
  1919. width: 100%;
  1920. margin-top: 40upx;
  1921. border-top: 1px solid #dddddd;
  1922. display: flex;
  1923. }
  1924. .bounced3-1 {
  1925. width: 50%;
  1926. height: 100%;
  1927. text-align: center;
  1928. line-height: 100upx;
  1929. border-right: 1px solid #dddddd;
  1930. font-size: 36upx;
  1931. color: #999999;
  1932. }
  1933. .bounced3-2 {
  1934. width: 50%;
  1935. height: 100%;
  1936. text-align: center;
  1937. line-height: 100upx;
  1938. font-size: 36upx;
  1939. color: #108ee9;
  1940. }
  1941. }
  1942. .viewclace{
  1943. width: 100rpx;
  1944. height: 40rpx;
  1945. text-align: center;
  1946. line-height: 40rpx;
  1947. border-radius: 14rpx;
  1948. margin-right: 34rpx;
  1949. margin-top: 16rpx;
  1950. font-size: 24rpx;
  1951. }
  1952. .bosdttom{
  1953. color: #FFFFFF;
  1954. background-color: #2671E2;
  1955. }
  1956. .dialog-block {
  1957. margin: 20rpx 0;
  1958. border-bottom: 1px solid #ccc;
  1959. .fileName {
  1960. text-align: center;
  1961. margin: 10rpx auto;
  1962. width: 115rpx;
  1963. height: 42rpx;
  1964. line-height: 42rpx;
  1965. background: #EFEFEF;
  1966. border-radius: 4rpx;
  1967. font-size: 20rpx;
  1968. font-weight: 400;
  1969. color: #333333;
  1970. }
  1971. }
  1972. .scroll-Y {
  1973. font-size: 36upx;
  1974. color: #999999;
  1975. background: #FFFFFF;
  1976. margin-top: 30upx;
  1977. flex: 1;
  1978. overflow-y: scroll;
  1979. width: 100%;
  1980. }
  1981. .scroll-Y .text {
  1982. margin: 50upx 30upx;
  1983. line-height: 80upx;
  1984. display: flex;
  1985. align-items: center;
  1986. }
  1987. .scroll-Y .text[data-speaker="2"],
  1988. .scroll-Y .text[data-speaker="4"],
  1989. .scroll-Y .text[data-speaker="6"] {
  1990. flex-direction: row-reverse;
  1991. text-align: right;
  1992. .content {
  1993. margin-left: 0;
  1994. margin-right: 30upx;
  1995. background: #F6F6F6;
  1996. color: #999999;
  1997. }
  1998. }
  1999. .scroll-Y .text .avatar {
  2000. width: 64upx;
  2001. height: 64upx;
  2002. line-height: 64upx;
  2003. text-align: center;
  2004. // border: 1rpx solid red;
  2005. font-size: 36rpx;
  2006. border-radius: 50%;
  2007. background: #F2F2F2;
  2008. color: #008EF2;
  2009. // display: flex;
  2010. // justify-content: center;
  2011. // align-items: center;
  2012. image {
  2013. width: 40upx;
  2014. }
  2015. }
  2016. .scroll-Y .text .content {
  2017. margin-left: 30upx;
  2018. line-height: 60rpx;
  2019. text-align: left;
  2020. padding: 0 5px;
  2021. background: #2BC805;
  2022. border-radius: 8upx;
  2023. max-width: 442rpx;
  2024. color: #FFFFFF;
  2025. position: relative;
  2026. .tankuangcss {
  2027. position: absolute;
  2028. top: -140rpx;
  2029. left: -120rpx;
  2030. width: 308rpx;
  2031. height: 130rpx;
  2032. background-color: #333333;
  2033. font-size: 24rpx;
  2034. color: #FFFFFF;
  2035. padding-top: 4rpx;
  2036. padding-bottom: 4rpx;
  2037. display: flex;
  2038. flex-wrap: wrap;
  2039. border-radius: 15rpx;
  2040. z-index: 1000;
  2041. }
  2042. }
  2043. .scroll-Y .text.active .content {
  2044. color: #38FFF1;
  2045. position: relative;
  2046. }
  2047. .scroll-Y .text.active[data-speaker="2"] .content,
  2048. .scroll-Y .text.active[data-speaker="4"] .content,
  2049. .scroll-Y .text.active[data-speaker="6"] .content {
  2050. color: #FF7538;
  2051. position: relative;
  2052. }
  2053. .backTop {
  2054. width: 60upx;
  2055. height: 60upx;
  2056. background: rgba(211, 235, 253, 1);
  2057. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  2058. border-radius: 50%;
  2059. position: fixed;
  2060. bottom: 200upx;
  2061. right: 8upx;
  2062. display: flex;
  2063. justify-content: center;
  2064. align-items: center;
  2065. image {
  2066. width: 26upx;
  2067. height: 34upx;
  2068. }
  2069. }
  2070. .jiangshang{
  2071. color: #2671E2;
  2072. background: #F4F8FD;
  2073. }
  2074. .jiangshang1{
  2075. color: #FFFFFF;
  2076. background: #999999;
  2077. }
  2078. // 表单
  2079. .tian-view {
  2080. width: 570upx;
  2081. background-color: #FFFFFF;
  2082. border-bottom: 1px solid #ededee;
  2083. display: flex;
  2084. min-height: 96rpx;
  2085. .tian-view-t1 {
  2086. width: 20rpx;
  2087. font-size: 34rpx;
  2088. height: 34rpx;
  2089. line-height: 110rpx;
  2090. letter-spacing: 0px;
  2091. color: red;
  2092. }
  2093. .tian-view-t2 {
  2094. width: 30%;
  2095. min-height: 96rpx;
  2096. line-height: 96rpx;
  2097. font-size: 34rpx;
  2098. color: #333;
  2099. }
  2100. .tian-view-t3 {
  2101. width: 61%;
  2102. padding-top: 31rpx;
  2103. padding-bottom: 31rpx;
  2104. display: flex;
  2105. .tian-input {
  2106. width: 98%;
  2107. font-size: 34rpx;
  2108. border: none;
  2109. }
  2110. }
  2111. }
  2112. .inputbox{
  2113. width: 100%;
  2114. height: 100rpx;
  2115. display: flex;
  2116. align-items: center;
  2117. justify-content: center;
  2118. border-bottom: 1px solid #E0E0E0;
  2119. .thisinput{
  2120. width:94%;
  2121. height: 52rpx;
  2122. background: #FFFFFF;
  2123. border-radius: 8rpx;
  2124. border: 1px solid #C9C9C9;
  2125. color: #333333;
  2126. font-size: 26rpx;
  2127. text-indent: 26rpx;
  2128. line-height: 52rpx;
  2129. }
  2130. }
  2131. .biaoqiantom {
  2132. background-color: #008EF2;
  2133. color: #FFFFFF;
  2134. border: none;
  2135. }
  2136. .Level-box{
  2137. padding-bottom: 2rpx;
  2138. .hhhbox{
  2139. width:100%;
  2140. padding-left: 30rpx;
  2141. padding-right: 30rpx;
  2142. border-bottom: 1rpx solid #E0E0E0;
  2143. background: #FFFFFF;
  2144. // padding-bottom: 32rpx;
  2145. .hsnrtest{
  2146. height: 24rpx;
  2147. font-size: 24rpx;
  2148. font-weight: 400;
  2149. color: #666666;
  2150. line-height: 24rpx;
  2151. }
  2152. .Level3che{
  2153. width:100%;
  2154. height:28rpx;
  2155. display: flex;
  2156. line-height: 28rpx;
  2157. align-items: center;
  2158. margin-top: 30rpx;
  2159. .title1{
  2160. flex: 1;
  2161. font-size: 28rpx;
  2162. color:#2671E2;
  2163. font-weight: 400;
  2164. }
  2165. .jiantobox{
  2166. width: 30rpx;
  2167. height: 30rpx;
  2168. display: flex;
  2169. align-items: center;
  2170. .arrow{
  2171. width: 28rpx;
  2172. height:28rpx;
  2173. }
  2174. }
  2175. }
  2176. }
  2177. .Level2che{
  2178. width:100%;
  2179. height: 88rpx;
  2180. display: flex;
  2181. line-height: 88rpx;
  2182. align-items: center;
  2183. .title1{
  2184. flex: 2;
  2185. font-size: 28rpx;
  2186. color: #333333;
  2187. font-weight: 400;
  2188. }
  2189. .leve1-jindu{
  2190. flex: 3;
  2191. display: flex;
  2192. justify-content: center;
  2193. align-items: center;
  2194. .zhixing{
  2195. width: 108rpx;
  2196. height: 44rpx;
  2197. background: #2671E2;
  2198. border-radius: 4rpx;
  2199. font-size: 28rpx;
  2200. text-align: center;
  2201. line-height: 44rpx;
  2202. color: #FFFFFF;
  2203. }
  2204. .zhixing2{
  2205. width: 108rpx;
  2206. height: 44rpx;
  2207. background: #F8F8F8;
  2208. border-radius: 4rpx;
  2209. font-size: 28rpx;
  2210. text-align: center;
  2211. line-height: 44rpx;
  2212. color: #999999;
  2213. }
  2214. }
  2215. .jiantobox{
  2216. width: 30rpx;
  2217. height: 30rpx;
  2218. display: flex;
  2219. align-items: center;
  2220. .arrow{
  2221. width: 30rpx;
  2222. height:18rpx;
  2223. }
  2224. }
  2225. }
  2226. .Level1che{
  2227. width:100%;
  2228. height: 94rpx;
  2229. background: #F5F5F5;
  2230. display: flex;
  2231. line-height: 94rpx;
  2232. align-items: center;
  2233. padding-left: 30rpx;
  2234. padding-right: 30rpx;
  2235. .title1{
  2236. flex: 2;
  2237. font-size: 30rpx;
  2238. color: #333333;
  2239. font-weight: 400;
  2240. }
  2241. .leve1-jindu{
  2242. flex: 3;
  2243. .jindutiao{
  2244. width: 96%;
  2245. height: 28rpx;
  2246. background: #D5EEE2;
  2247. line-height: 28rpx;
  2248. border-radius: 14rpx;
  2249. position: relative;
  2250. .huanxing{
  2251. height: 100%;
  2252. background: #4FC78F;
  2253. border-radius: 14rpx;
  2254. }
  2255. .text{
  2256. position: absolute;
  2257. top: 0rpx;
  2258. right: 0rpx;
  2259. font-size: 28rpx;
  2260. font-weight: 400;
  2261. color: #333333;
  2262. }
  2263. }
  2264. }
  2265. .jiantobox{
  2266. width: 30rpx;
  2267. height: 30rpx;
  2268. display: flex;
  2269. align-items: center;
  2270. .arrow{
  2271. width: 30rpx;
  2272. height:18rpx;
  2273. }
  2274. }
  2275. }
  2276. }
  2277. .rotatearrow {
  2278. transform: rotate(270deg);
  2279. }
  2280. </style>