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

1905 regels
52 KiB

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