deviceInfo.nvue 27 KB

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