deviceInfo.nvue 28 KB

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