25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

detailsNew.vue 40 KiB

2 yıl önce
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454
  1. <template>
  2. <view class="box">
  3. <view class="headbox">
  4. <view class="tit-tiem">{{luyinList[csdFileindex].receptionTime}}</view>
  5. <view class="call_record_time_one">接待时长 {{alltimeStr}}
  6. <view class="audoioyouxiao" @click="alllogo()" v-if="Menulistisshow==true">
  7. {{userlistobj.validInvalidName||''}}
  8. </view>
  9. <view class="diangweitupian" v-if="jiaoseshow" >
  10. <image v-if="essenceis==1" @click="tappick()" style="width: 100%;height: 100%;" src="../../static/images/pike.png" mode=""></image>
  11. <image v-if="essenceis==0" @click="notappick()" style="width: 100%;height: 100%;" src="../../static/images/nopike.png" mode=""></image>
  12. </view>
  13. </view>
  14. <view class="pingfenbox" style="margin-top: 10rpx;">
  15. <view :class="{ activecllasscet: kehuyixiangcenterindex == 0 }" @click="customerofintention(0)">音频识别</view>
  16. <view :class="{ activecllasscet: kehuyixiangcenterindex == 1 }" @click="customerofintention(1)">执行率{{totalRate||0}}%</view>
  17. </view>
  18. </view>
  19. <scroll-view v-if="kehuyixiangcenterindex==0" scroll-y="true" :scroll-into-view="scrollId" :scroll-top="scrollTop"
  20. class="zhuti text scroll-Y">
  21. <!-- 聊天记录-->
  22. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  23. <view class="text" :id="'dialog'+csdFileindex+'text'+item.bg"
  24. :class="{active: item.bg < playNow && item.ed > playNow && i==0}"
  25. v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker">
  26. <view class="avatar">
  27. <text v-if="item.speaker == 1" style="color: #60CBEC;">A</text>
  28. <text v-if="item.speaker == 2" style="color: #EC8B47;">B</text>
  29. <text v-if="item.speaker == 3" style="color: #4F861E;">C</text>
  30. <text v-if="item.speaker == 4" style="color: #9F61C8;">D</text>
  31. <text v-if="item.speaker == 5" style="color: #4980C8;">E</text>
  32. <text v-if="item.speaker == 6" style="color: #60CBEC;">F</text>
  33. <text v-if="item.speaker == 7" style="color: #EC8B47;">G</text>
  34. <text v-if="item.speaker == 8" style="color: #4F861E;">H</text>
  35. <text v-if="item.speaker == 9" style="color: #9F61C8;">I</text>
  36. </view>
  37. <view class="content">
  38. <view @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view>
  39. <view class="tankuangcss" v-if="item.isshow">
  40. <view @click="clickcopy()"
  41. style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制
  42. </view>
  43. <view @click="Oftenthewrongword()"
  44. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">常错词
  45. </view>
  46. <view @click="Addtheessence()" v-if="jiaoseshow"
  47. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">加精华
  48. </view>
  49. <view @click="clickbofang(dialog.backindex,item)"
  50. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 14rpx;">播放
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </scroll-view>
  57. <view class="zhuti" v-if="kehuyixiangcenterindex==1">
  58. <view style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
  59. <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标</view>
  60. <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率</view>
  61. </view>
  62. <view class="Level-box" v-for="(item,index) in ratelist" :key="index">
  63. <view class="Level1che" @click="changeshow(item,1)">
  64. <view class="title1">{{item.name.substring(0,8)}}</view>
  65. <view class="leve1-jindu">
  66. <view class="jindutiao">
  67. <view class="huanxing" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
  68. <view class="text">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%</view>
  69. </view>
  70. </view>
  71. <view class="jiantobox">
  72. <image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
  73. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  74. </view>
  75. </view>
  76. <view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
  77. <view class="Level2che" @click="changeshow2(subitem,1)" >
  78. <view class="title1" >{{subitem.name.substring(0,8)}}</view>
  79. <view class="leve1-jindu">
  80. <view class="zhixing" v-if="!subitem.selected">已执行</view>
  81. <view class="zhixing2" v-else>未执行</view>
  82. </view>
  83. <view class="jiantobox">
  84. <image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
  85. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  86. </view>
  87. </view>
  88. <view class="hsnrtest" v-if="subitem.show">话术内容</view>
  89. <view class="Level3che" @tap="clickaudeopal(che)" v-if="subitem.show" v-for="(che,inc) in subitem.children" :key='inc'>
  90. <view class="title1" >{{inc+1}}.{{che.name}}</view>
  91. <view class="jiantobox">
  92. <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png" mode="" />
  93. </view>
  94. </view>
  95. <view v-if="subitem.show" style="width: 100%;height: 30rpx;"></view>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="bottombox">
  100. <!-- 播放块 -->
  101. <view class="audio">
  102. <view class="audio-wrapper">
  103. <view class="audio-number">{{format(current)}}</view>
  104. <slider class="audio-slider" @change="seek($event.detail.value)"
  105. activeColor="#E0E0E0" step="1" block-size="16" :value="current" :max="duration"></slider>
  106. <view class="audio-number">{{format(duration)}}</view>
  107. </view>
  108. <view class="audio-control-wrapper" >
  109. <view class="audio-control" style="border: none;">
  110. {{csdFileindex+1}}/{{luyinList.length}}
  111. </view>
  112. <view class="audio-control audio-control-prev" @click="Inasong()">
  113. <u-icon name="skip-back-left" color="#333" size="48"></u-icon>
  114. </view>
  115. <view class="audio-control audio-control-switch" @click="!status.playing?play():pausePlay()">
  116. <!-- <image v-if="status.playing && status.waiting" style="width: 30rpx;height: 30rpx;" src="../../static/images/jiazaizhong.gif" mode=""></image> -->
  117. <u-icon v-if="status.playing" name="pause-circle" color="#333" size="72"></u-icon>
  118. <u-icon v-else name="play-circle" color="#333" size="72"></u-icon>
  119. </view>
  120. <view class="audio-control audio-control-next" @click="Thenextsong()">
  121. <u-icon name="skip-forward-right" color="#333" size="48"></u-icon>
  122. </view>
  123. <view class="audio-control" style="border: none;" @click="showFile">
  124. <u-icon name="list-dot" color="#333" size="52"></u-icon>
  125. </view>
  126. </view>
  127. <view class="file-change" v-if="isshowFile">
  128. <view class="file-item" @click="filechange(item,index)"
  129. :class="csdFileindex == index ? 'fileactive' : ''" v-for="(item,index) in luyinList"
  130. :key="index">录音文件{{index+1}}</view>
  131. </view>
  132. </view>
  133. </view>
  134. <!-- 接待标记 -->
  135. <view class="zhezhoa" v-if="effective"></view>
  136. <view class="bounced" v-if="effective">
  137. <view class="jiajinghuatit">选择</view>
  138. <view>
  139. <view class="uni-list">
  140. <radio-group @change="radioChange">
  141. <label style="display: flex;align-items: center;font-size: 30rpx;
  142. width: 94%;height: 80rpx;margin: 0 auto;" v-for="(item, index) in effectiveitems" :key="item.value">
  143. <view style="margin-top: 2rpx;flex: 1; text-indent: 20rpx;">{{item.name}}</view>
  144. <view style="width: 80rpx;">
  145. <radio :value="item.value" :checked="index == effectiveindex" />
  146. </view>
  147. </label>
  148. </radio-group>
  149. </view>
  150. <view v-if="effectiveindex==4">
  151. <textarea class="ffectivetext" v-model="effectiveitext" placeholder="备注" />
  152. </view>
  153. </view>
  154. <view class="bounced3">
  155. <view class="bounced3-1" @click="effective=false">取消</view>
  156. <view class="bounced3-2" @click="effectiveAdd()">确认</view>
  157. </view>
  158. </view>
  159. <!-- 加入常错词 -->
  160. <view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view>
  161. <view class="bounced" v-if="isshow2">
  162. <view class="tian-view">
  163. <viwe class="tian-view-t1"></viwe>
  164. <viwe class="tian-view-t2">常错词:</viwe>
  165. <viwe class="tian-view-t3">
  166. <input type="text" v-model="thewrongword" class="tian-input" placeholder="请输入" />
  167. </viwe>
  168. </view>
  169. <view class="tian-view">
  170. <viwe class="tian-view-t1"></viwe>
  171. <viwe class="tian-view-t2">正确词:</viwe>
  172. <viwe class="tian-view-t3">
  173. <input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" />
  174. </viwe>
  175. </view>
  176. <view class="bounced3">
  177. <view class="bounced3-1" @tap="Cancelout">取消</view>
  178. <view class="bounced3-2" @tap="Confirmtheexit">确认</view>
  179. </view>
  180. </view>
  181. <!-- 加精华 -->
  182. <view class="zhezhoa" v-if="isshow3" @tap="Cancelout2"></view>
  183. <view class="bounced" v-if="isshow3">
  184. <view class="jiajinghuatit">加精华</view>
  185. <view style="width: 100%;text-indent: 20rpx;font-size: 28rpx;">选择标签</view>
  186. <view class="jiajinghuaview">
  187. <view class="jighuaview2" v-for="(item,index) in biaoqianlist" :key="index"
  188. :class="biaoqianindex == index ? 'biaoqiantom' : ''">
  189. <view class="view1-text" @click="tapbiaoqianclisck(index)">{{item.name}}</view>
  190. </view>
  191. </view>
  192. <view class="bounced3">
  193. <view class="bounced3-1" @tap="Cancelout2">取消</view>
  194. <view class="bounced3-2" @tap="Confirmtheexit2">确认</view>
  195. </view>
  196. </view>
  197. </view>
  198. </template>
  199. <script>
  200. var util = require("../../utils/util.js");
  201. var config = require("../../config");
  202. export default {
  203. data() {
  204. return {
  205. 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",
  206. luyinList:[],//文件列表
  207. essenceis:0,//是否加精
  208. csdFileindex:0,//下标位置
  209. audio: null,
  210. scrollTop: 0,
  211. scrollId:"dialog",
  212. current: 0, //当前进度(s)
  213. duration: 0, //总时长(s)
  214. startTime:0,//播放起点
  215. playNow: 0,
  216. /**逻辑状态**/
  217. status:{
  218. playing:false,//只有点击控制面板和播放结束可修改此状态
  219. waiting: false, //等待加载数据
  220. afterseek:false
  221. },
  222. customerId:"",//客户id
  223. buildingID:'',//项目id
  224. debug:true,
  225. dialogList:[],//转写内容区域
  226. isshowFile:false,//文件切换状态
  227. alltimeStr:'',//文件总时长
  228. userlistobj:{},//用户信息
  229. Menulist:[],//权限数组
  230. Menulistisshow:false,//更改接待权限
  231. effective:false,//无效接待弹框
  232. effectiveindex:'0',//无效接待下标
  233. effectiveitems: [
  234. {value: '1',name: '没电指派无录音',checked:true},
  235. {value: '2',name: '离线指派无录音',},
  236. {value: '3',name: '系统测试误操作'},
  237. {value: '4',name: '非接访场景录音'},
  238. {value: '5',name: '其他'}
  239. ],
  240. effectiveitext:'',
  241. userInfo:{},
  242. jiaoseshow:true,//是否显示加精
  243. thewrongword: "", //错误词
  244. reswrongword: "", //正确词
  245. isshow2:false,//常错词弹框
  246. messagelisy:[],
  247. textItself:'',
  248. argtextindex1:0,
  249. argtextindex2:0,
  250. isshow3:false,//分点加精
  251. biaoqianlist: [],
  252. biaoqianindex: 0,
  253. changanitem: {},
  254. duihuawenjianid: "",
  255. biaoqianid: "",
  256. itemobj:{},
  257. kehuyixiangcenterindex:0,
  258. ratelist:[],
  259. totalRate:""
  260. };
  261. },
  262. onLoad: function(options) {
  263. this.essenceis = options.status;
  264. this.customerId = options.customerId;
  265. this.buildingID = uni.getStorageSync('buildingID').id;
  266. this.itemobj=uni.getStorageSync('searchobj')
  267. this.gituserlist()
  268. this.getlist()
  269. },
  270. onShow() {
  271. this.Menulist = uni.getStorageSync('weapp_session_Menu_data');
  272. this.Menulist.forEach(item=>{
  273. if(item.name=='标记有效无效接待'){
  274. this.Menulistisshow=true;
  275. }
  276. })
  277. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  278. if (this.userInfo.dataCode == 6) {
  279. this.jiaoseshow = false
  280. }
  281. },
  282. beforeDestroy() {
  283. this.audio.destroy()
  284. },
  285. methods: {
  286. customerofintention(i){
  287. this.kehuyixiangcenterindex=i;
  288. if(this.kehuyixiangcenterindex!=0){
  289. this.pausePlay()
  290. this.getRatelist()
  291. }
  292. },
  293. //评分上下显隐
  294. changeshow(item, type) {
  295. item.show=!item.show;
  296. },
  297. changeshow2(item, type){
  298. item.show=!item.show;
  299. },
  300. // 获取评分
  301. getRatelist() {
  302. if (this.ratelist.length == 0) {
  303. uni.showLoading({
  304. title: '加载中'
  305. });
  306. this.$u.get("/customer/findzkMByCusId", {
  307. cusId: this.customerId
  308. }).then(res => {
  309. if (res.length) {
  310. let level1 = []
  311. let level2rate = 0
  312. res.forEach(item => {
  313. if (item.pid == 0) {
  314. level1.push({
  315. id: item.marketingId,
  316. rate: item.fraction,
  317. name: item.name,
  318. sort: item.sort,
  319. show: false,
  320. ratepercent: 0,
  321. children: []
  322. })
  323. } else {
  324. if (item.selected == 0) {
  325. level2rate += item.fraction
  326. }
  327. }
  328. })
  329. this.totalRate = level2rate;
  330. res.forEach(subitem => {
  331. let subitempid = subitem.pid
  332. level1.forEach(item => {
  333. if (subitempid == item.id) {
  334. if (subitem.selected == 0) {
  335. item.ratepercent += subitem.fraction
  336. }
  337. item.children.push({
  338. id: subitem.id,
  339. rate: subitem.fraction,
  340. selected: subitem.selected,
  341. name: subitem.name,
  342. show: false,
  343. marketingId:subitem.marketingId,
  344. children: []
  345. })
  346. }
  347. })
  348. })
  349. res.forEach(subitem => {
  350. let subitempid = subitem.pid
  351. level1.forEach(chen=>{
  352. chen.children.forEach(zxc=>{
  353. if(subitempid == zxc.marketingId){
  354. zxc.children.push({
  355. id: subitem.id,
  356. rate: subitem.fraction,
  357. selected: subitem.selected,
  358. name: subitem.name,
  359. marketingId:subitem.marketingId,
  360. })
  361. }
  362. })
  363. })
  364. })
  365. level1[0].show = true;
  366. level1[0].children[0].show = true;
  367. this.ratelist = level1
  368. }
  369. setTimeout(function() {
  370. uni.hideLoading();
  371. }, 1000);
  372. })
  373. }
  374. },
  375. //标签选择
  376. tapbiaoqianclisck(index) {
  377. this.biaoqianindex = index;
  378. this.biaoqianid = this.biaoqianlist[index].id
  379. },
  380. //加精华
  381. Addtheessence() {
  382. this.isshow3 = true;
  383. this.biaoqianlist = []
  384. let parames={
  385. "itemId":this.buildingID
  386. }
  387. this.$u.post("/addtodigest/findAllYi", parames).then(data => {
  388. this.biaoqianlist = data
  389. this.biaoqianlist.unshift({
  390. name: "逼单话术",
  391. id: 0
  392. })
  393. })
  394. },
  395. // 取消加精
  396. Cancelout2() {
  397. this.isshow3 = false;
  398. this.dialogList.forEach(res => {
  399. res.message.forEach(asd => {
  400. asd.isshow = false;
  401. })
  402. })
  403. },
  404. // 确认加精
  405. Confirmtheexit2() {
  406. if (this.biaoqianid) {
  407. this.biaoqianid = this.biaoqianid
  408. } else {
  409. this.biaoqianid = 0
  410. }
  411. this.isshow3 = false;
  412. this.dialogList.forEach(res => {
  413. res.message.forEach(asd => {
  414. asd.isshow = false;
  415. })
  416. })
  417. let objdata = {
  418. "carId": this.customerId, //客户id
  419. "startTime": this.changanitem.bg, //开始时间
  420. "startFile": this.duihuawenjianid, //对话所在录音文件id
  421. "endTime": this.changanitem.ed, //结束时间
  422. "marketingId": this.biaoqianid, //对应一级父id
  423. "jjTransfer": this.changanitem.onebest, //选中对话
  424. "status": 1
  425. }
  426. uni.request({
  427. url: config.service.addATD,
  428. method: "POST",
  429. header: {
  430. 'content-type': 'application/json',
  431. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  432. },
  433. data: objdata,
  434. success: (data) => {
  435. if (data.data.code == 10000) {
  436. uni.showToast({
  437. title: '加精成功',
  438. duration: 2000
  439. });
  440. } else {
  441. uni.showToast({
  442. title: data.data.message,
  443. duration: 2000
  444. });
  445. }
  446. }
  447. })
  448. },
  449. //加入长错词
  450. Oftenthewrongword() {
  451. this.reswrongword = "";
  452. this.isshow2 = true;
  453. },
  454. //取消加入常错词
  455. Cancelout() {
  456. this.isshow2 = false;
  457. this.dialogList.forEach(res => {
  458. res.message.forEach(asd => {
  459. asd.isshow = false;
  460. })
  461. })
  462. },
  463. //确认加入常错词
  464. Confirmtheexit() {
  465. if (this.thewrongword) {
  466. if (this.reswrongword) {
  467. let parames = {
  468. customerId:this.customerId,
  469. cupid: this.luyinList[this.csdFileindex].id,
  470. wrongWord: this.thewrongword, //错误词
  471. correctWord: this.reswrongword, //正确词
  472. translateHtmlContent: this.messagelisy,
  473. }
  474. this.isshow2 = false;
  475. let sas=this.textItself.replace(this.thewrongword,this.reswrongword)
  476. this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas
  477. this.dialogList.forEach(res => {
  478. res.message.forEach(asd => {
  479. asd.isshow = false;
  480. })
  481. })
  482. this.$u.post("/corpus/addCorrectWord", parames).then(data => {
  483. this.thewrongword = "";
  484. this.reswrongword = "";
  485. })
  486. } else {
  487. uni.showToast({
  488. title: '正确值不能为空',
  489. duration: 2000
  490. });
  491. return
  492. }
  493. } else {
  494. uni.showToast({
  495. title: '错误词不能为空',
  496. duration: 2000
  497. });
  498. return
  499. }
  500. },
  501. //复制
  502. clickcopy() {
  503. var that = this;
  504. uni.setClipboardData({
  505. data: that.thewrongword,
  506. success: function() {
  507. that.dialogList.forEach(res => {
  508. res.message.forEach(asd => {
  509. asd.isshow = false;
  510. })
  511. })
  512. that.$forceUpdate();
  513. }
  514. });
  515. },
  516. // 取消全部加精
  517. notappick() {
  518. var that = this;
  519. uni.showModal({
  520. title: '提示',
  521. content: '确认取消加精?',
  522. success: function(res) {
  523. if (res.confirm) {
  524. console.log('用户点击确定');
  525. uni.request({
  526. url: config.service.delATD + "?carId=" + that.customerId,
  527. method: "GET",
  528. header: {
  529. 'content-type': 'application/json',
  530. 'Access-Token': uni.getStorageSync('weapp_session_login_data')
  531. .token
  532. },
  533. success: (data) => {
  534. if (data.data.code == 10000) {
  535. that.essenceis = 1
  536. uni.showToast({
  537. title: '取消成功',
  538. duration: 2000
  539. });
  540. } else {
  541. uni.showToast({
  542. title: data.data.message,
  543. duration: 2000
  544. });
  545. }
  546. }
  547. })
  548. } else if (res.cancel) {
  549. console.log('用户点击取消');
  550. }
  551. }
  552. });
  553. },
  554. //全部加精
  555. tappick(i) {
  556. var that = this;
  557. uni.showModal({
  558. title: '提示',
  559. content: '确认加精?',
  560. success: function(res) {
  561. if (res.confirm) {
  562. console.log('用户点击确定');
  563. let objdata = {
  564. "carId": that.customerId, //客户id
  565. "status": 0,
  566. "itemId":that.buildingID,
  567. }
  568. uni.request({
  569. url: config.service.addATD,
  570. method: "POST",
  571. header: {
  572. 'content-type': 'application/json',
  573. 'Access-Token': uni.getStorageSync('weapp_session_login_data')
  574. .token
  575. },
  576. data: objdata,
  577. success: (data) => {
  578. if (data.data.code == 10000) {
  579. that.essenceis = 0
  580. uni.showToast({
  581. title: '加精成功',
  582. duration: 2000
  583. });
  584. } else {
  585. uni.showToast({
  586. title: data.data.message,
  587. duration: 2000
  588. });
  589. }
  590. }
  591. })
  592. } else if (res.cancel) {
  593. console.log('用户点击取消');
  594. }
  595. }
  596. });
  597. },
  598. //获取用户信息
  599. gituserlist(){
  600. this.$u.get("/matchKeywords/personalReceptionRecord", {
  601. customerId: this.customerId
  602. }).then(res => {
  603. this.userlistobj=res;
  604. })
  605. },
  606. //无效接待
  607. effectiveAdd(){
  608. if(this.effectiveindex==4){
  609. if(this.effectiveitext.length==0){
  610. uni.showToast({
  611. title: '备注不能为空',
  612. icon:"none",
  613. duration: 2000
  614. });
  615. return
  616. }
  617. }
  618. this.effective=false;
  619. let parames={
  620. id:this.customerId,
  621. validInvalid:'',
  622. validInvalid:1,
  623. invalidReason:Number(this.effectiveindex)+1,
  624. invalidNote:this.effectiveitext
  625. }
  626. this.$u.post("/customer/updateValidInvalid", parames).then(res => {
  627. console.log(res)
  628. this.gituserlist()
  629. })
  630. },
  631. //单选
  632. radioChange(evt) {
  633. this.effectiveitext="";
  634. for (let i = 0; i < this.effectiveitems.length; i++) {
  635. if (this.effectiveitems[i].value === evt.detail.value) {
  636. this.effectiveindex = i;
  637. break;
  638. }
  639. }
  640. },
  641. //标记
  642. alllogo(){
  643. this.pausePlay()
  644. var that=this;
  645. let msg='';
  646. if(this.userlistobj.validInvalid!=0){
  647. msg='是否标记为"有效录音"?';
  648. uni.showModal({
  649. title: '提示',
  650. content: msg,
  651. success: function (res) {
  652. if (res.confirm) {
  653. let parames={
  654. id:that.customerId,
  655. validInvalid:'',
  656. invalidReason:0
  657. }
  658. if(that.userlistobj.validInvalid==0){
  659. parames.validInvalid=1;
  660. }else{
  661. parames.validInvalid=0;
  662. }
  663. that.$u.post("/customer/updateValidInvalid", parames).then(res => {
  664. console.log(res)
  665. that.gituserlist()
  666. })
  667. }
  668. }
  669. });
  670. }else{
  671. this.effective=true;
  672. }
  673. },
  674. //录音列表显示隐藏
  675. showFile() {
  676. this.isshowFile = !this.isshowFile;
  677. this.pausePlay()
  678. },
  679. // 文件切换播放
  680. filechange(item, i) {
  681. this.startTime=0;
  682. this.csdFileindex = i;
  683. this.isshowFile=false;
  684. this.getCorpusAnalysis()
  685. this.init();
  686. },
  687. //长按对话
  688. changanxiaoguo(item, index, i) {
  689. this.messagelisy = [];
  690. this.changanitem = {};
  691. this.dialogList.forEach(res => {
  692. res.message.forEach(asd => {
  693. asd.isshow = false;
  694. })
  695. })
  696. this.changanitem = item;
  697. this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
  698. this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
  699. this.textItself=item.onebest;
  700. let onebest=item.onebest;
  701. this.thewrongword =onebest.replace(/<.*?>/ig,"");
  702. this.messagelisy = this.dialogList[i].message;
  703. this.argtextindex1=i;
  704. this.argtextindex2=index;
  705. this.$forceUpdate()
  706. },
  707. //获取文件列表
  708. getlist(){
  709. const parames = {
  710. pageNum: 1,
  711. pageSize: 100,
  712. query: {
  713. customerId: this.customerId
  714. }
  715. }
  716. this.$u.post("/corpus/findByPage", parames).then(res => {
  717. if (res && res.length) {
  718. let alltime = 1;
  719. console.log(res)
  720. res.forEach(item => {
  721. alltime += item.recordDuration
  722. })
  723. this.alltimeStr = this.getTime(alltime)
  724. if(this.itemobj){
  725. res.forEach((item,index) => {
  726. if(item.id==this.itemobj.customerId){
  727. this.csdFileindex=index;
  728. this.startTime=this.itemobj.bg/1000
  729. }
  730. })
  731. }
  732. this.luyinList = res;
  733. this.getCorpusAnalysis()
  734. }
  735. })
  736. },
  737. // 获取转义后的对话结果
  738. getCorpusAnalysis(info) {
  739. this.dialogList = [];
  740. uni.request({
  741. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  742. method: "GET",
  743. header: {
  744. 'content-type': 'application/json',
  745. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  746. },
  747. success: (data) => {
  748. if (data.data.code == 10000) {
  749. if (data.data.data.audioContent.length != 0) {
  750. const jsonInfo = JSON.parse(data.data.data.audioContent);
  751. this.dialogList.push({
  752. message: jsonInfo,
  753. backindex:this.csdFileindex
  754. });
  755. this.dialogList.forEach((asd, idx) => {
  756. asd.message.forEach((qwe, inde) => {
  757. qwe.isshow = false;
  758. })
  759. })
  760. this.init();
  761. }
  762. } else {
  763. uni.hideLoading();
  764. uni.showModal({
  765. title: '提示',
  766. content: '请求数据失败,请重新尝试',
  767. showCancel: false
  768. });
  769. }
  770. }
  771. });
  772. },
  773. getTime(time) {
  774. return util.formatSecond(time)
  775. },
  776. init(){
  777. if(this.audio){
  778. this.audio.destroy();
  779. }
  780. this.resetStatus();
  781. this.audio = uni.createInnerAudioContext();
  782. this.audio.obeyMuteSwitch = false;
  783. this.audio.startTime=this.startTime;//播放开始时间
  784. this.audio.autoplay=false;
  785. this.duration=this.luyinList[this.csdFileindex].recordDuration;
  786. this.audio.src=this.luyinList[this.csdFileindex].recordPath;
  787. if(this.autoplay){
  788. this.status.playing=true;
  789. }
  790. //音频进度更新事件
  791. this.audio.onTimeUpdate(() => {
  792. if (!this.duration) {
  793. this.duration = this.audio.duration
  794. }
  795. this.current = this.audio.currentTime
  796. this.playNow = parseInt(this.current * 1000)
  797. if (this.dialogList.length == 0) {
  798. return
  799. } else {
  800. const message = this.dialogList[0].message;
  801. for (let i = 0; i < message.length; i++) {
  802. if (Number(message[i].bg) < this.playNow && Number(message[i].ed) > this.playNow) {
  803. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  804. break;
  805. }
  806. }
  807. }
  808. this.$forceUpdate()
  809. })
  810. //音频播放事件
  811. this.audio.onPlay(() => {
  812. this.debug && console.log('开始播放,当前播放器状态='+this.audio.paused);
  813. if(this.status.afterseek==true){
  814. this.status.afterseek=false;
  815. this.seek(this.current);
  816. }
  817. })
  818. //音频暂停事件
  819. this.audio.onPause(() => {
  820. this.debug && console.log('暂停播放,当前播放器状态='+this.audio.paused);
  821. console.log("是",this.status.afterseek)
  822. if(this.status.afterseek==true){
  823. console.log("走跳转")
  824. this.audio.seek(this.current);
  825. }
  826. })
  827. this.audio.onStop(() => {
  828. this.debug && console.log('停止播放,当前播放器状态='+this.audio.paused);
  829. })
  830. //音频等待
  831. this.audio.onWaiting(() => {
  832. })
  833. this.audio.onCanplay(() => {
  834. this.debug && console.log('数据准备就绪,当前播放器状态='+this.audio.paused)
  835. this.play()
  836. })
  837. this.audio.onSeeking(()=>{
  838. console.log("进行跳转");
  839. })
  840. this.audio.onSeeked(() => {
  841. console.log("结束跳转");
  842. this.status.afterseek=false;
  843. this.play()
  844. })
  845. //音频结束事件
  846. this.audio.onEnded(() => {
  847. this.debug && console.log('播放结束,当前播放器状态='+this.audio.paused)
  848. this.Thenextsong()//结束播放下一条
  849. })
  850. this.audio.onError((err) => {
  851. this.debug && console.log('播放出错,当前播放器状态='+this.audio.paused)
  852. this.debug && console.error(err)
  853. })
  854. },
  855. seek(value){
  856. if(value<=0){
  857. value=0
  858. }
  859. if(value>=this.duration){
  860. value=this.duration;
  861. }
  862. this.debug && console.log('调用Seek,当前audio状态='+this.audio.paused+',value='+value);
  863. this.status.playing=true;
  864. this.current = value;
  865. if(this.audio.paused==false){//暂停事件里调用this.audio.seek
  866. console.log("播放中")
  867. this.status.afterseek=true;
  868. this.pausePlay()
  869. }else{//已经是停止状态 必须先播放后再调用this.seek
  870. console.log("暂停")
  871. this.status.afterseek=true;
  872. this.play();
  873. }
  874. },
  875. //点击播放按钮
  876. play() {
  877. this.status.playing=true;
  878. if(this.audio.paused){
  879. this.audio.play();
  880. }
  881. },
  882. //暂停
  883. pausePlay(){
  884. this.status.playing=false;
  885. if(!this.audio.paused){
  886. this.audio.pause();
  887. }
  888. },
  889. //上一曲
  890. Inasong(){
  891. this.startTime=0;
  892. this.pausePlay()
  893. if(this.csdFileindex==0){
  894. uni.showToast({
  895. icon: "none",
  896. title: "已是第一条!"
  897. })
  898. return
  899. }else{
  900. this.csdFileindex=this.csdFileindex-1;
  901. this.getCorpusAnalysis()
  902. this.init();
  903. }
  904. },
  905. //下一曲
  906. Thenextsong(){
  907. this.startTime=0;
  908. this.pausePlay()
  909. if(this.csdFileindex>this.luyinList.length-1){
  910. return
  911. }else if(this.csdFileindex==this.luyinList.length-1){
  912. uni.showToast({
  913. icon: "none",
  914. title: "已到最大条数!"
  915. })
  916. }else{
  917. this.csdFileindex=this.csdFileindex+1;
  918. this.getCorpusAnalysis()
  919. this.init();
  920. }
  921. },
  922. //长按播放
  923. clickbofang(dialog,item){
  924. this.pausePlay()
  925. this.dialogList.forEach(res => {
  926. res.message.forEach(asd => {
  927. asd.isshow = false;
  928. })
  929. })
  930. this.$forceUpdate()
  931. let time = parseInt(item.bg / 1000)
  932. this.seek(time)
  933. },
  934. // 重置状态
  935. resetStatus(){
  936. this.status.playing = false;
  937. this.current = 0;
  938. },
  939. //格式化时长
  940. format(num) {
  941. return '0'.repeat(2 - String(Math.floor(num / 60)).length) + Math.floor(num / 60) + ':' + '0'.repeat(2 -
  942. String(Math.floor(num % 60)).length) + Math.floor(num % 60)
  943. }
  944. }
  945. }
  946. </script>
  947. <style lang="scss" scoped>
  948. .box{
  949. width: 100%;
  950. height: 100vh;
  951. display:flex;
  952. flex-direction:column;
  953. }
  954. .headbox{
  955. width: 100%;
  956. min-height: 120rpx;
  957. border-bottom: 1px solid #E0E0E0;
  958. .tit-tiem{
  959. font-size: 30rpx;
  960. color: #303030;
  961. padding-left: 30rpx;
  962. padding-right: 30rpx;
  963. }
  964. .call_record_time_one {
  965. padding-left: 30rpx;
  966. padding-right: 30rpx;
  967. height: 48rpx;
  968. font-size: 28rpx;
  969. font-weight: 500;
  970. color: #70798d;
  971. line-height: 48rpx;
  972. display: flex;
  973. justify-content: space-between;
  974. position: relative;
  975. margin-top: 10rpx;
  976. .audoioyouxiao{
  977. height: 46rpx;
  978. position: absolute;
  979. top: 0rpx;
  980. right: 120rpx;
  981. }
  982. .diangweitupian {
  983. width: 46rpx;
  984. height: 46rpx;
  985. position: absolute;
  986. top: 0rpx;
  987. right: 30rpx;
  988. }
  989. }
  990. }
  991. .zhuti{
  992. flex:1;
  993. overflow:auto;
  994. }
  995. .bottombox{
  996. width: 100%;
  997. height: 170rpx;
  998. border-top: 1px solid #E0E0E0;
  999. }
  1000. .audio {
  1001. width: 100%;
  1002. padding: 10rpx 0;
  1003. background: #fff;
  1004. .audio-wrapper {
  1005. margin-top: 10rpx;
  1006. display: flex;
  1007. align-items: center;
  1008. margin-top: 16rpx;
  1009. color: #70798D;
  1010. }
  1011. .audio-number {
  1012. width: 120upx;
  1013. font-size: 24upx;
  1014. line-height: 1;
  1015. color: #333;
  1016. text-align: center;
  1017. }
  1018. .audio-slider {
  1019. flex: 1;
  1020. margin: 0;
  1021. }
  1022. }
  1023. .audio-control-wrapper {
  1024. margin-top: 20upx;
  1025. display: flex;
  1026. justify-content: center;
  1027. align-items: center;
  1028. .audio-control {
  1029. line-height: 1;
  1030. }
  1031. .audio-control-switch {
  1032. margin: 0 60rpx;
  1033. }
  1034. .audio-control-prev{
  1035. margin: 0 50rpx;
  1036. }
  1037. .audio-control-next{
  1038. margin: 0 50rpx;
  1039. }
  1040. }
  1041. .file-change {
  1042. position: fixed;
  1043. width: 184rpx;
  1044. bottom: 80rpx;
  1045. width: 184rpx;
  1046. right: 10rpx;
  1047. background: #FFFFFF;
  1048. border-radius: 4rpx;
  1049. z-index: 99;
  1050. height: 600rpx;
  1051. overflow: auto;
  1052. border: 1px solid #e0e0e0;
  1053. }
  1054. .file-item {
  1055. width: 100%;
  1056. height: 60rpx;
  1057. line-height: 60rpx;
  1058. text-align: center;
  1059. font-size: 30rpx;
  1060. font-weight: 400;
  1061. color: #333333;
  1062. border-bottom: 1rpx solid #E2E2E2;
  1063. }
  1064. .file-item:last-child {
  1065. border: 0
  1066. }
  1067. .fileactive {
  1068. color: #008EF2
  1069. }
  1070. .ffectivetext{
  1071. width: 85%;
  1072. margin: 10rpx auto;
  1073. height: 100rpx;
  1074. padding: 20rpx;
  1075. border: 1rpx solid #E4F0FF;
  1076. }
  1077. .zhezhoa {
  1078. position: fixed;
  1079. top: 0;
  1080. left: 0;
  1081. z-index: 999;
  1082. width: 100%;
  1083. height: 100vh;
  1084. opacity: 0.5;
  1085. background-color: #666666;
  1086. }
  1087. .bounced {
  1088. width: 570upx;
  1089. background: #FFFFFF;
  1090. z-index: 1000;
  1091. border-radius: 10upx;
  1092. position: fixed;
  1093. left: 50%;
  1094. top: 50%;
  1095. transform: translate(-50%, -50%);
  1096. /* 50%为自身尺寸的一半 */
  1097. .jiajinghuatit {
  1098. width: 100%;
  1099. height: 68rpx;
  1100. font-size: 30rpx;
  1101. text-align: center;
  1102. line-height: 68rpx;
  1103. }
  1104. .jiajinghuaview {
  1105. padding: 18rpx 18rpx 18rpx 18rpx;
  1106. display: flex;
  1107. flex-wrap: wrap;
  1108. .jiajinghuaview1 {
  1109. padding: 8rpx 8rpx 8rpx 8rpx;
  1110. font-size: 26rpx;
  1111. border-radius: 12rpx;
  1112. border: 1px solid #979797;
  1113. margin-left: 8rpx;
  1114. }
  1115. .jighuaview2 {
  1116. padding: 8rpx 18rpx 8rpx 18rpx;
  1117. font-size: 26rpx;
  1118. border-radius: 12rpx;
  1119. border: 1px solid #979797;
  1120. margin-left: 20rpx;
  1121. margin-top: 10rpx;
  1122. display: flex;
  1123. .view1-text {
  1124. text-align: center;
  1125. }
  1126. .view1-img {
  1127. width: 50rpx;
  1128. }
  1129. }
  1130. }
  1131. .bounced3 {
  1132. height: 100upx;
  1133. width: 100%;
  1134. margin-top: 40upx;
  1135. border-top: 1px solid #dddddd;
  1136. display: flex;
  1137. }
  1138. .bounced3-1 {
  1139. width: 50%;
  1140. height: 100%;
  1141. text-align: center;
  1142. line-height: 100upx;
  1143. border-right: 1px solid #dddddd;
  1144. font-size: 36upx;
  1145. color: #999999;
  1146. }
  1147. .bounced3-2 {
  1148. width: 50%;
  1149. height: 100%;
  1150. text-align: center;
  1151. line-height: 100upx;
  1152. font-size: 36upx;
  1153. color: #108ee9;
  1154. }
  1155. }
  1156. .scroll-Y {
  1157. font-size: 36upx;
  1158. color: #999999;
  1159. background: #FFFFFF;
  1160. margin-top: 30upx;
  1161. flex: 1;
  1162. overflow-y: scroll;
  1163. width: 100%;
  1164. }
  1165. .scroll-Y .text {
  1166. margin: 50upx 30upx;
  1167. line-height: 80upx;
  1168. display: flex;
  1169. align-items: center;
  1170. }
  1171. .scroll-Y .text[data-speaker="2"],
  1172. .scroll-Y .text[data-speaker="4"],
  1173. .scroll-Y .text[data-speaker="6"] {
  1174. flex-direction: row-reverse;
  1175. text-align: right;
  1176. .content {
  1177. margin-left: 0;
  1178. margin-right: 30upx;
  1179. background: #F6F6F6;
  1180. color: #999999;
  1181. }
  1182. }
  1183. .scroll-Y .text .avatar {
  1184. width: 64upx;
  1185. height: 64upx;
  1186. line-height: 64upx;
  1187. text-align: center;
  1188. font-size: 36rpx;
  1189. border-radius: 50%;
  1190. background: #F2F2F2;
  1191. color: #008EF2;
  1192. image {
  1193. width: 40upx;
  1194. }
  1195. }
  1196. .scroll-Y .text .content {
  1197. margin-left: 30upx;
  1198. line-height: 60rpx;
  1199. text-align: left;
  1200. padding: 0 5px;
  1201. background: #2BC805;
  1202. border-radius: 8upx;
  1203. max-width: 442rpx;
  1204. color: #FFFFFF;
  1205. position: relative;
  1206. .tankuangcss {
  1207. position: absolute;
  1208. top: -140rpx;
  1209. left: 120rpx;
  1210. width: 308rpx;
  1211. height: 130rpx;
  1212. background-color: #333333;
  1213. font-size: 24rpx;
  1214. color: #FFFFFF;
  1215. padding-top: 4rpx;
  1216. padding-bottom: 4rpx;
  1217. display: flex;
  1218. flex-wrap: wrap;
  1219. border-radius: 15rpx;
  1220. z-index: 1000;
  1221. }
  1222. }
  1223. .scroll-Y .text.active .content {
  1224. color: #38FFF1;
  1225. position: relative;
  1226. }
  1227. .scroll-Y .text.active[data-speaker="2"] .content,
  1228. .scroll-Y .text.active[data-speaker="4"] .content,
  1229. .scroll-Y .text.active[data-speaker="6"] .content {
  1230. color: #FF7538;
  1231. position: relative;
  1232. }
  1233. // 表单
  1234. .tian-view {
  1235. width: 570upx;
  1236. background-color: #FFFFFF;
  1237. border-bottom: 1px solid #ededee;
  1238. display: flex;
  1239. min-height: 96rpx;
  1240. .tian-view-t1 {
  1241. width: 20rpx;
  1242. font-size: 34rpx;
  1243. height: 34rpx;
  1244. line-height: 110rpx;
  1245. letter-spacing: 0px;
  1246. color: red;
  1247. }
  1248. .tian-view-t2 {
  1249. width: 30%;
  1250. min-height: 96rpx;
  1251. line-height: 96rpx;
  1252. font-size: 34rpx;
  1253. color: #333;
  1254. }
  1255. .tian-view-t3 {
  1256. width: 61%;
  1257. padding-top: 31rpx;
  1258. padding-bottom: 31rpx;
  1259. display: flex;
  1260. .tian-input {
  1261. width: 98%;
  1262. font-size: 34rpx;
  1263. border: none;
  1264. }
  1265. }
  1266. }
  1267. .biaoqiantom {
  1268. background-color: #008EF2;
  1269. color: #FFFFFF;
  1270. border: none;
  1271. }
  1272. .pingfenbox{
  1273. width: 100%;
  1274. height: 70rpx;
  1275. line-height: 70rpx;
  1276. border-bottom: 1px solid #E0E0E0;
  1277. display: flex;
  1278. }
  1279. .pingfenbox view{
  1280. flex: 1;
  1281. text-align: center;
  1282. font-size: 28rpx;
  1283. text-indent: 20rpx;
  1284. }
  1285. .activecllasscet{
  1286. background: #2671E2;
  1287. color: #FFFFFF;
  1288. }
  1289. .Level-box{
  1290. padding-bottom: 2rpx;
  1291. .hhhbox{
  1292. width:100%;
  1293. padding-left: 30rpx;
  1294. padding-right: 30rpx;
  1295. border-bottom: 1rpx solid #E0E0E0;
  1296. background: #FFFFFF;
  1297. // padding-bottom: 32rpx;
  1298. .hsnrtest{
  1299. height: 24rpx;
  1300. font-size: 24rpx;
  1301. font-weight: 400;
  1302. color: #666666;
  1303. line-height: 24rpx;
  1304. }
  1305. .Level3che{
  1306. width:100%;
  1307. height:28rpx;
  1308. display: flex;
  1309. line-height: 28rpx;
  1310. align-items: center;
  1311. margin-top: 30rpx;
  1312. .title1{
  1313. flex: 1;
  1314. font-size: 28rpx;
  1315. color:#2671E2;
  1316. font-weight: 400;
  1317. }
  1318. .jiantobox{
  1319. width: 30rpx;
  1320. height: 30rpx;
  1321. display: flex;
  1322. align-items: center;
  1323. .arrow{
  1324. width: 28rpx;
  1325. height:28rpx;
  1326. }
  1327. }
  1328. }
  1329. }
  1330. .Level2che{
  1331. width:100%;
  1332. height: 88rpx;
  1333. display: flex;
  1334. line-height: 88rpx;
  1335. align-items: center;
  1336. .title1{
  1337. flex: 2;
  1338. font-size: 28rpx;
  1339. color: #333333;
  1340. font-weight: 400;
  1341. }
  1342. .leve1-jindu{
  1343. flex: 3;
  1344. display: flex;
  1345. justify-content: center;
  1346. align-items: center;
  1347. .zhixing{
  1348. width: 108rpx;
  1349. height: 44rpx;
  1350. background: #2671E2;
  1351. border-radius: 4rpx;
  1352. font-size: 28rpx;
  1353. text-align: center;
  1354. line-height: 44rpx;
  1355. color: #FFFFFF;
  1356. }
  1357. .zhixing2{
  1358. width: 108rpx;
  1359. height: 44rpx;
  1360. background: #F8F8F8;
  1361. border-radius: 4rpx;
  1362. font-size: 28rpx;
  1363. text-align: center;
  1364. line-height: 44rpx;
  1365. color: #999999;
  1366. }
  1367. }
  1368. .jiantobox{
  1369. width: 30rpx;
  1370. height: 30rpx;
  1371. display: flex;
  1372. align-items: center;
  1373. .arrow{
  1374. width: 30rpx;
  1375. height:18rpx;
  1376. }
  1377. }
  1378. }
  1379. .Level1che{
  1380. width:100%;
  1381. height: 94rpx;
  1382. background: #F5F5F5;
  1383. display: flex;
  1384. line-height: 94rpx;
  1385. align-items: center;
  1386. padding-left: 30rpx;
  1387. padding-right: 30rpx;
  1388. .title1{
  1389. flex: 2;
  1390. font-size: 30rpx;
  1391. color: #333333;
  1392. font-weight: 400;
  1393. }
  1394. .leve1-jindu{
  1395. flex: 3;
  1396. .jindutiao{
  1397. width: 96%;
  1398. height: 28rpx;
  1399. background: #D5EEE2;
  1400. line-height: 28rpx;
  1401. border-radius: 14rpx;
  1402. position: relative;
  1403. .huanxing{
  1404. height: 100%;
  1405. background: #4FC78F;
  1406. border-radius: 14rpx;
  1407. }
  1408. .text{
  1409. position: absolute;
  1410. top: 0rpx;
  1411. right: 0rpx;
  1412. font-size: 28rpx;
  1413. font-weight: 400;
  1414. color: #333333;
  1415. }
  1416. }
  1417. }
  1418. .jiantobox{
  1419. width: 30rpx;
  1420. height: 30rpx;
  1421. display: flex;
  1422. align-items: center;
  1423. .arrow{
  1424. width: 30rpx;
  1425. height:18rpx;
  1426. }
  1427. }
  1428. }
  1429. }
  1430. </style>