alertSetting.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. <template>
  2. <view class="flex-col justify-start page">
  3. <cu-custom isBack="true" bgColor="#000000">
  4. <view slot="content" style="color: #FFFFFF">UU睡眠</view>
  5. </cu-custom>
  6. <!-- <time-slot-->
  7. <!-- ref="timeslot"-->
  8. <!-- :title="'选择时间段'"-->
  9. <!-- @confirm="confirmTime">-->
  10. <!-- </time-slot>-->
  11. <view class="flex-col justify-start section">
  12. <view class="flex-col section_2 space-y-32">
  13. <view class="flex-col">
  14. <text class="self-start font_1 text_2">心率异常提醒</text>
  15. <view class="flex-col section_6 view space-y-10">
  16. <!-- <view class="flex-row justify-between self-start equal-division">-->
  17. <!-- <view class="flex-row items-end space-x-4 items-center">-->
  18. <!-- <switch checked color="#1E09DE" style="transform:scale(0.7)"/>-->
  19. <!-- <text class="font_2">短信提醒</text>-->
  20. <!-- </view>-->
  21. <!-- <view class="flex-row items-end space-x-4 items-center">-->
  22. <!-- <switch color="#1E09DE" style="transform:scale(0.7)"/>-->
  23. <!-- <text class="font_2">电话语音</text>-->
  24. <!-- </view>-->
  25. <!-- </view>-->
  26. <view class="flex-col">
  27. <view class="flex-row justify-between items-center list-item">
  28. <text class="font_2 text_3">心率过速提醒值</text>
  29. <view class="flex-row items-center group_3 space-x-6">
  30. <picker @change="pickerChange" :range="sleepWornList.rh_highList" data-target="1">
  31. <view class="uni-input">
  32. <text class="font_3">{{ sleepWorn.rh_high }}</text>
  33. <text class="font_4">次/分钟</text>
  34. <image
  35. class="shrink-0 image_7"
  36. src="../../static/iconRight.png"
  37. />
  38. </view>
  39. </picker>
  40. </view>
  41. </view>
  42. <view class="flex-row justify-between items-center list-item">
  43. <text class="font_2 text_3">心率过缓提醒值</text>
  44. <view class="flex-row items-center group_3 space-x-6">
  45. <picker @change="pickerChange" :range="sleepWornList.rh_lowList" data-target="2">
  46. <view class="uni-input">
  47. <text class="font_3">{{ sleepWorn.rh_low }}</text>
  48. <text class="font_4">次/分钟</text>
  49. <image
  50. class="shrink-0 image_7"
  51. src="../../static/iconRight.png"
  52. />
  53. </view>
  54. </picker>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="flex-col group_5 space-y-14">
  61. <text class="self-start font_1">呼吸率异常提醒</text>
  62. <view class="flex-col section_6 space-y-10">
  63. <!-- <view class="flex-row justify-between self-start equal-division">-->
  64. <!-- <view class="flex-row items-end space-x-4 items-center">-->
  65. <!-- <switch checked color="#1E09DE" style="transform:scale(0.7)"/>-->
  66. <!-- <text class="font_2">短信提醒</text>-->
  67. <!-- </view>-->
  68. <!-- <view class="flex-row items-end space-x-4 items-center">-->
  69. <!-- <switch checked color="#1E09DE" style="transform:scale(0.7)"/>-->
  70. <!-- <text class="font_2">电话语音</text>-->
  71. <!-- </view>-->
  72. <!-- </view>-->
  73. <view class="flex-col">
  74. <view class="flex-row justify-between items-center list-item">
  75. <text class="font_2 text_3">呼吸率过速提醒值</text>
  76. <view class="flex-row items-center space-x-6">
  77. <picker @change="pickerChange" :range="sleepWornList.hx_highList" data-target="3">
  78. <view class="uni-input">
  79. <text class="font_3">{{ sleepWorn.hx_high }}</text>
  80. <text class="font_4">次/分钟</text>
  81. <image
  82. class="shrink-0 image_7"
  83. src="../../static/iconRight.png"
  84. />
  85. </view>
  86. </picker>
  87. </view>
  88. </view>
  89. <view class="flex-row justify-between items-center list-item">
  90. <text class="font_2 text_3">呼吸率过缓提醒值</text>
  91. <view class="flex-row items-center space-x-6">
  92. <picker @change="pickerChange" :range="sleepWornList.hx_lowList" data-target="4">
  93. <view class="uni-input">
  94. <text class="font_3">{{ sleepWorn.hx_low }}</text>
  95. <text class="font_4">次/分钟</text>
  96. <image
  97. class="shrink-0 image_7"
  98. src="../../static/iconRight.png"
  99. />
  100. </view>
  101. </picker>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="flex-col group_5">
  108. <view class="flex-row items-center group_6 space-x-30">
  109. <text class="font_1">离床预警提醒</text>
  110. <text class="font_5 text_4">注:离床预警生效需要用户在床超过1小时。</text>
  111. </view>
  112. <view class="flex-col section_7 space-y-24">
  113. <!-- <view class="flex-row justify-between self-start equal-division">-->
  114. <!-- <view class="flex-row items-end space-x-4 items-center">-->
  115. <!-- <switch checked color="#1E09DE" style="transform:scale(0.7)"/>-->
  116. <!-- <text class="font_2">短信提醒</text>-->
  117. <!-- </view>-->
  118. <!-- <view class="flex-row items-end space-x-4 items-center">-->
  119. <!-- <switch color="#1E09DE" style="transform:scale(0.7)"/>-->
  120. <!-- <text class="font_2">电话语音</text>-->
  121. <!-- </view>-->
  122. <!-- </view>-->
  123. <view class="flex-col group_7">
  124. <view class="flex-row justify-between items-center group_8">
  125. <text class="font_2 text_3">离床预警区间</text>
  126. <!-- <view @click="handleTimeChoose" class="flex-row items-center group_9 space-x-20">-->
  127. <!-- <text class="font_3">22:00 - 6:00</text>-->
  128. <!-- <image-->
  129. <!-- class="shrink-0 image_7"-->
  130. <!-- src="../../static/iconRight.png"-->
  131. <!-- />-->
  132. <!-- </view>-->
  133. <view class="action">
  134. <picker mode="time" :value="sleepWorn.leave_start" start="00:00" end="23:59" @change="timeChange" data-target="leave_start">
  135. <view class="uni-input font_3">
  136. {{ sleepWorn.leave_start }}
  137. </view>
  138. </picker>
  139. </view>
  140. <text class="font_3">~</text>
  141. <view class="action">
  142. <picker mode="time" :value="sleepWorn.leave_end" start="00:00" end="23:59" @change="timeChange" data-target="leave_end">
  143. <view class="uni-input font_3">
  144. {{ sleepWorn.leave_end }}
  145. </view>
  146. </picker>
  147. </view>
  148. </view>
  149. <view class="flex-row justify-between items-center group_10">
  150. <text class="font_2 text_3">离床未归提醒</text>
  151. <view class="flex-row items-center group_11 space-x-8">
  152. <picker @change="pickerChange" :range="sleepWornList.leave_durationList" data-target="5">
  153. <view class="uni-input">
  154. <text class="font_3">{{sleepWorn.leave_duration }}</text>
  155. <text class="font_4">分钟</text>
  156. <image
  157. class="shrink-0 image_7"
  158. src="../../static/iconRight.png"
  159. />
  160. </view>
  161. </picker>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. <!-- <view class="flex-col group_5 space-y-14">-->
  168. <!-- <text class="self-start font_1">紧急求助开关</text>-->
  169. <!-- <view class="flex-col justify-start items-start section_8">-->
  170. <!-- <view class="flex-row space-x-6">-->
  171. <!-- <view class="flex-row items-center equal-division-item space-x-4">-->
  172. <!-- <switch checked color="#1E09DE" style="transform:scale(0.7)"/>-->
  173. <!-- <text class="font_2">短信提醒</text>-->
  174. <!-- </view>-->
  175. <!-- <view class="flex-row items-center equal-division-item space-x-4">-->
  176. <!-- <switch checked color="#1E09DE" style="transform:scale(0.7)"/>-->
  177. <!-- <text class="font_2">电话语音</text>-->
  178. <!-- </view>-->
  179. <!-- </view>-->
  180. <!-- </view>-->
  181. <!-- </view>-->
  182. <view class="flex-col group_5 space-y-20">
  183. <!-- <view class="flex-col space-y-12">-->
  184. <!-- <text class="self-start font_1 text_5">语音短信提示手机号码设置</text>-->
  185. <!-- <view class="flex-col space-y-4">-->
  186. <!-- <text class="font_5 text_6">-->
  187. <!-- 注:设置提醒手机号需注册“小U睡眠”小程序领取短信语言套餐包,才能发送短信语音提醒。-->
  188. <!-- </text>-->
  189. <!-- <view class="flex-col section_9">-->
  190. <!-- <view class="flex-row justify-between items-center list-item">-->
  191. <!-- <text class="font_2 text_8">号码1</text>-->
  192. <!-- <view class="flex-row items-center space-x-8">-->
  193. <!-- <input class="uni-input" placeholder-style="color:rgba(255, 255, 255, 0.5);text-align:right"-->
  194. <!-- type="number" placeholder="输入手机号码"/>-->
  195. <!-- </view>-->
  196. <!-- </view>-->
  197. <!-- <view class="flex-row justify-center items-center list-item space-x-6">-->
  198. <!-- <image-->
  199. <!-- class="image_9"-->
  200. <!-- src="https://codefun-proj-user-res-1256085488.cos.ap-guangzhou.myqcloud.com/649415135a7e3f0310661c1e/649415b654fe0000116ae544/16878800827365047681.png"-->
  201. <!-- />-->
  202. <!-- <text class="font_2">添加手机号码</text>-->
  203. <!-- </view>-->
  204. <!-- </view>-->
  205. <!-- </view>-->
  206. <!-- </view>-->
  207. <view class="flex-col justify-start items-center self-center button">
  208. <text class="text_9" @click="saveSleepWarn">保存设置</text>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. </view>
  214. </template>
  215. <script>
  216. // import timeSlot from "@/components/wanghexu-timeslot/wanghexu-timeslot.vue"
  217. import * as API_SLEEP_REPORT from '@/api/sleep_report'
  218. import {pushSleepWarn} from "../../api/sleep_report";
  219. export default {
  220. // components: {
  221. // timeSlot
  222. // },
  223. data() {
  224. return {
  225. title: 'picker',
  226. index: 0,
  227. sleepWorn : {
  228. rh_high: 110,
  229. rh_low: 60,
  230. hx_high: 30,
  231. hx_low: 10,
  232. leave_start: '22:00',
  233. leave_end: '06:00',
  234. leave_duration: 30,
  235. sn: ''
  236. },
  237. sleepWornList: {
  238. rh_highList: [],
  239. rh_lowList: [],
  240. hx_highList: [],
  241. hx_lowList: [],
  242. leave_durationList: []
  243. }
  244. }
  245. },
  246. onLoad(options) {
  247. const { imei } = options
  248. this.sleepWorn.sn = imei
  249. console.log('imei===', imei)
  250. this.API_getWartResult()
  251. this.setWarn()
  252. },
  253. methods: {
  254. // handleInput() {
  255. // this.$refs.inputDialog.open()
  256. // },
  257. // confirmTime(val) {
  258. // console.log(val)
  259. // },
  260. API_getWartResult() {
  261. const _this = this
  262. API_SLEEP_REPORT.getWarnResult(this.sleepWorn.sn).then(res => {
  263. if (res.data !== null) {
  264. res.data.leave_start = res.data.leave_start.substring(0, 5)
  265. res.data.leave_end = res.data.leave_end.substring(0, 5)
  266. _this.sleepWorn = res.data
  267. }
  268. })
  269. },
  270. setWarn() {
  271. this.sleepWornList.rh_highList = Array.from(Array(71).keys(), n => n + 1 + 89)
  272. this.sleepWornList.rh_lowList = Array.from(Array(31).keys(), n => n + 1 + 29)
  273. this.sleepWornList.hx_highList = Array.from(Array(21).keys(), n => n + 1 + 19)
  274. this.sleepWornList.hx_lowList = Array.from(Array(8).keys(), n => n + 1 + 4)
  275. this.sleepWornList.leave_durationList = Array.from(Array(51).keys(), n => n + 1 + 9)
  276. },
  277. pickerChange(e) {
  278. const index = e.detail.value
  279. switch (e.mp.target.dataset.target) {
  280. case '1':
  281. this.sleepWorn.rh_high = this.sleepWornList.rh_highList[index]
  282. break
  283. case '2':
  284. this.sleepWorn.rh_low = this.sleepWornList.rh_lowList[index]
  285. break
  286. case '3':
  287. this.sleepWorn.hx_high = this.sleepWornList.hx_highList[index]
  288. break
  289. case '4':
  290. this.sleepWorn.hx_low = this.sleepWornList.hx_lowList[index]
  291. break
  292. case '5':
  293. this.sleepWorn.leave_duration = this.sleepWornList.leave_durationList[index]
  294. break
  295. default:
  296. break
  297. }
  298. },
  299. timeChange(e) {
  300. switch (e.mp.target.dataset.target) {
  301. case 'leave_start':
  302. this.sleepWorn.leave_start = e.detail.value
  303. break
  304. case 'leave_end':
  305. this.sleepWorn.leave_end = e.detail.value
  306. break
  307. default:
  308. break
  309. }
  310. },
  311. saveSleepWarn() {
  312. const _this = this
  313. uni.showModal({
  314. title: '提示',
  315. content: "确定要提交设置吗?",
  316. confirmText: "确定",
  317. showCancel: true,
  318. success: function(res) {
  319. if (res.confirm) {
  320. API_SLEEP_REPORT.pushSleepWarn(_this.sleepWorn).then(res => {
  321. uni.showToast({
  322. title:"保存成功"
  323. })
  324. })
  325. }
  326. }
  327. })
  328. }
  329. }
  330. }
  331. </script>
  332. <style lang="scss" scoped>
  333. .page {
  334. background-color: #000000;
  335. width: 100%;
  336. overflow-y: auto;
  337. overflow-x: hidden;
  338. height: 100%;
  339. .section {
  340. background-image: url('http://wdklmall.oss-cn-shenzhen.aliyuncs.com/mallgoods/goods/3C62AD507C8345D49AEB2AAD8F7584BB.png');
  341. background-size: 100% 100%;
  342. background-repeat: no-repeat;
  343. .section_2 {
  344. padding-bottom: 1.25rem;
  345. background-image: linear-gradient(180deg, #1e1ef7f2 0%, #1dbff79c 100%);
  346. backdrop-filter: blur(0.19rem);
  347. .section_3 {
  348. padding: 1.13rem 0.44rem 0.38rem;
  349. background-color: #ffffff4d;
  350. .group {
  351. padding: 0 0.5rem;
  352. .image {
  353. width: 1.06rem;
  354. height: 0.69rem;
  355. }
  356. .image_2 {
  357. width: 0.94rem;
  358. height: 0.69rem;
  359. }
  360. .image_3 {
  361. width: 1.5rem;
  362. height: 0.72rem;
  363. }
  364. }
  365. .space-x-6-reverse {
  366. & > view:not(:last-child),
  367. & > text:not(:last-child),
  368. & > image:not(:last-child) {
  369. margin-right: 0.38rem;
  370. }
  371. }
  372. .group_2 {
  373. padding: 0.63rem 0 0.38rem;
  374. .text {
  375. font-size: 1.16rem;
  376. line-height: 1.06rem;
  377. }
  378. .section_4 {
  379. padding: 0.38rem 0.75rem;
  380. background-color: #ffffff99;
  381. border-radius: 1rem;
  382. border: solid 0.031rem #00000014;
  383. .image-wrapper {
  384. width: 1.19rem;
  385. .image_5 {
  386. width: 1.19rem;
  387. height: 0.44rem;
  388. }
  389. .image_4 {
  390. width: 1.13rem;
  391. height: 1.06rem;
  392. }
  393. }
  394. .section_5 {
  395. background-color: #00000033;
  396. width: 0.063rem;
  397. height: 1.16rem;
  398. }
  399. }
  400. .space-x-11 {
  401. & > view:not(:first-child),
  402. & > text:not(:first-child),
  403. & > image:not(:first-child) {
  404. margin-left: 0.69rem;
  405. }
  406. }
  407. .pos {
  408. position: absolute;
  409. right: 0;
  410. top: 50%;
  411. transform: translateY(-50%);
  412. }
  413. }
  414. }
  415. .space-y-22 {
  416. & > view:not(:first-child),
  417. & > text:not(:first-child),
  418. & > image:not(:first-child) {
  419. margin-top: 1.38rem;
  420. }
  421. }
  422. .font_1 {
  423. font-size: 1.13rem;
  424. font-family: PingFangSC;
  425. line-height: 1.03rem;
  426. color: #ffffff;
  427. }
  428. .text_2 {
  429. margin-left: 1.25rem;
  430. margin-top: 1.38rem;
  431. }
  432. .section_6 {
  433. padding: 0.94rem 0.63rem 0.13rem;
  434. background-color: #ffffff33;
  435. border-radius: 1rem;
  436. }
  437. .view {
  438. margin: 0.88rem 1.25rem 0;
  439. }
  440. .space-y-10 {
  441. & > view:not(:first-child),
  442. & > text:not(:first-child),
  443. & > image:not(:first-child) {
  444. margin-top: 0.63rem;
  445. }
  446. }
  447. .group_5 {
  448. padding: 0 1.25rem;
  449. .group_6 {
  450. padding-bottom: 0.88rem;
  451. .text_4 {
  452. line-height: 0.59rem;
  453. }
  454. }
  455. .space-x-30 {
  456. & > view:not(:first-child),
  457. & > text:not(:first-child),
  458. & > image:not(:first-child) {
  459. margin-left: 0.3rem;
  460. }
  461. }
  462. .section_7 {
  463. padding: 0.94rem 0.63rem 0;
  464. background-color: #ffffff33;
  465. border-radius: 1rem;
  466. .group_7 {
  467. border-bottom: solid 0.063rem #ffffff1a;
  468. .group_8 {
  469. padding-bottom: 0.88rem;
  470. border-bottom: solid 0.063rem #ffffff1a;
  471. .group_9 {
  472. margin-right: 0.19rem;
  473. }
  474. .space-x-20 {
  475. & > view:not(:first-child),
  476. & > text:not(:first-child),
  477. & > image:not(:first-child) {
  478. margin-left: 1.25rem;
  479. }
  480. }
  481. }
  482. .group_10 {
  483. padding: 0.88rem 0;
  484. .group_11 {
  485. margin-right: 0.19rem;
  486. }
  487. }
  488. }
  489. }
  490. .space-y-24 {
  491. & > view:not(:first-child),
  492. & > text:not(:first-child),
  493. & > image:not(:first-child) {
  494. margin-top: 1.5rem;
  495. }
  496. }
  497. .section_8 {
  498. padding: 0.63rem 0;
  499. background-color: #ffffff33;
  500. border-radius: 1rem;
  501. }
  502. .space-y-12 {
  503. & > view:not(:first-child),
  504. & > text:not(:first-child),
  505. & > image:not(:first-child) {
  506. margin-top: 0.75rem;
  507. }
  508. .text_5 {
  509. line-height: 1.06rem;
  510. }
  511. .space-y-4 {
  512. & > view:not(:first-child),
  513. & > text:not(:first-child),
  514. & > image:not(:first-child) {
  515. margin-top: 0.55rem;
  516. }
  517. .text_6 {
  518. line-height: 0.75rem;
  519. }
  520. .section_9 {
  521. padding: 0 0.63rem;
  522. background-color: #ffffff33;
  523. border-radius: 1rem;
  524. }
  525. }
  526. }
  527. .font_5 {
  528. font-size: 0.63rem;
  529. font-family: PingFangSC;
  530. color: red;
  531. }
  532. .space-x-8 {
  533. & > view:not(:first-child),
  534. & > text:not(:first-child),
  535. & > image:not(:first-child) {
  536. margin-left: 0.5rem;
  537. }
  538. .text_7 {
  539. color: #ffffff80;
  540. }
  541. .image_8 {
  542. width: 1.13rem;
  543. height: 1.13rem;
  544. }
  545. }
  546. .button {
  547. padding: 0.5rem 0;
  548. background-image: linear-gradient(90deg, #5611f780 0%, #1e1ef7f2 100%);
  549. border-radius: 1rem;
  550. width: 8.69rem;
  551. .text_9 {
  552. color: #ffffff;
  553. font-size: 1rem;
  554. font-family: PingFangSC;
  555. line-height: 0.94rem;
  556. }
  557. }
  558. }
  559. .space-y-14 {
  560. & > view:not(:first-child),
  561. & > text:not(:first-child),
  562. & > image:not(:first-child) {
  563. margin-top: 0.88rem;
  564. }
  565. }
  566. .equal-division {
  567. width: 12.5rem;
  568. }
  569. .font_2 {
  570. font-size: 0.88rem;
  571. font-family: PingFangSC;
  572. line-height: 0.81rem;
  573. color: #ffffff;
  574. }
  575. .text_3 {
  576. opacity: 0.8;
  577. }
  578. .font_3 {
  579. font-size: 1.13rem;
  580. font-family: PingFangSC;
  581. line-height: 0.81rem;
  582. color: #ffffff;
  583. }
  584. .image_7 {
  585. width: 0.38rem;
  586. height: 0.69rem;
  587. }
  588. .font_4 {
  589. font-size: 0.75rem;
  590. font-family: PingFangSC;
  591. line-height: 0.69rem;
  592. color: #ffffff;
  593. }
  594. .space-x-6 {
  595. & > view:not(:first-child),
  596. & > text:not(:first-child),
  597. & > image:not(:first-child) {
  598. margin-left: 0.38rem;
  599. }
  600. .equal-division-item {
  601. padding: 0.25rem 0.63rem;
  602. width: 6.84rem;
  603. }
  604. }
  605. .space-x-4 {
  606. & > view:not(:first-child),
  607. & > text:not(:first-child),
  608. & > image:not(:first-child) {
  609. margin-left: 0.25rem;
  610. }
  611. }
  612. .image_6 {
  613. width: 1.38rem;
  614. height: 0.88rem;
  615. }
  616. .space-y-20 {
  617. & > view:not(:first-child),
  618. & > text:not(:first-child),
  619. & > image:not(:first-child) {
  620. margin-top: 1.25rem;
  621. }
  622. }
  623. .list-item {
  624. padding: 0.88rem 0;
  625. border-bottom: solid 0.063rem #ffffff1a;
  626. .group_3 {
  627. margin-right: 0.19rem;
  628. }
  629. .text_8 {
  630. line-height: 0.78rem;
  631. }
  632. .image_9 {
  633. width: 0.88rem;
  634. height: 0.88rem;
  635. }
  636. }
  637. }
  638. .space-y-32 {
  639. & > view:not(:first-child),
  640. & > text:not(:first-child),
  641. & > image:not(:first-child) {
  642. margin-top: 2rem;
  643. }
  644. }
  645. }
  646. }
  647. @mixin flex {
  648. /* #ifndef APP-NVUE */
  649. display: flex;
  650. /* #endif */
  651. flex-direction: row;
  652. }
  653. @mixin height {
  654. /* #ifndef APP-NVUE */
  655. height: 100%;
  656. /* #endif */
  657. /* #ifdef APP-NVUE */
  658. flex: 1;
  659. /* #endif */
  660. }
  661. .box {
  662. @include flex;
  663. }
  664. .button {
  665. @include flex;
  666. align-items: center;
  667. justify-content: center;
  668. flex: 1;
  669. height: 35px;
  670. margin: 0 5px;
  671. border-radius: 5px;
  672. }
  673. .example-body {
  674. background-color: #fff;
  675. padding: 10px 0;
  676. }
  677. .button-text {
  678. color: #fff;
  679. font-size: 12px;
  680. }
  681. .popup-content {
  682. @include flex;
  683. align-items: center;
  684. justify-content: center;
  685. padding: 15px;
  686. height: 50px;
  687. background-color: #fff;
  688. }
  689. .popup-height {
  690. @include height;
  691. width: 200px;
  692. }
  693. .text {
  694. font-size: 12px;
  695. color: #333;
  696. }
  697. .popup-success {
  698. color: #fff;
  699. background-color: #e1f3d8;
  700. }
  701. .popup-warn {
  702. color: #fff;
  703. background-color: #faecd8;
  704. }
  705. .popup-error {
  706. color: #fff;
  707. background-color: #fde2e2;
  708. }
  709. .popup-info {
  710. color: #fff;
  711. background-color: #f2f6fc;
  712. }
  713. .success-text {
  714. color: #09bb07;
  715. }
  716. .warn-text {
  717. color: #e6a23c;
  718. }
  719. .error-text {
  720. color: #f56c6c;
  721. }
  722. .info-text {
  723. color: #909399;
  724. }
  725. .dialog,
  726. .share {
  727. /* #ifndef APP-NVUE */
  728. display: flex;
  729. /* #endif */
  730. flex-direction: column;
  731. }
  732. .dialog-box {
  733. padding: 10px;
  734. }
  735. .dialog .button,
  736. .share .button {
  737. /* #ifndef APP-NVUE */
  738. width: 100%;
  739. /* #endif */
  740. margin: 0;
  741. margin-top: 10px;
  742. padding: 3px 0;
  743. flex: 1;
  744. }
  745. .dialog-text {
  746. font-size: 14px;
  747. color: #333;
  748. }
  749. </style>