deviceInfo.nvue 28 KB

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