You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Receivedetailabout.vue 63 KiB

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