deviceInfo.nvue 28 KB

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