popup.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. <template>
  2. <view>
  3. <!-- 弹窗 -->
  4. <view class="bgbox" @click="getClose" v-if="type"></view>
  5. <!-- 弹窗 -->
  6. <!-- 推荐优秀 -->
  7. <view class="fixedbox" v-if="type=='tjyx'">
  8. <view class="ttit">推荐为优秀</view>
  9. <view class="boxs">
  10. <view class="flexcj mb14">
  11. <view class="ttxt"><text class="cof0">*</text>推荐意见</view>
  12. <view class="flexcc speech" @click="getSeep">
  13. <image :src="speechimgs"></image>
  14. <view>语音输入</view>
  15. </view>
  16. </view>
  17. <textarea class="textar mb25" @blur="getBlur" v-model="yxly" placeholder="请输入推荐意见,也可点击右上角进行 语音输入…" maxlength="1000" ></textarea>
  18. </view>
  19. <view class="fixedbtn flexcj">
  20. <view class="btns btn1" @click="getClose">取消</view>
  21. <view class="btns btn2" @click="getyjSubmit">提交</view>
  22. </view>
  23. </view>
  24. <!-- 质量评议 -->
  25. <view class="fixedbox" v-if="type=='zlpy'">
  26. <view class="ttit">办理质量评议</view>
  27. <view class="boxs">
  28. <view class="mb20">
  29. <view class="ttxt mb18"><text class="cof0">*</text> 推荐意见</view>
  30. <uni-section title="本地数据" type="line">
  31. <uni-data-select
  32. v-model="value"
  33. :localdata="range"
  34. @change="change"
  35. ></uni-data-select>
  36. </uni-section>
  37. </view>
  38. <view class="flexcj mb14">
  39. <view class="ttxt"><text class="cof0">*</text>推荐意见</view>
  40. <view class="flexcc speech" @click="getSeep">
  41. <image :src="speechimgs"></image>
  42. <view>语音输入</view>
  43. </view>
  44. </view>
  45. <textarea class="textar mb25" @blur="getBlur" v-model="yxly" placeholder="请对办理情况进行评价,也可点击右上 角进行语音输入…" maxlength="1000" ></textarea>
  46. </view>
  47. <view class="fixedbtn flexcj">
  48. <view class="btns btn1" @click="getClose">取消</view>
  49. <view class="btns btn2" @click="getyjSubmit">提交</view>
  50. </view>
  51. </view>
  52. <!-- 提案并案 -->
  53. <view class="fixedbox" v-if="type=='taba'">
  54. <view class="ttit">提案并案</view>
  55. <view class="boxs">
  56. <view class="mb16">
  57. <view class="ttxt mb18"><text class="cof0">*</text>是否并案</view>
  58. <uni-section title="本地数据" type="line">
  59. <uni-data-select
  60. v-model="value"
  61. :localdata="sfrange"
  62. @change="change"
  63. ></uni-data-select>
  64. </uni-section>
  65. </view>
  66. <view class="mb16">
  67. <view class="ttxt mb18"><text class="cof0">*</text>并案后标题</view>
  68. <input class="input" placeholder="请输入并案后的标题"/>
  69. </view>
  70. <view class="mb16">
  71. <view class="ttxt mb18"><text class="cof0">*</text>并案后理由</view>
  72. <textarea class="textar " style="height: 186rpx;" @blur="getBlur" v-model="yxly" placeholder="请输入并案理由" maxlength="1000" ></textarea>
  73. </view>
  74. <view class="mb16">
  75. <view class="flexcj mb10">
  76. <view class="ttxt"><text class="cof0">*</text>添加附件</view>
  77. <view class="fjadd"><lsj-upload
  78. ref="lsjUpload"
  79. childId="upload1"
  80. :width="width"
  81. :height="height"
  82. :option="option"
  83. :size="size"
  84. :formats="formats"
  85. :debug="debug"
  86. :instantly="instantly"
  87. @progress=""
  88. @uploadEnd="onuploadEnd" >
  89. <view class="btn" :style="{width: width,height: height}">上传附件</view>
  90. </lsj-upload>
  91. </view>
  92. </view>
  93. <view class="ptb2" v-if="filelist&&filelist.length">
  94. <view class="fjlists" v-for="(ite,idx) in filelist" :key='idx'>
  95. <view class="flext f15 c6" @click="getDown(ite.path)">
  96. <view class="imgl"><image :src="fjimg" ></image></view>
  97. <view class="tit">{{ite.fjName}}</view>
  98. </view>
  99. <!-- 删除 -->
  100. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  101. <image :src="delimg"></image>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="fixedbtn flexcj">
  108. <view class="btns btn1" @click="getClose">取消</view>
  109. <view class="btns btn2" @click="getyjSubmit">提交</view>
  110. </view>
  111. </view>
  112. <!-- 语音识别 -->
  113. <view class="bgbox bgvoice" v-if="voiceflag" @click="getClosevoice"></view>
  114. <view class="voice" v-if="voiceflag">
  115. <!-- <image :src="closeimg" class="choseimg" @click="getClosevoice"></image> -->
  116. <view v-if="isShow">
  117. <view v-if="sendLock" class="tip">
  118. <view class="txt">试试这样说</view>
  119. <view class="txt-bt">科技项目</view>
  120. </view>
  121. <view v-else>
  122. <!-- @click="resultClick" -->
  123. <view class="res-txt" >
  124. <!-- 实时翻译 -->
  125. <text :style="{
  126. color: (resultText == '正在识别中2<strong>.</strong>..' || resultText == '未检测到语音,请重试') ?
  127. '#919098' :
  128. '#2979ff'}">
  129. {{resultText}}
  130. </text>
  131. <!-- <image v-if="resultText != '正在识别中.1..' && resultText != '未检测到语音,请重试'"
  132. src="/static/img/xiaoshou.png" mode="widthFix"></image> -->
  133. </view>
  134. </view>
  135. </view>
  136. <view v-else class="tip">
  137. <view v-if="!sendLock" class="tipbox">{{voicetext}}</view>
  138. <view v-html="text" class="txt" style="color: #8e8d9a;"></view>
  139. <view v-if="!sendLock" class="prompt-loader">
  140. <view class="em" :style="randomRgb()" v-for="(item,index) in 30" :key="index"></view>
  141. </view>
  142. <view v-else class="prompt-loader"></view>
  143. </view>
  144. <view class="btn" @longpress="handleRecordStart" @touchmove="handleTouchMove" @touchend="handleRecordStop">
  145. <view class="btn-cont">
  146. 长按开始语音搜索
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </template>
  152. <script>
  153. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  154. const recorderManager = uni.getRecorderManager();
  155. //播放录音
  156. const innerAudioContext = uni.createInnerAudioContext();
  157. innerAudioContext.autoplay = true;
  158. import config from '@/config'
  159. const baseUrl = config.baseUrl
  160. import { getToken } from '@/utils/auth'
  161. export default{
  162. props:{
  163. type: {
  164. type: String,
  165. default () {
  166. return ''
  167. }
  168. },
  169. status:{
  170. type: String,
  171. default () {
  172. return 'add'
  173. }
  174. },
  175. iteminfo:{},
  176. xmjzinfo:{},
  177. },
  178. data(){
  179. return{
  180. //附件
  181. option: {
  182. // 上传服务器地址,需要替换为你的接口地址
  183. // url: baseUrl+'/common/upload', // 该地址非真实路径,需替换为你项目自己的接口地址
  184. // 上传附件的key
  185. name: 'file',
  186. // 根据你接口需求自定义请求头,默认不要写content-type,让浏览器自适配
  187. header: {
  188. // 示例参数可删除
  189. 'Authorization': 'Bearer ' + getToken(),
  190. },
  191. // 根据你接口需求自定义body参数
  192. formData: {}
  193. },
  194. // 选择文件后是否立即自动上传,true=选择后立即上传
  195. instantly: true,
  196. // 必传宽高且宽高应与slot宽高保持一致
  197. width: '',
  198. height: '48rpx',
  199. // 限制允许上传的格式,空串=不限制,默认为空
  200. formats: 'doc,docx,xls,ppt,txt,pdf,zip,rar,word',
  201. // 文件上传大小限制
  202. size: 100,
  203. // 文件数量限制 默认10
  204. count: 5,
  205. // 文件回显列表
  206. files: new Map(),
  207. // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
  208. wxFiles: [],
  209. // 是否打印日志
  210. debug: false,
  211. filelist:[{fjName:'关于加强危化品安全监管的建议文档.word',path:"123"}],
  212. fjimg:require("@/work/static/images/fjimg.png"),
  213. delimg:require("@/work/static/images/delimg.png"),
  214. speechimgs:require('@/work/static/images/voice.png'),
  215. range: [{ value: 0, text: "满意" },{ value: 1, text: "不满意" },],
  216. sfrange: [{ value: 0, text: "是" },{ value: 1, text: "否" },],
  217. value: 0,
  218. voiceflag:false,
  219. voiceToken: '',
  220. timer: null,
  221. text: '',
  222. resultText: '正在识别中...',
  223. startPoint: {},
  224. sendLock: true,
  225. isShow: true,
  226. voicetext:'',
  227. options: {}, // 语音转文字的设置
  228. partialResult:'',//临时语音
  229. }
  230. },
  231. watch:{
  232. // iteminfo(val){
  233. // var that=this;
  234. // that.psnr='';
  235. // // console.log(val,0)
  236. // if(val.zcpsnr){
  237. // that.psnr=val.zcpsnr;
  238. // }else if(val.psnr){
  239. // that.psnr=val.psnr;
  240. // }
  241. // },
  242. sendLock(newVal, oldVal) {
  243. var that=this;
  244. recorderManager.onStop(res => {
  245. if (newVal) return //上锁不发送
  246. //解锁发送网络请求
  247. setTimeout(function(res){
  248. if(!that.voicetext&&!that.partialResult){
  249. that.resultText='未检测到语音,请重试'
  250. }else{
  251. that.resultText=that.voicetext||that.partialResult;
  252. var cursor=that.cursor;
  253. if(cursor==0){
  254. if(that.seeptype=='sgll'){
  255. that.sgll=that.sgll+that.resultText;
  256. }else{
  257. that.psnr=that.psnr+that.resultText;
  258. }
  259. }else{
  260. if(that.seeptype=='sgll'){
  261. that.sgll=that.sgll.slice(0,cursor)+that.resultText+that.sgll.slice(cursor);
  262. }else{
  263. that.psnr=that.psnr.slice(0,cursor)+that.resultText+that.psnr.slice(cursor);
  264. }
  265. }
  266. that.voiceflag=false;
  267. }
  268. that.sendLock=true;
  269. },1000)
  270. // console.log(res.tempFilePath, '获取录音文件')
  271. });
  272. },
  273. },
  274. onShow() {
  275. },
  276. mounted() {
  277. var that=this;
  278. // #ifdef APP-PLUS
  279. // 监听语音识别事件
  280. plus.speech.addEventListener('recognizing', this.onRecognizing, false);
  281. // #endif
  282. recorderManager.onStop(function(res) {
  283. //录音后的回调函数
  284. if(!this.sendLock){
  285. console.log(that.voicetext,that.partialResult)
  286. }
  287. console.log('recorder stop' + JSON.stringify(res));
  288. });
  289. },
  290. methods:{
  291. checkPermi, checkRole,
  292. onuploadEnd(item) {
  293. var newobj={}
  294. var responseText=JSON.parse(item.responseText)
  295. newobj.fjName=responseText.originalFilename;
  296. newobj.path=responseText.fileName;
  297. this.filelist.push(newobj)
  298. this.datainfo.zsyzFjList=JSON.parse(JSON.stringify(this.filelist))
  299. },
  300. getDelFj(idx){
  301. var that=this;
  302. uni.showModal({
  303. title: '确认删除',
  304. content: "是否确认删除",
  305. cancelText: '取消',
  306. confirmText: '确认',
  307. success: function(res) {
  308. if (res.confirm) {
  309. that.filelist.splice(idx,1)
  310. that.datainfo.zsyzFjList=JSON.parse(JSON.stringify(that.filelist))
  311. } else if (res.cancel) {
  312. }
  313. }
  314. });
  315. },
  316. getDown(e){
  317. uni.showLoading({
  318. title: '加载中'
  319. });
  320. var url=baseUrl+e;
  321. uni.downloadFile({
  322. url: url,//文件的下载路径
  323. success(result) {
  324. uni.hideLoading()
  325. var filePath = result.tempFilePath;
  326. uni.openDocument({
  327. filePath: filePath,
  328. showMenu: true,
  329. success: function (res) {
  330. // console.log('打开文档成功');
  331. }
  332. });
  333. },
  334. fail(res) {uni.hideLoading()}
  335. })
  336. },
  337. getBlur(e){
  338. this.cursor=e.detail.cursor;
  339. },
  340. // 语音转文字
  341. getClosevoice(){
  342. this.voiceflag=false
  343. },
  344. onRecognizing(e){
  345. this.partialResult=e.partialResult;
  346. },
  347. // 录音转文字
  348. handleVoice() {
  349. // console.log('语音输入')
  350. let _this = this;
  351. // _this.psnr = '';
  352. this.options.engine = 'baidu'
  353. // this.options.timeout = 60 * 1000; //超时时间
  354. this.options.continue = true;//语音识别是否采用持续模式
  355. this.options.punctuation = true; // 是否需要标点符号
  356. this.options.userInterface = false; // 是否显示语音界面
  357. plus.speech.startRecognize(this.options, (s) => {
  358. _this.voicetext+=s;
  359. console.log(s,9)
  360. // plus.speech.stopRecognize(); // 关
  361. });
  362. },
  363. //长按录音方法
  364. handleRecordStart(e) {
  365. this.voicetext='';
  366. this.partialResult='';
  367. this.startPoint = e.touches[0]; //记录长按时开始点信息,后面用于计算上划取消时手指滑动的距离。
  368. recorderManager.start({duration: 60000}); //开始录音
  369. this.handleVoice()
  370. this.text = `<text style="color:#333">上划取消搜索</text>`;
  371. this.sendLock = false; //长按时不上锁。
  372. this.isShow = false;
  373. this.resultText = '正在识别中...';
  374. // 按钮
  375. // console.log(67)
  376. },
  377. //结束录音 (手指松开)时触发
  378. handleRecordStop(e) {
  379. var that=this;
  380. this.isShow = true;
  381. setTimeout(function(){
  382. plus.speech.stopRecognize();
  383. recorderManager.stop(); //结束录音
  384. },1300)
  385. },
  386. //上划取消搜索
  387. handleTouchMove(e) {
  388. let moveLenght = e.touches[e.touches.length - 1].clientY - this.startPoint.clientY;
  389. if (Math.abs(moveLenght) > 50) {
  390. this.text = `松开手指,<text style="color:#333">取消搜索</text>`;
  391. this.sendLock = true; //触发了上滑取消搜索,上锁
  392. this.isShow = false;
  393. } else {
  394. this.text = `<text style="color:#333">上划取消搜索</text>`;
  395. this.sendLock = false; //上划距离不足,可以搜索,不上锁
  396. this.isShow = false;
  397. }
  398. },
  399. //获取录音结果子传父
  400. resultClick() {
  401. if (this.resultText == '正在识别中...' || this.resultText == '未检测到语音,请重试') return;
  402. this.$emit('voiceResult', this.resultText)
  403. },
  404. //弹窗关闭之后的操作,点击遮罩层或关闭按钮
  405. // afterHide() {
  406. // this.sendLock = true;
  407. // this.$emit('closePopup');
  408. // clearInterval(this.timer);
  409. // this.resultText = '正在识别中...';
  410. // },
  411. randomRgb() {
  412. let R = Math.floor(Math.random() * 130 + 110);
  413. let G = Math.floor(Math.random() * 130 + 110);
  414. let B = Math.floor(Math.random() * 130 + 110);
  415. return {
  416. background: `rgb(${R},${G},${B}, 1)`
  417. };
  418. },
  419. // 语音转文字
  420. getSeep(e){
  421. this.seeptype=e||'';
  422. this.voicetext='';
  423. this.partialResult='';
  424. this.voiceflag=true;
  425. },
  426. ontStart() {
  427. // recorderManager.start();
  428. console.log('startRecognize');
  429. },
  430. onEnd() {
  431. // recorderManager.stop();
  432. console.log('endRecognize');
  433. },
  434. getClose(){
  435. this.$emit("getClose")
  436. },
  437. // 意见
  438. getyjSubmit(){
  439. var data={};
  440. var that=this;
  441. var str=""
  442. if(!this.shenflag){
  443. data.shjg='3';
  444. str='不通过'
  445. if(!this.psnr){
  446. this.$toast('请输入反馈意见')
  447. return
  448. }else{
  449. data.shyj=this.psnr
  450. }
  451. }else{
  452. str='通过'
  453. data.shjg='2',
  454. data.shyj=this.psnr
  455. }
  456. // 确认框
  457. uni.showModal({
  458. title: '确认审核',
  459. content: "是否确认"+str+'审核',
  460. cancelText: '取消',
  461. confirmText: '确认',
  462. success: function(res) {
  463. if (res.confirm) {
  464. that.$emit("getyjSubmit",data)
  465. } else if (res.cancel) {
  466. // console.log('用户点击取消');
  467. }
  468. }
  469. });
  470. },
  471. }
  472. }
  473. </script>
  474. <style lang="scss" scoped>
  475. // 弹窗
  476. // .choseimg{width: 34rpx;height: 34rpx;position: absolute;left: 36rpx;top: 54rpx;z-index: 22;}
  477. // .uni-stat__select{background-color: #EEEEEE;}
  478. .fixedbox /deep/ .uni-select{border: none;background-color: #EEEEEE;height: 88rpx;}
  479. .fixedbox{position: fixed;left: 48rpx;right: 48rpx;background: #fff;border-radius: 10rpx;min-height: 468rpx;top: 50%;transform: translateY(-50%);z-index: 10;padding: 32rpx 40rpx 50rpx;max-height: calc(100vh - 300rpx);overflow: auto;box-sizing: border-box;
  480. .ttit{position: relative;text-align: center;font-weight: bold;font-size: 36rpx;color: #222327;margin-bottom: 38rpx;}
  481. .boxs{
  482. .ttxt{font-weight: bold;font-size: 30rpx;color: #222327;
  483. text{margin-right: 6rpx;}
  484. }
  485. // 语音按钮
  486. .speech{
  487. width: 190rpx;height:56rpx;background: linear-gradient(180deg, #4480EB 0%, #1D64E2 100%);border-radius: 28rpx;
  488. image{width: 20rpx;height: 26rpx;margin-right: 12rpx;}
  489. view{font-size: 26rpx;font-weight: 500;color: #ffffff;}
  490. }
  491. .input{height: 88rpx;width: 100%;background: #EEEEEE;border-radius: 10rpx;font-size: 30rpx;font-weight: 500;color: #222327;padding: 0 24rpx;}
  492. .textar{width: 100%;border-radius: 10rpx;padding: 26rpx 30rpx;font-size: 30rpx;color: #222327;height: 400rpx;background: #EEEEEE;}
  493. }
  494. .fixedbtn{
  495. .btns{width: 254rpx;height: 80rpx;border-radius: 40rpx;font-weight: bold;
  496. font-size: 30rpx;display: flex;align-items: center;justify-content: center;box-sizing: border-box;
  497. &.btn1{color: #1D64E2;border: 2rpx solid #1D64E2;}
  498. &.btn2{color: #ffffff;background: #1D64E2;}
  499. }
  500. }
  501. }
  502. // 附件
  503. .fjadd{
  504. .btn{font-weight: bold;font-size: 30rpx;color: #1D64E2;margin: 0;display: flex;align-items: center;}
  505. }
  506. // 附件
  507. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  508. image{margin-right: 18rpx;flex: 0 0 auto;}
  509. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;justify-content: center;margin-right: 16rpx;
  510. image{width: 26rpx;height: 24rpx;}
  511. }
  512. .tit{font-size: 26rpx;color: #343434;font-weight: 500;margin-top: 4rpx;}
  513. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;
  514. image{width: 26rpx;height: 26rpx;}
  515. }
  516. }
  517. // 语音识别
  518. .bgvoice{z-index: 1900;}
  519. .voice {
  520. min-height: 500rpx;
  521. padding: 100rpx 60rpx 0 60rpx;
  522. position: relative;
  523. background-color: #fff;
  524. position: fixed;
  525. left:0;right:0;bottom:0;z-index: 2000;
  526. padding-bottom: 180rpx;
  527. .res-txt {
  528. text-align: center;
  529. margin-top: 40rpx;
  530. font-size: 36rpx;
  531. color: #919098;
  532. image {
  533. display: block;
  534. margin: auto;
  535. margin-top: 10rpx;
  536. width: 60rpx;
  537. animation: bounce-down 2.6s linear infinite;
  538. }
  539. }
  540. .tip {
  541. margin-top: 15rpx;
  542. text-align: center;
  543. .txt {
  544. font-size: 36rpx;
  545. color: #151823;
  546. }
  547. .txt-bt {
  548. margin-top: 20rpx;
  549. color: #919098;
  550. }
  551. }
  552. .btn {
  553. width: 50%;
  554. height: 80rpx;
  555. display: flex;
  556. align-items: center;
  557. justify-content: center;
  558. color: #fff;
  559. border-radius: 50rpx;
  560. background: #3484fd;
  561. position: absolute;
  562. bottom: 80rpx;
  563. left: 50%;
  564. transform: translateX(-50%);
  565. .btn-cont {
  566. display: flex;
  567. align-items: center;
  568. }
  569. }
  570. }
  571. @-webkit-keyframes bounce-down {
  572. 25% {
  573. -webkit-transform: translateY(-10px);
  574. }
  575. 50%,
  576. 100% {
  577. -webkit-transform: translateY(0);
  578. }
  579. 75% {
  580. -webkit-transform: translateY(13px);
  581. }
  582. }
  583. .content{background-color: #f5f5f5;position: fixed;left: 0;right: 0;bottom: 0;z-index: 10000;height: 500rpx;}
  584. /* 语音动画 */
  585. .prompt-loader {
  586. width: 100%;
  587. height: 35px;
  588. display: flex;
  589. align-items: center;
  590. justify-content: space-between;
  591. margin: 30rpx auto;
  592. }
  593. .prompt-loader .em {
  594. height: 15%;
  595. width: 2px;
  596. float: left;
  597. display: block;
  598. background: #333333;
  599. }
  600. .prompt-loader .em:last-child {
  601. margin-right: 0px;
  602. }
  603. .prompt-loader .em:nth-child(1) {
  604. animation: load 1.3s 0.4s infinite linear;
  605. }
  606. .prompt-loader .em:nth-child(2) {
  607. animation: load 1.3s 0.2s infinite linear;
  608. }
  609. .prompt-loader .em:nth-child(3) {
  610. animation: load 1.3s 0.6s infinite linear;
  611. }
  612. .prompt-loader .em:nth-child(4) {
  613. animation: load 1.3s 0.8s infinite linear;
  614. }
  615. .prompt-loader .em:nth-child(5) {
  616. animation: load 1.3s 0.6s infinite linear;
  617. }
  618. .prompt-loader .em:nth-child(6) {
  619. animation: load 1.3s 0.4s infinite linear;
  620. }
  621. .prompt-loader .em:nth-child(7) {
  622. animation: load 1.3s 0.2s infinite linear;
  623. }
  624. .prompt-loader .em:nth-child(8) {
  625. animation: load 1.3s 0.6s infinite linear;
  626. }
  627. .prompt-loader .em:nth-child(9) {
  628. animation: load 1.3s 0.2s infinite linear;
  629. }
  630. .prompt-loader .em:nth-child(10) {
  631. animation: load 1.3s 0.4s infinite linear;
  632. }
  633. .prompt-loader .em:nth-child(11) {
  634. animation: load 1.3s 0.6s infinite linear;
  635. }
  636. .prompt-loader .em:nth-child(12) {
  637. animation: load 1.3s 0.8s infinite linear;
  638. }
  639. .prompt-loader .em:nth-child(13) {
  640. animation: load 1.3s 1s infinite linear;
  641. }
  642. .prompt-loader .em:nth-child(14) {
  643. animation: load 1.3s 0.2s infinite linear;
  644. }
  645. .prompt-loader .em:nth-child(15) {
  646. animation: load 1.3s 0.6s infinite linear;
  647. }
  648. .prompt-loader .em:nth-child(16) {
  649. animation: load 1.3s 0.6s infinite linear;
  650. }
  651. .prompt-loader .em:nth-child(17) {
  652. animation: load 1.3s 0.8s infinite linear;
  653. }
  654. .prompt-loader .em:nth-child(18) {
  655. animation: load 1.3s 0.2s infinite linear;
  656. }
  657. .prompt-loader .em:nth-child(19) {
  658. animation: load 1.3s 0.4s infinite linear;
  659. }
  660. .prompt-loader .em:nth-child(20) {
  661. animation: load 1.3s 0.6s infinite linear;
  662. }
  663. .prompt-loader .em:nth-child(21) {
  664. animation: load 1.3s 0.5s infinite linear;
  665. }
  666. .prompt-loader .em:nth-child(22) {
  667. animation: load 1.3s 0.2s infinite linear;
  668. }
  669. .prompt-loader .em:nth-child(23) {
  670. animation: load 1.3s 0.4s infinite linear;
  671. }
  672. .prompt-loader .em:nth-child(24) {
  673. animation: load 1.3s 0.6s infinite linear;
  674. }
  675. .prompt-loader .em:nth-child(25) {
  676. animation: load 1.3s 0.8s infinite linear;
  677. }
  678. .prompt-loader .em:nth-child(26) {
  679. animation: load 1.3s 0.2s infinite linear;
  680. }
  681. .prompt-loader .em:nth-child(27) {
  682. animation: load 1.3s 0.4s infinite linear;
  683. }
  684. .prompt-loader .em:nth-child(28) {
  685. animation: load 1.3s 0.1s infinite linear;
  686. }
  687. .prompt-loader .em:nth-child(29) {
  688. animation: load 1.3s 0.3s infinite linear;
  689. }
  690. .prompt-loader .em:nth-child(30) {
  691. animation: load 1.3s 0.6s infinite linear;
  692. }
  693. @keyframes load {
  694. 0% {
  695. height: 15%;
  696. }
  697. 50% {
  698. height: 100%;
  699. }
  700. 100% {
  701. height: 15%;
  702. }
  703. }
  704. </style>