repairs.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. <template>
  2. <view class="container">
  3. <!-- 公告区域 -->
  4. <view class="notice">
  5. <uni-notice-bar show-icon single speed="10" :scrollable="true" background-color="#fff" color="#000" :text="repairsNotice" />
  6. </view>
  7. <view class="gap"></view>
  8. <!-- 报修区域 -->
  9. <view class="box_item">
  10. <view class="item_title">
  11. 报修区域
  12. <text>*</text>
  13. </view>
  14. <view class="item_info" :class="{ item_color: repairsArea }" @click="handleSelectArea">
  15. {{ repairsArea ? repairsArea : '请选择报修区域' }}
  16. </view>
  17. <view class="item_icon" @click="handleSelectArea">
  18. <img src="../../static/images/repairsImg/right.png" />
  19. </view>
  20. </view>
  21. <!-- 详细地址区域 -->
  22. <view class="box_item">
  23. <view class="item_title">
  24. 详细地址
  25. <text>*</text>
  26. </view>
  27. <view class="item_info">
  28. <view class="item_input">
  29. <input placeholder-style="color:#CCCCCC" type="text" placeholder="请输入详细地址" v-model="repairsAddress" />
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 报修物品区域 -->
  34. <view class="box_item">
  35. <view class="item_title">
  36. 报修物品
  37. <text>*</text>
  38. </view>
  39. <view class="item_info" :class="{ item_color: repairsGoods }" @click="handleSelectGoods">
  40. {{ repairsGoods ? repairsGoods : '请选择报修物品' }}
  41. </view>
  42. <view class="item_icon" @click="handleSelectGoods">
  43. <img src="../../static/images/repairsImg/right.png" />
  44. </view>
  45. </view>
  46. <!-- 故障描述 -->
  47. <view class="box_item2">
  48. <view class="item2_title">故障描述</view>
  49. <view class="item2_info">
  50. <view class="item2_textarea">
  51. <textarea placeholder-style="color:#CCCCCC" placeholder="请输入故障描述" v-model="repairsDescription"></textarea>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 报修录音区域 -->
  56. <view class="box_item">
  57. <view class="item_title">报修录音</view>
  58. <view class="item_info" v-if="!recordingPath">
  59. <view class="info_icon" @click="handleRecording">
  60. <img src="../../static/images/repairsImg/voice.png" />
  61. </view>
  62. <view class="info_tips" @click="handleRecording">点击录音</view>
  63. </view>
  64. <view class="item_recording" v-else @click="handlePlayRecording">
  65. <img :src="recordingImg" />
  66. {{ recordingTime }}″
  67. </view>
  68. <view class="recording_icon" v-if="recordingPath" @click="handleDeleteRecording">×</view>
  69. </view>
  70. <!-- 录音弹窗区域 -->
  71. <uni-popup :safe-area="true" background-color="#fff" ref="popup_recording">
  72. <view class="popup_recording">
  73. <recording @getTempFilePath="getTempFilePath" />
  74. </view>
  75. </uni-popup>
  76. <!-- 上传照片区域 -->
  77. <view class="box_item3">
  78. <view class="item3_title">
  79. 上传照片
  80. <span>*</span>
  81. <text>(可上传三张,请上传局部图和区域图)</text>
  82. </view>
  83. <uni-file-picker
  84. ref="filePicker"
  85. limit="3"
  86. v-model="imgList"
  87. fileMediatype="image"
  88. :image-styles="imageStyles"
  89. mode="grid"
  90. @select="select"
  91. @delete="handleDelete"
  92. ></uni-file-picker>
  93. </view>
  94. <!-- 报修姓名区域 -->
  95. <view class="box_item">
  96. <view class="item_title">
  97. 报修姓名
  98. <text>*</text>
  99. </view>
  100. <view class="item_info">
  101. <view class="item_input">
  102. <input placeholder-style="color:#CCCCCC" type="text" placeholder="请输入报修姓名" v-model="repairsName" />
  103. </view>
  104. </view>
  105. </view>
  106. <!-- 联系电话区域 -->
  107. <view class="box_item">
  108. <view class="item_title">
  109. 联系电话
  110. <text>*</text>
  111. </view>
  112. <view class="item_info">
  113. <view class="item_input">
  114. <input placeholder-style="color:#CCCCCC" type="number" placeholder="请输入联系电话" maxlength="11" v-model="repairsPhone" />
  115. </view>
  116. </view>
  117. </view>
  118. <!-- 底部区域 -->
  119. <view class="foot">
  120. <view class="foot_btn" @click="handleAffirmSub">确认提交</view>
  121. <view class="foot_phone" @click="handleCallPhone(urgencyPhone)">紧急电话 {{ urgencyPhone }}</view>
  122. <view class="foot_phone" @click="handleCallPhone(searchPhone)">服务监督电话 {{ searchPhone }}</view>
  123. </view>
  124. <!-- 消息通知按钮区域 -->
  125. <view class="fixed" @tap="handleClickFixed">
  126. <view class="fixed_box">
  127. <img src="../../static/images/repairsImg/message.png" />
  128. 消息通知
  129. </view>
  130. </view>
  131. <!-- 用于图片压缩的canvas画布 -->
  132. <canvas
  133. :style="{
  134. width: cw + 'px',
  135. height: cw + 'px',
  136. position: 'absolute',
  137. zIndex: -1,
  138. left: '-10000rpx',
  139. top: '-10000rpx'
  140. }"
  141. canvas-id="zipCanvas"
  142. ></canvas>
  143. <!--画布结束-->
  144. </view>
  145. </template>
  146. <script>
  147. import recording from '../components/recording.vue'
  148. // 图片压缩方法
  149. import getLessLimitSizeImage from '../util/imageCompress.js'
  150. const innerAudioContext = uni.createInnerAudioContext()
  151. export default {
  152. components: {
  153. recording
  154. },
  155. data() {
  156. return {
  157. // 报修公告
  158. repairsNotice: '',
  159. // 报修区域
  160. repairsArea: '',
  161. // 楼栋ID
  162. buildId: null,
  163. // 报修地址
  164. repairsAddress: '',
  165. // 报修物品
  166. repairsGoods: '',
  167. // 报修物品ID
  168. articleId: '',
  169. // 故障描述
  170. repairsDescription: '',
  171. // 报修姓名
  172. repairsName: '',
  173. // 联系电话
  174. repairsPhone: '',
  175. // 紧急电话
  176. urgencyPhone: '',
  177. // 服务电话
  178. searchPhone: '',
  179. // 播放状态
  180. playStatus: false,
  181. // 定时器标识
  182. timer: null,
  183. // 录音图片地址
  184. recordingImg: '../../static/images/repairsImg/recording.jpg',
  185. // 录音文件路径
  186. recordingPath: '',
  187. // 录音时长
  188. recordingTime: 0,
  189. // 显示的图片数据
  190. imgList: [],
  191. // 上传的图片数据
  192. subImgList: [],
  193. // 图片上传框的样式
  194. imageStyles: {
  195. width: 60,
  196. height: 60
  197. },
  198. //画板边长默认是屏幕宽度,正方形画布
  199. cw: uni.getSystemInfoSync().windowWidth,
  200. // 当前校区Id
  201. schoolId: null
  202. }
  203. },
  204. mounted() {
  205. // 页面之间通讯监听自定义事件
  206. uni.$on('addRepairsArea', this.addRepairsArea)
  207. uni.$on('addRepairsGoods', this.addRepairsGoods)
  208. //在ios下静音时播放没有声音,默认为true,改为false静音时播放有声音
  209. uni.setInnerAudioOption({
  210. obeyMuteSwitch: false
  211. })
  212. // 获取用户默认姓名
  213. this.repairsName = uni.getStorageSync('repairsUserInfo').userName
  214. this.getRepairNotice()
  215. this.getSetPhone()
  216. },
  217. methods: {
  218. // 获取首页公告展示数据
  219. async getRepairNotice() {
  220. const res = await this.$myRequest_repairs({
  221. url: '/repairNoticeSetting/queryRepairNoticeSettingByTop'
  222. })
  223. // console.log(res)
  224. if (res.code === '200') {
  225. this.repairsNotice = res.data.noticeStr
  226. }
  227. },
  228. // 获取紧急电话和服务监督电话
  229. async getSetPhone() {
  230. const res = await this.$myRequest_repairs({
  231. url: '/repairSystemSetting/queryRepairSystemSetting'
  232. })
  233. // console.log(res)
  234. if (res.code === '200') {
  235. this.urgencyPhone = res.data.emergencyCall
  236. this.searchPhone = res.data.servicePhone
  237. }
  238. },
  239. // 确认提交按钮回调
  240. handleAffirmSub() {
  241. // 验证提交数据是否符合标准
  242. const flag = this.handleValidate()
  243. if (flag) {
  244. uni.showModal({
  245. title: '提示',
  246. content: '确认提交吗?',
  247. success: async (res) => {
  248. if (res.confirm) {
  249. const repairsUserInfo = uni.getStorageSync('repairsUserInfo')
  250. const res = await this.$myRequest_repairs({
  251. url: '/repairRecord/insertRepairRecord',
  252. method: 'post',
  253. data: {
  254. // 报修区域ID
  255. areaId: this.repairsArea,
  256. // 详细地址
  257. address: this.repairsAddress,
  258. // 报修物品ID
  259. articleId: this.articleId,
  260. // 故障描述
  261. description: this.repairsDescription,
  262. // 报修录音
  263. voice: this.recordingPath,
  264. // 报修录音时长
  265. voiceLength: this.voiceLength,
  266. // 故障图片集合
  267. images: this.subImgList,
  268. // 报修姓名
  269. userName: this.repairsName,
  270. // 报修电话
  271. userPhone: this.repairsPhone,
  272. // 报修人ID
  273. userId: repairsUserInfo.userId,
  274. // 校区ID
  275. schoolId: this.schoolId,
  276. // 楼栋ID
  277. buildId: this.buildId
  278. }
  279. })
  280. // console.log(res)
  281. if (res.code === '200') {
  282. uni.showToast({
  283. title: res.message,
  284. icon: 'success'
  285. })
  286. // 重置数据
  287. // this.repairsArea = ''
  288. // this.repairsAddress = ''
  289. // this.repairsGoods = ''
  290. // this.articleId = ''
  291. // this.repairsDescription = ''
  292. // this.recordingPath = ''
  293. // this.imgList = []
  294. // this.subImgList = []
  295. // this.repairsName = ''
  296. // this.repairsPhone = ''
  297. // this.schoolId = null
  298. // this.buildId = null
  299. // 不是用户报修的单,则跳转回首页
  300. if (repairsUserInfo.routes.includes('首页')) {
  301. setTimeout(() => {
  302. uni.reLaunch({
  303. url: '/pagesRepairs/box/box'
  304. })
  305. }, 1500)
  306. } else {
  307. setTimeout(() => {
  308. uni.$emit('goToMyRepairs', {
  309. show: 'myRepairs',
  310. title: '我的报修'
  311. })
  312. }, 1500)
  313. }
  314. }
  315. }
  316. }
  317. })
  318. }
  319. },
  320. // 验证信息是否符合规范
  321. handleValidate() {
  322. const reName = /^[\u4e00-\u9fa5]{2,4}$/
  323. const rePhone = /^[1][3,4,5,7,8,9][0-9]{9}$/
  324. if (!this.repairsArea) {
  325. uni.showToast({
  326. title: '请选择报修区域',
  327. icon: 'none'
  328. })
  329. return
  330. }
  331. if (!this.repairsAddress) {
  332. uni.showToast({
  333. title: '请输入详细地址',
  334. icon: 'none'
  335. })
  336. return
  337. }
  338. if (!this.repairsGoods) {
  339. uni.showToast({
  340. title: '请选择报修物品',
  341. icon: 'none'
  342. })
  343. return
  344. }
  345. if (this.subImgList.length == 0) {
  346. uni.showToast({
  347. title: '请上传报修照片',
  348. icon: 'none'
  349. })
  350. return
  351. }
  352. if (!this.repairsName) {
  353. uni.showToast({
  354. title: '请输入报修姓名',
  355. icon: 'none'
  356. })
  357. return false
  358. }
  359. if (!reName.test(this.repairsName)) {
  360. uni.showToast({
  361. title: '姓名格式有误',
  362. icon: 'none'
  363. })
  364. return false
  365. }
  366. if (!this.repairsPhone) {
  367. uni.showToast({
  368. title: '请输入联系电话',
  369. icon: 'none'
  370. })
  371. return false
  372. }
  373. if (!rePhone.test(this.repairsPhone)) {
  374. uni.showToast({
  375. title: '电话号码格式有误',
  376. icon: 'none'
  377. })
  378. return false
  379. }
  380. return true
  381. },
  382. // 全局自定义事件
  383. addRepairsArea(e) {
  384. // console.log(e)
  385. this.repairsArea = e.data
  386. this.schoolId = e.schoolId
  387. this.buildId = e.buildId
  388. },
  389. // 全局自定义事件
  390. addRepairsGoods(e) {
  391. // console.log(e)
  392. this.repairsGoods = e.data
  393. this.articleId = e.articleId
  394. },
  395. // 删除录音回调
  396. handleDeleteRecording() {
  397. if (this.playStatus) {
  398. uni.showToast({
  399. title: '播放中不能删除',
  400. icon: 'none',
  401. mask: true
  402. })
  403. } else {
  404. uni.showModal({
  405. title: '提示',
  406. content: '确定删除录音吗?',
  407. success: (res) => {
  408. if (res.confirm) {
  409. this.recordingPath = ''
  410. this.recordingTime = 0
  411. }
  412. }
  413. })
  414. }
  415. },
  416. // 点击录音播放回调
  417. handlePlayRecording() {
  418. innerAudioContext.src = this.recordingPath
  419. if (!this.playStatus) {
  420. this.playStatus = true
  421. innerAudioContext.play()
  422. this.timer = setInterval(() => {
  423. if (this.recordingImg == '../../static/images/repairsImg/recording.jpg') {
  424. this.recordingImg = '../../static/images/repairsImg/recording2.jpg'
  425. } else if (this.recordingImg == '../../static/images/repairsImg/recording2.jpg') {
  426. this.recordingImg = '../../static/images/repairsImg/recording3.jpg'
  427. } else if (this.recordingImg == '../../static/images/repairsImg/recording3.jpg') {
  428. this.recordingImg = '../../static/images/repairsImg/recording.jpg'
  429. }
  430. }, 300)
  431. //播放结束
  432. innerAudioContext.onEnded(() => {
  433. clearInterval(this.timer)
  434. this.timer = null
  435. this.recordingImg = '../../static/images/repairsImg/recording.jpg'
  436. this.playStatus = false
  437. })
  438. } else {
  439. clearInterval(this.timer)
  440. this.recordingImg = '../../static/images/repairsImg/recording.jpg'
  441. this.playStatus = false
  442. innerAudioContext.stop()
  443. }
  444. },
  445. // 自定义事件回调,获取录音文件路径
  446. getTempFilePath(path, time) {
  447. this.recordingPath = path
  448. this.recordingTime = time
  449. this.$refs.popup_recording.close()
  450. },
  451. // 选择图片回调
  452. select(e) {
  453. // console.log(e)
  454. e.tempFiles.forEach((item) => {
  455. //这里的id和页面中写的html代码的canvas的id要一致
  456. let canvasId = 'zipCanvas'
  457. //原图的路径
  458. let imagePath = item.path
  459. //大小限制1024kb
  460. let limitSize = 1024
  461. //初始绘画区域是画布自身的宽度也就是屏幕宽度
  462. let drawWidth = uni.getSystemInfoSync().windowWidth
  463. getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, (resPath) => {
  464. uni.showLoading({
  465. title: '上传中'
  466. })
  467. uni.uploadFile({
  468. url: `https://chtech.ncjti.edu.cn/campusMaintenance/repair-api/repair/api/repairRecord/uploadFile`,
  469. filePath: resPath,
  470. name: 'file',
  471. header: {
  472. token: uni.getStorageSync('repairsUserInfo').token,
  473. user_head: uni.getStorageSync('repairsUserInfo').userhead
  474. },
  475. success: (uploadFileRes) => {
  476. // console.log(JSON.parse(uploadFileRes.data))
  477. this.subImgList.push(JSON.parse(uploadFileRes.data).data.resultUrl)
  478. this.imgList.push({
  479. url: item.path,
  480. name: ''
  481. })
  482. uni.hideLoading()
  483. },
  484. fail: () => {
  485. uni.showToast({
  486. title: '上传失败',
  487. icon: 'error'
  488. })
  489. }
  490. })
  491. })
  492. })
  493. },
  494. // 删除图片回调
  495. handleDelete(e) {
  496. // console.log(e);
  497. const num = this.imgList.findIndex((v) => v.url === e.tempFilePath)
  498. this.subImgList.splice(num, 1)
  499. this.imgList.splice(num, 1)
  500. },
  501. // 点击报修区域回调
  502. handleSelectArea() {
  503. uni.navigateTo({
  504. url: '/pagesRepairs/selectArea/selectArea'
  505. })
  506. },
  507. // 点击报修物品回调
  508. handleSelectGoods() {
  509. if (this.schoolId) {
  510. uni.navigateTo({
  511. url: `/pagesRepairs/selectGoods/selectGoods?schoolId=${this.schoolId}`
  512. })
  513. } else {
  514. uni.showToast({
  515. title: '请先选择报修区域',
  516. icon: 'none'
  517. })
  518. }
  519. },
  520. // 点击消息通知按钮回调
  521. handleClickFixed() {
  522. uni.navigateTo({
  523. url: '/pagesRepairs/message/message'
  524. })
  525. },
  526. // 点击电话号码回调
  527. handleCallPhone(phone) {
  528. uni.makePhoneCall({
  529. phoneNumber: phone
  530. })
  531. },
  532. // 点击录音按钮回调
  533. handleRecording() {
  534. uni.getSetting({
  535. success: (res) => {
  536. if (!res.authSetting['scope.record']) {
  537. uni.authorize({
  538. scope: 'scope.record',
  539. success(res) {
  540. // 授权成功
  541. uni.showToast({
  542. title: '授权成功',
  543. icon: 'none'
  544. })
  545. },
  546. fail() {
  547. uni.showModal({
  548. content: '检测到您没打开麦克风权限,是否去设置打开?',
  549. confirmText: '确认',
  550. cancelText: '取消',
  551. success: (res) => {
  552. if (res.confirm) {
  553. uni.openSetting({
  554. success: (res) => {}
  555. })
  556. } else {
  557. uni.showToast({
  558. title: '获取麦克风权限失败',
  559. icon: 'none'
  560. })
  561. }
  562. }
  563. })
  564. }
  565. })
  566. } else {
  567. this.$refs.popup_recording.open('bottom')
  568. }
  569. },
  570. fail() {
  571. uni.showToast({
  572. title: '获取麦克风权限失败',
  573. icon: 'none'
  574. })
  575. }
  576. })
  577. }
  578. }
  579. }
  580. </script>
  581. <style lang="scss" scoped>
  582. .container {
  583. width: 100vw;
  584. height: calc(100vh - 152rpx);
  585. overflow-y: auto;
  586. .notice {
  587. height: 90rpx;
  588. }
  589. .gap {
  590. height: 12rpx;
  591. background-color: #f2f2f2;
  592. }
  593. .box_item {
  594. display: flex;
  595. align-items: center;
  596. margin: 0 30rpx;
  597. height: 105rpx;
  598. font-size: 28rpx;
  599. border-bottom: 1rpx solid #e6e6e6;
  600. .item_title {
  601. width: 190rpx;
  602. font-weight: bold;
  603. text {
  604. margin-left: 5rpx;
  605. color: #d43030;
  606. }
  607. }
  608. .item_info {
  609. flex: 1;
  610. display: flex;
  611. align-items: center;
  612. padding: 0 10rpx;
  613. height: 100%;
  614. color: #cccccc;
  615. .item_input {
  616. width: 100%;
  617. height: 105rpx;
  618. input {
  619. height: 105rpx;
  620. line-height: 105rpx;
  621. color: #000;
  622. }
  623. }
  624. .info_icon {
  625. display: flex;
  626. justify-content: center;
  627. align-items: center;
  628. width: 79rpx;
  629. height: 37rpx;
  630. border-radius: 33rpx;
  631. border: 1rpx solid #e6e6e6;
  632. img {
  633. width: 26rpx;
  634. height: 26rpx;
  635. }
  636. }
  637. .info_tips {
  638. margin-left: 33rpx;
  639. font-size: 28rpx;
  640. color: #cccccc;
  641. }
  642. }
  643. .item_color {
  644. color: #000;
  645. }
  646. .item_icon {
  647. width: 38rpx;
  648. height: 38rpx;
  649. img {
  650. width: 100%;
  651. height: 100%;
  652. }
  653. }
  654. .item_recording {
  655. display: flex;
  656. align-items: center;
  657. width: 200rpx;
  658. height: 50rpx;
  659. border-radius: 100rpx;
  660. border: 1rpx solid #cccccc;
  661. img {
  662. margin: 0 12rpx;
  663. width: 40rpx;
  664. height: 40rpx;
  665. }
  666. }
  667. .recording_icon {
  668. margin-left: auto;
  669. font-size: 40rpx;
  670. }
  671. }
  672. .box_item2 {
  673. display: flex;
  674. align-items: center;
  675. margin: 0 30rpx;
  676. height: 237rpx;
  677. font-size: 28rpx;
  678. border-bottom: 1rpx solid #e6e6e6;
  679. .item2_title {
  680. width: 190rpx;
  681. font-weight: bold;
  682. text {
  683. margin-left: 5rpx;
  684. color: #d43030;
  685. }
  686. }
  687. .item2_info {
  688. flex: 1;
  689. padding: 0 10rpx;
  690. .item2_textarea {
  691. display: flex;
  692. align-items: center;
  693. width: 100%;
  694. height: 237rpx;
  695. textarea {
  696. box-sizing: border-box;
  697. padding: 20rpx;
  698. width: 500rpx;
  699. height: 176rpx;
  700. border: 1rpx solid #e6e6e6;
  701. border-radius: 6rpx;
  702. }
  703. }
  704. }
  705. }
  706. .box_item3 {
  707. margin: 0 30rpx;
  708. height: 246rpx;
  709. border-bottom: 1rpx solid #e6e6e6;
  710. .item3_title {
  711. height: 95rpx;
  712. line-height: 95rpx;
  713. font-size: 28rpx;
  714. font-weight: bold;
  715. span {
  716. margin-left: 5rpx;
  717. color: #d43030;
  718. }
  719. text {
  720. font-size: 24rpx;
  721. color: #808080;
  722. font-weight: 400;
  723. }
  724. }
  725. }
  726. .foot {
  727. display: flex;
  728. flex-direction: column;
  729. align-items: center;
  730. margin: 0 30rpx;
  731. height: 407rpx;
  732. .foot_btn {
  733. margin-top: 167rpx;
  734. width: 100%;
  735. height: 100rpx;
  736. line-height: 100rpx;
  737. text-align: center;
  738. color: #fff;
  739. font-size: 32rpx;
  740. border-radius: 12rpx;
  741. background-color: #6fb6b8;
  742. }
  743. .foot_phone {
  744. margin-top: 30rpx;
  745. color: #b3b3b3;
  746. font-size: 24rpx;
  747. }
  748. }
  749. .fixed {
  750. z-index: 2;
  751. position: fixed;
  752. right: 0;
  753. bottom: 200rpx;
  754. display: flex;
  755. justify-content: center;
  756. align-items: center;
  757. width: 211rpx;
  758. height: 90rpx;
  759. border-radius: 150rpx 0 0 150rpx;
  760. border: 1rpx solid #d9d9d9;
  761. background-color: #fff;
  762. box-shadow: 0 0 7rpx #d9d9d9;
  763. .fixed_box {
  764. display: flex;
  765. align-items: center;
  766. font-size: 28rpx;
  767. img {
  768. margin-right: 10rpx;
  769. width: 38rpx;
  770. height: 38rpx;
  771. }
  772. }
  773. }
  774. .popup_recording {
  775. width: 100%;
  776. height: 460rpx;
  777. background-color: #fff;
  778. }
  779. }
  780. </style>