AI销管
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.

index2.vue 36 KiB

2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
2 jaren geleden
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541
  1. <template>
  2. <view class="translation" @click="changeEditing(false)">
  3. <view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx;
  4. display: flex;align-items: center;" @tap="toKeywordsearch()">
  5. <image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode="">
  6. </image>
  7. <text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text>
  8. </view>
  9. <view class="top" style="margin-top: 30rpx;">
  10. <view class="title">
  11. <view class="call_record_time">{{date}}</view>
  12. <view class="hash" @click="gotoChat" v-if="commentList.length != 0">
  13. 查看全部评论
  14. </view>
  15. </view>
  16. <view class="call_record_time_one">接待时长 {{alltimeStr}}</view>
  17. <!-- <yz-audio class="audio-container" ref="zyAudio" @timeUpdate="TimeUpdate"
  18. @sliderChangeComplate="sliderChangeComplate"></yz-audio> -->
  19. <zaudio theme="theme4"></zaudio>
  20. </view>
  21. <scroll-view :scroll-top="scrollTop" lower-threshold='100px' @scrolltolower="ltolower()" upper-threshold='40px'
  22. @scrolltoupper="rolltoupper()" :scroll-into-view="scrollId" scroll-y="true" class="text scroll-Y">
  23. <!-- 音频识别模块 -->
  24. <view>
  25. <!-- 聊天记录-->
  26. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  27. <view :id="'dialog'+i" class="fileName">录音文件</view>
  28. <view class="text" :id="'dialog'+csdFileindex+'text'+item.bg"
  29. :class="{active: Math.floor(item.bg/1000) < playNow && Math.floor(item.ed/1000) > playNow, isGreen: item.isShow == 0}"
  30. v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker">
  31. <view class="avatar">
  32. <view class="avatar">
  33. <view :style="[SPEAKERSTYLE(item.speaker)]">
  34. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix">
  35. </image>
  36. <text v-else>{{ item.speaker | toCapital }}</text>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="content">
  41. <view v-html="item.onebest"></view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 点赞 -->
  46. <view class="likeArea" :class="{'liked':isLiked}">
  47. <image
  48. :src="isLiked?'/static/images/recordingManagement/likeActive.png':'/static/images/recordingManagement/like_gray.png'"
  49. mode=""></image>
  50. </view>
  51. <view class="hash" id="hash">
  52. </view>
  53. </view>
  54. </scroll-view>
  55. <!-- 写评价 -->
  56. <view class="bottomArea">
  57. <image class="voice" @click.stop="changeVoiceShow" src="/static/images/recordingManagement/voice.png"
  58. mode=""></image>
  59. <view class="inputArea">
  60. <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true"
  61. class="editor" :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment">
  62. </textarea>
  63. <view class="placeholder" :class="{'editing':editing}" v-if="!content && !editing">写评价</view>
  64. <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png"
  65. mode=""></image>
  66. </view>
  67. <image class="like" v-if="myId != createUser && !editing" @click="changeLike"
  68. src="/static/images/recordingManagement/like.png" mode=""></image>
  69. <image class="add" @click.stop="uploadImage" v-if="!editing && content == ''"
  70. src="/static/images/recordingManagement/add.png" mode=""></image>
  71. <view class="send" @click="sendComment" v-if="content!=''">
  72. 发送
  73. </view>
  74. </view>
  75. <!-- 评语列表 -->
  76. <u-popup v-model="watchAllCommit" mode="bottom">
  77. <scroll-view style="height: 70vh;" scroll-y>
  78. <view class="boxs">
  79. <view class="chat">
  80. <view class="total">
  81. 全部评论(共{{commentList.length}}条)
  82. </view>
  83. <view class="list">
  84. <view class="message" v-for="(item,index) in commentList" :key="index">
  85. <u-avatar class="avator" size="72"
  86. :src="item.commentPic ||'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/my/headPicture.png'">
  87. </u-avatar>
  88. <view class="right">
  89. <view class="name">
  90. {{item.commentName||"未知昵称"}}
  91. </view>
  92. <view class="subtitle" v-if="item.commentAutoGraph">
  93. {{item.commentAutoGraph}}
  94. </view>
  95. <view class="answer" v-if="item.replyName">
  96. 回复@{{item.replyName}}
  97. </view>
  98. <view class="content" v-if="item.content">
  99. {{item.content}}
  100. </view>
  101. <view class="pic" v-if="item.picUrl">
  102. <image style="width: 100%;max-width: 240px;" :src="item.picUrl" mode="widthFix">
  103. </image>
  104. </view>
  105. <view class="bottom">
  106. <view class="time">
  107. {{item.createTime}}
  108. </view>
  109. <view class="button" v-if="myId != item.commentUser"
  110. @click.stop="answer(item.commentUser,item.id)">
  111. 回复
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. <!-- 写评价 -->
  119. <view class="bottomArea">
  120. <image class="voice" @click.stop="changeVoiceShow"
  121. src="/static/images/recordingManagement/voice.png" mode=""></image>
  122. <view class="inputArea">
  123. <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent"
  124. :auto-height="true" class="editor" :class="{'active':editing}"
  125. @click.stop="changeEditing(true)" @confirm="sendComment">
  126. </textarea>
  127. <view class="placeholder" :class="{'editing':editing}" v-if="!content && !editing">写评价
  128. </view>
  129. <image class="edit" v-if="!editing && content == ''"
  130. src="/static/images/recordingManagement/edit.png" mode=""></image>
  131. </view>
  132. <image class="like" v-if="myId != createUser && !editing" @click="changeLike"
  133. src="/static/images/recordingManagement/like.png" mode=""></image>
  134. <image class="add" @click.stop="uploadImage" v-if="!editing && content == ''"
  135. src="/static/images/recordingManagement/add.png" mode=""></image>
  136. <view class="send" @click="sendComment" v-if="content!=''">
  137. 发送
  138. </view>
  139. </view>
  140. </view>
  141. </scroll-view>
  142. </u-popup>
  143. <!-- 回到顶部 -->
  144. <!-- <view class="backTop" @click.stop="gotoTop()">
  145. <image src="/static/images/backTop.png" mode=""></image>
  146. </view> -->
  147. <!-- 语音输入 -->
  148. <cover-view class="voiceContent" v-if="voiceShow" @click="changeVoiceShow">
  149. <cover-view class="box" @click.stop="" @touchstart="voiceStart" @touchend="voiceEnd">
  150. <cover-view class="center">
  151. <cover-image class="voice" src="/static/images/voice.png" mode="widthFix"></cover-image>
  152. <cover-view class="text">
  153. {{isRecording?'正在输入':'长按语音输入'}}
  154. </cover-view>
  155. </cover-view>
  156. </cover-view>
  157. </cover-view>
  158. </view>
  159. </template>
  160. <script>
  161. var app = getApp();
  162. var util = require("../../../utils/util.js");
  163. var config = require("../../../config");
  164. var plugin = requirePlugin("WechatSI")
  165. let manager = plugin.getRecordRecognitionManager();
  166. import zaudio from '@/components/uniapp-zaudio/zaudio';
  167. export default {
  168. components: {
  169. zaudio
  170. },
  171. data() {
  172. return {
  173. 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",
  174. roleindex: 0,
  175. dialogList: [], // 录音对话转移列表
  176. luyinList: [], //录音文件列表
  177. newluyinList: [],
  178. id: "",
  179. customerId: '',
  180. message: "", //聊天记录表
  181. durationTimeStr: "",
  182. autoLoad: true,
  183. playNow: 0,
  184. scrollTop: 0,
  185. scrollId: "",
  186. editing: false,
  187. isLiked: null,
  188. createUser: null,
  189. commentList: [], //评论列表
  190. content: "",
  191. voiceShow: false,
  192. isRecording: false,
  193. answerUserId: null,
  194. answerId: null,
  195. textareaFocus: false,
  196. myId: uni.getStorageSync("weapp_session_userInfo_data").accountId,
  197. audioPlay: false, //当前的播放状态控制
  198. sliderValue: 0, //进度条最小值
  199. end: false,
  200. recordPath: "",
  201. csdFileindex: 0,
  202. date: "", //年月日
  203. alltimeStr: "00:00",
  204. num: 0, //上拉 转写文件下标
  205. Bnum: 0, //下拉 转写文件下标
  206. status: 0,
  207. itemobj: {},
  208. textindex: 0, //下拉 转写文件下标
  209. toptextindex: 0, //上拉 转写文件下标
  210. timer: null,
  211. watchAllCommit: false, // 查看全部评论
  212. ACTION: Symbol('zaudio'), // 唯一值区分每个页面的方法
  213. isPageHide: false, // 是否息屏
  214. duration: '',
  215. };
  216. },
  217. onLoad(options) {
  218. this.status = options.status;
  219. this.customerId = options.customerId;
  220. this.itemobj = JSON.parse(options.itemobj);
  221. this.stateisshow = options.stateisshow;
  222. this.getdianzan()
  223. this.getCommentList();
  224. // 当进入页面时调一次接口添加浏览量
  225. this.getView()
  226. let that = this
  227. this.timer = setTimeout(function() {
  228. that.addHot()
  229. }, 30000)
  230. //注意: 不同的回调方法, 相同的业务函数方法名, 不会相互影响;
  231. this.$zaudio.on('stop', this.ACTION, () => {
  232. console.log('我是强制暂停或关闭小程序音频浮窗触发的')
  233. })
  234. this.$zaudio.on('seek', this.ACTION, (time) => {
  235. this.sliderChangeComplate(this.TIMEEVENT(time))
  236. })
  237. this.$zaudio.on('playing', this.ACTION, (obj) => {
  238. this.duration = obj.duration
  239. this.TimeUpdate(this.TIMEEVENT(obj.current))
  240. })
  241. uni.$on('THEFULLTEXT2', info => {
  242. this.getluyinList(info)
  243. })
  244. },
  245. onShow() {
  246. //实时渲染当前的播放状态
  247. this.$zaudio.syncRender()
  248. this.initRecord();
  249. if (this.stateisshow == 2) {
  250. var info = this.itemobj;
  251. }
  252. !this.isPageHide && this.getluyinList(info);
  253. },
  254. onHide() {
  255. this.isPageHide = true
  256. },
  257. onUnload() {
  258. uni.$off('THEFULLTEXT2')
  259. //卸载不需要的业务和获取播放状态的业务,提高页面性能
  260. this.$zaudio.off('seek', this.ACTION);
  261. this.$zaudio.off('stop', this.ACTION);
  262. this.$zaudio.off('playing', this.ACTION);
  263. },
  264. methods: {
  265. toKeywordsearch() {
  266. uni.navigateTo({
  267. url: '/pages/learning/Thefulltext/search?customerId=' + this.customerId + "&status=" + this
  268. .status + "&skpl=" + "2" + '&UpDateEvent=THEFULLTEXT2'
  269. })
  270. },
  271. getView() {
  272. this.$u.get('/addtodigest/addPageviews', {
  273. id: this.customerId
  274. })
  275. .then(res => {
  276. // console.log(res)
  277. })
  278. },
  279. addHot() {
  280. // console.log('30')
  281. this.$u.post('/zkstudyrecord', {
  282. targetId: this.customerId
  283. })
  284. .then(res => {
  285. // console.log(res)
  286. })
  287. },
  288. TimeUpdate(currentTime) {
  289. this.playNow = Number(currentTime)
  290. if (this.dialogList.length == 0) {
  291. return
  292. } else {
  293. const message = this.dialogList[0].message;
  294. if (!message) return
  295. for (let i = 0; i < message.length; i++) {
  296. if ((Math.floor(message[i].bg / 1000) <= this.playNow && this.playNow < Math.floor(message[i].ed /
  297. 1000))) {
  298. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  299. break;
  300. }
  301. if (i < message.length - 1 && Math.floor(message[i].ed / 1000) < this.playNow && this.playNow <
  302. Math.floor(message[i + 1].bg / 1000)) {
  303. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  304. break;
  305. }
  306. }
  307. }
  308. this.$forceUpdate()
  309. },
  310. //下一页
  311. ltolower() {
  312. var lengthcz = this.newluyinList.length - 1;
  313. if (this.textindex >= lengthcz) {
  314. uni.showToast({
  315. title: '到底了',
  316. duration: 2000
  317. });
  318. return
  319. } else {
  320. this.textindex = this.textindex + 1;
  321. this.newluyinList[this.textindex].message.forEach(item => {
  322. this.dialogList[0].message.push(item)
  323. })
  324. }
  325. },
  326. //上一页
  327. rolltoupper() {
  328. if (this.toptextindex == 0) {
  329. // uni.showToast({
  330. // title: '到头了',
  331. // duration: 2000
  332. // });
  333. return
  334. } else {
  335. if (this.dialogList[0] == undefined) {
  336. return
  337. } else {
  338. this.toptextindex = this.toptextindex - 1;
  339. let reverselist = this.newluyinList[this.toptextindex].message;
  340. let runlist = reverselist.reverse();
  341. runlist.forEach(item => {
  342. this.dialogList[0].message.unshift(item)
  343. })
  344. }
  345. }
  346. console.log("上一页", this.toptextindex)
  347. },
  348. //获取点赞列表isLiked likegetLike
  349. getdianzan() {
  350. this.$u.get(config.service.likegetLike, {
  351. targetId: this.customerId
  352. }).then(data => {
  353. this.isLiked = data.like;
  354. }).catch(e => {
  355. uni.hideLoading();
  356. })
  357. },
  358. // 获取评论列表
  359. getCommentList() {
  360. const that = this;
  361. util.getRequestPromise(config.service.cmmentList + '?targetId=' + this.customerId, {}, false, "GET").then(
  362. data => {
  363. let tmp = data;
  364. tmp.reverse();
  365. that.commentList = tmp;
  366. });
  367. },
  368. // 获取录音记录列表
  369. getluyinList(info) {
  370. const parames = {
  371. pageNum: 1,
  372. pageSize: 100,
  373. query: {
  374. customerId: this.customerId
  375. }
  376. }
  377. this.$u.post("/corpus/findByPage", parames).then(res => {
  378. if (res && res.length) {
  379. let alltime = res[0].recordDuration;
  380. this.alltimeStr = this.getTime(alltime)
  381. if (info.bg != 0) {
  382. this.luyinList = res;
  383. this.recordPath = res[0].recordPath
  384. this.date = res[0].receptionTime;
  385. this.getCorpusAnalysis(info);
  386. this.stepPlay(Math.floor(info.bg / 1000))
  387. } else {
  388. this.luyinList = res;
  389. this.recordPath = res[0].recordPath
  390. this.date = res[0].receptionTime;
  391. this.getCorpusAnalysis(info);
  392. this.zyAudio()
  393. }
  394. }
  395. })
  396. },
  397. //搜索跳转
  398. adasdasdasd(e) {
  399. this.stepPlay(e)
  400. },
  401. // 获取转义后的对话结果
  402. getCorpusAnalysis(info) {
  403. this.dialogList = [];
  404. let obj = {
  405. corpusId: this.luyinList[this.csdFileindex].id,
  406. bg: info.bg,
  407. speaker: this.roleindex,
  408. }
  409. this.$u.get(config.service.getCorpusAnal, obj).then((data) => {
  410. let jsonInfo = JSON.parse(data.audioContent);
  411. //上拉标记点
  412. this.textindex = data.index;
  413. //下拉标记点
  414. this.toptextindex = data.index;
  415. jsonInfo.forEach(item => {
  416. item.message = JSON.parse(item.onebest)
  417. item.backindex = this.csdFileindex;
  418. if (info.onebest) {
  419. item.message.forEach(che => {
  420. if (che.onebest == info.onebest) {
  421. che.onebest =
  422. `<font style='color: red'>${che.onebest}</font>`;
  423. }
  424. })
  425. }
  426. })
  427. this.newluyinList = jsonInfo;
  428. this.dialogList.push(jsonInfo[this.textindex]);
  429. this.adasdasdasd(Math.floor(info.bg / 1000))
  430. })
  431. },
  432. getTime(time) {
  433. return util.formatSecond(time)
  434. },
  435. //音频前进回退
  436. sliderChangeComplate(currentTime) {
  437. let platetime = currentTime * 1000;
  438. this.dialogList = []
  439. this.$u.get(config.service.fastForward, {
  440. corpusId: this.luyinList[this.csdFileindex].id,
  441. bg: platetime
  442. }).then(data => {
  443. this.textindex = data.index;
  444. this.toptextindex = data.index;
  445. this.dialogList.push(this.newluyinList[data.index])
  446. if (this.$zaudio.paused) {
  447. this.$zaudio.operate()
  448. }
  449. })
  450. },
  451. formatTime(num) {
  452. //格式化时间格式
  453. num = num.toFixed(0);
  454. let second = num % 60;
  455. if (second < 10) second = '0' + second;
  456. let min = Math.floor(num / 60);
  457. if (min < 10) min = '0' + min;
  458. return min + ":" + second;
  459. },
  460. changeVoiceShow() {
  461. this.voiceShow = !this.voiceShow;
  462. },
  463. voiceStart() {
  464. manager.start({
  465. lang: "zh_CN"
  466. });
  467. },
  468. voiceEnd() {
  469. // uni.showToast();
  470. if (this.isRecording) {
  471. uni.showLoading({
  472. title: "识别中"
  473. })
  474. }
  475. this.voiceShow = false;
  476. this.isRecording = false;
  477. manager.stop();
  478. },
  479. // 语音初始化
  480. initRecord() {
  481. const that = this;
  482. manager.onStart = function(res) {
  483. that.isRecording = true;
  484. // this.voiceState = "onStart:" + res.msg + "正在录音"
  485. };
  486. //有新的识别内容返回,则会调用此事件
  487. manager.onRecognize = (res) => {
  488. console.log('ing' + res.result);
  489. }
  490. // 识别结束事件
  491. manager.onStop = (res) => {
  492. uni.hideLoading();
  493. let newText = that.content + res.result;
  494. if (newText.length > 140) {
  495. newText = newText.substring(0, 140)
  496. }
  497. that.content = newText;
  498. that.textareaFocus = true;
  499. }
  500. // 识别错误事件
  501. manager.onError = (res) => {
  502. uni.hideLoading();
  503. }
  504. },
  505. changeContent(e) {
  506. this.content = e.detail.value;
  507. },
  508. answer(userId, tid) {
  509. this.answerId = tid;
  510. this.answerUserId = userId;
  511. this.editing = true;
  512. this.textareaFocus = true;
  513. },
  514. // 保存评论
  515. sendComment() {
  516. if (this.content == "") {
  517. uni.showToast({
  518. icon: "none",
  519. title: "请输入标题"
  520. })
  521. return;
  522. }
  523. let parames = {
  524. targetId: this.customerId,
  525. content: this.content,
  526. commentType: 1
  527. };
  528. if (this.answerUserId) {
  529. parames.replyCommentId = this.answerId;
  530. parames.replyUser = this.answerUserId;
  531. }
  532. const that = this;
  533. util.getRequestPromise(config.service.saveCmment, parames, false).then(data => {
  534. that.getCommentList();
  535. uni.showToast({
  536. title: "评论成功",
  537. icon: "none"
  538. })
  539. that.textareaFocus = false;
  540. that.content = "";
  541. });
  542. },
  543. uploadImage() {
  544. const that = this;
  545. var parames = {
  546. targetId: that.customerId,
  547. commentType: 1
  548. };
  549. if (this.answerUserId) {
  550. parames.replyCommentId = this.answerId;
  551. parames.replyUser = this.answerUserId;
  552. }
  553. uni.chooseImage({
  554. count: 1, //默认9
  555. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  556. sourceType: ['album', 'camera'],
  557. success: function(res) {
  558. uni.showLoading({
  559. title: "上传中"
  560. })
  561. uni.uploadFile({
  562. url: config.service.saveCmmentUpload,
  563. filePath: res.tempFilePaths[0],
  564. name: 'file',
  565. header: {
  566. 'Authorization': 'Bearer ' + uni.getStorageSync(
  567. 'weapp_session_login_data').token
  568. },
  569. formData: parames,
  570. success: (uploadFileRes) => {
  571. that.getCommentList();
  572. uni.hideLoading();
  573. uni.showToast({
  574. icon: "none",
  575. title: "上传成功"
  576. })
  577. console.log(uploadFileRes.data);
  578. }
  579. });
  580. }
  581. });
  582. },
  583. changeLike() {
  584. uni.showLoading({
  585. title: "请求中",
  586. mask: true
  587. })
  588. if (this.isLiked) {
  589. this.cancelLike();
  590. } else {
  591. this.saveLike();
  592. }
  593. },
  594. // 点赞
  595. saveLike() {
  596. const that = this;
  597. util.getRequestPromise(config.service.saveLike, {
  598. targetId: this.customerId
  599. }, false).then(data => {
  600. that.isLiked = true;
  601. uni.hideLoading();
  602. uni.showToast({
  603. icon: "none",
  604. title: "点赞成功"
  605. })
  606. });
  607. },
  608. // 取消点赞
  609. cancelLike() {
  610. const that = this;
  611. util.getRequestPromise(config.service.cancelLike, {
  612. targetId: this.customerId
  613. }, false).then(data => {
  614. that.isLiked = false;
  615. uni.hideLoading();
  616. uni.showToast({
  617. icon: "none",
  618. title: "取消点赞成功"
  619. })
  620. });
  621. },
  622. // 查看全部评论
  623. gotoChat() {
  624. this.watchAllCommit = true
  625. },
  626. gotoTop() {
  627. console.log("asdasdasd")
  628. this.scrollId = null;
  629. this.$nextTick(() => {
  630. this.scrollId = "top";
  631. })
  632. },
  633. changeEditing(type) {
  634. this.editing = type;
  635. this.answerId = null;
  636. this.answerUserId = null;
  637. this.textareaFocus = false;
  638. },
  639. //录音实例
  640. zyAudio() {
  641. let data = [{
  642. src: this.recordPath,
  643. title: '录音音频',
  644. singer: '',
  645. coverImgUrl: ''
  646. }]
  647. this.$zaudio.setAudio(data)
  648. //渲染第一首音频
  649. this.$zaudio.setRender(0)
  650. },
  651. // 跳转指定位置播放
  652. stepPlay(t) {
  653. this.$zaudio.seek(t)
  654. if (this.$zaudio.paused) {
  655. this.$zaudio.operate()
  656. }
  657. }
  658. }
  659. };
  660. </script>
  661. <style lang="scss" scoped>
  662. .biaoqiantom {
  663. background-color: #008EF2;
  664. color: #FFFFFF;
  665. border: none;
  666. }
  667. .boxs {
  668. min-height: 100%;
  669. display: flex;
  670. flex-direction: column;
  671. .chat {
  672. flex-grow: 1;
  673. }
  674. .bottomArea {
  675. flex-shrink: 0;
  676. position: sticky;
  677. bottom: 0;
  678. }
  679. }
  680. // 表单
  681. .tian-view {
  682. width: 570upx;
  683. background-color: #FFFFFF;
  684. border-bottom: 1px solid #ededee;
  685. display: flex;
  686. min-height: 96rpx;
  687. .tian-view-t1 {
  688. width: 20rpx;
  689. font-size: 34rpx;
  690. height: 34rpx;
  691. line-height: 110rpx;
  692. letter-spacing: 0px;
  693. color: red;
  694. }
  695. .tian-view-t2 {
  696. width: 30%;
  697. min-height: 96rpx;
  698. line-height: 96rpx;
  699. font-size: 34rpx;
  700. color: #333;
  701. }
  702. .tian-view-t3 {
  703. width: 61%;
  704. padding-top: 31rpx;
  705. padding-bottom: 31rpx;
  706. display: flex;
  707. .tian-input {
  708. width: 98%;
  709. font-size: 34rpx;
  710. border: none;
  711. }
  712. }
  713. }
  714. .zhezhoa {
  715. position: fixed;
  716. top: 0;
  717. left: 0;
  718. z-index: 999;
  719. width: 100%;
  720. height: 100vh;
  721. opacity: 0.5;
  722. background-color: #666666;
  723. }
  724. .bounced {
  725. width: 570upx;
  726. background: #FFFFFF;
  727. z-index: 1000;
  728. border-radius: 10upx;
  729. position: fixed;
  730. left: 50%;
  731. top: 50%;
  732. transform: translate(-50%, -50%);
  733. /* 50%为自身尺寸的一半 */
  734. .jiajinghuatit {
  735. width: 100%;
  736. height: 68rpx;
  737. font-size: 30rpx;
  738. text-align: center;
  739. line-height: 68rpx;
  740. }
  741. .jiajinghuaview {
  742. padding: 18rpx 18rpx 18rpx 18rpx;
  743. display: flex;
  744. flex-wrap: wrap;
  745. .jiajinghuaview1 {
  746. padding: 8rpx 8rpx 8rpx 8rpx;
  747. font-size: 26rpx;
  748. border-radius: 12rpx;
  749. border: 1px solid #979797;
  750. margin-left: 8rpx;
  751. }
  752. .jighuaview2 {
  753. padding: 8rpx 8rpx 8rpx 8rpx;
  754. font-size: 26rpx;
  755. border-radius: 12rpx;
  756. border: 1px solid #979797;
  757. margin-left: 8rpx;
  758. display: flex;
  759. .view1-text {
  760. text-align: center;
  761. // border-right: 1rpx solid red;
  762. }
  763. .view1-img {
  764. width: 50rpx;
  765. }
  766. }
  767. }
  768. .bounced3 {
  769. height: 100upx;
  770. width: 100%;
  771. margin-top: 40upx;
  772. border-top: 1px solid #dddddd;
  773. display: flex;
  774. }
  775. .bounced3-1 {
  776. width: 50%;
  777. height: 100%;
  778. text-align: center;
  779. line-height: 100upx;
  780. border-right: 1px solid #dddddd;
  781. font-size: 36upx;
  782. color: #999999;
  783. }
  784. .bounced3-2 {
  785. width: 50%;
  786. height: 100%;
  787. text-align: center;
  788. line-height: 100upx;
  789. font-size: 36upx;
  790. color: #108ee9;
  791. }
  792. }
  793. .tab-box {
  794. width: 100%;
  795. display: flex;
  796. justify-content: center;
  797. align-items: center;
  798. .yinpinshibie {
  799. width: 156rpx;
  800. height: 50rpx;
  801. font-size: 36rpx;
  802. font-weight: 400;
  803. color: #333333;
  804. text-align: center;
  805. line-height: 50rpx;
  806. letter-spacing: 2rpx;
  807. margin-right: 188rpx;
  808. &.active {
  809. position: relative;
  810. &::after {
  811. position: absolute;
  812. content: '';
  813. width: 119rpx;
  814. height: 8rpx;
  815. background: #008EF2;
  816. border-radius: 4rpx;
  817. top: 50rpx;
  818. right: 0;
  819. left: 0;
  820. margin: 0 auto;
  821. }
  822. }
  823. }
  824. .rate {
  825. width: 156rpx;
  826. height: 50rpx;
  827. font-size: 36rpx;
  828. font-weight: 400;
  829. color: #333333;
  830. line-height: 50rpx;
  831. letter-spacing: 2rpx;
  832. text-align: center;
  833. &.active {
  834. position: relative;
  835. &::after {
  836. position: absolute;
  837. content: '';
  838. width: 119rpx;
  839. height: 8rpx;
  840. background: #008EF2;
  841. border-radius: 4rpx;
  842. top: 50rpx;
  843. right: 0;
  844. left: 0;
  845. margin: 0 auto;
  846. }
  847. }
  848. }
  849. }
  850. .dialog-block {
  851. margin: 20rpx 0;
  852. border-bottom: 1px solid #ccc;
  853. .fileName {
  854. text-align: center;
  855. margin: 10rpx auto;
  856. width: 115rpx;
  857. height: 42rpx;
  858. line-height: 42rpx;
  859. background: #EFEFEF;
  860. border-radius: 4rpx;
  861. font-size: 20rpx;
  862. font-weight: 400;
  863. color: #333333;
  864. }
  865. }
  866. // 评分
  867. .rate-box {
  868. padding: 10rpx 20rpx;
  869. .date {
  870. width: 300rpx;
  871. height: 33rpx;
  872. font-size: 24rpx;
  873. font-weight: 400;
  874. color: #333333;
  875. line-height: 33rpx;
  876. letter-spacing: 1rpx;
  877. margin-bottom: 8rpx;
  878. }
  879. .title {
  880. width: 100%;
  881. height: 42rpx;
  882. font-size: 30rpx;
  883. font-weight: 500;
  884. color: #333333;
  885. line-height: 42rpx;
  886. letter-spacing: 2rpx;
  887. margin-bottom: 20rpx;
  888. }
  889. .level1 {
  890. display: flex;
  891. align-items: center;
  892. .level-name {
  893. width: 104rpx;
  894. height: 33rpx;
  895. font-size: 24rpx;
  896. font-weight: 500;
  897. color: #333333;
  898. line-height: 33rpx;
  899. letter-spacing: 1rpx;
  900. margin-right: 10rpx;
  901. }
  902. .level-progress {
  903. flex: 1;
  904. border-radius: 11rpx;
  905. height: 21rpx;
  906. background-color: #BEE4FF;
  907. position: relative;
  908. .color {
  909. width: 0;
  910. position: absolute;
  911. top: 0;
  912. left: 0;
  913. height: 21rpx;
  914. border-radius: 11rpx 0 0 11rpx;
  915. background-color: #008EF2;
  916. }
  917. }
  918. .level-rate {
  919. width: 65rpx;
  920. height: 33rpx;
  921. font-size: 24rpx;
  922. font-weight: 500;
  923. color: #333333;
  924. line-height: 33rpx;
  925. letter-spacing: 1rpx;
  926. margin: 0 20rpx 0 15rpx;
  927. }
  928. .arrow {
  929. width: 37rpx;
  930. height: 21rpx;
  931. padding: 5rpx 20rpx;
  932. }
  933. .rotatearrow {
  934. transform: rotate(270deg);
  935. }
  936. }
  937. .level1-subbox {
  938. display: flex;
  939. margin-top: 20rpx;
  940. flex-wrap: wrap;
  941. .sub-name {
  942. width: 50%;
  943. display: flex;
  944. margin-bottom: 18rpx;
  945. .subitem-name {
  946. width: 104rpx;
  947. height: 33rpx;
  948. font-size: 24rpx;
  949. font-weight: 400;
  950. color: #999999;
  951. line-height: 33rpx;
  952. letter-spacing: 1rpx;
  953. margin-right: 12rpx;
  954. }
  955. .checkimg {
  956. width: 27rpx;
  957. height: 27rpx;
  958. }
  959. }
  960. }
  961. }
  962. .luyin {
  963. height: 100rpx;
  964. width: 100%;
  965. }
  966. .translation {
  967. padding-left: 30rpx;
  968. padding-right: 30rpx;
  969. background: #FFFFFF;
  970. display: flex;
  971. flex-direction: column;
  972. height: 100vh;
  973. }
  974. .translation .top {
  975. margin: 0 -30upx;
  976. padding: 0 30upx;
  977. background: #ffffff;
  978. border-bottom: 1rpx solid #F2F2F2;
  979. padding-bottom: 10rpx;
  980. }
  981. .translation .top .title {
  982. display: flex;
  983. justify-content: space-between;
  984. .hash {
  985. color: rgba(21, 144, 233, 1);
  986. font-size: 24upx;
  987. }
  988. }
  989. .call_record_time {
  990. height: 44rpx;
  991. font-size: 28rpx;
  992. font-weight: 600;
  993. color: #008EF2;
  994. line-height: 44rpx;
  995. }
  996. .call_record_time_one {
  997. height: 48rpx;
  998. font-size: 24rpx;
  999. font-weight: 500;
  1000. color: #70798d;
  1001. line-height: 48rpx;
  1002. display: flex;
  1003. justify-content: space-between;
  1004. position: relative;
  1005. .diangweitupian {
  1006. width: 46rpx;
  1007. height: 46rpx;
  1008. // border: 1px solid red;
  1009. position: absolute;
  1010. top: 0rpx;
  1011. right: 75rpx;
  1012. }
  1013. .file-change {
  1014. position: absolute;
  1015. top: 50rpx;
  1016. right: 0rpx;
  1017. width: 184rpx;
  1018. background: #FFFFFF;
  1019. box-shadow: 0rpx 0rpx 6rpx 2rpx rgba(230, 230, 230, 0.5);
  1020. border-radius: 4rpx;
  1021. z-index: 99;
  1022. height: auto;
  1023. max-height: 600rpx;
  1024. overflow: auto;
  1025. }
  1026. .file-item {
  1027. width: 184rpx;
  1028. height: 60rpx;
  1029. line-height: 60rpx;
  1030. text-align: center;
  1031. font-size: 30rpx;
  1032. font-weight: 400;
  1033. color: #333333;
  1034. border-bottom: 1rpx solid #E2E2E2;
  1035. }
  1036. .file-item:last-child {
  1037. border: 0
  1038. }
  1039. .fileactive {
  1040. color: #008EF2
  1041. }
  1042. }
  1043. .scroll-Y {
  1044. font-size: 36upx;
  1045. color: #999999;
  1046. background: #FFFFFF;
  1047. margin-top: 30upx;
  1048. flex: 1;
  1049. overflow-y: scroll;
  1050. width: 100%;
  1051. }
  1052. .scroll-Y .text {
  1053. margin: 50upx 30upx;
  1054. line-height: 80upx;
  1055. display: flex;
  1056. align-items: center;
  1057. }
  1058. .scroll-Y .text[data-speaker="2"],
  1059. .scroll-Y .text[data-speaker="4"],
  1060. .scroll-Y .text[data-speaker="6"] {
  1061. flex-direction: row-reverse;
  1062. text-align: right;
  1063. .content {
  1064. margin-left: 0;
  1065. margin-right: 30upx;
  1066. background: #F6F6F6;
  1067. color: #999999;
  1068. }
  1069. }
  1070. .scroll-Y .text .avatar {
  1071. width: 64upx;
  1072. height: 64upx;
  1073. line-height: 64upx;
  1074. text-align: center;
  1075. // border: 1rpx solid red;
  1076. font-size: 36rpx;
  1077. border-radius: 50%;
  1078. background: #F2F2F2;
  1079. color: #008EF2;
  1080. // display: flex;
  1081. // justify-content: center;
  1082. // align-items: center;
  1083. image {
  1084. width: 40upx;
  1085. }
  1086. }
  1087. .scroll-Y .text .content {
  1088. margin-left: 30upx;
  1089. line-height: 60rpx;
  1090. text-align: left;
  1091. padding: 0 5px;
  1092. background: #F6F6F6;
  1093. border-radius: 8upx;
  1094. max-width: 442rpx;
  1095. color: #999999;
  1096. position: relative;
  1097. .tankuangcss {
  1098. position: absolute;
  1099. top: -53rpx;
  1100. left: -80rpx;
  1101. width: 318rpx;
  1102. height: 68rpx;
  1103. background-color: #333333;
  1104. font-size: 24rpx;
  1105. color: #FFFFFF;
  1106. padding-top: 4rpx;
  1107. padding-bottom: 4rpx;
  1108. display: flex;
  1109. align-items: center;
  1110. border-radius: 15rpx;
  1111. }
  1112. }
  1113. .scroll-Y .isGreen .contentInfo .contentMain .content {
  1114. background: #2BC805 !important;
  1115. color: #FFFFFF;
  1116. }
  1117. .scroll-Y .text.active .content {
  1118. color: #FF7538 !important;
  1119. position: relative;
  1120. }
  1121. .scroll-Y .text.active[data-speaker="2"] .content,
  1122. .scroll-Y .text.active[data-speaker="4"] .content,
  1123. .scroll-Y .text.active[data-speaker="6"] .content {
  1124. color: #FF7538 !important;
  1125. position: relative;
  1126. }
  1127. .likeArea {
  1128. width: 86upx;
  1129. height: 84upx;
  1130. margin: 20upx auto 38upx auto;
  1131. border-radius: 50%;
  1132. display: flex;
  1133. justify-content: center;
  1134. align-items: center;
  1135. border: 1upx solid #C1C2C1;
  1136. &.liked {
  1137. border: 1upx solid rgba(21, 144, 233, 1);
  1138. }
  1139. image {
  1140. width: 38upx;
  1141. height: 39upx;
  1142. }
  1143. }
  1144. .chat {
  1145. padding: 20rpx;
  1146. display: flex;
  1147. flex-direction: column;
  1148. border-top: 1rpx solid rgba(151, 151, 151, 0.4);
  1149. .total {
  1150. color: rgba(21, 144, 233, 1);
  1151. font-size: 24upx;
  1152. }
  1153. .list {
  1154. display: flex;
  1155. flex-direction: column;
  1156. .message {
  1157. display: flex;
  1158. margin-top: 20upx;
  1159. border-bottom: 1upx solid rgba(151, 151, 151, 0.4);
  1160. padding-bottom: 20upx;
  1161. &:last-child {
  1162. border-bottom: 0;
  1163. }
  1164. .avator {
  1165. margin-left: 120upx;
  1166. }
  1167. &:first-child {
  1168. .avator {
  1169. margin-left: 0;
  1170. }
  1171. }
  1172. .right {
  1173. display: flex;
  1174. flex-direction: column;
  1175. margin-left: 20upx;
  1176. flex: 1;
  1177. .name {
  1178. color: rgba(16, 16, 16, 1);
  1179. font-size: 30upx;
  1180. }
  1181. .subtitle {
  1182. color: rgba(120, 120, 120, 1);
  1183. font-size: 24upx;
  1184. margin-top: 16upx;
  1185. }
  1186. .answer {
  1187. font-size: 24upx;
  1188. color: #787878;
  1189. }
  1190. .content {
  1191. color: rgba(49, 48, 48, 1);
  1192. font-size: 30upx;
  1193. margin-top: 20upx;
  1194. position: relative;
  1195. }
  1196. .bottom {
  1197. margin-top: 16upx;
  1198. display: flex;
  1199. justify-content: space-between;
  1200. .time {
  1201. color: rgba(185, 185, 185, 1);
  1202. font-size: 20upx;
  1203. }
  1204. .button {
  1205. color: rgba(144, 144, 144, 1);
  1206. font-size: 30upx;
  1207. width: 111upx;
  1208. height: 44upx;
  1209. border-radius: 22upx;
  1210. border: 1upx solid rgba(151, 151, 151, 1);
  1211. text-align: center;
  1212. }
  1213. }
  1214. }
  1215. }
  1216. }
  1217. }
  1218. .bottomArea {
  1219. min-height: 90upx;
  1220. background: #F0F2F5;
  1221. width: 100vw;
  1222. display: flex;
  1223. align-items: center;
  1224. border-top: 1upx solid rgba(151, 151, 151, 0.25);
  1225. .voice {
  1226. width: 44upx;
  1227. height: 44upx;
  1228. margin-left: 38upx;
  1229. }
  1230. .inputArea {
  1231. margin-left: 38upx;
  1232. margin-right: 38upx;
  1233. flex: 1;
  1234. display: flex;
  1235. position: relative;
  1236. .edit {
  1237. width: 30upx;
  1238. height: 28upx;
  1239. position: absolute;
  1240. top: 31upx;
  1241. left: 27upx;
  1242. }
  1243. .editor {
  1244. background: rgba(0, 139, 245, 0.17);
  1245. border-radius: 29upx;
  1246. flex: 1;
  1247. min-height: 58upx;
  1248. width: unset;
  1249. padding: 0 32upx;
  1250. font-size: 30upx;
  1251. margin: 16rpx 0;
  1252. line-height: 29px;
  1253. }
  1254. .placeholder {
  1255. position: absolute;
  1256. left: 70rpx;
  1257. top: 26rpx;
  1258. color: #26A2FF;
  1259. &.editing {
  1260. left: 36rpx;
  1261. }
  1262. }
  1263. }
  1264. .download {
  1265. width: 41upx;
  1266. height: 35upx;
  1267. margin-right: 36upx;
  1268. }
  1269. .like {
  1270. width: 38upx;
  1271. height: 39upx;
  1272. margin-right: 38upx;
  1273. }
  1274. .add {
  1275. width: 50upx;
  1276. height: 50upx;
  1277. margin-right: 38upx;
  1278. }
  1279. .send {
  1280. background: #1590e9;
  1281. color: white;
  1282. padding: 10rpx 20rpx;
  1283. margin: 5px;
  1284. border-radius: 8rpx;
  1285. }
  1286. }
  1287. .backTop {
  1288. width: 60upx;
  1289. height: 60upx;
  1290. background: rgba(211, 235, 253, 1);
  1291. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  1292. border-radius: 50%;
  1293. position: fixed;
  1294. bottom: 200upx;
  1295. right: 8upx;
  1296. display: flex;
  1297. justify-content: center;
  1298. align-items: center;
  1299. image {
  1300. width: 26upx;
  1301. height: 34upx;
  1302. }
  1303. }
  1304. .voiceContent {
  1305. position: fixed;
  1306. top: 0;
  1307. bottom: 0;
  1308. left: 0;
  1309. right: 0;
  1310. width: 100vw;
  1311. height: 100vh;
  1312. display: flex;
  1313. justify-content: center;
  1314. align-items: center;
  1315. background: rgba(30, 30, 30, 0.4592);
  1316. z-index: 10001;
  1317. }
  1318. .box {
  1319. background: rgba(21, 144, 233, 0.299);
  1320. width: 524upx;
  1321. height: 524upx;
  1322. border-radius: 50%;
  1323. display: flex;
  1324. align-items: center;
  1325. justify-content: center;
  1326. .center {
  1327. width: 412upx;
  1328. height: 412upx;
  1329. background: #1590E9;
  1330. border-radius: 50%;
  1331. display: flex;
  1332. align-items: center;
  1333. justify-content: center;
  1334. flex-direction: column;
  1335. .voice {
  1336. width: 110upx;
  1337. height: 133upx;
  1338. }
  1339. .text {
  1340. color: #FFFFFF;
  1341. font-size: 36upx;
  1342. margin-top: 24upx;
  1343. }
  1344. }
  1345. }
  1346. .audio-container {
  1347. width: 100%;
  1348. display: flex;
  1349. justify-content: space-between;
  1350. align-items: center;
  1351. .audio-head {
  1352. width: 60rpx;
  1353. height: 60rpx;
  1354. flex-shrink: 0;
  1355. }
  1356. .audio-head .image {
  1357. width: 100%;
  1358. height: 100%;
  1359. }
  1360. .audio-slider {
  1361. width: 96%;
  1362. position: relative;
  1363. padding: 2px 0rpx 0px 20px;
  1364. display: flex;
  1365. justify-content: space-between;
  1366. align-items: center;
  1367. }
  1368. .audio-slider .slider {
  1369. width: 100%;
  1370. padding: 0px 15rpx;
  1371. box-sizing: border-box;
  1372. }
  1373. .audio-time {
  1374. width: 110rpx;
  1375. text-align: right;
  1376. font-size: 24rpx;
  1377. line-height: 28rpx;
  1378. color: #70798D;
  1379. display: flex;
  1380. justify-content: space-between;
  1381. }
  1382. .audio-play {
  1383. width: 40rpx;
  1384. height: 40rpx;
  1385. flex-shrink: 0;
  1386. }
  1387. .audio-play .image {
  1388. width: 100%;
  1389. height: 100%;
  1390. }
  1391. }
  1392. </style>