alertSetting.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. <template>
  2. <view class="flex-col justify-start page">
  3. <cu-custom isBack="true" bgColor="#000000"><view slot="content" style="color: #FFFFFF">UU睡眠</view></cu-custom>
  4. <view class="flex-col justify-start section">
  5. <view class="flex-col section_2 space-y-32">
  6. <view class="flex-col">
  7. <text class="self-start font_1 text_2">心率异常提醒</text>
  8. <view class="flex-col section_6 view space-y-10">
  9. <view class="flex-row justify-between self-start equal-division">
  10. <view class="flex-row items-end space-x-4 items-center">
  11. <switch checked color="#1E09DE" style="transform:scale(0.7)"/>
  12. <text class="font_2">短信提醒</text>
  13. </view>
  14. <view class="flex-row items-end space-x-4 items-center">
  15. <switch color="#1E09DE" style="transform:scale(0.7)"/>
  16. <text class="font_2">电话语音</text>
  17. </view>
  18. </view>
  19. <view class="flex-col">
  20. <view class="flex-row justify-between items-center list-item" :key="i" v-for="(item, i) in list1">
  21. <text class="font_2 text_3">心率过速提醒值</text>
  22. <view class="flex-row items-center group_3 space-x-6">
  23. <text class="font_3">110</text>
  24. <text class="font_4">次/分钟</text>
  25. <image
  26. class="shrink-0 image_7"
  27. src="../../static/iconRight.png"
  28. />
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="flex-col group_5 space-y-14">
  35. <text class="self-start font_1">呼吸率异常提醒</text>
  36. <view class="flex-col section_6 space-y-10">
  37. <view class="flex-row justify-between self-start equal-division">
  38. <view class="flex-row items-end space-x-4 items-center">
  39. <switch checked color="#1E09DE" style="transform:scale(0.7)"/>
  40. <text class="font_2">短信提醒</text>
  41. </view>
  42. <view class="flex-row items-end space-x-4 items-center">
  43. <switch checked color="#1E09DE" style="transform:scale(0.7)"/>
  44. <text class="font_2">电话语音</text>
  45. </view>
  46. </view>
  47. <view class="flex-col">
  48. <view class="flex-row justify-between items-center list-item" :key="i" v-for="(item, i) in list2">
  49. <text class="font_2 text_3">呼吸率过速提醒值</text>
  50. <view class="flex-row items-center space-x-6">
  51. <text class="font_3">110</text>
  52. <text class="font_4">次/分钟</text>
  53. <image
  54. class="shrink-0 image_7"
  55. src="../../static/iconRight.png"
  56. />
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="flex-col group_5">
  63. <view class="flex-row items-center group_6 space-x-30">
  64. <text class="font_1">离床预警提醒</text>
  65. <text class="font_5 text_4">注:离床预警生效需要用户在床超过1小时。</text>
  66. </view>
  67. <view class="flex-col section_7 space-y-24">
  68. <view class="flex-row justify-between self-start equal-division">
  69. <view class="flex-row items-end space-x-4 items-center">
  70. <switch checked color="#1E09DE" style="transform:scale(0.7)"/>
  71. <text class="font_2">短信提醒</text>
  72. </view>
  73. <view class="flex-row items-end space-x-4 items-center">
  74. <switch color="#1E09DE" style="transform:scale(0.7)"/>
  75. <text class="font_2">电话语音</text>
  76. </view>
  77. </view>
  78. <view class="flex-col group_7">
  79. <view class="flex-row justify-between items-center group_8">
  80. <text class="font_2 text_3">离床预警区间</text>
  81. <view class="flex-row items-center group_9 space-x-20">
  82. <text class="font_3">22:00 - 6:00</text>
  83. <image
  84. class="shrink-0 image_7"
  85. src="../../static/iconRight.png"
  86. />
  87. </view>
  88. </view>
  89. <view class="flex-row justify-between items-center group_10">
  90. <text class="font_2 text_3">离床未归提醒</text>
  91. <view class="flex-row items-center group_11 space-x-8">
  92. <text class="font_3">60</text>
  93. <text class="font_4">分钟</text>
  94. <image
  95. class="shrink-0 image_7"
  96. src="../../static/iconRight.png"
  97. />
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <view class="flex-col group_5 space-y-14">
  104. <text class="self-start font_1">紧急求助开关</text>
  105. <view class="flex-col justify-start items-start section_8">
  106. <view class="flex-row space-x-6">
  107. <view class="flex-row items-center equal-division-item space-x-4">
  108. <switch checked color="#1E09DE" style="transform:scale(0.7)"/>
  109. <text class="font_2">短信提醒</text>
  110. </view>
  111. <view class="flex-row items-center equal-division-item space-x-4">
  112. <switch checked color="#1E09DE" style="transform:scale(0.7)"/>
  113. <text class="font_2">电话语音</text>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="flex-col group_5 space-y-20">
  119. <view class="flex-col space-y-12">
  120. <text class="self-start font_1 text_5">语音短信提示手机号码设置</text>
  121. <view class="flex-col space-y-4">
  122. <text class="font_5 text_6">
  123. 注:设置提醒手机号需注册“小云睡眠”小程序领取短信语言套餐包,才能发送短信语音提醒。
  124. </text>
  125. <view class="flex-col section_9">
  126. <view class="flex-row justify-between items-center list-item">
  127. <text class="font_2 text_8">号码1</text>
  128. <view class="flex-row items-center space-x-8">
  129. <input class="uni-input" placeholder-style="color:rgba(255, 255, 255, 0.5);text-align:right" type="number" placeholder="输入手机号码" />
  130. </view>
  131. </view>
  132. <view class="flex-row justify-center items-center list-item space-x-6">
  133. <image
  134. class="image_9"
  135. src="https://codefun-proj-user-res-1256085488.cos.ap-guangzhou.myqcloud.com/649415135a7e3f0310661c1e/649415b654fe0000116ae544/16878800827365047681.png"
  136. />
  137. <text class="font_2">添加手机号码</text>
  138. </view>
  139. </view>
  140. </view>
  141. </view>
  142. <view class="flex-col justify-start items-center self-center button"><text class="text_9">保存设置</text></view>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. </template>
  148. <script>
  149. export default {
  150. data() {
  151. return {
  152. list1: [null, null],
  153. list2: [null, null]
  154. }
  155. },
  156. methods: {
  157. }
  158. }
  159. </script>
  160. <style lang="scss" scoped>
  161. .page {
  162. background-color: #000000;
  163. width: 100%;
  164. overflow-y: auto;
  165. overflow-x: hidden;
  166. height: 100%;
  167. .section{
  168. background-image: url('https://codefun-proj-user-res-1256085488.cos.ap-guangzhou.myqcloud.com/649415135a7e3f0310661c1e/649415b654fe0000116ae544/16878800827323657149.png');
  169. background-size: 100% 100%;
  170. background-repeat: no-repeat;
  171. .section_2 {
  172. padding-bottom: 1.25rem;
  173. background-image: linear-gradient(180deg, #1e1ef7f2 0%, #1dbff79c 100%);
  174. backdrop-filter: blur(0.19rem);
  175. .section_3 {
  176. padding: 1.13rem 0.44rem 0.38rem;
  177. background-color: #ffffff4d;
  178. .group {
  179. padding: 0 0.5rem;
  180. .image {
  181. width: 1.06rem;
  182. height: 0.69rem;
  183. }
  184. .image_2 {
  185. width: 0.94rem;
  186. height: 0.69rem;
  187. }
  188. .image_3 {
  189. width: 1.5rem;
  190. height: 0.72rem;
  191. }
  192. }
  193. .space-x-6-reverse {
  194. & > view:not(:last-child),
  195. & > text:not(:last-child),
  196. & > image:not(:last-child) {
  197. margin-right: 0.38rem;
  198. }
  199. }
  200. .group_2 {
  201. padding: 0.63rem 0 0.38rem;
  202. .text {
  203. font-size: 1.16rem;
  204. line-height: 1.06rem;
  205. }
  206. .section_4 {
  207. padding: 0.38rem 0.75rem;
  208. background-color: #ffffff99;
  209. border-radius: 1rem;
  210. border: solid 0.031rem #00000014;
  211. .image-wrapper {
  212. width: 1.19rem;
  213. .image_5 {
  214. width: 1.19rem;
  215. height: 0.44rem;
  216. }
  217. .image_4 {
  218. width: 1.13rem;
  219. height: 1.06rem;
  220. }
  221. }
  222. .section_5 {
  223. background-color: #00000033;
  224. width: 0.063rem;
  225. height: 1.16rem;
  226. }
  227. }
  228. .space-x-11 {
  229. & > view:not(:first-child),
  230. & > text:not(:first-child),
  231. & > image:not(:first-child) {
  232. margin-left: 0.69rem;
  233. }
  234. }
  235. .pos {
  236. position: absolute;
  237. right: 0;
  238. top: 50%;
  239. transform: translateY(-50%);
  240. }
  241. }
  242. }
  243. .space-y-22 {
  244. & > view:not(:first-child),
  245. & > text:not(:first-child),
  246. & > image:not(:first-child) {
  247. margin-top: 1.38rem;
  248. }
  249. }
  250. .font_1 {
  251. font-size: 1.13rem;
  252. font-family: PingFangSC;
  253. line-height: 1.03rem;
  254. color: #ffffff;
  255. }
  256. .text_2 {
  257. margin-left: 1.25rem;
  258. margin-top: 1.38rem;
  259. }
  260. .section_6 {
  261. padding: 0.94rem 0.63rem 0.13rem;
  262. background-color: #ffffff33;
  263. border-radius: 1rem;
  264. }
  265. .view {
  266. margin: 0.88rem 1.25rem 0;
  267. }
  268. .space-y-10 {
  269. & > view:not(:first-child),
  270. & > text:not(:first-child),
  271. & > image:not(:first-child) {
  272. margin-top: 0.63rem;
  273. }
  274. }
  275. .group_5 {
  276. padding: 0 1.25rem;
  277. .group_6 {
  278. padding-bottom: 0.88rem;
  279. .text_4 {
  280. line-height: 0.59rem;
  281. }
  282. }
  283. .space-x-30 {
  284. & > view:not(:first-child),
  285. & > text:not(:first-child),
  286. & > image:not(:first-child) {
  287. margin-left: 0.3rem;
  288. }
  289. }
  290. .section_7 {
  291. padding: 0.94rem 0.63rem 0;
  292. background-color: #ffffff33;
  293. border-radius: 1rem;
  294. .group_7 {
  295. border-bottom: solid 0.063rem #ffffff1a;
  296. .group_8 {
  297. padding-bottom: 0.88rem;
  298. border-bottom: solid 0.063rem #ffffff1a;
  299. .group_9 {
  300. margin-right: 0.19rem;
  301. }
  302. .space-x-20 {
  303. & > view:not(:first-child),
  304. & > text:not(:first-child),
  305. & > image:not(:first-child) {
  306. margin-left: 1.25rem;
  307. }
  308. }
  309. }
  310. .group_10 {
  311. padding: 0.88rem 0;
  312. .group_11 {
  313. margin-right: 0.19rem;
  314. }
  315. }
  316. }
  317. }
  318. .space-y-24 {
  319. & > view:not(:first-child),
  320. & > text:not(:first-child),
  321. & > image:not(:first-child) {
  322. margin-top: 1.5rem;
  323. }
  324. }
  325. .section_8 {
  326. padding: 0.63rem 0;
  327. background-color: #ffffff33;
  328. border-radius: 1rem;
  329. }
  330. .space-y-12 {
  331. & > view:not(:first-child),
  332. & > text:not(:first-child),
  333. & > image:not(:first-child) {
  334. margin-top: 0.75rem;
  335. }
  336. .text_5 {
  337. line-height: 1.06rem;
  338. }
  339. .space-y-4 {
  340. & > view:not(:first-child),
  341. & > text:not(:first-child),
  342. & > image:not(:first-child) {
  343. margin-top: 0.55rem;
  344. }
  345. .text_6 {
  346. line-height: 0.75rem;
  347. }
  348. .section_9 {
  349. padding: 0 0.63rem;
  350. background-color: #ffffff33;
  351. border-radius: 1rem;
  352. }
  353. }
  354. }
  355. .font_5 {
  356. font-size: 0.63rem;
  357. font-family: PingFangSC;
  358. color: #120399;
  359. }
  360. .space-x-8 {
  361. & > view:not(:first-child),
  362. & > text:not(:first-child),
  363. & > image:not(:first-child) {
  364. margin-left: 0.5rem;
  365. }
  366. .text_7 {
  367. color: #ffffff80;
  368. }
  369. .image_8 {
  370. width: 1.13rem;
  371. height: 1.13rem;
  372. }
  373. }
  374. .button {
  375. padding: 0.5rem 0;
  376. background-image: linear-gradient(90deg, #5611f780 0%, #1e1ef7f2 100%);
  377. border-radius: 1rem;
  378. width: 8.69rem;
  379. .text_9 {
  380. color: #ffffff;
  381. font-size: 1rem;
  382. font-family: PingFangSC;
  383. line-height: 0.94rem;
  384. }
  385. }
  386. }
  387. .space-y-14 {
  388. & > view:not(:first-child),
  389. & > text:not(:first-child),
  390. & > image:not(:first-child) {
  391. margin-top: 0.88rem;
  392. }
  393. }
  394. .equal-division {
  395. width: 12.5rem;
  396. }
  397. .font_2 {
  398. font-size: 0.88rem;
  399. font-family: PingFangSC;
  400. line-height: 0.81rem;
  401. color: #ffffff;
  402. }
  403. .text_3 {
  404. opacity: 0.8;
  405. }
  406. .font_3 {
  407. font-size: 1.13rem;
  408. font-family: PingFangSC;
  409. line-height: 0.81rem;
  410. color: #ffffff;
  411. }
  412. .image_7 {
  413. width: 0.38rem;
  414. height: 0.69rem;
  415. }
  416. .font_4 {
  417. font-size: 0.75rem;
  418. font-family: PingFangSC;
  419. line-height: 0.69rem;
  420. color: #ffffff;
  421. }
  422. .space-x-6 {
  423. & > view:not(:first-child),
  424. & > text:not(:first-child),
  425. & > image:not(:first-child) {
  426. margin-left: 0.38rem;
  427. }
  428. .equal-division-item {
  429. padding: 0.25rem 0.63rem;
  430. width: 6.84rem;
  431. }
  432. }
  433. .space-x-4 {
  434. & > view:not(:first-child),
  435. & > text:not(:first-child),
  436. & > image:not(:first-child) {
  437. margin-left: 0.25rem;
  438. }
  439. }
  440. .image_6 {
  441. width: 1.38rem;
  442. height: 0.88rem;
  443. }
  444. .space-y-20 {
  445. & > view:not(:first-child),
  446. & > text:not(:first-child),
  447. & > image:not(:first-child) {
  448. margin-top: 1.25rem;
  449. }
  450. }
  451. .list-item {
  452. padding: 0.88rem 0;
  453. border-bottom: solid 0.063rem #ffffff1a;
  454. .group_3 {
  455. margin-right: 0.19rem;
  456. }
  457. .text_8 {
  458. line-height: 0.78rem;
  459. }
  460. .image_9 {
  461. width: 0.88rem;
  462. height: 0.88rem;
  463. }
  464. }
  465. }
  466. .space-y-32 {
  467. & > view:not(:first-child),
  468. & > text:not(:first-child),
  469. & > image:not(:first-child) {
  470. margin-top: 2rem;
  471. }
  472. }
  473. }
  474. }
  475. </style>