detail.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. <template>
  2. <view class="detail-page">
  3. <cu-custom isBack="true" bgColor="#000000">
  4. <view slot="content" style="color: #FFFFFF">UU睡眠</view>
  5. </cu-custom>
  6. <scroll-view class="tab" id="tab" :show-scrollbar="false" :scroll-x="true" :scroll-into-view="tabScrollInto">
  7. <view class="tabContent" style="display: flex; flex-direction: column;">
  8. <view style="display: flex;flex-direction: row;">
  9. <view class="tabItem" v-for="(tab,tabItemIndex) in tabList" :key="tab.id" :id="tab.id" :data-id="tabItemIndex"
  10. :data-current="tabItemIndex" @click="pressScrollViewItem">
  11. <text class="tabItemTitle"
  12. :class="tabIndex==tabItemIndex ? 'tabItemTitleActive' : ''"
  13. :style="{width:tabList[tabItemIndex].width + 'px'}"
  14. >{{tab.title}}</text>
  15. </view>
  16. </view>
  17. <view class="tabLineView">
  18. <!-- <view class="tabLine" :class="isPress ? 'tabLineActive':'tabLineActive'" -->
  19. <!-- :style="{left: tabItemLineLeft + 'px', width: tabItemLineWidth + 'px'}"></view> -->
  20. </view>
  21. </view>
  22. </scroll-view>
  23. <swiper class="childPageView" :current="tabIndex" :duration="250" @change="swiperChange"
  24. @animationfinish="swiperChangeEnd" @onAnimationEnd="swiperChangeEnd" :style="{height: swiperHeight+'px'}">
  25. <swiper-item class="childPageViewItem" v-for="(page, childPageViewItemIndex) in tabList" :key="childPageViewItemIndex">
  26. <scroll-view v-if="childPageViewItemIndex == 0" scroll-y="true" :style="{height: swiperHeight+'px'}">
  27. <view class="tab-detail">
  28. <view class="title-tab-detail">睡眠效率</view>
  29. <view class="flex-col data-tab-detail">
  30. <view class="justify-between header-data-tab flex-row">
  31. <text class="self-start">睡眠效率0%</text>
  32. <text class="self-end">较差</text>
  33. </view>
  34. <view class="justify-between flex-row middle-tab-detail">
  35. <view class="self-start">
  36. <view class="text-middle-tab">昨天 暂无</view>
  37. <view class="text-middle-tab">前天 暂无</view>
  38. </view>
  39. <image
  40. src="../../static/report/reportAlertBg.png"
  41. class="self-end image-middle-tab"
  42. />
  43. </view>
  44. <text class="footer-tab-detail">注:睡眠效率=睡眠总时长/在床时间</text>
  45. </view>
  46. <view class="justify-between flex-row tip-tab-detail">
  47. <image
  48. class="image-tip-tab self-end"
  49. src="../../static/mine/myAvatar.png" />
  50. <view class="text-tip-tab flex-auto">
  51. <text class="title-tip-tab">睡眠小贴士</text>
  52. <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
  53. 1.聆听平淡而有节律的睡眠音乐
  54. 2. 睡前喝一杯加糖的热牛奶
  55. 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
  56. 趴着睡)
  57. 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
  58. </text>
  59. </view>
  60. </view>
  61. <view class="post-tab-detail">
  62. <div class="title-post-tab">健康小知识</div>
  63. <image
  64. class="image-post-tab"
  65. src="../../static/report/reportAlertBg.png"
  66. />
  67. <div class="content-post-tab">
  68. 提高睡眠效率的方法
  69. 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
  70. 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
  71. 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
  72. </div>
  73. </view>
  74. </view>
  75. </scroll-view>
  76. <scroll-view v-if="childPageViewItemIndex == 1" scroll-y="true" :style="{height: swiperHeight+'px'}">
  77. <view class="tab-detail">
  78. <view class="justify-between flex-row">
  79. <view class="title-tab-detail">深浅睡眠</view>
  80. <view class="subtile-tab-detail self-end">平均心率61次/分</view>
  81. </view>
  82. <view class="charts-sleep-item"></view>
  83. <view class="data-sleep-item">
  84. <view class="date-sleep-item">2023.06.12</view>
  85. <view class="flex-row justify-between">
  86. <view>清醒:0H10M</view>
  87. <view>清醒:0H10M</view>
  88. <view>清醒:0H10M</view>
  89. <view>清醒:0H10M</view>
  90. </view>
  91. </view>
  92. <view class="data-sleep-item">
  93. <view class="date-sleep-item">2023.06.12</view>
  94. <view class="flex-row justify-between">
  95. <view>清醒:0H10M</view>
  96. <view>清醒:0H10M</view>
  97. <view>清醒:0H10M</view>
  98. <view>清醒:0H10M</view>
  99. </view>
  100. </view>
  101. <view class="data-sleep-item">
  102. <view class="date-sleep-item">2023.06.12</view>
  103. <view class="flex-row justify-between">
  104. <view>清醒:0H10M</view>
  105. <view>清醒:0H10M</view>
  106. <view>清醒:0H10M</view>
  107. <view>清醒:0H10M</view>
  108. </view>
  109. </view>
  110. <view class="justify-between flex-row tip-tab-detail">
  111. <image
  112. class="image-tip-tab self-end"
  113. src="../../static/mine/myAvatar.png" />
  114. <view class="text-tip-tab flex-auto">
  115. <text class="title-tip-tab">睡眠小贴士</text>
  116. <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
  117. 1.聆听平淡而有节律的睡眠音乐
  118. 2. 睡前喝一杯加糖的热牛奶
  119. 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
  120. 趴着睡)
  121. 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
  122. </text>
  123. </view>
  124. </view>
  125. <view class="post-tab-detail">
  126. <div class="title-post-tab">健康小知识</div>
  127. <image
  128. class="image-post-tab"
  129. src="../../static/report/reportAlertBg.png"
  130. />
  131. <div class="content-post-tab">
  132. 提高睡眠效率的方法
  133. 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
  134. 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
  135. 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
  136. </div>
  137. </view>
  138. </view>
  139. </scroll-view>
  140. <scroll-view v-if="childPageViewItemIndex == 2" scroll-y="true" :style="{height: swiperHeight+'px'}">
  141. <view class="tab-detail">
  142. <view class="title-tab-detail">安稳度</view>
  143. <view class="flex-col data-tab-detail">
  144. <view class="justify-between header-data-tab flex-row">
  145. <text class="self-start">入睡时长</text>
  146. </view>
  147. <view class="justify-between flex-row middle-tab-detail">
  148. <view class="self-start">
  149. <view class="text-middle-tab">今日 10m</view>
  150. <view class="text-middle-tab">昨天 暂无</view>
  151. <view class="text-middle-tab">前天 暂无</view>
  152. </view>
  153. <image
  154. src="../../static/report/reportAlertBg.png"
  155. class="self-end image-middle-tab"
  156. />
  157. </view>
  158. </view>
  159. <view class="flex-col data-tab-detail">
  160. <view class="justify-between header-data-tab flex-row">
  161. <text class="self-start">离床次数</text>
  162. </view>
  163. <view class="flex-row justify-between data-sleep-condition">
  164. <view class="flex-col align-start item-sleep-condition">
  165. <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
  166. <text class="subtitle-sleep-condition">入睡前:0次</text>
  167. <text class="subtitle-sleep-condition">入睡后:0次</text>
  168. </view>
  169. <view class="flex-col align-start item-sleep-condition">
  170. <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
  171. <text class="subtitle-sleep-condition">入睡前:0次</text>
  172. <text class="subtitle-sleep-condition">入睡后:0次</text>
  173. </view>
  174. <view class="flex-col align-start item-sleep-condition">
  175. <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
  176. <text class="subtitle-sleep-condition">入睡前:0次</text>
  177. <text class="subtitle-sleep-condition">入睡后:0次</text>
  178. </view>
  179. <image
  180. src="../../static/report/reportAlertBg.png"
  181. class="image-sleep-condition self-baseline"
  182. />
  183. </view>
  184. </view>
  185. <view class="flex-col data-tab-detail">
  186. <view class="justify-between header-data-tab flex-row">
  187. <text class="self-start">体动次数</text>
  188. </view>
  189. <view class="flex-row justify-between data-sleep-condition">
  190. <view class="flex-col align-start item-sleep-condition">
  191. <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
  192. <text class="subtitle-sleep-condition">入睡前:0次</text>
  193. <text class="subtitle-sleep-condition">入睡后:0次</text>
  194. </view>
  195. <view class="flex-col align-start item-sleep-condition">
  196. <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
  197. <text class="subtitle-sleep-condition">入睡前:0次</text>
  198. <text class="subtitle-sleep-condition">入睡后:0次</text>
  199. </view>
  200. <view class="flex-col align-start item-sleep-condition">
  201. <text class="title-sleep-condition class="subtitle-sleep-condition>今天</text>
  202. <text class="subtitle-sleep-condition">入睡前:0次</text>
  203. <text class="subtitle-sleep-condition">入睡后:0次</text>
  204. </view>
  205. <image
  206. src="../../static/report/reportAlertBg.png"
  207. class="image-sleep-condition self-baseline"
  208. />
  209. </view>
  210. </view>
  211. <view class="justify-between flex-row tip-tab-detail">
  212. <image
  213. class="image-tip-tab self-end"
  214. src="../../static/mine/myAvatar.png" />
  215. <view class="text-tip-tab flex-auto">
  216. <text class="title-tip-tab">睡眠小贴士</text>
  217. <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
  218. 1.聆听平淡而有节律的睡眠音乐
  219. 2. 睡前喝一杯加糖的热牛奶
  220. 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
  221. 趴着睡)
  222. 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
  223. </text>
  224. </view>
  225. </view>
  226. <view class="post-tab-detail">
  227. <div class="title-post-tab">健康小知识</div>
  228. <image
  229. class="image-post-tab"
  230. src="../../static/report/reportAlertBg.png"
  231. />
  232. <div class="content-post-tab">
  233. 提高睡眠效率的方法
  234. 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
  235. 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
  236. 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
  237. </div>
  238. </view>
  239. </view>
  240. </scroll-view>
  241. <scroll-view v-if="childPageViewItemIndex == 3" scroll-y="true" :style="{height: swiperHeight+'px'}">
  242. <view class="tab-detail">
  243. <view class="justify-between flex-row">
  244. <view class="title-tab-detail">心率</view>
  245. <view class="subtile-tab-detail self-end">平均心率61次/分</view>
  246. </view>
  247. <view class="charts-sleep-item"></view>
  248. <view class="data-sleep-item">
  249. <view class="date-sleep-item">2023.06.12</view>
  250. <view class="flex-row justify-between">
  251. <view>最高心率:76</view>
  252. <view>最低心率:30</view>
  253. <view>平均心率:66</view>
  254. </view>
  255. </view>
  256. <view class="data-sleep-item">
  257. <view class="date-sleep-item">2023.06.12</view>
  258. <view class="flex-row justify-between">
  259. <view>最高心率:76</view>
  260. <view>最低心率:30</view>
  261. <view>平均心率:66</view>
  262. </view>
  263. </view>
  264. <view class="data-sleep-item">
  265. <view class="date-sleep-item">2023.06.12</view>
  266. <view class="flex-row justify-between">
  267. <view>最高心率:76</view>
  268. <view>最低心率:30</view>
  269. <view>平均心率: 66</view>
  270. </view>
  271. </view>
  272. <view class="justify-between flex-row tip-tab-detail">
  273. <image
  274. class="image-tip-tab self-end"
  275. src="../../static/mine/myAvatar.png" />
  276. <view class="text-tip-tab flex-auto">
  277. <text class="title-tip-tab">睡眠小贴士</text>
  278. <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
  279. 1.聆听平淡而有节律的睡眠音乐
  280. 2. 睡前喝一杯加糖的热牛奶
  281. 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
  282. 趴着睡)
  283. 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
  284. </text>
  285. </view>
  286. </view>
  287. <view class="post-tab-detail">
  288. <div class="title-post-tab">健康小知识</div>
  289. <image
  290. class="image-post-tab"
  291. src="../../static/report/reportAlertBg.png"
  292. />
  293. <div class="content-post-tab">
  294. 提高睡眠效率的方法
  295. 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
  296. 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
  297. 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
  298. </div>
  299. </view>
  300. </view>
  301. </scroll-view>
  302. <scroll-view v-if="childPageViewItemIndex == 4" scroll-y="true" :style="{height: swiperHeight+'px'}">
  303. <view class="tab-detail">
  304. <view class="justify-between flex-row">
  305. <view class="title-tab-detail">呼吸率</view>
  306. <view class="subtile-tab-detail self-end">平均呼吸率12次/分</view>
  307. </view>
  308. <view class="charts-sleep-item">
  309. </view>
  310. <view class="data-sleep-item">
  311. <view class="date-sleep-item">2023.06.12</view>
  312. <view class="flex-row justify-between">
  313. <view>最高呼吸率:19</view>
  314. <view>最低呼吸率:2</view>
  315. <view>平均呼吸率:10</view>
  316. </view>
  317. </view>
  318. <view class="data-sleep-item">
  319. <view class="date-sleep-item">2023.06.12</view>
  320. <view class="flex-row justify-between">
  321. <view>最高呼吸率:19</view>
  322. <view>最低呼吸率:2</view>
  323. <view>平均呼吸率:10</view>
  324. </view>
  325. </view>
  326. <view class="data-sleep-item">
  327. <view class="date-sleep-item">2023.06.12</view>
  328. <view class="flex-row justify-between">
  329. <view>最高呼吸率:19</view>
  330. <view>最低呼吸率:2</view>
  331. <view>平均呼吸率:10</view>
  332. </view>
  333. </view>
  334. <view class="justify-between flex-row tip-tab-detail">
  335. <image
  336. class="image-tip-tab self-end"
  337. src="../../static/mine/myAvatar.png" />
  338. <view class="text-tip-tab flex-auto">
  339. <text class="title-tip-tab">睡眠小贴士</text>
  340. <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
  341. 1.聆听平淡而有节律的睡眠音乐
  342. 2. 睡前喝一杯加糖的热牛奶
  343. 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
  344. 趴着睡)
  345. 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
  346. </text>
  347. </view>
  348. </view>
  349. <view class="post-tab-detail">
  350. <div class="title-post-tab">健康小知识</div>
  351. <image
  352. class="image-post-tab"
  353. src="../../static/report/reportAlertBg.png"
  354. />
  355. <div class="content-post-tab">
  356. 提高睡眠效率的方法
  357. 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
  358. 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
  359. 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
  360. </div>
  361. </view>
  362. </view>
  363. </scroll-view>
  364. <scroll-view v-if="childPageViewItemIndex == 5" scroll-y="true" :style="{height: swiperHeight+'px'}">
  365. <view class="tab-detail">
  366. <view class="title-tab-detail">异常状况</view>
  367. <view class="charts-sleep-item"></view>
  368. <view class="flex-col data-tab-detail">
  369. <view class="justify-between header-data-tab flex-row">
  370. <text class="self-start">疑似呼吸暂停</text>
  371. </view>
  372. <view class="justify-between flex-row middle-tab-detail">
  373. <view class="self-start">
  374. <view class="text-middle-tab">今日 10m</view>
  375. <view class="text-middle-tab">昨天 暂无</view>
  376. <view class="text-middle-tab">前天 暂无</view>
  377. </view>
  378. <image
  379. src="../../static/report/reportAlertBg.png"
  380. class="self-end image-middle-tab"
  381. />
  382. </view>
  383. </view>
  384. <view class="justify-between flex-row tip-tab-detail">
  385. <image
  386. class="image-tip-tab self-end"
  387. src="../../static/mine/myAvatar.png" />
  388. <view class="text-tip-tab flex-auto">
  389. <text class="title-tip-tab">睡眠小贴士</text>
  390. <text class="content-tip-tab">如果当前睡眠效率偏低,建议通过以下方式进行改善。
  391. 1.聆听平淡而有节律的睡眠音乐
  392. 2. 睡前喝一杯加糖的热牛奶
  393. 了. 合适的睡姿:左侧卧,仰卧,俯卧(即
  394. 趴着睡)
  395. 4.用热水泡脚,一般半个小左右,有高血糖的朋友十分钟效果最佳。
  396. </text>
  397. </view>
  398. </view>
  399. <view class="post-tab-detail">
  400. <div class="title-post-tab">健康小知识</div>
  401. <image
  402. class="image-post-tab"
  403. src="../../static/report/reportAlertBg.png"
  404. />
  405. <div class="content-post-tab">
  406. 提高睡眠效率的方法
  407. 1要有睡觉的积极意识,不要在睡觉的时候还想一些烦心事。要让心静下来。
  408. 2.睡觉前不能吃的太多,这样胃会感到不适,身体不舒服,自然睡不着。
  409. 了.每天多参加户外活动和体育锻炼。提高身体免疫力和抵抗力。拥有一个强健的体魄。
  410. </div>
  411. </view>
  412. </view>
  413. </scroll-view>
  414. </swiper-item>
  415. </swiper>
  416. </view>
  417. </template>
  418. <script>
  419. import cell from './cell.vue';
  420. export default {
  421. components: {
  422. cell
  423. },
  424. data() {
  425. return {
  426. tabList: [{
  427. id: "tabItem0",
  428. title: '睡眠效率',
  429. width:70,
  430. }, {
  431. id: "tabItem1",
  432. title: '深浅睡眠',
  433. width:70,
  434. }, {
  435. id: "tabItem2",
  436. title: '安稳度',
  437. width:70,
  438. }, {
  439. id: "tabItem3",
  440. title: '心率',
  441. width:70,
  442. }, {
  443. id: "tabItem4",
  444. title: '呼吸率',
  445. width:70,
  446. }, {
  447. id: "tabItem5",
  448. title: '异常状况',
  449. width:70,
  450. }],
  451. tabIndex: 0,
  452. tabScrollInto: "",
  453. tabListSize: {},
  454. tabItemLineLeft: 0,
  455. tabItemLineWidth: 0,
  456. isPress: false,
  457. swiperHeight: 0
  458. }
  459. },
  460. onLoad(option) {
  461. let system = uni.getSystemInfoSync();
  462. this.swiperHeight = system.windowHeight - 44;
  463. console.log(this.swiperHeight);
  464. // 跳转时传递index打开指定页面
  465. console.log(option.index)
  466. this.setTabSelect(option.index)
  467. },
  468. onReady() {
  469. this.setTabItemDistance();
  470. this.setTabSelect(this.tabIndex);
  471. },
  472. methods: {
  473. pressScrollViewItem(e) {
  474. let index = e.target.dataset.current || e.currentTarget.dataset.current;
  475. this.isPress = true;
  476. this.setTabSelect(index);
  477. },
  478. swiperChange(e) {
  479. let index = e.target.current || e.detail.current;
  480. this.tabIndex = index;
  481. this.setTabSelect(this.tabIndex);
  482. },
  483. setTabItemDistance() {
  484. var queryTabSize = uni.createSelectorQuery().in(this);
  485. for (var i = 0; i < this.tabList.length; i++) {
  486. queryTabSize.select('#' + this.tabList[i].id).boundingClientRect();
  487. }
  488. queryTabSize.exec(rects => {
  489. rects.forEach((rect) => {
  490. this.tabListSize[rect.dataset.id] = rect;
  491. })
  492. console.log(this.tabListSize);
  493. this.setTabItemLinePosition(this.tabListSize[this.tabIndex].left, this.tabListSize[this.tabIndex].width);
  494. });
  495. },
  496. setTabItemLinePosition(left, width) {
  497. this.tabItemLineLeft = left;
  498. this.tabItemLineWidth = width;
  499. },
  500. swiperChangeEnd(e) {
  501. this.setTabItemLinePosition(this.tabListSize[this.tabIndex].left, this.tabListSize[this.tabIndex].width);
  502. },
  503. setTabSelect(index) {
  504. this.tabIndex = index;
  505. this.tabScrollInto = this.tabList[index].id;
  506. console.log(this.tabScrollInto);
  507. },
  508. }
  509. }
  510. </script>
  511. <style lang="scss" scoped>
  512. .data-sleep-condition {
  513. margin-top: 10px;
  514. .item-sleep-condition {
  515. .title-sleep-condition {
  516. font-size: 16px;
  517. line-height: 20px;
  518. }
  519. .subtitle-sleep-condition {
  520. font-size: 11px;
  521. line-height: 20px;
  522. }
  523. }
  524. .image-sleep-condition {
  525. height: 60px;
  526. width: 60px;
  527. }
  528. }
  529. .charts-sleep-item {
  530. background: #0233C699;
  531. backdrop-filter: blur(20px);
  532. border-radius: 15px;
  533. padding: 10px;
  534. margin-top: 10px;
  535. height: 100px;
  536. }
  537. .data-sleep-item {
  538. background: #0233C699;
  539. backdrop-filter: blur(20px);
  540. border-radius: 15px;
  541. padding: 10px;
  542. margin-top: 10px;
  543. font-size: 13px;
  544. .date-sleep-item {
  545. margin-bottom: 7px;
  546. }
  547. }
  548. .detail-page {
  549. display: flex;
  550. flex-direction: column;
  551. overflow: hidden;
  552. background-image: url("http://wdklmall.oss-cn-shenzhen.aliyuncs.com/mallgoods/goods/3C62AD507C8345D49AEB2AAD8F7584BB.png");
  553. background-size: 100% 100%;
  554. background-repeat: no-repeat;
  555. height: 100%;
  556. .childPageView {
  557. padding-bottom: 1.25rem;
  558. background-image: linear-gradient(180deg, #1e1ef7f2 0%, #1dbff79c 100%);
  559. backdrop-filter: blur(0.19rem);
  560. height: 100%;
  561. }
  562. }
  563. .tab-detail {
  564. color: #ffffff;
  565. font-size: 15px;
  566. padding: 15px;
  567. .title-tab-detail {
  568. font-size: 18px;
  569. }
  570. .subtile-tab-detail {
  571. font-size: 14px;
  572. }
  573. .data-tab-detail {
  574. background: #0233C699;
  575. backdrop-filter: blur(20px);
  576. border-radius: 15px;
  577. margin-top: 10px;
  578. padding: 15px 10px;
  579. .header-data-tab {
  580. border-bottom: 1px solid #FFFFFF99;
  581. padding-bottom: 10px;
  582. }
  583. .middle-tab-detail {
  584. padding: 10px 0;
  585. border-bottom: 1px solid #FFFFFF99;
  586. .image-middle-tab {
  587. width: 100px;
  588. height: 30px;
  589. }
  590. .text-middle-tab {
  591. line-height: 25px;
  592. }
  593. }
  594. .footer-tab-detail {
  595. padding-top: 10px;
  596. font-size: 13px;
  597. }
  598. }
  599. .tip-tab-detail {
  600. margin-top: 30px;
  601. .image-tip-tab {
  602. width: 100px;
  603. height: 100px;
  604. margin-right: 10px;
  605. }
  606. .text-tip-tab {
  607. border: 1px solid #ffffff7d;
  608. border-radius: 5px;
  609. padding: 10px;
  610. .title-tip-tab {
  611. font-size: 17px;
  612. font-weight: 500;
  613. display: block;
  614. text-align: center;
  615. margin-bottom: 3px;
  616. }
  617. .content-tip-tab {
  618. font-size: 13px;
  619. }
  620. }
  621. }
  622. .post-tab-detail {
  623. margin-top: 40px;
  624. padding-bottom: 100px;
  625. .title-post-tab {
  626. font-size: 20px;
  627. font-weight: 500;
  628. }
  629. .image-post-tab {
  630. width: 100%;
  631. display: block;
  632. margin-top: 10px;
  633. }
  634. .content-post-tab {
  635. margin-top: 10px;
  636. line-height: 28px;
  637. font-size: 15px;
  638. }
  639. }
  640. }
  641. .tab {
  642. width: 100vw;
  643. height: 44px;
  644. display: flex;
  645. flex-direction: row;
  646. white-space: nowrap;
  647. background: #1e1ef7f2;
  648. -webkit-backdrop-filter: blur(0.19rem);
  649. backdrop-filter: blur(0.19rem);
  650. color: #ffffff;
  651. }
  652. .tab ::-webkit-scrollbar {
  653. display: none;
  654. width: 0 !important;
  655. height: 0 !important;
  656. -webkit-appearance: none;
  657. background: transparent;
  658. }
  659. .tabLineView {
  660. position: relative;
  661. height: 2px;
  662. background-color: transparent;
  663. }
  664. .tabLine {
  665. position: absolute;
  666. top: 0;
  667. bottom: 0;
  668. width: 0;
  669. background-color: #ffffff;
  670. }
  671. .tabLineActive {
  672. transition-duration: 0.3s;
  673. transition-property: left;
  674. }
  675. .childPageView {
  676. display: flex;
  677. flex-direction: column;
  678. }
  679. .tabItem {
  680. display: flex;
  681. }
  682. .tabItemTitle {
  683. color: #FFFFFF99;
  684. font-size: 15px;
  685. height: 42px;
  686. line-height: 40px;
  687. display: flex;
  688. flex-wrap: nowrap;
  689. align-items: center;
  690. justify-content: center;
  691. }
  692. .tabItemTitleActive {
  693. color: #FFFFFF;
  694. }
  695. .childPageViewItem {
  696. flex: 1;
  697. flex-direction: column;
  698. }
  699. </style>