inspectAdd.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  1. <!-- 开始检查 -->
  2. <template>
  3. <view class="inspectAdd">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="tip">{{newData.checkName}}</view>
  6. <view class="items">
  7. <view class="items-t">
  8. <view class="items-t-r">{{newData.hazardCheckCode}} {{newData.hazardCheckName}}</view>
  9. </view>
  10. <view class="items-b">< {{newData.hazardCheckCode2}} {{newData.hazardCheckName2}} <</view>
  11. </view>
  12. <view class="items-number">此检查项在当前实验室累计出现<text>{{hazardCheckNum}}</text>次隐患</view>
  13. <view class="list">
  14. <view class="list-li">
  15. <view>检查要点</view>
  16. <view>
  17. <img src="@/pages_safetyCheck/images/icon_06.png">
  18. </view>
  19. </view>
  20. <view class="hidden-content">{{newData.hazardCheckPoint}}
  21. </view>
  22. <view class="radio_group">
  23. <view class="radio" v-for="(item,index) in radioList" :key="index" @click="radioClick(item)">
  24. <img v-if="!item.checked" src="@/pages_safetyCheck/images/icon_aqjc_5.png">
  25. <img v-if="item.checked" src="@/pages_safetyCheck/images/icon_aqjc_6.png">
  26. <text>{{item.name}}</text>
  27. </view>
  28. </view>
  29. <view class="list-li" v-if="!form.checkFlag">
  30. <view>检查隐患</view>
  31. <view>
  32. <img src="@/pages_safetyCheck/images/icon_06.png">
  33. </view>
  34. </view>
  35. <textarea v-if="!form.checkFlag" class="describe" type="text" v-model="form.hazardDescribe" maxlength="200"
  36. placeholder="请填写隐患描述" placeholder-style="font-size:24rpx;color:#999;"></textarea>
  37. <view v-if="!form.checkFlag" class="check-for-img-max-box">
  38. <view class="left-title-p"></view>
  39. <view class="right-img-box">
  40. <view class="img-box" v-for="(imgUrl,imgIndex) in form.photoList" :key="imgIndex">
  41. <img class="img-data" :src="baseUrl+imgUrl.fileUrl">
  42. <img class="position-img" src="@/pages_safetyCheck/images/icon_ssp_closure.png"
  43. @click="delImg(imgIndex)">
  44. </view>
  45. <img class="add-button" src="@/pages_safetyCheck/images/img_ssp_pz@1x.png"
  46. @click="selectImage()" v-if="form.photoList.length<5">
  47. </view>
  48. </view>
  49. </view>
  50. <view class="voice">
  51. <view class="voice_t">
  52. <view class="voice_t_t" v-if="!voiceList[0]">语音备注:(选填)</view>
  53. <view class="voice_t_b" v-if="voiceList[0]">语音备注:({{voiceList.length}})</view>
  54. </view>
  55. <view class="voice_b" v-if="voiceList[0]" v-for="(voiceItem,voiceIndex) in voiceList" :key="voiceIndex">
  56. <view class="voice_b_l" @tap="voicePlay(voiceItem.fileUrl)">
  57. <img class="add-button" src="@/pages_safetyCheck/images//icon_yybz_yy.png" />
  58. {{voiceItem.fileLength}}″
  59. </view>
  60. <img class="voice_b_r" src="@/pages_safetyCheck/images/icon_yybz_sc.png"
  61. @tap="voiceDele('',voiceIndex)" />
  62. </view>
  63. <view class="voice-btn">
  64. <img class="voice_t_r" src="@/pages_safetyCheck/images/icon_sskz_azsh.png"
  65. @longpress.stop="recordButton(item,$event)" @touchmove.stop="cancelButton"
  66. @touchend.stop="sendButton(item,$event)" />
  67. <text>按住说话</text>
  68. </view>
  69. </view>
  70. </scroll-view>
  71. <view class="sub-btn">
  72. <view @click="submitForm(1)">保存草稿</view>
  73. <view @click="submitForm(2)">提交</view>
  74. </view>
  75. </view>
  76. </template>
  77. <script>
  78. import {
  79. config
  80. } from '@/api/request/config.js'
  81. import {
  82. securityAppCheckPlanCheckInfo,
  83. securityAppCheckSetOptionCheckCommit,
  84. securityAppCheckPhotoGetCheckNumBySub,
  85. } from '@/pages_safetyCheck/api/index.js'
  86. export default {
  87. name: "inspectAdd",
  88. components: {
  89. },
  90. data() {
  91. return {
  92. baseUrl: config.base_url,
  93. form: {
  94. checkFlag: false,
  95. photoList: [],
  96. },
  97. newData: {},
  98. radioList: [{
  99. id: 1,
  100. name: '符合',
  101. checked: false,
  102. },
  103. {
  104. id: 0,
  105. name: '不符合',
  106. checked: true,
  107. },
  108. ],
  109. voiceList: [],
  110. setOptionId: '', //检查项id
  111. manageId: '', //检查管理id
  112. subId: '',
  113. hazardCheckPro: '',
  114. hazardCheckNum:0,
  115. sendLock: true, //发送锁,当为true时上锁,false时解锁发送
  116. recorderManager: wx.getRecorderManager(),
  117. }
  118. },
  119. onLoad(option) {
  120. let optionData = JSON.parse(decodeURIComponent(option.infoData));
  121. this.$set(this, 'setOptionId', optionData.setOptionId);
  122. this.$set(this, 'manageId', optionData.manageId);
  123. this.$set(this, 'subId', optionData.subId);
  124. this.$set(this, 'hazardCheckPro', optionData.hazardCheckPro);
  125. },
  126. onShow() {
  127. },
  128. mounted() {
  129. this.securityAppCheckPlanCheckInfo();
  130. this.securityAppCheckPhotoGetCheckNumBySub();
  131. },
  132. methods: {
  133. //获取详情
  134. async securityAppCheckPlanCheckInfo() {
  135. let obj = {
  136. setOptionId: this.setOptionId,
  137. manageId: this.manageId,
  138. }
  139. const {
  140. data
  141. } = await securityAppCheckPlanCheckInfo(obj);
  142. if (data.code == 200) {
  143. this.$set(this, 'newData', data.data);
  144. }
  145. },
  146. //获取检查项在当前实验室出现的次数
  147. async securityAppCheckPhotoGetCheckNumBySub() {
  148. let obj = {
  149. subId: this.subId,
  150. hazardCheckPro: this.hazardCheckPro,
  151. }
  152. const {
  153. data
  154. } = await securityAppCheckPhotoGetCheckNumBySub(obj);
  155. if (data.code == 200) {
  156. this.$set(this, 'hazardCheckNum', data.data);
  157. }
  158. },
  159. //提交
  160. async submitForm(status) {
  161. if(!this.form.checkFlag){
  162. if(!this.form.hazardDescribe){
  163. uni.showToast({
  164. title: '请填写隐患描述!',
  165. icon: "none",
  166. mask: true,
  167. duration: 2000
  168. });
  169. return
  170. }
  171. if(!this.form.photoList[0]){
  172. uni.showToast({
  173. title: '请选择现场照片!',
  174. icon: "none",
  175. mask: true,
  176. duration: 2000
  177. });
  178. return
  179. }
  180. }
  181. let obj = {
  182. checkFlag: this.form.checkFlag,
  183. checkStatus: status == 1 ? 2 : 1,
  184. hazardDescribe: this.form.hazardDescribe,
  185. setOptionId: this.setOptionId,
  186. photoList: this.form.photoList,
  187. voiceList: this.voiceList,
  188. }
  189. const {
  190. data
  191. } = await securityAppCheckSetOptionCheckCommit(obj);
  192. if (data.code == 200) {
  193. if(status==1){
  194. uni.showToast({
  195. title: '保存成功!',
  196. icon: "none",
  197. mask: true,
  198. duration: 2000
  199. });
  200. }else if(status==2){
  201. uni.showToast({
  202. title: '提交成功!',
  203. icon: "none",
  204. mask: true,
  205. duration: 2000
  206. });
  207. }
  208. }
  209. },
  210. //滚动事件
  211. scrollGet() {},
  212. //单选按钮
  213. radioClick(d) {
  214. let self = this;
  215. d.checked = !d.checked
  216. if (d.checked) {
  217. //如果有选中的,循环把其他选中的取消
  218. this.radioList.forEach(function(item) {
  219. if (item.id == d.id) {
  220. self.$set(self.form, 'checkFlag', item.id);
  221. } else {
  222. item.checked = false;
  223. }
  224. })
  225. } else {
  226. }
  227. },
  228. /******图片上传******/
  229. selectImage() {
  230. let self = this;
  231. if (this.form.photoList.length > 4) {
  232. uni.showToast({
  233. title: '最多上传5张图片',
  234. icon: "none",
  235. mask: true,
  236. duration: 2000
  237. });
  238. return
  239. }
  240. wx.chooseImage({
  241. count: 1,
  242. sizeType: ["original", "compressed"],
  243. sourceType: ["album", "camera"],
  244. success: function(res) {
  245. let tempFilePaths = res.tempFilePaths[0];
  246. self.uploadImg(tempFilePaths);
  247. }
  248. });
  249. },
  250. async uploadImg(tempFilePaths) {
  251. var self = this;
  252. uni.showLoading({
  253. title: '上传中',
  254. mask: true
  255. });
  256. uni.uploadFile({
  257. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  258. header: {
  259. 'Authorization': uni.getStorageSync('token')
  260. },
  261. filePath: tempFilePaths,
  262. name: 'file',
  263. formData: {
  264. 'user': 'test'
  265. },
  266. success: (uploadFileRes) => {
  267. let res = JSON.parse(uploadFileRes.data);
  268. if (res.code == 200) {
  269. this.form.photoList.push({
  270. 'fileUrl': res.data.url,
  271. 'fileName': res.data.name
  272. });
  273. console.log(res.data.url)
  274. } else {
  275. uni.showToast({
  276. title: res.msg,
  277. icon: "none",
  278. mask: true,
  279. duration: 2000
  280. });
  281. }
  282. },
  283. fail: err => {},
  284. complete: () => {
  285. uni.hideLoading()
  286. }
  287. });
  288. },
  289. //删除图片
  290. delImg(minIndex) {
  291. this.form.photoList.splice(minIndex, 1);
  292. this.$forceUpdate();
  293. },
  294. /******语音备注 *******/
  295. //语音备忘播放
  296. async voicePlay(item) {
  297. myaudio.src = config.base_url + item;
  298. myaudio.play();
  299. },
  300. //语音备忘删除
  301. async voiceDele(item, voiceIndex) {
  302. let self = this;
  303. uni.showModal({
  304. title: '',
  305. cancelColor: '#999999',
  306. confirmColor: '#FF6E6E',
  307. content: '确定删除此语音吗?',
  308. success(res) {
  309. if (res.confirm) {
  310. console.log('用户点击确定')
  311. this.voiceList.splice(voiceIndex, 1);
  312. self.$forceUpdate();
  313. } else if (res.cancel) {
  314. console.log('用户点击取消')
  315. }
  316. }
  317. })
  318. },
  319. //录制
  320. recordButton(item, e) {
  321. console.log("按下")
  322. let self = this;
  323. if (this.voiceList.length >= 5) {
  324. uni.showToast({
  325. title: '语音备忘最多只能上传5条',
  326. icon: "none",
  327. mask: true,
  328. duration: 2000
  329. });
  330. return
  331. }
  332. this.liveType = true;
  333. console.log('录制', e)
  334. this.startPoint = e.touches[0]; //记录长按时开始点信息,后面用于计算上划取消时手指滑动的距离。
  335. const options = {
  336. duration: 60000,
  337. sampleRate: 16000,
  338. numberOfChannels: 1,
  339. encodeBitRate: 48000,
  340. format: 'mp3',
  341. frameSize: 50
  342. }
  343. this.recorderManager.start(options); //开始录音
  344. this.recorderManager.onStart(() => {
  345. console.log('recorder start')
  346. })
  347. this.recorderManager.onError((res) => {
  348. console.log(res);
  349. })
  350. wx.showToast({
  351. title: "正在录音,上划取消发送",
  352. icon: "none",
  353. duration: 60000 //先定义个60秒,后面可以手动调用wx.hideToast()隐藏
  354. });
  355. this.sendLock = false; //长按时是不上锁的。
  356. },
  357. //取消
  358. cancelButton(e) {
  359. console.log("移动")
  360. let self = this;
  361. this.liveType = false;
  362. console.log('取消', e)
  363. let moveLenght = e.touches[e.touches.length - 1].clientY - this.startPoint.clientY; //移动距离
  364. if (Math.abs(moveLenght) > 50) {
  365. wx.showToast({
  366. title: "松开手指,取消发送",
  367. icon: "none",
  368. duration: 60000
  369. });
  370. this.sendLock = true; //触发了上滑取消发送,上锁
  371. } else {
  372. wx.showToast({
  373. title: "正在录音,上划取消发送",
  374. icon: "none",
  375. duration: 60000
  376. });
  377. this.sendLock = false; //上划距离不足,依然可以发送,不上锁
  378. }
  379. },
  380. //发送
  381. sendButton(item, e) {
  382. console.log("松开")
  383. let self = this;
  384. this.liveType = false;
  385. console.log('发送', e)
  386. wx.hideToast(); //结束录音、隐藏Toast提示框
  387. this.recorderManager.stop(); //结束录音
  388. this.recorderManager.onStop((res) => {
  389. if (!this.sendLock) {
  390. this.uploadVoice(item, res.duration, res.tempFilePath);
  391. }
  392. console.log('停止录音', res.tempFilePath)
  393. console.log("sendLock", this.sendLock);
  394. })
  395. },
  396. //上传MP3
  397. async uploadVoice(item, times, tempFilePaths) {
  398. console.log(item)
  399. console.log(times)
  400. console.log(tempFilePaths)
  401. var self = this;
  402. uni.uploadFile({
  403. url: config.base_url + '/system/file/upload', //仅为示例,非真实的接口地址
  404. header: {
  405. 'Authorization': uni.getStorageSync('token')
  406. },
  407. filePath: tempFilePaths,
  408. name: 'file',
  409. formData: {
  410. 'user': 'test'
  411. },
  412. success: (uploadFileRes) => {
  413. let res = JSON.parse(uploadFileRes.data);
  414. if (res.code == 200) {
  415. console.log("上传成功", res)
  416. console.log(item)
  417. let seconds = Math.round((parseInt(times) % (1000 * 60)) / 1000);
  418. this.voiceList.push({
  419. 'fileLength': seconds,
  420. 'fileUrl': res.data.url,
  421. 'fileName': res.data.name
  422. })
  423. console.log(JSON.stringify(self.voice))
  424. //self.textParseUrlIps(res.data.url);
  425. // self.newData.imgList.push(res.data.url);
  426. } else {
  427. uni.showToast({
  428. title: res.msg,
  429. icon: "none",
  430. mask: true,
  431. duration: 2000
  432. });
  433. }
  434. },
  435. fail: err => {
  436. uni.hideLoading()
  437. },
  438. complete: () => {}
  439. });
  440. },
  441. }
  442. }
  443. </script>
  444. <style lang="stylus" scoped>
  445. .inspectAdd {
  446. height: 100%;
  447. display flex;
  448. box-sizing: border-box;
  449. padding-bottom: 160rpx;
  450. box-sizing: border-box;
  451. #bgColor-A {
  452. color: #FFD400;
  453. }
  454. #bgColor-B {
  455. color: #FF8C00;
  456. }
  457. #bgColor-C {
  458. color: #E11608;
  459. }
  460. .tip {
  461. width: 750rpx;
  462. height: 80rpx;
  463. background: rgba(1, 131, 250, 0.2);
  464. font-weight: normal;
  465. font-size: 28rpx;
  466. color: #0183FA;
  467. line-height: 80rpx;
  468. text-align: center;
  469. }
  470. .items {
  471. width: 690rpx;
  472. min-height: 165rpx;
  473. background: #FFFFFF;
  474. border-radius: 20rpx 20rpx 20rpx 20rpx;
  475. margin: 20rpx 0 0 30rpx;
  476. .items-li {
  477. display: flex;
  478. justify-content: space-between;
  479. align-items: center;
  480. padding: 0 30rpx;
  481. box-sizing: border-box;
  482. border-bottom: 1rpx solid #E0E0E0;
  483. >view:nth-of-type(1) {
  484. font-size: 30rpx;
  485. color: #333333;
  486. line-height: 80rpx;
  487. text-align: left;
  488. }
  489. >view:nth-of-type(2) {
  490. font-size: 28rpx;
  491. color: #666666;
  492. line-height: 80rpx;
  493. text-align: left;
  494. display: flex;
  495. justify-content: space-between;
  496. align-items: center;
  497. }
  498. }
  499. .items-t {
  500. border-bottom: 1rpx solid #E0E0E0;
  501. height: 80rpx;
  502. display: flex;
  503. justify-content: flex-start;
  504. align-items: center;
  505. padding: 0 30rpx;
  506. box-sizing: border-box;
  507. .items-t-l {
  508. width: 175rpx;
  509. height: 50rpx;
  510. background: #E11608;
  511. border-radius: 50rpx 50rpx 50rpx 50rpx;
  512. font-size: 30rpx;
  513. color: #FFFFFF;
  514. line-height: 50rpx;
  515. text-align: center;
  516. margin-right: 14rpx;
  517. }
  518. .items-t-r {
  519. font-size: 30rpx;
  520. color: #333333;
  521. line-height: 42rpx;
  522. text-align: left;
  523. }
  524. }
  525. .items-b {
  526. padding: 0 30rpx;
  527. box-sizing: border-box;
  528. height: 80rpx;
  529. font-size: 28rpx;
  530. color: #666666;
  531. line-height: 80rpx;
  532. text-align: left;
  533. }
  534. }
  535. .items-number {
  536. font-size: 24rpx;
  537. color: #3D3D3D;
  538. line-height: 34rpx;
  539. text-align: right;
  540. margin: 20rpx 60rpx 0 0;
  541. >text {
  542. font-size: 24rpx;
  543. color: #FF0000;
  544. line-height: 34rpx;
  545. text-align: right;
  546. }
  547. }
  548. .list {
  549. width: 690rpx;
  550. margin: 20rpx 30rpx 0;
  551. background: #FFFFFF;
  552. border-radius: 20rpx 20rpx 20rpx 20rpx;
  553. .list-li {
  554. display: flex;
  555. justify-content: space-between;
  556. align-items: center;
  557. padding: 0 30rpx;
  558. box-sizing: border-box;
  559. border-bottom: 1rpx solid #E0E0E0;
  560. >view:nth-of-type(1) {
  561. font-size: 30rpx;
  562. color: #333333;
  563. line-height: 80rpx;
  564. text-align: left;
  565. }
  566. >view:nth-of-type(2) {
  567. font-size: 28rpx;
  568. color: #666666;
  569. line-height: 80rpx;
  570. text-align: left;
  571. display: flex;
  572. justify-content: space-between;
  573. align-items: center;
  574. >img {
  575. width: 24rpx;
  576. height: 12rpx;
  577. margin-left: 10rpx;
  578. }
  579. }
  580. }
  581. .hidden-content {
  582. width: 630rpx;
  583. min-height: 200rpx;
  584. background: #F5F5F5;
  585. border-radius: 20rpx 20rpx 20rpx 20rpx;
  586. margin: 20rpx 30rpx 0;
  587. padding: 20rpx;
  588. box-sizing: border-box;
  589. font-size: 28rpx;
  590. color: #666666;
  591. line-height: 39rpx;
  592. text-align: left;
  593. }
  594. .photo {
  595. display: flex;
  596. justify-content: flex-start;
  597. flex-wrap: wrap;
  598. margin-top: 20rpx;
  599. padding: 0 30rpx;
  600. box-sizing: border-box;
  601. >img {
  602. width: 150rpx;
  603. height: 150rpx;
  604. border-radius: 10rpx 10rpx 10rpx 10rpx;
  605. margin: 0 10rpx 10rpx 0;
  606. }
  607. }
  608. .describe {
  609. width: 636rpx;
  610. height: 120rpx;
  611. border-radius: 10rpx 10rpx 10rpx 10rpx;
  612. border: 1rpx solid #E0E0E0;
  613. margin: 20rpx 0 0 28rpx;
  614. padding: 12rpx 16rpx;
  615. box-sizing: border-box;
  616. }
  617. .check-for-img-max-box {
  618. margin: 20px 28rpx;
  619. .left-title-p {
  620. width: 100%;
  621. text-align: left;
  622. font-size: 30rpx;
  623. font-family: PingFang SC-Medium, PingFang SC;
  624. font-weight: 400;
  625. color: #333333;
  626. line-height: 80rpx;
  627. }
  628. .right-img-box {
  629. .img-box {
  630. display inline-block;
  631. height: 150rpx;
  632. width: 150rpx;
  633. position relative;
  634. margin: 0 14rpx 20rpx 0;
  635. border-radius 10rpx;
  636. overflow hidden;
  637. .img-data {
  638. height: 150rpx;
  639. width: 150rpx;
  640. }
  641. .position-img {
  642. position absolute;
  643. right: 0;
  644. top: 0;
  645. width: 36rpx;
  646. height: 36rpx;
  647. }
  648. }
  649. .img-box:nth-of-type(3n+3) {
  650. margin-right: 0rpx;
  651. }
  652. .add-button {
  653. margin: 0 0rpx 20rpx 0;
  654. border-radius 10rpx;
  655. overflow hidden;
  656. display inline-block;
  657. height: 150rpx;
  658. width: 150rpx;
  659. }
  660. }
  661. }
  662. .list-li:last-of-type {
  663. border: none;
  664. }
  665. .radio_group {
  666. display: flex;
  667. justify-content: flex-end;
  668. padding: 32rpx 30rpx 22rpx 30rpx;
  669. box-sizing: border-box;
  670. border-bottom: 1rpx solid #E0E0E0;
  671. .radio {
  672. display: flex;
  673. justify-content: flex-start;
  674. align-items: center;
  675. >img {
  676. width: 30rpx;
  677. height: 30rpx;
  678. margin-right: 34rpx;
  679. }
  680. >text {
  681. font-size: 30rpx;
  682. color: #333333;
  683. line-height: 42rpx;
  684. text-align: left;
  685. }
  686. }
  687. .radio:nth-of-type(1) {
  688. margin-right: 54rpx;
  689. }
  690. }
  691. }
  692. /* 语音备注 */
  693. .voice {
  694. width: 690rpx;
  695. min-height: 100rpx;
  696. background: #FFFFFF;
  697. border-radius: 20rpx 20rpx 20rpx 20rpx;
  698. margin: 0rpx 30rpx;
  699. padding: 0 30rpx;
  700. box-sizing: border-box;
  701. overflow: hidden;
  702. .voice_t {
  703. height: 100rpx;
  704. display: flex;
  705. justify-content: space-between;
  706. align-items: center;
  707. .voice_t_t {
  708. width: 100%;
  709. font-size: 30rpx;
  710. font-family: PingFang SC-Medium, PingFang SC;
  711. font-weight: 400;
  712. color: #333333;
  713. line-height: 100rpx;
  714. text-align: center;
  715. }
  716. .voice_t_b {
  717. width: 100%;
  718. font-size: 30rpx;
  719. font-family: PingFang SC-Medium, PingFang SC;
  720. font-weight: 400;
  721. color: #333333;
  722. line-height: 100rpx;
  723. text-align: left;
  724. }
  725. }
  726. .voice_b {
  727. display flex;
  728. justify-content flex-start;
  729. align-items center;
  730. margin-bottom: 20rpx;
  731. .voice_b_l {
  732. width: 400rpx;
  733. height: 40rpx;
  734. background: #0183FA;
  735. border-radius: 10rpx;
  736. display flex;
  737. justify-content flex-start;
  738. align-items center;
  739. font-size: 24rpx;
  740. color: #FFFFFF;
  741. line-height: 30rpx;
  742. text-align: left;
  743. >img {
  744. width: 20rpx;
  745. height: 20rpx;
  746. margin-left: 16rpx;
  747. margin-right: 20rpx;
  748. }
  749. }
  750. .voice_b_r {
  751. width: 28rpx;
  752. height: 28rpx;
  753. margin-left: 20rpx;
  754. }
  755. }
  756. .voice-btn {
  757. width: 150rpx;
  758. height: 150rpx;
  759. position: fixed;
  760. right: 24rpx;
  761. bottom: 176rpx;
  762. >img {
  763. width: 150rpx;
  764. height: 150rpx;
  765. position: absolute;
  766. }
  767. >text {
  768. font-size: 24rpx;
  769. color: #999999;
  770. line-height: 30rpx;
  771. text-align: center;
  772. position: absolute;
  773. top: 84rpx;
  774. left: 26rpx;
  775. }
  776. }
  777. }
  778. }
  779. .sub-btn {
  780. display: flex;
  781. justify-content: center;
  782. position: fixed;
  783. left: 30rpx;
  784. bottom: 30rpx;
  785. >view:nth-of-type(1) {
  786. width: 345rpx;
  787. height: 100rpx;
  788. background: #FF8C00;
  789. border-radius: 50rpx 0rpx 0rpx 50rpx;
  790. font-size: 30rpx;
  791. color: #FFFFFF;
  792. line-height: 100rpx;
  793. text-align: center;
  794. }
  795. >view:nth-of-type(2) {
  796. width: 345rpx;
  797. height: 100rpx;
  798. background: #0183FA;
  799. border-radius: 0rpx 50rpx 50rpx 0rpx;
  800. font-size: 30rpx;
  801. color: #FFFFFF;
  802. line-height: 100rpx;
  803. text-align: center;
  804. }
  805. }
  806. </style>