deviceInfo.nvue 28 KB

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