repairs.vue 19 KB

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