deviceInfo.nvue 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186
  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">调试{{deviceType}}{{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+'&id='+id"
  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. deviceType:'',
  320. id:'',
  321. rssi: '',
  322. advertisData: '',
  323. isShowDrawer2: false,
  324. modelist: ['无艾灸模式', '专业模式', '自定义模式', '延年圣手模式'],
  325. currentUserName: '',
  326. groupId: '',
  327. profileId: ''
  328. }
  329. },
  330. computed: {
  331. _bleStore() {
  332. return useBleStore()
  333. },
  334. subTime() {
  335. return this._bleStore.subTime
  336. },
  337. modeType: {
  338. get() { return this._bleStore.modeType },
  339. set(val) { this._bleStore.modeType = val }
  340. },
  341. chairAngle: {
  342. get() { return this._bleStore.chairAngle },
  343. set(val) { this._bleStore.chairAngle = val }
  344. },
  345. otherSetting() {
  346. return this._bleStore.otherSetting
  347. }
  348. },
  349. onLoad(options) {
  350. const sysInfo = uni.getSystemInfoSync()
  351. this.statusBarHeight = sysInfo.statusBarHeight || 44
  352. this.deviceId = decodeURIComponent(options.deviceId || '')
  353. this.deviceName = decodeURIComponent(options.name || '')
  354. this.rssi = decodeURIComponent(options.rssi || '')
  355. this.id= decodeURIComponent(options.id || '')
  356. this.deviceType=decodeURIComponent(options.deviceType || '')
  357. this.advertisData = decodeURIComponent(options.advertisData || '')
  358. this.groupId = decodeURIComponent(options.groupId || '')
  359. this.profileId = decodeURIComponent(options.profileId || '')
  360. // TODO: 后续接口确定后实现 - 下载穴位列表
  361. // TODO: 后续接口确定后实现 - 下载专业模式推荐方案
  362. this.loadCurrentUser()
  363. this.initAudio()
  364. this.initBle()
  365. },
  366. onShow() {
  367. // 返回页面时刷新当前用户
  368. this.loadCurrentUser()
  369. },
  370. onUnload() {
  371. this.destroyAudio()
  372. // 离开页面时不断开蓝牙连接,仅停止扫描
  373. // 下次进入相同设备可复用连接
  374. this.cleanupOnLeave()
  375. },
  376. methods: {
  377. goBack() {
  378. // 自定义模式下穴位编辑视图,返回切回设备视图而非真正返回页面
  379. if (this.modeType == 2 && this.picMode == 2) {
  380. this.picMode = 1
  381. return
  382. }
  383. uni.navigateBack()
  384. },
  385. /** 加载当前用户信息 */
  386. loadCurrentUser() {
  387. uni.removeStorageSync('current_manage_user')
  388. const user = uni.getStorageSync('current_manage_user')
  389. if (user && user.name) {
  390. this.currentUserName = user.name
  391. } else {
  392. this.currentUserName = ''
  393. }
  394. },
  395. /** 跳转用户管理页 */
  396. goUserManage() {
  397. uni.navigateTo({
  398. url: '/pages/device/userManage/userManage?groupId=' + encodeURIComponent(this.groupId || '')
  399. })
  400. },
  401. // 座椅角度控制 - 来自 l-sliderRange 组件
  402. onSliderAngleChange(val) {
  403. this.chairAngle = val
  404. this._sendAngleCommand()
  405. },
  406. _sendAngleCommand() {
  407. const angleMap = {
  408. 90: CHAIR_ANGLE.LEVEL_1,
  409. 105: CHAIR_ANGLE.LEVEL_2,
  410. 120: CHAIR_ANGLE.LEVEL_3,
  411. 135: CHAIR_ANGLE.LEVEL_4,
  412. 150: CHAIR_ANGLE.LEVEL_5
  413. }
  414. const level = angleMap[this.chairAngle] || CHAIR_ANGLE.LEVEL_1
  415. if (this.linked) {
  416. this._bleStore.setChairAngle(level).catch(e => console.error('setAngle fail', e))
  417. }
  418. }
  419. }
  420. }
  421. </script>
  422. <style>
  423. .infoBox {
  424. flex: 1;
  425. position: relative;
  426. }
  427. .content-bg {
  428. position: absolute;
  429. left: 0;
  430. top: 0;
  431. width: 750rpx;
  432. height: 2000px;
  433. }
  434. .gradientBg {
  435. position: absolute;
  436. top: 0;
  437. left: 0;
  438. right: 0;
  439. bottom: 0;
  440. }
  441. .pageBg {
  442. position: absolute;
  443. top: 0;
  444. left: 0;
  445. width: 750rpx;
  446. height: 1400rpx;
  447. }
  448. .pageContent {
  449. flex: 1;
  450. background-image: linear-gradient(to bottom, rgba(56,149,136,1), rgba(56,149,136,0.5));
  451. /* background-color: #333; */
  452. }
  453. .status-bar {
  454. background-color: rgba(0,0,0,0);
  455. }
  456. .customHead {
  457. flex-direction: row;
  458. justify-content: space-between;
  459. align-items: center;
  460. height: 88rpx;
  461. padding-left: 30rpx;
  462. padding-right: 30rpx;
  463. }
  464. .back-wrap {
  465. width: 50rpx;
  466. height: 50rpx;
  467. justify-content: center;
  468. align-items: center;
  469. }
  470. .backimg {
  471. width: 50rpx;
  472. height: 50rpx;
  473. }
  474. .customTitle {
  475. font-weight: bold;
  476. font-size: 32rpx;
  477. color: #FFFFFF;
  478. }
  479. .plus {
  480. width: 50rpx;
  481. height: 50rpx;
  482. justify-content: center;
  483. align-items: center;
  484. }
  485. .menuimg {
  486. width: 40rpx;
  487. height: 40rpx;
  488. }
  489. .headRight {
  490. flex-direction: row;
  491. align-items: center;
  492. }
  493. .userSwitchBtn {
  494. background-color: rgba(255,255,255,0.2);
  495. border-radius: 24rpx;
  496. padding-left: 16rpx;
  497. padding-right: 16rpx;
  498. padding-top: 8rpx;
  499. padding-bottom: 8rpx;
  500. margin-right: 12rpx;
  501. }
  502. .userSwitchTxt {
  503. font-size: 24rpx;
  504. color: #FFFFFF;
  505. }
  506. .boxs {
  507. flex: 1;
  508. }
  509. .proBox {
  510. align-items: center;
  511. padding-top: 30rpx;
  512. padding-bottom: 20rpx;
  513. }
  514. .proimg {
  515. width: 600rpx;
  516. height: 500rpx;
  517. }
  518. .pointbox {
  519. margin-top: 20rpx;
  520. align-items: center;
  521. }
  522. .pointContainer {
  523. background-color: #389588;
  524. border-radius: 20rpx;
  525. padding-left: 24rpx;
  526. padding-right: 24rpx;
  527. padding-top: 8rpx;
  528. padding-bottom: 8rpx;
  529. }
  530. .pointLabel {
  531. color: #FFFFFF;
  532. font-size: 24rpx;
  533. }
  534. .prostatus {
  535. margin-top: 20rpx;
  536. font-size: 26rpx;
  537. color: #FFFFFF;
  538. }
  539. /* 座椅角度 */
  540. .angleSection {
  541. padding-left: 38rpx;
  542. padding-right: 38rpx;
  543. padding-top: 20rpx;
  544. padding-bottom: 30rpx;
  545. }
  546. .angleLabel {
  547. font-size: 26rpx;
  548. color: #FFFFFF;
  549. margin-bottom: 10rpx;
  550. }
  551. /* 模式选择 */
  552. .controlMode {
  553. margin-left: 38rpx;
  554. margin-right: 38rpx;
  555. margin-top: 20rpx;
  556. background-color: rgba(255,255,255,0.9);
  557. border-radius: 16rpx;
  558. padding: 30rpx;
  559. }
  560. .modetxt {
  561. font-size: 28rpx;
  562. color: #9BA5B7;
  563. margin-bottom: 20rpx;
  564. }
  565. .modechange {
  566. flex-direction: row;
  567. justify-content: space-between;
  568. align-items: center;
  569. background-color: #389588;
  570. border-radius: 40rpx;
  571. padding-left: 30rpx;
  572. padding-right: 20rpx;
  573. padding-top: 20rpx;
  574. padding-bottom: 20rpx;
  575. }
  576. .modeName {
  577. font-size: 30rpx;
  578. font-weight: bold;
  579. color: #ffffff;
  580. }
  581. .changeBtn {
  582. flex-direction: row;
  583. align-items: center;
  584. }
  585. .changetxt {
  586. font-size: 26rpx;
  587. color: #389588;
  588. margin-right: 8rpx;
  589. }
  590. .changeinmg {
  591. width: 20px;
  592. height: 20px;
  593. }
  594. /* 其他功能 */
  595. .otherSetting {
  596. margin-left: 38rpx;
  597. margin-right: 38rpx;
  598. margin-top: 20rpx;
  599. background-color: #ffffff;
  600. border-radius: 16rpx;
  601. padding: 30rpx;
  602. }
  603. .otherTxt {
  604. font-size: 28rpx;
  605. color: #9BA5B7;
  606. margin-bottom: 20rpx;
  607. }
  608. .func {
  609. flex-direction: row;
  610. flex-wrap: wrap;
  611. }
  612. .funcitem {
  613. width: 200rpx;
  614. align-items: center;
  615. margin-bottom: 20rpx;
  616. }
  617. .funcimg {
  618. width: 60rpx;
  619. height: 60rpx;
  620. }
  621. .functxt {
  622. font-size: 24rpx;
  623. color: #9BA5B7;
  624. margin-top: 10rpx;
  625. }
  626. /* 自定义模式切换 */
  627. .modeChange {
  628. flex-direction: row;
  629. justify-content: center;
  630. margin-top: 30rpx;
  631. margin-bottom: 20rpx;
  632. }
  633. .modeBtn {
  634. width: 160rpx;
  635. height: 60rpx;
  636. background-color: #545F71;
  637. justify-content: center;
  638. align-items: center;
  639. border-radius: 30rpx;
  640. margin-left: 10rpx;
  641. margin-right: 10rpx;
  642. }
  643. .curBtn {
  644. background-color: #FFFFFF;
  645. }
  646. .modeBtnTxt {
  647. font-size: 26rpx;
  648. }
  649. /* 穴位图 */
  650. .acupointPic {
  651. position: relative;
  652. margin-left: 38rpx;
  653. margin-right: 38rpx;
  654. height: 700rpx;
  655. align-items: center;
  656. }
  657. .acupointBg {
  658. width: 300rpx;
  659. height: 650rpx;
  660. }
  661. .acupoint {
  662. position: absolute;
  663. width: 20rpx;
  664. height: 20rpx;
  665. background-color: #389588;
  666. border-radius: 20rpx;
  667. }
  668. .curAcupoint {
  669. background-color: #F65252;
  670. width: 28rpx;
  671. height: 28rpx;
  672. border-radius: 28rpx;
  673. }
  674. .tipsbox {
  675. position: absolute;
  676. background-color: #333;
  677. border-radius: 8rpx;
  678. padding-left: 12rpx;
  679. padding-right: 12rpx;
  680. padding-top: 6rpx;
  681. padding-bottom: 6rpx;
  682. }
  683. .tipsTxt {
  684. color: #FFFFFF;
  685. font-size: 22rpx;
  686. }
  687. /* 白噪音 */
  688. .musicCard {
  689. margin-left: 38rpx;
  690. margin-right: 38rpx;
  691. margin-top: 20rpx;
  692. background-color: rgba(255,255,255,0.9);
  693. border-radius: 16rpx;
  694. padding: 30rpx;
  695. height:100px;
  696. }
  697. .musicname {
  698. font-size: 28rpx;
  699. color: #545F71;
  700. font-weight: bold;
  701. margin-bottom: 20rpx;
  702. }
  703. .musliclist {
  704. flex-direction: row;
  705. flex-wrap: wrap;
  706. }
  707. .musictxt {
  708. font-size: 26rpx;
  709. color: #9BA5B7;
  710. padding-left: 24rpx;
  711. padding-right: 24rpx;
  712. padding-top: 12rpx;
  713. padding-bottom: 12rpx;
  714. margin-right: 20rpx;
  715. border-radius: 24rpx;
  716. background-color: #F5F7FA;
  717. }
  718. .current {
  719. background-color: #389588;
  720. color: #FFFFFF;
  721. }
  722. .musicPlayerFixed {
  723. position: fixed;
  724. left: 0;
  725. right: 0;
  726. bottom: 0;
  727. }
  728. .musicPlayer {
  729. flex-direction: row;
  730. justify-content: space-between;
  731. align-items: center;
  732. background-color: rgba(255,255,255,0.5);
  733. padding-left: 20rpx;
  734. padding-right: 20rpx;
  735. padding-top: 50px;
  736. padding-bottom: 40px;
  737. border-radius:16px 16px 0 0;
  738. }
  739. .leftbox {
  740. flex-direction: row;
  741. align-items: center;
  742. }
  743. .playerimg {
  744. width: 100rpx;
  745. height: 100rpx;
  746. border-radius: 12rpx;
  747. }
  748. .musicnamebox {
  749. margin-left: 16rpx;
  750. }
  751. .mtime {
  752. font-size: 28rpx;
  753. color: #545F71;
  754. }
  755. .rightbox {
  756. flex-direction: row;
  757. align-items: center;
  758. }
  759. .playBtn {
  760. width: 60rpx;
  761. height: 60rpx;
  762. justify-content: center;
  763. align-items: center;
  764. }
  765. .playericon {
  766. width: 28rpx;
  767. height: 28rpx;
  768. }
  769. .menuicon {
  770. width: 80rpx;
  771. height: 80rpx;
  772. margin-left: 20rpx;
  773. }
  774. /* 开始/暂停/停止 */
  775. .startbox {
  776. align-items: center;
  777. margin-top: 40rpx;
  778. padding-bottom: 40rpx;
  779. }
  780. .stop {
  781. align-items: center;
  782. }
  783. .startbtn {
  784. width: 120rpx;
  785. height: 120rpx;
  786. }
  787. .starttxt {
  788. font-size: 28rpx;
  789. color: #FFFFFF;
  790. margin-top: 10rpx;
  791. }
  792. .hot {
  793. flex-direction: row;
  794. align-items: center;
  795. justify-content: space-between;
  796. align-self: stretch;
  797. padding: 0 80rpx;
  798. }
  799. .hotone {
  800. align-items: center;
  801. margin-right: 40rpx;
  802. }
  803. .hoting {
  804. font-size: 28rpx;
  805. color: #FFFFFF;
  806. }
  807. .unfire {
  808. color: #F65252;
  809. }
  810. .hotnum {
  811. font-size: 36rpx;
  812. color: #E0FFF8;
  813. font-weight: bold;
  814. margin-top: 8rpx;
  815. }
  816. .pausebox {
  817. align-items: center;
  818. margin-right: 40rpx;
  819. }
  820. .pauseimg {
  821. width: 80rpx;
  822. height: 80rpx;
  823. }
  824. .pausetxt {
  825. font-size: 24rpx;
  826. color: #FFFFFF;
  827. margin-top: 6rpx;
  828. }
  829. .stopbox {
  830. align-items: center;
  831. }
  832. .stopimg {
  833. width: 80rpx;
  834. height: 80rpx;
  835. }
  836. .stoptext {
  837. font-size: 24rpx;
  838. color: #F65252;
  839. margin-top: 6rpx;
  840. }
  841. .empty {
  842. height: 180rpx;
  843. }
  844. /* 方案选择区 */
  845. .planSection {
  846. margin-left: 38rpx;
  847. margin-right: 38rpx;
  848. margin-top: 20rpx;
  849. background-color: rgba(255,255,255,0.9);
  850. border-radius: 16rpx;
  851. padding: 30rpx;
  852. }
  853. .planSectionTitle {
  854. font-size: 28rpx;
  855. color: #9BA5B7;
  856. margin-bottom: 16rpx;
  857. }
  858. .planCard {
  859. flex-direction: row;
  860. justify-content: space-between;
  861. align-items: center;
  862. background-color: #389588;
  863. border-radius: 40rpx;
  864. padding-left: 30rpx;
  865. padding-right: 24rpx;
  866. padding-top: 20rpx;
  867. padding-bottom: 20rpx;
  868. }
  869. .planCardLeft {
  870. flex: 1;
  871. }
  872. .planCardName {
  873. font-size: 30rpx;
  874. font-weight: bold;
  875. color: #FFFFFF;
  876. }
  877. .planCardDesc {
  878. font-size: 22rpx;
  879. color: rgba(255,255,255,0.7);
  880. margin-top: 6rpx;
  881. }
  882. .planCardRight {
  883. width: 40rpx;
  884. align-items: center;
  885. }
  886. .planCardArrow {
  887. font-size: 40rpx;
  888. color: #FFFFFF;
  889. }
  890. /* 方案选择弹框 */
  891. .planDrawerTitle {
  892. font-size: 32rpx;
  893. color: #545F71;
  894. font-weight: bold;
  895. text-align: center;
  896. }
  897. .planDrawerSub {
  898. font-size: 24rpx;
  899. color: #9BA5B7;
  900. text-align: center;
  901. margin-top: 8rpx;
  902. margin-bottom: 24rpx;
  903. }
  904. .planDrawerList {
  905. max-height: 600rpx;
  906. }
  907. .planDrawerEmpty {
  908. align-items: center;
  909. padding-top: 60rpx;
  910. padding-bottom: 60rpx;
  911. }
  912. .planEmptyTxt {
  913. font-size: 28rpx;
  914. color: #9BA5B7;
  915. }
  916. .planItem {
  917. flex-direction: row;
  918. justify-content: space-between;
  919. align-items: center;
  920. padding-left: 20rpx;
  921. padding-right: 20rpx;
  922. padding-top: 24rpx;
  923. padding-bottom: 24rpx;
  924. border-bottom-width: 1px;
  925. border-bottom-style: solid;
  926. border-bottom-color: #EEF1F4;
  927. border-radius: 12rpx;
  928. }
  929. .planItemActive {
  930. background-color: #F0F8F7;
  931. }
  932. .planItemInfo {
  933. flex: 1;
  934. margin-right: 20rpx;
  935. }
  936. .planItemName {
  937. font-size: 30rpx;
  938. color: #545F71;
  939. font-weight: bold;
  940. }
  941. .planItemDesc {
  942. font-size: 24rpx;
  943. color: #9BA5B7;
  944. margin-top: 8rpx;
  945. }
  946. .planItemMeta {
  947. flex-direction: row;
  948. margin-top: 10rpx;
  949. }
  950. .planMetaTxt {
  951. font-size: 22rpx;
  952. color: #389588;
  953. margin-right: 20rpx;
  954. background-color: rgba(56,149,136,0.1);
  955. padding-left: 12rpx;
  956. padding-right: 12rpx;
  957. padding-top: 4rpx;
  958. padding-bottom: 4rpx;
  959. border-radius: 8rpx;
  960. }
  961. .planItemCheck {
  962. width: 50rpx;
  963. align-items: center;
  964. }
  965. /* 弹框样式 */
  966. .tip1 {
  967. font-size: 28rpx;
  968. color: #545F71;
  969. text-align: center;
  970. margin-bottom: 10rpx;
  971. }
  972. .toptip {
  973. margin-top: 20rpx;
  974. font-weight: bold;
  975. }
  976. .confirmBtnWrap {
  977. margin-top: 30rpx;
  978. align-items: center;
  979. }
  980. .confirmBtn {
  981. font-size: 28rpx;
  982. color: #FFFFFF;
  983. background-color: #389588;
  984. border-radius: 40rpx;
  985. padding-left: 60rpx;
  986. padding-right: 60rpx;
  987. padding-top: 16rpx;
  988. padding-bottom: 16rpx;
  989. }
  990. .confirmTxt {
  991. font-size: 32rpx;
  992. color: #545F71;
  993. font-weight: bold;
  994. text-align: center;
  995. }
  996. .confirmBtns {
  997. flex-direction: row;
  998. justify-content: center;
  999. margin-top: 40rpx;
  1000. }
  1001. .cbtn {
  1002. width: 240rpx;
  1003. height: 80rpx;
  1004. border-radius: 40rpx;
  1005. justify-content: center;
  1006. align-items: center;
  1007. margin-left: 20rpx;
  1008. margin-right: 20rpx;
  1009. background-color: #F3F3F3;
  1010. }
  1011. .redbtn {
  1012. background-color: #F65252;
  1013. }
  1014. .cbtnTxt {
  1015. font-size: 28rpx;
  1016. color: #545F71;
  1017. }
  1018. /* 模式选择弹框 */
  1019. .modeList {
  1020. margin-top: 10rpx;
  1021. }
  1022. .modeItem {
  1023. flex-direction: row;
  1024. justify-content: space-between;
  1025. align-items: center;
  1026. height: 100rpx;
  1027. border-bottom-width: 1px;
  1028. border-bottom-style: solid;
  1029. border-bottom-color: #EEF1F4;
  1030. }
  1031. .modeItemTxt {
  1032. font-size: 30rpx;
  1033. color: #545F71;
  1034. }
  1035. .checkboxCustom {
  1036. width: 36rpx;
  1037. height: 36rpx;
  1038. border-radius: 36rpx;
  1039. border-width: 2px;
  1040. border-style: solid;
  1041. border-color: #389588;
  1042. justify-content: center;
  1043. align-items: center;
  1044. }
  1045. .checkboxCircle {
  1046. width: 20rpx;
  1047. height: 20rpx;
  1048. border-radius: 20rpx;
  1049. background-color: #389588;
  1050. }
  1051. /* 音乐弹窗 */
  1052. .audiolists {
  1053. margin-top: 10rpx;
  1054. }
  1055. .playname {
  1056. font-size: 28rpx;
  1057. color: #9BA5B7;
  1058. margin-bottom: 20rpx;
  1059. }
  1060. .audiolist {
  1061. flex-direction: row;
  1062. justify-content: space-between;
  1063. align-items: center;
  1064. height: 90rpx;
  1065. padding-left: 10rpx;
  1066. padding-right: 10rpx;
  1067. border-radius: 12rpx;
  1068. }
  1069. .curAudio {
  1070. background-color: #F0F8F7;
  1071. }
  1072. .audioTxt {
  1073. font-size: 30rpx;
  1074. color: #545F71;
  1075. }
  1076. .signal-container {
  1077. flex-direction: row;
  1078. align-items: flex-end;
  1079. }
  1080. .signal-bar {
  1081. width: 6rpx;
  1082. margin-left: 4rpx;
  1083. border-radius: 4rpx;
  1084. background-color: #389588;
  1085. }
  1086. .bar1 {
  1087. height: 16rpx;
  1088. }
  1089. .bar2 {
  1090. height: 24rpx;
  1091. }
  1092. .bar3 {
  1093. height: 32rpx;
  1094. }
  1095. /* 时间选择器 */
  1096. .aijiuTime {
  1097. font-size: 32rpx;
  1098. color: #545F71;
  1099. font-weight: bold;
  1100. text-align: center;
  1101. margin-bottom: 30rpx;
  1102. }
  1103. .timePickerRow {
  1104. align-items: center;
  1105. padding-top: 20rpx;
  1106. padding-bottom: 20rpx;
  1107. }
  1108. .timePickerTxt {
  1109. font-size: 32rpx;
  1110. color: #545F71;
  1111. }
  1112. .timeBtns {
  1113. flex-direction: row;
  1114. justify-content: center;
  1115. margin-top: 30rpx;
  1116. }
  1117. .tbtn {
  1118. width: 240rpx;
  1119. height: 80rpx;
  1120. border-radius: 40rpx;
  1121. justify-content: center;
  1122. align-items: center;
  1123. margin-left: 20rpx;
  1124. margin-right: 20rpx;
  1125. background-color: #F3F3F3;
  1126. }
  1127. .confirmBtn2 {
  1128. background-color: #389588;
  1129. }
  1130. .tbtnTxt {
  1131. font-size: 28rpx;
  1132. color: #545F71;
  1133. }
  1134. .confirmBtn2Txt {
  1135. color: #FFFFFF;
  1136. }
  1137. /* 重连遮罩 */
  1138. .maskbg {
  1139. position: fixed;
  1140. left: 0;
  1141. right: 0;
  1142. top: 0;
  1143. bottom: 0;
  1144. background-color: rgba(0,0,0,0.6);
  1145. justify-content: center;
  1146. align-items: center;
  1147. }
  1148. .maskbox {
  1149. background-color: #FFFFFF;
  1150. border-radius: 16rpx;
  1151. padding: 40rpx;
  1152. }
  1153. .maskTxt {
  1154. font-size: 28rpx;
  1155. color: #545F71;
  1156. }
  1157. </style>