deviceInfo.nvue 28 KB

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