index.vue 24 KB

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