repairs.vue 19 KB

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