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.
 
 
 

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