選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

details2.vue 79 KiB

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