alertSetting.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  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. height: 100%;
  344. .section_2 {
  345. padding-bottom: 1.25rem;
  346. background-image: linear-gradient(180deg, #1e1ef7f2 0%, #1dbff79c 100%);
  347. backdrop-filter: blur(0.19rem);
  348. height: 100%;
  349. .section_3 {
  350. padding: 1.13rem 0.44rem 0.38rem;
  351. background-color: #ffffff4d;
  352. .group {
  353. padding: 0 0.5rem;
  354. .image {
  355. width: 1.06rem;
  356. height: 0.69rem;
  357. }
  358. .image_2 {
  359. width: 0.94rem;
  360. height: 0.69rem;
  361. }
  362. .image_3 {
  363. width: 1.5rem;
  364. height: 0.72rem;
  365. }
  366. }
  367. .space-x-6-reverse {
  368. & > view:not(:last-child),
  369. & > text:not(:last-child),
  370. & > image:not(:last-child) {
  371. margin-right: 0.38rem;
  372. }
  373. }
  374. .group_2 {
  375. padding: 0.63rem 0 0.38rem;
  376. .text {
  377. font-size: 1.16rem;
  378. line-height: 1.06rem;
  379. }
  380. .section_4 {
  381. padding: 0.38rem 0.75rem;
  382. background-color: #ffffff99;
  383. border-radius: 1rem;
  384. border: solid 0.031rem #00000014;
  385. .image-wrapper {
  386. width: 1.19rem;
  387. .image_5 {
  388. width: 1.19rem;
  389. height: 0.44rem;
  390. }
  391. .image_4 {
  392. width: 1.13rem;
  393. height: 1.06rem;
  394. }
  395. }
  396. .section_5 {
  397. background-color: #00000033;
  398. width: 0.063rem;
  399. height: 1.16rem;
  400. }
  401. }
  402. .space-x-11 {
  403. & > view:not(:first-child),
  404. & > text:not(:first-child),
  405. & > image:not(:first-child) {
  406. margin-left: 0.69rem;
  407. }
  408. }
  409. .pos {
  410. position: absolute;
  411. right: 0;
  412. top: 50%;
  413. transform: translateY(-50%);
  414. }
  415. }
  416. }
  417. .space-y-22 {
  418. & > view:not(:first-child),
  419. & > text:not(:first-child),
  420. & > image:not(:first-child) {
  421. margin-top: 1.38rem;
  422. }
  423. }
  424. .font_1 {
  425. font-size: 1.13rem;
  426. font-family: PingFangSC;
  427. line-height: 1.03rem;
  428. color: #ffffff;
  429. }
  430. .text_2 {
  431. margin-left: 1.25rem;
  432. margin-top: 1.38rem;
  433. }
  434. .section_6 {
  435. padding: 0.94rem 0.63rem 0.13rem;
  436. background-color: #ffffff33;
  437. border-radius: 1rem;
  438. }
  439. .view {
  440. margin: 0.88rem 1.25rem 0;
  441. }
  442. .space-y-10 {
  443. & > view:not(:first-child),
  444. & > text:not(:first-child),
  445. & > image:not(:first-child) {
  446. margin-top: 0.63rem;
  447. }
  448. }
  449. .group_5 {
  450. padding: 0 1.25rem;
  451. .group_6 {
  452. padding-bottom: 0.88rem;
  453. .text_4 {
  454. line-height: 0.59rem;
  455. }
  456. }
  457. .space-x-30 {
  458. & > view:not(:first-child),
  459. & > text:not(:first-child),
  460. & > image:not(:first-child) {
  461. margin-left: 0.3rem;
  462. }
  463. }
  464. .section_7 {
  465. padding: 0.94rem 0.63rem 0;
  466. background-color: #ffffff33;
  467. border-radius: 1rem;
  468. .group_7 {
  469. border-bottom: solid 0.063rem #ffffff1a;
  470. .group_8 {
  471. padding-bottom: 0.88rem;
  472. border-bottom: solid 0.063rem #ffffff1a;
  473. .group_9 {
  474. margin-right: 0.19rem;
  475. }
  476. .space-x-20 {
  477. & > view:not(:first-child),
  478. & > text:not(:first-child),
  479. & > image:not(:first-child) {
  480. margin-left: 1.25rem;
  481. }
  482. }
  483. }
  484. .group_10 {
  485. padding: 0.88rem 0;
  486. .group_11 {
  487. margin-right: 0.19rem;
  488. }
  489. }
  490. }
  491. }
  492. .space-y-24 {
  493. & > view:not(:first-child),
  494. & > text:not(:first-child),
  495. & > image:not(:first-child) {
  496. margin-top: 1.5rem;
  497. }
  498. }
  499. .section_8 {
  500. padding: 0.63rem 0;
  501. background-color: #ffffff33;
  502. border-radius: 1rem;
  503. }
  504. .space-y-12 {
  505. & > view:not(:first-child),
  506. & > text:not(:first-child),
  507. & > image:not(:first-child) {
  508. margin-top: 0.75rem;
  509. }
  510. .text_5 {
  511. line-height: 1.06rem;
  512. }
  513. .space-y-4 {
  514. & > view:not(:first-child),
  515. & > text:not(:first-child),
  516. & > image:not(:first-child) {
  517. margin-top: 0.55rem;
  518. }
  519. .text_6 {
  520. line-height: 0.75rem;
  521. }
  522. .section_9 {
  523. padding: 0 0.63rem;
  524. background-color: #ffffff33;
  525. border-radius: 1rem;
  526. }
  527. }
  528. }
  529. .font_5 {
  530. font-size: 0.63rem;
  531. font-family: PingFangSC;
  532. color: red;
  533. }
  534. .space-x-8 {
  535. & > view:not(:first-child),
  536. & > text:not(:first-child),
  537. & > image:not(:first-child) {
  538. margin-left: 0.5rem;
  539. }
  540. .text_7 {
  541. color: #ffffff80;
  542. }
  543. .image_8 {
  544. width: 1.13rem;
  545. height: 1.13rem;
  546. }
  547. }
  548. .button {
  549. padding: 0.5rem 0;
  550. background-image: linear-gradient(90deg, #5611f780 0%, #1e1ef7f2 100%);
  551. border-radius: 1rem;
  552. width: 8.69rem;
  553. .text_9 {
  554. color: #ffffff;
  555. font-size: 1rem;
  556. font-family: PingFangSC;
  557. line-height: 0.94rem;
  558. }
  559. }
  560. }
  561. .space-y-14 {
  562. & > view:not(:first-child),
  563. & > text:not(:first-child),
  564. & > image:not(:first-child) {
  565. margin-top: 0.88rem;
  566. }
  567. }
  568. .equal-division {
  569. width: 12.5rem;
  570. }
  571. .font_2 {
  572. font-size: 0.88rem;
  573. font-family: PingFangSC;
  574. line-height: 0.81rem;
  575. color: #ffffff;
  576. }
  577. .text_3 {
  578. opacity: 0.8;
  579. }
  580. .font_3 {
  581. font-size: 1.13rem;
  582. font-family: PingFangSC;
  583. line-height: 0.81rem;
  584. color: #ffffff;
  585. }
  586. .image_7 {
  587. width: 0.38rem;
  588. height: 0.69rem;
  589. }
  590. .font_4 {
  591. font-size: 0.75rem;
  592. font-family: PingFangSC;
  593. line-height: 0.69rem;
  594. color: #ffffff;
  595. }
  596. .space-x-6 {
  597. & > view:not(:first-child),
  598. & > text:not(:first-child),
  599. & > image:not(:first-child) {
  600. margin-left: 0.38rem;
  601. }
  602. .equal-division-item {
  603. padding: 0.25rem 0.63rem;
  604. width: 6.84rem;
  605. }
  606. }
  607. .space-x-4 {
  608. & > view:not(:first-child),
  609. & > text:not(:first-child),
  610. & > image:not(:first-child) {
  611. margin-left: 0.25rem;
  612. }
  613. }
  614. .image_6 {
  615. width: 1.38rem;
  616. height: 0.88rem;
  617. }
  618. .space-y-20 {
  619. & > view:not(:first-child),
  620. & > text:not(:first-child),
  621. & > image:not(:first-child) {
  622. margin-top: 1.25rem;
  623. }
  624. }
  625. .list-item {
  626. padding: 0.88rem 0;
  627. border-bottom: solid 0.063rem #ffffff1a;
  628. .group_3 {
  629. margin-right: 0.19rem;
  630. }
  631. .text_8 {
  632. line-height: 0.78rem;
  633. }
  634. .image_9 {
  635. width: 0.88rem;
  636. height: 0.88rem;
  637. }
  638. }
  639. }
  640. .space-y-32 {
  641. & > view:not(:first-child),
  642. & > text:not(:first-child),
  643. & > image:not(:first-child) {
  644. margin-top: 2rem;
  645. }
  646. }
  647. }
  648. }
  649. @mixin flex {
  650. /* #ifndef APP-NVUE */
  651. display: flex;
  652. /* #endif */
  653. flex-direction: row;
  654. }
  655. @mixin height {
  656. /* #ifndef APP-NVUE */
  657. height: 100%;
  658. /* #endif */
  659. /* #ifdef APP-NVUE */
  660. flex: 1;
  661. /* #endif */
  662. }
  663. .box {
  664. @include flex;
  665. }
  666. .button {
  667. @include flex;
  668. align-items: center;
  669. justify-content: center;
  670. flex: 1;
  671. height: 35px;
  672. margin: 0 5px;
  673. border-radius: 5px;
  674. }
  675. .example-body {
  676. background-color: #fff;
  677. padding: 10px 0;
  678. }
  679. .button-text {
  680. color: #fff;
  681. font-size: 12px;
  682. }
  683. .popup-content {
  684. @include flex;
  685. align-items: center;
  686. justify-content: center;
  687. padding: 15px;
  688. height: 50px;
  689. background-color: #fff;
  690. }
  691. .popup-height {
  692. @include height;
  693. width: 200px;
  694. }
  695. .text {
  696. font-size: 12px;
  697. color: #333;
  698. }
  699. .popup-success {
  700. color: #fff;
  701. background-color: #e1f3d8;
  702. }
  703. .popup-warn {
  704. color: #fff;
  705. background-color: #faecd8;
  706. }
  707. .popup-error {
  708. color: #fff;
  709. background-color: #fde2e2;
  710. }
  711. .popup-info {
  712. color: #fff;
  713. background-color: #f2f6fc;
  714. }
  715. .success-text {
  716. color: #09bb07;
  717. }
  718. .warn-text {
  719. color: #e6a23c;
  720. }
  721. .error-text {
  722. color: #f56c6c;
  723. }
  724. .info-text {
  725. color: #909399;
  726. }
  727. .dialog,
  728. .share {
  729. /* #ifndef APP-NVUE */
  730. display: flex;
  731. /* #endif */
  732. flex-direction: column;
  733. }
  734. .dialog-box {
  735. padding: 10px;
  736. }
  737. .dialog .button,
  738. .share .button {
  739. /* #ifndef APP-NVUE */
  740. width: 100%;
  741. /* #endif */
  742. margin: 0;
  743. margin-top: 10px;
  744. padding: 3px 0;
  745. flex: 1;
  746. }
  747. .dialog-text {
  748. font-size: 14px;
  749. color: #333;
  750. }
  751. </style>