repairs.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  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. this.repairsAddress = ''
  497. this.repairsGoods = ''
  498. uni.navigateTo({
  499. url: `/pagesRepairs/selectArea/selectArea?schoolId=${this.schoolId}&buildId=${this.buildId}&addressId=${this.addressId}`
  500. })
  501. },
  502. // 点击报修物品回调
  503. handleSelectGoods() {
  504. if (this.schoolId) {
  505. uni.navigateTo({
  506. url: `/pagesRepairs/selectGoods/selectGoods?schoolId=${this.schoolId}`
  507. })
  508. } else {
  509. uni.showToast({
  510. title: '请先选择报修区域',
  511. icon: 'none'
  512. })
  513. }
  514. },
  515. // 点击消息通知按钮回调
  516. handleClickFixed() {
  517. uni.navigateTo({
  518. url: '/pagesRepairs/message/message'
  519. })
  520. },
  521. // 点击电话号码回调
  522. handleCallPhone(phone) {
  523. uni.makePhoneCall({
  524. phoneNumber: phone
  525. })
  526. },
  527. // 点击录音按钮回调
  528. handleRecording() {
  529. uni.getSetting({
  530. success: (res) => {
  531. if (!res.authSetting['scope.record']) {
  532. uni.authorize({
  533. scope: 'scope.record',
  534. success(res) {
  535. // 授权成功
  536. uni.showToast({
  537. title: '授权成功',
  538. icon: 'none'
  539. })
  540. },
  541. fail() {
  542. uni.showModal({
  543. content: '检测到您没打开麦克风权限,是否去设置打开?',
  544. confirmText: '确认',
  545. cancelText: '取消',
  546. success: (res) => {
  547. if (res.confirm) {
  548. uni.openSetting({
  549. success: (res) => {}
  550. })
  551. } else {
  552. uni.showToast({
  553. title: '获取麦克风权限失败',
  554. icon: 'none'
  555. })
  556. }
  557. }
  558. })
  559. }
  560. })
  561. } else {
  562. this.$refs.popup_recording.open('bottom')
  563. }
  564. },
  565. fail() {
  566. uni.showToast({
  567. title: '获取麦克风权限失败',
  568. icon: 'none'
  569. })
  570. }
  571. })
  572. }
  573. }
  574. }
  575. </script>
  576. <style lang="scss" scoped>
  577. .container {
  578. width: 100vw;
  579. height: calc(100vh - 152rpx);
  580. overflow-y: auto;
  581. .notice {
  582. height: 90rpx;
  583. }
  584. .gap {
  585. height: 12rpx;
  586. background-color: #f2f2f2;
  587. }
  588. .box_item {
  589. display: flex;
  590. align-items: center;
  591. margin: 0 30rpx;
  592. height: 105rpx;
  593. font-size: 28rpx;
  594. border-bottom: 1rpx solid #e6e6e6;
  595. .item_title {
  596. width: 190rpx;
  597. font-weight: bold;
  598. text {
  599. margin-left: 5rpx;
  600. color: #d43030;
  601. }
  602. }
  603. .item_info {
  604. flex: 1;
  605. display: flex;
  606. align-items: center;
  607. padding: 0 10rpx;
  608. height: 100%;
  609. color: #cccccc;
  610. .item_input {
  611. width: 100%;
  612. height: 105rpx;
  613. input {
  614. height: 105rpx;
  615. line-height: 105rpx;
  616. color: #000;
  617. }
  618. }
  619. .info_icon {
  620. display: flex;
  621. justify-content: center;
  622. align-items: center;
  623. width: 79rpx;
  624. height: 37rpx;
  625. border-radius: 33rpx;
  626. border: 1rpx solid #e6e6e6;
  627. img {
  628. width: 26rpx;
  629. height: 26rpx;
  630. }
  631. }
  632. .info_tips {
  633. margin-left: 33rpx;
  634. font-size: 28rpx;
  635. color: #cccccc;
  636. }
  637. }
  638. .item_color {
  639. color: #000;
  640. }
  641. .item_icon {
  642. width: 38rpx;
  643. height: 38rpx;
  644. img {
  645. width: 100%;
  646. height: 100%;
  647. }
  648. }
  649. .item_recording {
  650. display: flex;
  651. align-items: center;
  652. width: 200rpx;
  653. height: 50rpx;
  654. border-radius: 100rpx;
  655. border: 1rpx solid #cccccc;
  656. img {
  657. margin: 0 12rpx;
  658. width: 40rpx;
  659. height: 40rpx;
  660. }
  661. }
  662. .recording_icon {
  663. margin-left: auto;
  664. font-size: 40rpx;
  665. }
  666. }
  667. .box_item2 {
  668. display: flex;
  669. align-items: center;
  670. margin: 0 30rpx;
  671. height: 237rpx;
  672. font-size: 28rpx;
  673. border-bottom: 1rpx solid #e6e6e6;
  674. .item2_title {
  675. width: 190rpx;
  676. font-weight: bold;
  677. text {
  678. margin-left: 5rpx;
  679. color: #d43030;
  680. }
  681. }
  682. .item2_info {
  683. flex: 1;
  684. padding: 0 10rpx;
  685. .item2_textarea {
  686. display: flex;
  687. align-items: center;
  688. width: 100%;
  689. height: 237rpx;
  690. textarea {
  691. box-sizing: border-box;
  692. padding: 20rpx;
  693. width: 500rpx;
  694. height: 176rpx;
  695. border: 1rpx solid #e6e6e6;
  696. border-radius: 6rpx;
  697. }
  698. }
  699. }
  700. }
  701. .box_item3 {
  702. margin: 0 30rpx;
  703. height: 246rpx;
  704. border-bottom: 1rpx solid #e6e6e6;
  705. .item3_title {
  706. height: 95rpx;
  707. line-height: 95rpx;
  708. font-size: 28rpx;
  709. font-weight: bold;
  710. span {
  711. margin-left: 5rpx;
  712. color: #d43030;
  713. }
  714. text {
  715. font-size: 24rpx;
  716. color: #808080;
  717. font-weight: 400;
  718. }
  719. }
  720. }
  721. .foot {
  722. display: flex;
  723. flex-direction: column;
  724. align-items: center;
  725. margin: 0 30rpx;
  726. height: 407rpx;
  727. .foot_btn {
  728. margin-top: 167rpx;
  729. width: 100%;
  730. height: 100rpx;
  731. line-height: 100rpx;
  732. text-align: center;
  733. color: #fff;
  734. font-size: 32rpx;
  735. border-radius: 12rpx;
  736. background-color: #6fb6b8;
  737. }
  738. .foot_phone {
  739. margin-top: 30rpx;
  740. color: #b3b3b3;
  741. font-size: 24rpx;
  742. }
  743. }
  744. .fixed {
  745. z-index: 2;
  746. position: fixed;
  747. right: 0;
  748. bottom: 200rpx;
  749. display: flex;
  750. justify-content: center;
  751. align-items: center;
  752. width: 211rpx;
  753. height: 90rpx;
  754. border-radius: 150rpx 0 0 150rpx;
  755. border: 1rpx solid #d9d9d9;
  756. background-color: #fff;
  757. box-shadow: 0 0 7rpx #d9d9d9;
  758. .fixed_box {
  759. display: flex;
  760. align-items: center;
  761. font-size: 28rpx;
  762. img {
  763. margin-right: 10rpx;
  764. width: 38rpx;
  765. height: 38rpx;
  766. }
  767. }
  768. }
  769. .popup_recording {
  770. width: 100%;
  771. height: 460rpx;
  772. background-color: #fff;
  773. }
  774. }
  775. </style>