popup.vue 24 KB

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