popup.vue 24 KB

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