Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

1937 wiersze
52 KiB

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