deviceInfo.nvue 23 KB

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