repairs.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  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(urgencyPhoneHjh)">黄家湖紧急电话 {{ urgencyPhoneHjh }}</view>
  122. <view class="foot_phone" @click="handleCallPhone(urgencyPhoneMxh)">墨轩湖紧急电话 {{ urgencyPhoneMxh }}</view>
  123. <view class="foot_phone" @click="handleCallPhone(searchPhone)">服务监督电话 {{ searchPhone }}</view>
  124. </view>
  125. <!-- 消息通知按钮区域 -->
  126. <view class="fixed" @tap="handleClickFixed">
  127. <view class="fixed_box">
  128. <img src="../../static/images/repairsImg/message.png" />
  129. 消息通知
  130. </view>
  131. </view>
  132. <!-- 用于图片压缩的canvas画布 -->
  133. <canvas
  134. :style="{
  135. width: cw + 'px',
  136. height: cw + 'px',
  137. position: 'absolute',
  138. zIndex: -1,
  139. left: '-10000rpx',
  140. top: '-10000rpx'
  141. }"
  142. canvas-id="zipCanvas"
  143. ></canvas>
  144. <!--画布结束-->
  145. </view>
  146. </template>
  147. <script>
  148. import recording from '../components/recording.vue'
  149. // 图片压缩方法
  150. import getLessLimitSizeImage from '../util/imageCompress.js'
  151. const innerAudioContext = uni.createInnerAudioContext()
  152. export default {
  153. components: {
  154. recording
  155. },
  156. data() {
  157. return {
  158. // 报修公告
  159. repairsNotice: '',
  160. // 报修区域
  161. repairsArea: '',
  162. // 地址ID
  163. addressId: null,
  164. // 报修地址
  165. repairsAddress: '',
  166. // 报修物品
  167. repairsGoods: '',
  168. // 报修物品ID
  169. articleId: '',
  170. // 故障描述
  171. repairsDescription: '',
  172. // 报修姓名
  173. repairsName: '',
  174. // 联系电话
  175. repairsPhone: '',
  176. // 黄家湖紧急电话
  177. urgencyPhoneHjh: '',
  178. // 墨轩湖紧急电话
  179. urgencyPhoneMxh: '',
  180. // 服务电话
  181. searchPhone: '',
  182. // 播放状态
  183. playStatus: false,
  184. // 定时器标识
  185. timer: null,
  186. // 录音图片地址
  187. recordingImg: '../../static/images/repairsImg/recording.jpg',
  188. // 录音文件路径
  189. recordingPath: '',
  190. // 录音时长
  191. recordingTime: 0,
  192. // 显示的图片数据
  193. imgList: [],
  194. // 上传的图片数据
  195. subImgList: [],
  196. // 图片上传框的样式
  197. imageStyles: {
  198. width: 60,
  199. height: 60
  200. },
  201. //画板边长默认是屏幕宽度,正方形画布
  202. cw: uni.getSystemInfoSync().windowWidth,
  203. // 当前校区Id
  204. schoolId: null,
  205. // 楼栋Id
  206. buildId: null
  207. }
  208. },
  209. mounted() {
  210. // 页面之间通讯监听自定义事件
  211. uni.$on('addRepairsArea', this.addRepairsArea)
  212. uni.$on('addRepairsGoods', this.addRepairsGoods)
  213. //在ios下静音时播放没有声音,默认为true,改为false静音时播放有声音
  214. uni.setInnerAudioOption({
  215. obeyMuteSwitch: false
  216. })
  217. // 获取用户默认姓名
  218. this.repairsName = uni.getStorageSync('repairsUserInfo').userName
  219. // 获取用户默认手机号码
  220. this.repairsPhone = uni.getStorageSync('repairsUserInfo').userPhone
  221. this.getRepairNotice()
  222. this.getSetPhone()
  223. },
  224. methods: {
  225. // 获取首页公告展示数据
  226. async getRepairNotice() {
  227. const res = await this.$myRequest_repairs({
  228. url: '/repairNoticeSetting/queryRepairNoticeSettingByTop'
  229. })
  230. // console.log(res)
  231. if (res.code === '200') {
  232. this.repairsNotice = res.data.noticeStr
  233. }
  234. },
  235. // 获取紧急电话和服务监督电话
  236. async getSetPhone() {
  237. const res = await this.$myRequest_repairs({
  238. url: '/repairSystemSetting/queryRepairSystemSetting'
  239. })
  240. // console.log(res)
  241. if (res.code === '200') {
  242. this.urgencyPhoneHjh = res.data.emergencyCall
  243. this.urgencyPhoneMxh = res.data.emergencyMxh
  244. this.searchPhone = res.data.servicePhone
  245. }
  246. },
  247. // 确认提交按钮回调
  248. handleAffirmSub() {
  249. // 验证提交数据是否符合标准
  250. const flag = this.handleValidate()
  251. if (flag) {
  252. uni.showModal({
  253. title: '提示',
  254. content: '确认提交吗?',
  255. success: async (res) => {
  256. if (res.confirm) {
  257. const repairsUserInfo = uni.getStorageSync('repairsUserInfo')
  258. const res = await this.$myRequest_repairs({
  259. url: '/repairRecord/insertRepairRecord',
  260. method: 'post',
  261. data: {
  262. // 报修区域
  263. areaId: this.repairsArea,
  264. // 详细地址
  265. address: this.repairsAddress,
  266. // 报修物品ID
  267. articleId: this.articleId,
  268. // 故障描述
  269. description: this.repairsDescription,
  270. // 报修录音
  271. voice: this.recordingPath,
  272. // 报修录音时长
  273. voiceLength: this.recordingTime,
  274. // 故障图片集合
  275. images: this.subImgList,
  276. // 报修姓名
  277. userName: this.repairsName,
  278. // 报修电话
  279. userPhone: this.repairsPhone,
  280. // 报修人ID
  281. userId: repairsUserInfo.userId,
  282. // 校区ID
  283. schoolId: this.schoolId,
  284. // 地址ID
  285. buildId: this.addressId
  286. }
  287. })
  288. // console.log(res)
  289. if (res.code === '200') {
  290. uni.showToast({
  291. title: res.message,
  292. icon: 'success',
  293. mask: true
  294. })
  295. // 不是用户报修的单,则跳转回首页
  296. if (repairsUserInfo.routes.includes('首页')) {
  297. setTimeout(() => {
  298. uni.reLaunch({
  299. url: '/pagesRepairs/box/box'
  300. })
  301. }, 1500)
  302. } else {
  303. setTimeout(() => {
  304. uni.$emit('goToMyRepairs', {
  305. show: 'myRepairs',
  306. title: '我的报修'
  307. })
  308. }, 1500)
  309. }
  310. }
  311. }
  312. }
  313. })
  314. }
  315. },
  316. // 验证信息是否符合规范
  317. handleValidate() {
  318. const reName = /^[\u4e00-\u9fa5]{2,4}$/
  319. const rePhone = /^1[3-9]\d{9}$/
  320. if (!this.repairsArea) {
  321. uni.showToast({
  322. title: '请选择报修区域',
  323. icon: 'none'
  324. })
  325. return
  326. }
  327. if (!this.repairsAddress) {
  328. uni.showToast({
  329. title: '请输入详细地址',
  330. icon: 'none'
  331. })
  332. return
  333. }
  334. if (!this.repairsGoods) {
  335. uni.showToast({
  336. title: '请选择报修物品',
  337. icon: 'none'
  338. })
  339. return
  340. }
  341. if (this.subImgList.length == 0) {
  342. uni.showToast({
  343. title: '请上传报修照片',
  344. icon: 'none'
  345. })
  346. return
  347. }
  348. if (!this.repairsName) {
  349. uni.showToast({
  350. title: '请输入报修姓名',
  351. icon: 'none'
  352. })
  353. return false
  354. }
  355. if (!reName.test(this.repairsName)) {
  356. uni.showToast({
  357. title: '姓名格式有误',
  358. icon: 'none'
  359. })
  360. return false
  361. }
  362. if (!this.repairsPhone) {
  363. uni.showToast({
  364. title: '请输入联系电话',
  365. icon: 'none'
  366. })
  367. return false
  368. }
  369. if (!rePhone.test(this.repairsPhone)) {
  370. uni.showToast({
  371. title: '电话号码格式有误',
  372. icon: 'none'
  373. })
  374. return false
  375. }
  376. return true
  377. },
  378. // 全局自定义事件
  379. addRepairsArea(e) {
  380. // console.log(e)
  381. this.repairsArea = e.data
  382. this.schoolId = e.schoolId
  383. this.buildId = e.buildId
  384. this.addressId = e.addressId
  385. },
  386. // 全局自定义事件
  387. addRepairsGoods(e) {
  388. // console.log(e)
  389. this.repairsGoods = e.data
  390. this.articleId = e.articleId
  391. },
  392. // 删除录音回调
  393. handleDeleteRecording() {
  394. if (this.playStatus) {
  395. uni.showToast({
  396. title: '播放中不能删除',
  397. icon: 'none',
  398. mask: true
  399. })
  400. } else {
  401. uni.showModal({
  402. title: '提示',
  403. content: '确定删除录音吗?',
  404. success: (res) => {
  405. if (res.confirm) {
  406. this.recordingPath = ''
  407. this.recordingTime = 0
  408. }
  409. }
  410. })
  411. }
  412. },
  413. // 点击录音播放回调
  414. handlePlayRecording() {
  415. innerAudioContext.src = this.recordingPath
  416. if (!this.playStatus) {
  417. this.playStatus = true
  418. innerAudioContext.play()
  419. this.timer = setInterval(() => {
  420. if (this.recordingImg == '../../static/images/repairsImg/recording.jpg') {
  421. this.recordingImg = '../../static/images/repairsImg/recording2.jpg'
  422. } else if (this.recordingImg == '../../static/images/repairsImg/recording2.jpg') {
  423. this.recordingImg = '../../static/images/repairsImg/recording3.jpg'
  424. } else if (this.recordingImg == '../../static/images/repairsImg/recording3.jpg') {
  425. this.recordingImg = '../../static/images/repairsImg/recording.jpg'
  426. }
  427. }, 300)
  428. //播放结束
  429. innerAudioContext.onEnded(() => {
  430. clearInterval(this.timer)
  431. this.timer = null
  432. this.recordingImg = '../../static/images/repairsImg/recording.jpg'
  433. this.playStatus = false
  434. })
  435. } else {
  436. clearInterval(this.timer)
  437. this.recordingImg = '../../static/images/repairsImg/recording.jpg'
  438. this.playStatus = false
  439. innerAudioContext.stop()
  440. }
  441. },
  442. // 自定义事件回调,获取录音文件路径
  443. getTempFilePath(path, time) {
  444. this.recordingPath = path
  445. this.recordingTime = time
  446. this.$refs.popup_recording.close()
  447. },
  448. // 选择图片回调
  449. select(e) {
  450. // console.log(e)
  451. e.tempFiles.forEach((item) => {
  452. //这里的id和页面中写的html代码的canvas的id要一致
  453. let canvasId = 'zipCanvas'
  454. //原图的路径
  455. let imagePath = item.path
  456. //大小限制1024kb
  457. let limitSize = 1024 * 3
  458. //初始绘画区域是画布自身的宽度也就是屏幕宽度
  459. let drawWidth = uni.getSystemInfoSync().windowWidth
  460. let that = this
  461. getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, that, (resPath) => {
  462. uni.showLoading({
  463. title: '上传中'
  464. })
  465. uni.uploadFile({
  466. url: `https://chtech.ncjti.edu.cn/campusMaintenance/repair-api/repair/api/repairRecord/uploadFile`,
  467. filePath: resPath,
  468. name: 'file',
  469. header: {
  470. token: uni.getStorageSync('repairsUserInfo').token,
  471. user_head: uni.getStorageSync('repairsUserInfo').userhead
  472. },
  473. success: (uploadFileRes) => {
  474. // console.log(JSON.parse(uploadFileRes.data))
  475. this.subImgList.push(JSON.parse(uploadFileRes.data).data.resultUrl)
  476. this.imgList.push({
  477. url: item.path,
  478. name: ''
  479. })
  480. uni.hideLoading()
  481. },
  482. fail: () => {
  483. uni.showToast({
  484. title: '上传失败',
  485. icon: 'error'
  486. })
  487. }
  488. })
  489. })
  490. })
  491. },
  492. // 删除图片回调
  493. handleDelete(e) {
  494. // console.log(e);
  495. const num = this.imgList.findIndex((v) => v.url === e.tempFilePath)
  496. this.subImgList.splice(num, 1)
  497. this.imgList.splice(num, 1)
  498. },
  499. // 点击报修区域回调
  500. handleSelectArea() {
  501. this.repairsAddress = ''
  502. this.repairsGoods = ''
  503. uni.navigateTo({
  504. url: `/pagesRepairs/selectArea/selectArea?schoolId=${this.schoolId}&buildId=${this.buildId}&addressId=${this.addressId}`
  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>