deviceInfo.nvue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. <template>
  2. <view class="infoBox">
  3. <!-- <image class="pageBg" src="/static/device/devicebg.png" mode="aspectFill"></image> -->
  4. <view class="pageContent">
  5. <view class="status-bar" :style="{height: statusBarHeight + 'px'}"></view>
  6. <view class="customHead">
  7. <view class="back-wrap" @click="goBack">
  8. <image src="/static/public/back.png" mode="aspectFill" class="backimg"></image>
  9. </view>
  10. <text class="customTitle">{{picMode===1?'我的艾灸椅':'穴位编辑'}}</text>
  11. <navigator :url="'/pages/device/detail/detail?name='+deviceName+'&deviceId='+deviceId+'&rssi='+rssi"
  12. class="plus">
  13. <image v-if="picMode===1" src="/static/public/view-list.png" mode="aspectFill" class="menuimg"></image>
  14. </navigator>
  15. </view>
  16. <scroll-view class="boxs" scroll-y="true">
  17. <view class="proBox" v-if="picMode == 1">
  18. <image class="proimg" src="/static/device/aijiuyi2.png" mode="aspectFill"></image>
  19. <view class="pointbox" v-if="deviceStatus == 3">
  20. <view class="pointContainer">
  21. <text class="pointLabel" v-if="acupointList.length > 0 && curCaseIndex < acupointList.length">{{acupointList[curCaseIndex].name}}</text>
  22. </view>
  23. </view>
  24. <text class="prostatus">蓝牙{{linked?'已':'未'}}连接</text>
  25. </view>
  26. <!-- 座椅角度 -->
  27. <view class="angleSection" v-if="picMode == 1">
  28. <text class="angleLabel">座椅角度(拖动滑块调整)</text>
  29. <l-sliderRange ref="slideRange" :anglenum="chairAngle" :min="90" :max="150" :step="15" @change="onSliderAngleChange"></l-sliderRange>
  30. </view>
  31. <!-- 模式选择 -->
  32. <view class="controlMode" v-if="picMode == 1">
  33. <text class="modetxt">选择模式</text>
  34. <view class="modechange" @click="isShowDrawer2 = true">
  35. <text class="modeName">{{modelist[modeType]}}</text>
  36. <view class="changeBtn">
  37. <text class="changetxt">切换</text>
  38. <image class="changeinmg" src="/static/device/change.png" mode="aspectFill"></image>
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 其他功能 -->
  43. <view class="otherSetting" v-if="modeType != 0 && picMode == 1">
  44. <text class="otherTxt">其他功能</text>
  45. <view class="func">
  46. <view class="funcitem">
  47. <image class="funcimg" src="/static/device/gongneng1.png" mode="aspectFill"></image>
  48. <text class="functxt">艾灸余量</text>
  49. </view>
  50. <view class="funcitem">
  51. <image class="funcimg" src="/static/device/gongneng2.png" mode="aspectFill"></image>
  52. <text class="functxt">滤芯状态</text>
  53. </view>
  54. <view class="funcitem">
  55. <image class="funcimg" src="/static/device/gongneng2.png" mode="aspectFill"></image>
  56. <text class="functxt">回收仓占用</text>
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 自定义模式切换按钮 -->
  61. <view class="modeChange" v-if="modeType == 2">
  62. <view class="modeBtn" @click="picModeChange(1)" :class="picMode===1?'curBtn':''">
  63. <text class="modeBtnTxt" :style="{color:picMode===1?'#545F71':'#fff'}">设备</text>
  64. </view>
  65. <view class="modeBtn" @click="picModeChange(2)" :class="picMode===2?'curBtn':''">
  66. <text class="modeBtnTxt" :style="{color:picMode===2?'#545F71':'#fff'}">穴位</text>
  67. </view>
  68. </view>
  69. <!-- 穴位图 -->
  70. <view class="acupointPic" v-if="modeType == 2 && picMode == 2">
  71. <image class="acupointBg" src="/static/device/persionbg.png" mode="aspectFill"></image>
  72. <view class="acupoint" :class="index == acupointIndex ? 'curAcupoint':''" @click="showTimeDraw(index)"
  73. v-for="(item,index) in acupointList" :key="index"
  74. :style="{left:item.x+'rpx',top:item.y+'rpx'}">
  75. </view>
  76. <view class="tipsbox" v-if="acupointIndex != -1"
  77. :style="{left:50+acupointList[acupointIndex].x+'rpx',top:-50+acupointList[acupointIndex].y+'rpx'}">
  78. <text class="tipsTxt">{{acupointList[acupointIndex].name}}</text>
  79. </view>
  80. </view>
  81. <!-- 白噪音 -->
  82. <view class="musicCard" v-if="modeType == 0 && picMode == 1">
  83. <text class="musicname">白噪音</text>
  84. <view class="musliclist">
  85. <text class="musictxt" :class="{'current':curAudioInx==inx}" v-for="(itm,inx) in audiolist"
  86. :key="inx" @click="changeAudio(itm.url,inx)">{{itm.name}}</text>
  87. </view>
  88. </view>
  89. <!-- 开始/暂停/停止 -->
  90. <view class="startbox" v-if="modeType != 0">
  91. <view class="stop" v-if="deviceStatus==0">
  92. <image class="startbtn" @click="startDeviceEvt()" src="/static/device/start.png" mode="aspectFill"></image>
  93. <text class="starttxt">开始</text>
  94. </view>
  95. <view class="hot" v-if="deviceStatus==1">
  96. <view class="hotone">
  97. <text class="hoting">{{ispreHot == false?'正在预热':'点火中'}}</text>
  98. <text class="hotnum">{{hotPercentage}}</text>
  99. </view>
  100. <view class="stopbox" @click="stopPreHot">
  101. <image class="stopimg" src="/static/device/stop.png" mode="aspectFill"></image>
  102. <text class="stoptext">结束</text>
  103. </view>
  104. </view>
  105. <view class="hot" v-if="deviceStatus==3 || deviceStatus==5">
  106. <view class="hotone" v-if="deviceStatus==3">
  107. <text class="hoting">正在艾灸</text>
  108. <text class="hotnum">{{subTime}}</text>
  109. </view>
  110. <view class="hotone" v-if="deviceStatus==5">
  111. <text class="hoting">已暂停</text>
  112. <text class="hotnum">{{subTime}}</text>
  113. </view>
  114. <view class="pausebox" @click="stopAijiu">
  115. <image class="pauseimg" :src="deviceStatus==5?'/static/device/start.png':'/static/device/pause.png'" mode="aspectFill"></image>
  116. <text class="pausetxt">{{deviceStatus==5?'开始':'暂停'}}</text>
  117. </view>
  118. <view class="stopbox" @click="stopPreHot">
  119. <image class="stopimg" src="/static/device/stop.png" mode="aspectFill"></image>
  120. <text class="stoptext">结束</text>
  121. </view>
  122. </view>
  123. <view class="hot" v-if="deviceStatus==4">
  124. <view class="hotone">
  125. <text class="hoting unfire">正在灭火中,请勿操作</text>
  126. </view>
  127. </view>
  128. </view>
  129. <view class="empty" v-if="modeType == 0"></view>
  130. </scroll-view>
  131. </view>
  132. <!-- 音乐播放器 - 固定底部 -->
  133. <view class="musicPlayerFixed" v-if="modeType == 0">
  134. <view class="musicPlayer">
  135. <view class="leftbox">
  136. <image class="playerimg" :src="audiolist[curAudioInx].posterimg" mode="aspectFill"></image>
  137. <view class="musicnamebox">
  138. <text class="mtime">{{formatTime(currentTime)}}</text>
  139. </view>
  140. </view>
  141. <view class="rightbox">
  142. <view class="playBtn" @click="playAudio">
  143. <image class="playericon"
  144. :src="ispause?'/static/device/playerbtn.png':'/static/device/pauseicon.png'"
  145. mode="aspectFit"></image>
  146. </view>
  147. <image @click="isShowDrawer3 = true" class="menuicon" src="/static/device/menubtn.png"
  148. mode="aspectFill"></image>
  149. </view>
  150. </view>
  151. </view>
  152. <!-- 异常提示弹框 -->
  153. <customPopup :isShow="excepDrawer" @closePop="excepDrawer=false">
  154. <text class="tip1 toptip" v-if="exceTxt == 1">检查到有异物</text>
  155. <text class="tip1" v-if="exceTxt == 1">已暂停艾灸,清理后重试</text>
  156. <text class="tip1 toptip" v-if="exceTxt == 2">艾条识别错误</text>
  157. <text class="tip1" v-if="exceTxt == 2">已暂停艾灸,重新插入艾条后重试</text>
  158. <text class="tip1 toptip" v-if="exceTxt == 3">上艾失败</text>
  159. <text class="tip1 toptip" v-if="exceTxt == 4">点火失败</text>
  160. <view class="confirmBtnWrap">
  161. <text class="confirmBtn" @click="excepDrawer = false; exceTxt = 0;">我知道了</text>
  162. </view>
  163. </customPopup>
  164. <!-- 确认结束弹框 -->
  165. <customPopup :isShow="isShowConfirm" @closePop="isShowConfirm=false">
  166. <text class="confirmTxt toptip">确认结束艾灸?</text>
  167. <view class="confirmBtns">
  168. <view class="cbtn" @click="isShowConfirm=false">
  169. <text class="cbtnTxt">取消</text>
  170. </view>
  171. <view class="cbtn redbtn" @click="confirmStop">
  172. <text class="cbtnTxt">结束</text>
  173. </view>
  174. </view>
  175. </customPopup>
  176. <!-- 模式选择弹框 -->
  177. <customPopup :isShow="isShowDrawer2" @closePop="isShowDrawer2=false">
  178. <view class="modeList">
  179. <view class="modeItem" @click="changeMode(0)">
  180. <text class="modeItemTxt">无艾灸模式</text>
  181. <view class="checkboxCustom">
  182. <view v-if="modeType == 0" class="checkboxCircle"></view>
  183. </view>
  184. </view>
  185. <view class="modeItem" @click="changeMode(1)">
  186. <text class="modeItemTxt">专业模式</text>
  187. <view class="checkboxCustom">
  188. <view v-if="modeType == 1" class="checkboxCircle"></view>
  189. </view>
  190. </view>
  191. <view class="modeItem" @click="changeMode(2)">
  192. <text class="modeItemTxt">自定义模式</text>
  193. <view class="checkboxCustom">
  194. <view v-if="modeType == 2" class="checkboxCircle"></view>
  195. </view>
  196. </view>
  197. <view class="modeItem" @click="changeMode(3)">
  198. <text class="modeItemTxt">专家模式</text>
  199. <view class="checkboxCustom">
  200. <view v-if="modeType == 3" class="checkboxCircle"></view>
  201. </view>
  202. </view>
  203. </view>
  204. </customPopup>
  205. <!-- 音乐弹窗 -->
  206. <customPopup :isShow="isShowDrawer3" @closePop="isShowDrawer3=false">
  207. <view class="audiolists">
  208. <text class="playname">当前播放</text>
  209. <view class="audiolist" :class="curAudioInx==inx?'curAudio':''" v-for="(itm,inx) in audiolist"
  210. :key="inx" @click="changeAudio(itm.url,inx)">
  211. <text class="audioTxt">{{itm.name}}</text>
  212. <view class="signal-container" v-if="curAudioInx==inx">
  213. <view class="signal-bar bar1"></view>
  214. <view class="signal-bar bar2"></view>
  215. <view class="signal-bar bar3"></view>
  216. </view>
  217. </view>
  218. </view>
  219. </customPopup>
  220. <!-- 时间配置器 -->
  221. <customPopup :isShow="isShowTimeDrawer" @closePop="isShowTimeDrawer=false">
  222. <text class="aijiuTime">选择灸疗时间</text>
  223. <view class="timePickerRow">
  224. <picker mode="multiSelector" :range="timeRange" @change="bindTimeChange">
  225. <text class="timePickerTxt">{{selectedHour}}小时 {{selectedMinute}}分钟</text>
  226. </picker>
  227. </view>
  228. <view class="timeBtns">
  229. <view class="tbtn" @click="cancelAijiuTime(0)">
  230. <text class="tbtnTxt">取消</text>
  231. </view>
  232. <view class="tbtn confirmBtn2" @click="cancelAijiuTime(1)">
  233. <text class="tbtnTxt confirmBtn2Txt">确认</text>
  234. </view>
  235. </view>
  236. </customPopup>
  237. <!-- 重连弹框 -->
  238. <view class="maskbg" v-if="reconnectDrawer">
  239. <view class="maskbox">
  240. <text class="maskTxt">蓝牙连接断开,第{{reconnectCount}}次重连中...</text>
  241. </view>
  242. </view>
  243. <ay-toast ref="ayToast" />
  244. </view>
  245. </template>
  246. <script>
  247. import customPopup from '@/components/customPopup/customPopup.nvue'
  248. import ayToast from '@/components/ay-toast/ay-toast.nvue'
  249. import lSliderRange from '@/components/l-sliderRange/l-sliderRange.nvue'
  250. import bleMixin from './mixins/ble-mixin.js'
  251. import audioMixin from './mixins/audio-mixin.js'
  252. import acupointMixin from './mixins/acupoint-mixin.js'
  253. import bleManager, { CHAIR_ANGLE } from '@/utils/ble'
  254. export default {
  255. components: {
  256. customPopup,
  257. ayToast,
  258. lSliderRange
  259. },
  260. mixins: [bleMixin, audioMixin, acupointMixin],
  261. data() {
  262. return {
  263. statusBarHeight: 44,
  264. deviceId: '',
  265. deviceName: '',
  266. rssi: '',
  267. subTime: '00:00:00',
  268. isShowDrawer2: false,
  269. modeType: 0, // 0无艾灸 1专业 2自定义 3专家
  270. modelist: ['无艾灸模式', '专业模式', '自定义模式', '专家模式'],
  271. chairAngle: 90
  272. }
  273. },
  274. onLoad(options) {
  275. const sysInfo = uni.getSystemInfoSync()
  276. this.statusBarHeight = sysInfo.statusBarHeight || 44
  277. this.deviceId = options.deviceId || ''
  278. this.deviceName = options.name || ''
  279. this.rssi = options.rssi || ''
  280. // TODO: 后续接口确定后实现 - 下载穴位列表
  281. // TODO: 后续接口确定后实现 - 下载专业模式推荐方案
  282. this.initAudio()
  283. this.initBle()
  284. },
  285. onUnload() {
  286. this.destroyAudio()
  287. this.disconnectBle()
  288. },
  289. methods: {
  290. goBack() {
  291. uni.navigateBack()
  292. },
  293. // 座椅角度控制 - 来自 l-sliderRange 组件
  294. onSliderAngleChange(val) {
  295. this.chairAngle = val
  296. this._sendAngleCommand()
  297. },
  298. _sendAngleCommand() {
  299. const angleMap = {
  300. 90: CHAIR_ANGLE.LEVEL_1,
  301. 105: CHAIR_ANGLE.LEVEL_2,
  302. 120: CHAIR_ANGLE.LEVEL_3,
  303. 135: CHAIR_ANGLE.LEVEL_4,
  304. 150: CHAIR_ANGLE.LEVEL_5
  305. }
  306. const level = angleMap[this.chairAngle] || CHAIR_ANGLE.LEVEL_1
  307. if (this.linked) {
  308. bleManager.setChairAngle(level).catch(e => console.error('setAngle fail', e))
  309. }
  310. }
  311. }
  312. }
  313. </script>
  314. <style>
  315. .infoBox {
  316. flex: 1;
  317. position: relative;
  318. background-image: linear-gradient(to bottom, rgba(56,149,136,1), rgba(56,149,136,0.5));
  319. }
  320. .pageBg {
  321. position: absolute;
  322. top: 0;
  323. left: 0;
  324. width: 750rpx;
  325. height: 1400rpx;
  326. }
  327. .pageContent {
  328. flex: 1;
  329. }
  330. .status-bar {
  331. background-color: rgba(0,0,0,0);
  332. }
  333. .customHead {
  334. flex-direction: row;
  335. justify-content: space-between;
  336. align-items: center;
  337. height: 88rpx;
  338. padding-left: 30rpx;
  339. padding-right: 30rpx;
  340. }
  341. .back-wrap {
  342. width: 50rpx;
  343. height: 50rpx;
  344. justify-content: center;
  345. align-items: center;
  346. }
  347. .backimg {
  348. width: 50rpx;
  349. height: 50rpx;
  350. }
  351. .customTitle {
  352. font-weight: bold;
  353. font-size: 32rpx;
  354. color: #FFFFFF;
  355. }
  356. .plus {
  357. width: 50rpx;
  358. height: 50rpx;
  359. justify-content: center;
  360. align-items: center;
  361. }
  362. .menuimg {
  363. width: 40rpx;
  364. height: 40rpx;
  365. }
  366. .boxs {
  367. flex: 1;
  368. }
  369. .proBox {
  370. align-items: center;
  371. padding-top: 30rpx;
  372. padding-bottom: 20rpx;
  373. }
  374. .proimg {
  375. width: 600rpx;
  376. height: 500rpx;
  377. }
  378. .pointbox {
  379. margin-top: 20rpx;
  380. align-items: center;
  381. }
  382. .pointContainer {
  383. background-color: #389588;
  384. border-radius: 20rpx;
  385. padding-left: 24rpx;
  386. padding-right: 24rpx;
  387. padding-top: 8rpx;
  388. padding-bottom: 8rpx;
  389. }
  390. .pointLabel {
  391. color: #FFFFFF;
  392. font-size: 24rpx;
  393. }
  394. .prostatus {
  395. margin-top: 20rpx;
  396. font-size: 26rpx;
  397. color: #FFFFFF;
  398. }
  399. /* 座椅角度 */
  400. .angleSection {
  401. padding-left: 38rpx;
  402. padding-right: 38rpx;
  403. padding-top: 20rpx;
  404. padding-bottom: 30rpx;
  405. }
  406. .angleLabel {
  407. font-size: 26rpx;
  408. color: #FFFFFF;
  409. margin-bottom: 10rpx;
  410. }
  411. /* 模式选择 */
  412. .controlMode {
  413. margin-left: 38rpx;
  414. margin-right: 38rpx;
  415. margin-top: 20rpx;
  416. background-color: rgba(255,255,255,0.9);
  417. border-radius: 16rpx;
  418. padding: 30rpx;
  419. }
  420. .modetxt {
  421. font-size: 28rpx;
  422. color: #9BA5B7;
  423. margin-bottom: 20rpx;
  424. }
  425. .modechange {
  426. flex-direction: row;
  427. justify-content: space-between;
  428. align-items: center;
  429. background-color: #389588;
  430. border-radius: 40rpx;
  431. padding-left: 30rpx;
  432. padding-right: 20rpx;
  433. padding-top: 20rpx;
  434. padding-bottom: 20rpx;
  435. }
  436. .modeName {
  437. font-size: 30rpx;
  438. font-weight: bold;
  439. color: #ffffff;
  440. }
  441. .changeBtn {
  442. flex-direction: row;
  443. align-items: center;
  444. }
  445. .changetxt {
  446. font-size: 26rpx;
  447. color: #389588;
  448. margin-right: 8rpx;
  449. }
  450. .changeinmg {
  451. width: 20px;
  452. height: 20px;
  453. }
  454. /* 其他功能 */
  455. .otherSetting {
  456. margin-left: 38rpx;
  457. margin-right: 38rpx;
  458. margin-top: 20rpx;
  459. }
  460. .otherTxt {
  461. font-size: 28rpx;
  462. color: #FFFFFF;
  463. margin-bottom: 20rpx;
  464. }
  465. .func {
  466. flex-direction: row;
  467. flex-wrap: wrap;
  468. }
  469. .funcitem {
  470. width: 200rpx;
  471. align-items: center;
  472. margin-bottom: 20rpx;
  473. }
  474. .funcimg {
  475. width: 80rpx;
  476. height: 80rpx;
  477. }
  478. .functxt {
  479. font-size: 24rpx;
  480. color: #FFFFFF;
  481. margin-top: 10rpx;
  482. }
  483. /* 自定义模式切换 */
  484. .modeChange {
  485. flex-direction: row;
  486. justify-content: center;
  487. margin-top: 30rpx;
  488. margin-bottom: 20rpx;
  489. }
  490. .modeBtn {
  491. width: 160rpx;
  492. height: 60rpx;
  493. background-color: #545F71;
  494. justify-content: center;
  495. align-items: center;
  496. border-radius: 30rpx;
  497. margin-left: 10rpx;
  498. margin-right: 10rpx;
  499. }
  500. .curBtn {
  501. background-color: #FFFFFF;
  502. }
  503. .modeBtnTxt {
  504. font-size: 26rpx;
  505. }
  506. /* 穴位图 */
  507. .acupointPic {
  508. position: relative;
  509. margin-left: 38rpx;
  510. margin-right: 38rpx;
  511. height: 700rpx;
  512. align-items: center;
  513. }
  514. .acupointBg {
  515. width: 300rpx;
  516. height: 650rpx;
  517. }
  518. .acupoint {
  519. position: absolute;
  520. width: 20rpx;
  521. height: 20rpx;
  522. background-color: #389588;
  523. border-radius: 20rpx;
  524. }
  525. .curAcupoint {
  526. background-color: #F65252;
  527. width: 28rpx;
  528. height: 28rpx;
  529. border-radius: 28rpx;
  530. }
  531. .tipsbox {
  532. position: absolute;
  533. background-color: #333;
  534. border-radius: 8rpx;
  535. padding-left: 12rpx;
  536. padding-right: 12rpx;
  537. padding-top: 6rpx;
  538. padding-bottom: 6rpx;
  539. }
  540. .tipsTxt {
  541. color: #FFFFFF;
  542. font-size: 22rpx;
  543. }
  544. /* 白噪音 */
  545. .musicCard {
  546. margin-left: 38rpx;
  547. margin-right: 38rpx;
  548. margin-top: 20rpx;
  549. background-color: rgba(255,255,255,0.9);
  550. border-radius: 16rpx;
  551. padding: 30rpx;
  552. height:100px;
  553. }
  554. .musicname {
  555. font-size: 28rpx;
  556. color: #545F71;
  557. font-weight: bold;
  558. margin-bottom: 20rpx;
  559. }
  560. .musliclist {
  561. flex-direction: row;
  562. flex-wrap: wrap;
  563. }
  564. .musictxt {
  565. font-size: 26rpx;
  566. color: #9BA5B7;
  567. padding-left: 24rpx;
  568. padding-right: 24rpx;
  569. padding-top: 12rpx;
  570. padding-bottom: 12rpx;
  571. margin-right: 20rpx;
  572. border-radius: 24rpx;
  573. background-color: #F5F7FA;
  574. }
  575. .current {
  576. background-color: #389588;
  577. color: #FFFFFF;
  578. }
  579. .musicPlayerFixed {
  580. position: fixed;
  581. left: 0;
  582. right: 0;
  583. bottom: 0;
  584. }
  585. .musicPlayer {
  586. flex-direction: row;
  587. justify-content: space-between;
  588. align-items: center;
  589. background-color: rgba(255,255,255,0.5);
  590. padding-left: 20rpx;
  591. padding-right: 20rpx;
  592. padding-top: 50px;
  593. padding-bottom: 40px;
  594. border-radius:16px 16px 0 0;
  595. }
  596. .leftbox {
  597. flex-direction: row;
  598. align-items: center;
  599. }
  600. .playerimg {
  601. width: 100rpx;
  602. height: 100rpx;
  603. border-radius: 12rpx;
  604. }
  605. .musicnamebox {
  606. margin-left: 16rpx;
  607. }
  608. .mtime {
  609. font-size: 28rpx;
  610. color: #545F71;
  611. }
  612. .rightbox {
  613. flex-direction: row;
  614. align-items: center;
  615. }
  616. .playBtn {
  617. width: 60rpx;
  618. height: 60rpx;
  619. justify-content: center;
  620. align-items: center;
  621. }
  622. .playericon {
  623. width: 28rpx;
  624. height: 28rpx;
  625. }
  626. .menuicon {
  627. width: 80rpx;
  628. height: 80rpx;
  629. margin-left: 20rpx;
  630. }
  631. /* 开始/暂停/停止 */
  632. .startbox {
  633. align-items: center;
  634. margin-top: 40rpx;
  635. padding-bottom: 40rpx;
  636. }
  637. .stop {
  638. align-items: center;
  639. }
  640. .startbtn {
  641. width: 120rpx;
  642. height: 120rpx;
  643. }
  644. .starttxt {
  645. font-size: 28rpx;
  646. color: #FFFFFF;
  647. margin-top: 10rpx;
  648. }
  649. .hot {
  650. flex-direction: row;
  651. align-items: center;
  652. justify-content: center;
  653. }
  654. .hotone {
  655. align-items: center;
  656. margin-right: 40rpx;
  657. }
  658. .hoting {
  659. font-size: 28rpx;
  660. color: #FFFFFF;
  661. }
  662. .unfire {
  663. color: #F65252;
  664. }
  665. .hotnum {
  666. font-size: 36rpx;
  667. color: #E0FFF8;
  668. font-weight: bold;
  669. margin-top: 8rpx;
  670. }
  671. .pausebox {
  672. align-items: center;
  673. margin-right: 40rpx;
  674. }
  675. .pauseimg {
  676. width: 80rpx;
  677. height: 80rpx;
  678. }
  679. .pausetxt {
  680. font-size: 24rpx;
  681. color: #FFFFFF;
  682. margin-top: 6rpx;
  683. }
  684. .stopbox {
  685. align-items: center;
  686. }
  687. .stopimg {
  688. width: 80rpx;
  689. height: 80rpx;
  690. }
  691. .stoptext {
  692. font-size: 24rpx;
  693. color: #F65252;
  694. margin-top: 6rpx;
  695. }
  696. .empty {
  697. height: 180rpx;
  698. }
  699. /* 弹框样式 */
  700. .tip1 {
  701. font-size: 28rpx;
  702. color: #545F71;
  703. text-align: center;
  704. margin-bottom: 10rpx;
  705. }
  706. .toptip {
  707. margin-top: 20rpx;
  708. font-weight: bold;
  709. }
  710. .confirmBtnWrap {
  711. margin-top: 30rpx;
  712. align-items: center;
  713. }
  714. .confirmBtn {
  715. font-size: 28rpx;
  716. color: #FFFFFF;
  717. background-color: #389588;
  718. border-radius: 40rpx;
  719. padding-left: 60rpx;
  720. padding-right: 60rpx;
  721. padding-top: 16rpx;
  722. padding-bottom: 16rpx;
  723. }
  724. .confirmTxt {
  725. font-size: 32rpx;
  726. color: #545F71;
  727. font-weight: bold;
  728. text-align: center;
  729. }
  730. .confirmBtns {
  731. flex-direction: row;
  732. justify-content: center;
  733. margin-top: 40rpx;
  734. }
  735. .cbtn {
  736. width: 240rpx;
  737. height: 80rpx;
  738. border-radius: 40rpx;
  739. justify-content: center;
  740. align-items: center;
  741. margin-left: 20rpx;
  742. margin-right: 20rpx;
  743. background-color: #F3F3F3;
  744. }
  745. .redbtn {
  746. background-color: #F65252;
  747. }
  748. .cbtnTxt {
  749. font-size: 28rpx;
  750. color: #545F71;
  751. }
  752. /* 模式选择弹框 */
  753. .modeList {
  754. margin-top: 10rpx;
  755. }
  756. .modeItem {
  757. flex-direction: row;
  758. justify-content: space-between;
  759. align-items: center;
  760. height: 100rpx;
  761. border-bottom-width: 1px;
  762. border-bottom-style: solid;
  763. border-bottom-color: #EEF1F4;
  764. }
  765. .modeItemTxt {
  766. font-size: 30rpx;
  767. color: #545F71;
  768. }
  769. .checkboxCustom {
  770. width: 36rpx;
  771. height: 36rpx;
  772. border-radius: 36rpx;
  773. border-width: 2px;
  774. border-style: solid;
  775. border-color: #389588;
  776. justify-content: center;
  777. align-items: center;
  778. }
  779. .checkboxCircle {
  780. width: 20rpx;
  781. height: 20rpx;
  782. border-radius: 20rpx;
  783. background-color: #389588;
  784. }
  785. /* 音乐弹窗 */
  786. .audiolists {
  787. margin-top: 10rpx;
  788. }
  789. .playname {
  790. font-size: 28rpx;
  791. color: #9BA5B7;
  792. margin-bottom: 20rpx;
  793. }
  794. .audiolist {
  795. flex-direction: row;
  796. justify-content: space-between;
  797. align-items: center;
  798. height: 90rpx;
  799. padding-left: 10rpx;
  800. padding-right: 10rpx;
  801. border-radius: 12rpx;
  802. }
  803. .curAudio {
  804. background-color: #F0F8F7;
  805. }
  806. .audioTxt {
  807. font-size: 30rpx;
  808. color: #545F71;
  809. }
  810. .signal-container {
  811. flex-direction: row;
  812. align-items: flex-end;
  813. }
  814. .signal-bar {
  815. width: 6rpx;
  816. margin-left: 4rpx;
  817. border-radius: 4rpx;
  818. background-color: #389588;
  819. }
  820. .bar1 {
  821. height: 16rpx;
  822. }
  823. .bar2 {
  824. height: 24rpx;
  825. }
  826. .bar3 {
  827. height: 32rpx;
  828. }
  829. /* 时间选择器 */
  830. .aijiuTime {
  831. font-size: 32rpx;
  832. color: #545F71;
  833. font-weight: bold;
  834. text-align: center;
  835. margin-bottom: 30rpx;
  836. }
  837. .timePickerRow {
  838. align-items: center;
  839. padding-top: 20rpx;
  840. padding-bottom: 20rpx;
  841. }
  842. .timePickerTxt {
  843. font-size: 32rpx;
  844. color: #545F71;
  845. }
  846. .timeBtns {
  847. flex-direction: row;
  848. justify-content: center;
  849. margin-top: 30rpx;
  850. }
  851. .tbtn {
  852. width: 240rpx;
  853. height: 80rpx;
  854. border-radius: 40rpx;
  855. justify-content: center;
  856. align-items: center;
  857. margin-left: 20rpx;
  858. margin-right: 20rpx;
  859. background-color: #F3F3F3;
  860. }
  861. .confirmBtn2 {
  862. background-color: #389588;
  863. }
  864. .tbtnTxt {
  865. font-size: 28rpx;
  866. color: #545F71;
  867. }
  868. .confirmBtn2Txt {
  869. color: #FFFFFF;
  870. }
  871. /* 重连遮罩 */
  872. .maskbg {
  873. position: fixed;
  874. left: 0;
  875. right: 0;
  876. top: 0;
  877. bottom: 0;
  878. background-color: rgba(0,0,0,0.6);
  879. justify-content: center;
  880. align-items: center;
  881. }
  882. .maskbox {
  883. background-color: #FFFFFF;
  884. border-radius: 16rpx;
  885. padding: 40rpx;
  886. }
  887. .maskTxt {
  888. font-size: 28rpx;
  889. color: #545F71;
  890. }
  891. </style>