set.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223
  1. <template>
  2. <view class="container">
  3. <uni-forms ref="form" :rules="rules" err-show-type="toast" :model="formData">
  4. <!-- 久坐提醒 -->
  5. <template v-if="title == '久坐提醒'">
  6. <uni-forms-item label="">
  7. <view class="forms-item border-line">
  8. <text class="label">久坐提醒</text>
  9. <mySwitch :activeValue="1" :inactiveValue="0" :value="formData.sedentaryOpen"
  10. @change="onChange($event,'sedentaryOpen')" />
  11. </view>
  12. </uni-forms-item>
  13. <view v-if="formData.sedentaryOpen == 1">
  14. <uni-forms-item label="" name="start_hour">
  15. <picker mode="multiSelector" :range="arrDate" :value="timeVal"
  16. @change="bindPickerChange($event,'timeVal')">
  17. <view class="forms-item border-line">
  18. <text class="label">时间段设置</text>
  19. <view class="box-itemr">
  20. <view v-if="formData.start_hour">{{formData.start_hour}} - {{formData.end_hour}}</view>
  21. <text v-else>请选择</text>
  22. <image class="arrow_black" src="@/static/images/pages_watch/icons/my_right_arrow_right_icon.png"
  23. mode="aspectFill"></image>
  24. </view>
  25. </view>
  26. </picker>
  27. </uni-forms-item>
  28. <uni-forms-item label="">
  29. <view class="forms-item border-line" @click="openPop">
  30. <text class="label">重复</text>
  31. <view class="box-itemr">
  32. <text>{{formData.repeatWeek.length == 0 ? '永不': repeatWeekText}}</text>
  33. <image class="arrow_black" src="@/static/images/pages_watch/icons/my_right_arrow_right_icon.png"
  34. mode="aspectFill"></image>
  35. </view>
  36. </view>
  37. </uni-forms-item>
  38. </view>
  39. </template>
  40. <!-- 心率指导 -->
  41. <template v-if="title == '心率指导'">
  42. <uni-forms-item label="">
  43. <view class="forms-item border-line">
  44. <text class="label">心率指导</text>
  45. <mySwitch :value="formData.hralarmOpen" @change="onChange($event,'hralarmOpen')" />
  46. </view>
  47. </uni-forms-item>
  48. <template v-if="formData.hralarmOpen">
  49. <uni-forms-item label="" name="hralarmHigh">
  50. <view class="forms-item border-line">
  51. <text class="label">不在区间内提醒</text>
  52. <view class="box-itemr">
  53. <view v-if="formData.hralarmHigh">{{formData.hralarmLow}} - {{formData.hralarmHigh}}</view>
  54. <text v-else>请选择</text>
  55. <image class="arrow_black" src="@/static/images/pages_watch/icons/my_right_arrow_right_icon.png"
  56. mode="aspectFill"></image>
  57. </view>
  58. </view>
  59. </uni-forms-item>
  60. <view class="hrRangetag">
  61. <view :class="hrActive === index ? 'hractive' : ''" v-for="(item,index) in hrRangetag" :key="index"
  62. @tap="handlehrRangetag(item,index)">
  63. {{item.name}}
  64. </view>
  65. </view>
  66. <picker-view v-if="visible" :indicator-style="indicatorStyle" :value="hrRangeValue"
  67. @change="hrRangeChange" class="picker-view">
  68. <picker-view-column>
  69. <view class="item" v-for="(item,index) in hrRange[0]" :key="index">{{item}}</view>
  70. </picker-view-column>
  71. <picker-view-column>
  72. <view class="item" v-for="(item,index) in hrRange[1]" :key="index">{{item}}</view>
  73. </picker-view-column>
  74. </picker-view>
  75. </template>
  76. </template>
  77. <!-- 血氧预警 -->
  78. <template v-if="title == '血氧预警'">
  79. <uni-forms-item label="">
  80. <view class="forms-item border-line">
  81. <text class="label">血氧预警</text>
  82. <mySwitch :value="formData.spo2alarmOpen" @change="onChange($event,'spo2alarmOpen')" />
  83. </view>
  84. </uni-forms-item>
  85. <uni-forms-item label="" name="spo2alarmLow" v-if="formData.spo2alarmOpen">
  86. <picker @change="bindPickerChange($event,'boRangeValue')" :value="boRangeValue" :range="boRange">
  87. <view class="forms-item border-line">
  88. <text class="label">血氧预警设置</text>
  89. <view class="box-itemr">
  90. <text>{{formData.spo2alarmLow ? formData.spo2alarmLow : '请选择'}}</text>
  91. <image class="arrow_black" src="@/static/images/pages_watch/icons/my_right_arrow_right_icon.png"
  92. mode="aspectFill"></image>
  93. </view>
  94. </view>
  95. </picker>
  96. </uni-forms-item>
  97. </template>
  98. <!-- 省电设置 -->
  99. <template v-if="title == '省电设置'">
  100. <view class="forms-item-title">勾选下方功能,点击一键省电进行优化</view>
  101. <label class="forms-item border-line" v-for="(item,index) in option" @tap="handleOption(item,index)">
  102. <view class="label">
  103. <view>{{item.name}}</view>
  104. <view class="label-tips">{{item.desc}}</view>
  105. </view>
  106. <view style="display: inline-block;">
  107. <view class="choose-radio" v-if="!item.checked"></view>
  108. <image class="choose-image" v-if="item.checked" src="@/static/images/pages_watch/icons/radio_choose_icon.png">
  109. </image>
  110. </view>
  111. </label>
  112. <view class="forms-item-title">已优化项</view>
  113. <label class="forms-item border-line" v-for="(item,index) in optionChoose" @click="handlePower(item,index)">
  114. <view class="label">
  115. <view>{{item.name}}</view>
  116. <view class="label-tips">{{item.desc}}</view>
  117. </view>
  118. <uni-icons type="checkmarkempty" size="20" :color="color"></uni-icons>
  119. </label>
  120. </template>
  121. <!-- 日期与时间 -->
  122. <template v-if="title == '日期与时间'">
  123. <view class="forms-item-title">时间格式</view>
  124. <radio-group @change="radioChange($event,'Itime')">
  125. <uni-forms-item label="" name="Itime">
  126. <label class="forms-item border-line">
  127. <text class="label">12小时制</text>
  128. <radio value="1" :checked="formData.Itime == 1" :color="color" :activeBorderColor="color"
  129. style="transform: scale(0.8);" />
  130. </label>
  131. <label class="forms-item">
  132. <text class="label">24小时制</text>
  133. <radio value="0" :checked="formData.Itime == 0" :color="color" :activeBorderColor="color"
  134. style="transform: scale(0.8);" />
  135. </label>
  136. </uni-forms-item>
  137. </radio-group>
  138. <view class="forms-item-title">日期格式</view>
  139. <radio-group @change="radioChange($event,'IDate')">
  140. <uni-forms-item label="" name="IDate">
  141. <label class="forms-item border-line">
  142. <text class="label">月-日</text>
  143. <radio value="0" :checked="formData.IDate == 0" :color="color" :activeBorderColor="color"
  144. style="transform: scale(0.8);" />
  145. </label>
  146. <label class="forms-item">
  147. <text class="label">日-月</text>
  148. <radio value="1" :checked="formData.IDate == 1" :color="color" :activeBorderColor="color"
  149. style="transform: scale(0.8);" />
  150. </label>
  151. </uni-forms-item>
  152. </radio-group>
  153. </template>
  154. <!-- 翻腕亮屏 -->
  155. <template v-if="title == '翻腕亮屏'">
  156. <uni-forms-item label="">
  157. <view class="forms-item border-line">
  158. <text class="label">翻腕亮屏</text>
  159. <mySwitch :value="formData.lcdgestureOpen" @change="onChange($event,'lcdgestureOpen')" />
  160. </view>
  161. </uni-forms-item>
  162. <uni-forms-item label="" name="lcdgestureStart" v-if="formData.lcdgestureOpen">
  163. <picker mode="multiSelector" :range="arrDate" :value="palmingVal"
  164. @change="bindPickerChange($event,'palmingVal')">
  165. <view class="forms-item border-line">
  166. <text class="label">时间段设置</text>
  167. <view class="box-itemr">
  168. <text v-if="formData.lcdgestureStart">{{formData.lcdgestureStart}} - {{formData.lcdgestureEnd}}</text>
  169. <text v-else>请选择</text>
  170. <image class="arrow_black" src="@/static/images/pages_watch/icons/my_right_arrow_right_icon.png"
  171. mode="aspectFill"></image>
  172. </view>
  173. </view>
  174. </picker>
  175. </uni-forms-item>
  176. </template>
  177. <!-- 单位设置 -->
  178. <template v-if="title == '单位设置'">
  179. <view class="forms-item-title">度量单位</view>
  180. <radio-group @change="radioChange($event,'measure')">
  181. <uni-forms-item label="">
  182. <label class="forms-item border-line">
  183. <text class="label">英制</text>
  184. <radio value="1" :checked="formData.measure == 1" :color="color" :activeBorderColor="color"
  185. style="transform: scale(0.8);" />
  186. </label>
  187. <label class="forms-item">
  188. <text class="label">公制</text>
  189. <radio value="0" :checked="formData.measure == 0" :color="color" :activeBorderColor="color"
  190. style="transform: scale(0.8);" />
  191. </label>
  192. </uni-forms-item>
  193. </radio-group>
  194. <view class="forms-item-title">温度单位</view>
  195. <radio-group @change="radioChange($event,'temperature')">
  196. <uni-forms-item label="">
  197. <label class="forms-item border-line">
  198. <text class="label">摄氏度</text>
  199. <radio value="0" :checked="formData.temperature == 0" :color="color" :activeBorderColor="color"
  200. style="transform: scale(0.8);" />
  201. </label>
  202. <label class="forms-item">
  203. <text class="label">华氏度</text>
  204. <radio value="1" :checked="formData.temperature == 1" :color="color" :activeBorderColor="color"
  205. style="transform: scale(0.8);" />
  206. </label>
  207. </uni-forms-item>
  208. </radio-group>
  209. </template>
  210. <!-- 手表模式 -->
  211. <template v-if="title == '手表模式'">
  212. <uni-forms-item label="">
  213. <view class="forms-item border-line">
  214. <text class="label">自动定位</text>
  215. <mySwitch :value="formData.isLocation" @change="onChange($event,'isLocation')" />
  216. </view>
  217. </uni-forms-item>
  218. <uni-forms-item label="" name="interval" v-if="formData.isLocation || formData.isPower">
  219. <picker mode="multiSelector" :range="intervalData" :value="interval"
  220. @change="bindPickerChange($event,'interval')">
  221. <view class="forms-item border-line">
  222. <text class="label">定位&传输间隔</text>
  223. <view class="box-itemr">
  224. <text>{{intervalData[0][interval[0]]}}小时{{intervalData[1][interval[1]]}}分钟</text>
  225. <image class="arrow_black" src="@/static/images/pages_watch/icons/my_right_arrow_right_icon.png"
  226. mode="aspectFill"></image>
  227. </view>
  228. </view>
  229. </picker>
  230. </uni-forms-item>
  231. <uni-forms-item label="">
  232. <view class="forms-item border-line">
  233. <view>
  234. <text class="label">放置省电</text>
  235. <view class="label-tips" style="margin-right: 40rpx;">该功能打开后,手表未佩戴进入放置后,手表无法接听和上传数据</view>
  236. </view>
  237. <mySwitch :value="formData.isPower" @change="onChange($event,'isPower')" />
  238. </view>
  239. </uni-forms-item>
  240. </template>
  241. <!-- 添加闹钟 -->
  242. <template v-if="title == '添加闹钟'">
  243. <uni-forms-item label="" name="title">
  244. <view class="forms-item border-line">
  245. <uni-easyinput type="text" v-model="formData.title" placeholder="标题" :placeholderStyle="placeholderStyle" :inputBorder="false" :clearable="false" />
  246. </view>
  247. </uni-forms-item>
  248. <uni-forms-item label="">
  249. <picker mode="multiSelector" :range="clockalarmRange" :value="clockalarmVal"
  250. @change="bindPickerChange($event,'clockalarmVal')">
  251. <view class="forms-item border-line">
  252. <text class="label">开始</text>
  253. <view class="box-itemr">
  254. <view>{{formData.hour}}:{{formData.minute}}</view>
  255. <image class="arrow_black" src="@/static/images/pages_watch/icons/my_right_arrow_right_icon.png"
  256. mode="aspectFill"></image>
  257. </view>
  258. </view>
  259. </picker>
  260. </uni-forms-item>
  261. <uni-forms-item label="">
  262. <view class="forms-item border-line" @click="openPop">
  263. <text class="label">重复</text>
  264. <view class="box-itemr">
  265. <text>{{formData.repeatWeek.length == 0 ? '不重复': repeatWeekText}}</text>
  266. <image class="arrow_black" src="@/static/images/pages_watch/icons/my_right_arrow_right_icon.png"
  267. mode="aspectFill"></image>
  268. </view>
  269. </view>
  270. </uni-forms-item>
  271. </template>
  272. </uni-forms>
  273. <!-- 久坐提醒 重复 -->
  274. <uni-popup ref="popup" type="bottom">
  275. <view class="popbox">
  276. <view class="popbox-head">
  277. <text style="color: #888;" @tap="closePop()">取消</text>
  278. <text style="color:#007aff;" @tap="comfirmPop()">完成</text>
  279. </view>
  280. <view class="popbox-body">
  281. <view class="weektype item-flex border-line" @click="handleWeek(1)">
  282. <text>每天</text>
  283. <uni-icons type="checkmarkempty" size="20" :color="color" v-show="weekType == 1"></uni-icons>
  284. </view>
  285. <view class="weektype item-flex border-line" @click="handleWeek(2)">
  286. <text>工作日</text>
  287. <uni-icons type="checkmarkempty" size="20" :color="color" v-show="weekType == 2"></uni-icons>
  288. </view>
  289. <view class="weektype item-flex" @click="handleWeek(3)">
  290. <text>周末</text>
  291. <uni-icons type="checkmarkempty" size="20" :color="color" v-show="weekType == 3"></uni-icons>
  292. </view>
  293. <view class="weektype-item item-flex border-line" v-for="(item,index) in repeatWeek" :key="index"
  294. @click="handleWeekItem(item)">
  295. <text>{{item.label}}</text>
  296. <uni-icons type="checkmarkempty" size="20" :color="color" v-show="item.checked"></uni-icons>
  297. </view>
  298. </view>
  299. </view>
  300. </uni-popup>
  301. <view class="footer">
  302. <button class="savebtn" :loading="btnLoading" :disabled="btnLoading" @click="submit">
  303. {{title=='省电设置'?'一键省电':'保 存'}}
  304. </button>
  305. </view>
  306. </view>
  307. </template>
  308. <script>
  309. import mySwitch from "/pages_watch/components/mySwitch/mySwitch.vue";
  310. import {
  311. getSetUpInfoByDeviceId,
  312. setSedentary,
  313. hralarm,
  314. spo2alarm,
  315. power,
  316. lcdgesture,
  317. setDeviceTime,
  318. setDeviceUnit,
  319. setDeviceMode,
  320. setClockalarm
  321. } from "@/api/pages_watch/index.js";
  322. export default {
  323. components: {
  324. mySwitch
  325. },
  326. data() {
  327. return {
  328. deviceId: "",
  329. color: "#FF7700",
  330. placeholderStyle: "{font-family: PingFang SC, PingFang SC;font-weight: 400;font-size: 32rpx;color: #CCCCCC;}",
  331. title: "",
  332. arrDate: [
  333. ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00',
  334. '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00',
  335. '21:00', '22:00', '23:00'
  336. ],
  337. ['01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00',
  338. '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00',
  339. '22:00', '23:00', '24:00'
  340. ],
  341. ],
  342. timeVal: [0, 0],
  343. palmingVal: [0, 1],
  344. repeatWeek: [{
  345. label: "周一",
  346. value: "monday",
  347. checked: false
  348. }, {
  349. label: "周二",
  350. value: "tuesday",
  351. checked: false
  352. }, {
  353. label: "周三",
  354. value: "wednesday",
  355. checked: false
  356. }, {
  357. label: "周四",
  358. value: "thursday",
  359. checked: false
  360. }, {
  361. label: "周五",
  362. value: "friday",
  363. checked: false
  364. }, {
  365. label: "周六",
  366. value: "saturday",
  367. checked: false
  368. }, {
  369. label: "周日",
  370. value: "sunday",
  371. checked: false
  372. }],
  373. // weekType: 0,
  374. repeatWeekText: "",
  375. visible: true,
  376. indicatorStyle: `height: 100rpx;`,
  377. hrRangeValue: [20, 50],
  378. hrActive: undefined,
  379. hrRangetag: [{
  380. name: '热身运动',
  381. value: [57, 66]
  382. }, {
  383. name: '脂肪燃烧',
  384. value: [77, 86]
  385. }, {
  386. name: '有氧运动',
  387. value: [97, 105]
  388. }, {
  389. name: '无氧运动',
  390. value: [116, 125]
  391. }],
  392. boRange: ["80%", "81%", "82%", "83%", "84%", "85%", "86%", "87%", "88%", "89%", "90%", "91%", "92%",
  393. "93%"],
  394. boRangeValue: 10,
  395. defaultOption: [{
  396. name: "关闭翻腕亮屏",
  397. type: "isLcdgesture",
  398. desc: "该功能关闭后,则无法通过翻腕自动点亮屏幕",
  399. opendesc: "翻腕亮屏:开启翻腕亮屏后会增加功耗,是否继续?",
  400. checked: false,
  401. }, {
  402. name: "关闭24小时心脏健康",
  403. type: "isHeartHealth",
  404. desc: "该功能关闭后,则无法查看心脏健康散点图和REM睡眠",
  405. opendesc: "24小时心脏健康:开启24小时心脏健康后,会增加功耗,是否继续?",
  406. checked: false,
  407. }, {
  408. name: "关闭自动定位",
  409. type: "isLocation",
  410. desc: "该功能关闭后,手表不再定时自动定位",
  411. opendesc: "自动定位:开启自动定位后会增加功耗,是否继续?",
  412. checked: false,
  413. }, {
  414. name: "关闭放置省电",
  415. type: "isPower",
  416. desc: "关闭放置省电后,会增加功耗,是否继续?",
  417. opendesc: "关闭放置省电后,会增加功耗,是否继续?",
  418. checked: false,
  419. }],
  420. option: [],
  421. optionChoose: [],
  422. intervalData: [
  423. ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17',
  424. '18', '19', '20', '21', '22', '23'
  425. ],
  426. ["00", "30"]
  427. ],
  428. interval: [0, 0],
  429. clockalarmVal: [0,0],
  430. clockalarmInfo: [], // 原有闹钟信息
  431. formData: {
  432. sedentaryOpen: 0,
  433. start_hour: "",
  434. end_hour: "",
  435. repeatWeek: [],
  436. duration: 5,
  437. threshold: 40,
  438. hralarmOpen: false,
  439. hralarmHigh: null,
  440. hralarmLow: null,
  441. timeout: 3,
  442. alarm_interval: 10,
  443. spo2alarmOpen: false,
  444. spo2alarmLow: null,
  445. lcdgestureOpen: false,
  446. lcdgestureStart: null,
  447. lcdgestureEnd: null,
  448. Itime: '0',
  449. IDate: '0',
  450. measure: '0', // 度量单位0公制,1英制
  451. temperature: '0', // 度量单位0公制,1英制
  452. isLocation: false,
  453. interval: null,
  454. isPower: false,
  455. title: "",
  456. hour: "",
  457. minute: ""
  458. },
  459. rules: {
  460. start_hour: {
  461. rules: [{
  462. required: true,
  463. errorMessage: '请选择时间段设置'
  464. }]
  465. },
  466. hralarmHigh: {
  467. rules: [{
  468. required: true,
  469. errorMessage: '请选择区间'
  470. }]
  471. },
  472. spo2alarmLow: {
  473. rules: [{
  474. required: true,
  475. errorMessage: '请选择血氧预警值'
  476. }]
  477. },
  478. lcdgestureStart: {
  479. rules: [{
  480. required: true,
  481. errorMessage: '请选择时间段设置'
  482. }]
  483. },
  484. Itime: {
  485. rules: [{
  486. required: true,
  487. errorMessage: '请选择时间格式'
  488. }]
  489. },
  490. IDate: {
  491. rules: [{
  492. required: true,
  493. errorMessage: '请选择日期格式'
  494. }]
  495. },
  496. measure: {
  497. rules: [{
  498. required: true,
  499. errorMessage: '请选择度量单位'
  500. }]
  501. },
  502. temperature: {
  503. rules: [{
  504. required: true,
  505. errorMessage: '请选择温度单位'
  506. }]
  507. },
  508. interval: {
  509. rules: [{
  510. required: true,
  511. errorMessage: '请选择定位&传输间隔'
  512. }]
  513. },
  514. title: {
  515. rules: [{
  516. required: true,
  517. errorMessage: '请输入标题'
  518. }]
  519. },
  520. },
  521. btnLoading: false,
  522. isEdit: false,
  523. index: 0, //修改的闹钟index
  524. }
  525. },
  526. computed: {
  527. weekType() {
  528. const repeatWeekChoose = this.repeatWeek.filter(item => item.checked == true).map(it => it.label)
  529. // 判断是否为工作日
  530. const isWorkDay = repeatWeekChoose.length == 5 && ["周一", "周二", "周三", "周四", "周五"].every(day =>
  531. repeatWeekChoose.includes(day));
  532. // 判断是否为周末
  533. const isWeekend = repeatWeekChoose.length == 2 && ["周六", "周日"].every(day => repeatWeekChoose.includes(
  534. day));
  535. // 判断是否为每天
  536. const isEveryday = repeatWeekChoose.length == 7 && !isWorkDay && !isWeekend;
  537. return isEveryday ? 1 : isWorkDay ? 2 : isWeekend ? 3 : 0
  538. },
  539. hrRange() {
  540. let one = Array.from({
  541. length: 151
  542. }, (_, i) => i + 40)
  543. let two = Array.from({
  544. length: 151
  545. }, (_, i) => i + 50)
  546. return [one, two]
  547. },
  548. clockalarmRange() {
  549. let hours = [];
  550. for (let i = 0; i <= 23; i++) {
  551. hours.push(i.toString());
  552. }
  553. let minutes = [];
  554. for (let i = 0; i <= 59; i++) {
  555. minutes.push(i.toString().padStart(2, '0'));
  556. }
  557. return [hours, minutes]
  558. },
  559. },
  560. onLoad(option) {
  561. this.isEdit = option.isEdit || false
  562. this.index = option.index || false
  563. this.title = option.title || ''
  564. uni.setNavigationBarTitle({
  565. title: this.isEdit && this.title == '添加闹钟' ? '修改闹钟' : this.title,
  566. });
  567. this.option = this.defaultOption
  568. const nowH = this.$timeFormat(new Date(),'h')
  569. const nowM = this.$timeFormat(new Date(),'MM')
  570. this.clockalarmVal = [this.clockalarmRange[0].indexOf(nowH),this.clockalarmRange[1].indexOf(nowM)]
  571. this.formData.hour = nowH
  572. this.formData.minute = nowM
  573. },
  574. onReady() {
  575. // 需要在onReady中设置规则
  576. this.$refs.form.setRules(this.rules)
  577. },
  578. onShow() {
  579. this.deviceId = uni.getStorageSync("deviceId") || ""
  580. if (this.$isLogin()) {
  581. if (this.deviceId) {
  582. this.getSetUpInfo()
  583. } else {
  584. console.log("set.vue ---- deviceId is undefined")
  585. // uni.showToast({
  586. // title: "deviceId不存在",
  587. // icon: "none"
  588. // })
  589. }
  590. } else {
  591. this.$showLoginPage()
  592. }
  593. },
  594. methods: {
  595. handlePower(item){
  596. uni.showModal({
  597. title: '取消省电设置',
  598. content: item.opendesc,
  599. success: (res)=> {
  600. if (res.confirm) {
  601. let param = {
  602. deviceId: this.deviceId,
  603. isLcdgesture: null,
  604. isLocation: null,
  605. isPower: null,
  606. isHeartHealth: null
  607. }
  608. param[item.type] = true
  609. power(param).then(res => {
  610. if(res.code == 200) {
  611. this.$navBack()
  612. } else {
  613. uni.showToast({
  614. title: res.msg,
  615. icon: "none"
  616. })
  617. }
  618. })
  619. }
  620. }
  621. });
  622. },
  623. getSetUpInfo() {
  624. getSetUpInfoByDeviceId({
  625. deviceId: this.deviceId
  626. }).then(res => {
  627. if (res.code == 200 && res.data) {
  628. this.clockalarmInfo = res.data.alarmClock.alarmClockObjectVos || []
  629. this.resetInfo(res.data)
  630. } else {
  631. uni.showToast({
  632. title: res.msg,
  633. icon: "none"
  634. })
  635. }
  636. })
  637. },
  638. resetInfo(resData) {
  639. if(this.title == "久坐提醒") {
  640. this.formData.sedentaryOpen = resData.sedentary.open
  641. this.formData.start_hour = resData.sedentary.sedentaries && resData.sedentary.sedentaries.length > 0 ? this.$formatHour(resData.sedentary.sedentaries[0].start_hour) : ''
  642. this.formData.end_hour = resData.sedentary.sedentaries && resData.sedentary.sedentaries.length > 0 ? this.$formatHour(resData.sedentary.sedentaries[0].end_hour) : ''
  643. this.formData.duration = resData.sedentary.sedentaries && resData.sedentary.sedentaries.length > 0 ?resData.sedentary.sedentaries.duration : 5
  644. this.formData.threshold = resData.sedentary.sedentaries && resData.sedentary.sedentaries.length > 0 ?resData.sedentary.sedentaries.threshold : 40
  645. this.formData.repeatWeek = []
  646. if(resData.sedentary.sedentaries && resData.sedentary.sedentaries.length > 0 && !resData.sedentary.sedentaries.repeat) {
  647. const weekDays = {
  648. monday: '周一',
  649. tuesday: '周二',
  650. wednesday: '周三',
  651. thursday: '周四',
  652. friday: '周五',
  653. saturday: '周六',
  654. sunday: '周日'
  655. };
  656. Object.keys(weekDays).forEach((day) => {
  657. if (resData.sedentary.sedentaries[0][day]) {
  658. this.formData.repeatWeek.push(weekDays[day]);
  659. }
  660. });
  661. }
  662. this.repeatWeek = this.repeatWeek.map(item => ({
  663. ...item,
  664. checked: this.formData.repeatWeek.includes(item.label)
  665. }))
  666. this.comfirmPop()
  667. this.timeVal = [this.arrDate[0].indexOf(this.formData.start_hour),this.arrDate[1].indexOf(this.formData.end_hour)]
  668. return
  669. }
  670. if(this.title == "心率指导") {
  671. this.formData.hralarmOpen = resData.hralarm.open
  672. this.formData.hralarmHigh = resData.hralarm.high
  673. this.formData.hralarmLow = resData.hralarm.low
  674. this.formData.timeout = resData.hralarm.threshold || 3
  675. this.formData.alarm_interval = resData.hralarm.alarm_interval || 10
  676. this.hrRangeValue = [this.hrRange[0].indexOf(this.formData.hralarmLow),this.hrRange[1].indexOf(this.formData.hralarmHigh)]
  677. return
  678. }
  679. if(this.title == "血氧预警") {
  680. this.formData.spo2alarmOpen = resData.spo2alarm.open
  681. this.formData.spo2alarmLow = resData.spo2alarm.low + '%'
  682. this.boRangeValue = [this.boRange.indexOf(this.formData.spo2alarmLow)]
  683. return
  684. }
  685. if(this.title == "省电设置") {
  686. let option = []
  687. let optionChoose = []
  688. Object.keys(resData.power).forEach(key=> {
  689. const obj = this.defaultOption.find(item => item.type === key);
  690. const checked = resData.power[key] ? false : true;
  691. const newItem = { ...obj, checked };
  692. if (checked) {
  693. optionChoose.push(newItem);
  694. } else {
  695. option.push(newItem);
  696. }
  697. });
  698. this.option = option
  699. this.optionChoose = optionChoose
  700. return
  701. }
  702. if(this.title == "日期与时间") {
  703. this.formData.Itime = resData.time.itime + ''
  704. this.formData.IDate = resData.time.idate + ''
  705. return
  706. }
  707. if(this.title == "翻腕亮屏") {
  708. this.formData.lcdgestureOpen = resData.lcdgesture.open
  709. this.formData.lcdgestureStart = this.$formatHour(resData.lcdgesture.start_hour)
  710. this.formData.lcdgestureEnd = this.$formatHour(resData.lcdgesture.end_hour)
  711. this.palmingVal = [this.arrDate[0].indexOf(this.formData.lcdgestureStart),this.arrDate[1].indexOf(this.formData.lcdgestureEnd)]
  712. return
  713. }
  714. if(this.title == "单位设置") {
  715. this.formData.measure = resData.unit.measure + ''
  716. this.formData.temperature = resData.unit.temperature + ''
  717. return
  718. }
  719. if(this.title == "手表模式") {
  720. let hours = Math.floor(resData.mode.interval / 60) + '';
  721. let remainingMinutes = resData.mode.interval % 60;
  722. remainingMinutes = remainingMinutes || '00'
  723. this.interval = [this.intervalData[0].indexOf(hours),this.intervalData[1].indexOf(remainingMinutes+ '')]
  724. this.formData.isLocation = resData.mode.isLocation
  725. this.formData.interval = resData.mode.interval
  726. this.formData.isPower = resData.mode.isPower
  727. return
  728. }
  729. if(this.title == "添加闹钟"&&this.isEdit) {
  730. this.formData.title = this.clockalarmInfo[this.index].title
  731. this.formData.hour = this.clockalarmInfo[this.index].hour
  732. this.formData.minute = this.clockalarmInfo[this.index].minute
  733. this.clockalarmVal = [this.clockalarmRange[0].indexOf(this.formData.hour),this.clockalarmRange[1].indexOf(this.formData.minute)]
  734. const weekDays = {
  735. monday: '周一',
  736. tuesday: '周二',
  737. wednesday: '周三',
  738. thursday: '周四',
  739. friday: '周五',
  740. saturday: '周六',
  741. sunday: '周日'
  742. };
  743. Object.keys(weekDays).forEach((day) => {
  744. if (this.clockalarmInfo[this.index][day]) {
  745. this.formData.repeatWeek.push(weekDays[day]);
  746. }
  747. });
  748. this.repeatWeek = this.repeatWeek.map(item => ({
  749. ...item,
  750. checked: this.formData.repeatWeek.includes(item.label)
  751. }))
  752. this.comfirmPop()
  753. return
  754. }
  755. },
  756. onChange(e, type) {
  757. this.formData[type] = e
  758. if(type == "hralarmOpen") {
  759. this.formData.hralarmLow = this.hrRange[0][this.hrRangeValue[0]]
  760. this.formData.hralarmHigh = this.hrRange[1][this.hrRangeValue[1]]
  761. } else if(type == "spo2alarmOpen") {
  762. this.formData.spo2alarmLow = this.boRange[this.boRangeValue]
  763. }
  764. },
  765. openPop() {
  766. this.repeatWeek = this.repeatWeek.map(item => ({
  767. ...item,
  768. checked: this.formData.repeatWeek.includes(item.label)
  769. }))
  770. this.$refs.popup.open()
  771. },
  772. closePop() {
  773. this.$refs.popup.close()
  774. },
  775. comfirmPop() {
  776. const repeatWeekChoose = this.repeatWeek.filter(item => item.checked == true).map(it => it.label)
  777. this.formData.repeatWeek = repeatWeekChoose
  778. this.repeatWeekText = this.weekType == 1 ? '每天' : this.weekType == 2 ? '工作日' : this.weekType == 3 ? '周末' :
  779. repeatWeekChoose.join(',')
  780. this.$refs.popup.close()
  781. },
  782. handleWeek(type) {
  783. if (type == 1) {
  784. // 每天
  785. this.repeatWeek = this.repeatWeek.map(item => ({
  786. ...item,
  787. checked: true
  788. }))
  789. } else if (type == 2) {
  790. // 工作日
  791. this.repeatWeek = this.repeatWeek.map(item => ({
  792. ...item,
  793. checked: item.label != "周六" && item.label != "周日"
  794. }))
  795. } else if (type == 3) {
  796. // 周末
  797. this.repeatWeek = this.repeatWeek.map(item => ({
  798. ...item,
  799. checked: item.label == "周六" || item.label == "周日"
  800. }))
  801. }
  802. },
  803. handleWeekItem(item) {
  804. item.checked = !item.checked
  805. },
  806. // 心率
  807. hrRangeChange(e) {
  808. this.hrRangeValue = e.detail.value
  809. this.hrActive = this.hrRangetag.findIndex(el => el.value[0] === this.hrRangeValue[0] && el.value[1] ===
  810. this.hrRangeValue[1]);
  811. if (this.hrActive === -1) {
  812. this.hrActive = undefined;
  813. }
  814. this.formData.hralarmLow = this.hrRange[0][this.hrRangeValue[0]]
  815. this.formData.hralarmHigh = this.hrRange[1][this.hrRangeValue[1]]
  816. },
  817. handlehrRangetag(item, index) {
  818. this.hrActive = index
  819. this.hrRangeValue = item.value
  820. this.formData.hralarmLow = this.hrRange[0][this.hrRangeValue[0]]
  821. this.formData.hralarmHigh = this.hrRange[1][this.hrRangeValue[1]]
  822. },
  823. // 省电设置
  824. handleOption(item, index) {
  825. item.checked = !item.checked
  826. },
  827. bindPickerChange(e, type) {
  828. this[type] = e.detail.value
  829. if (type == "timeVal") {
  830. // 久坐时间
  831. // this.timeVal = e.detail.value
  832. this.formData.start_hour = this.arrDate[0][e.detail.value[0]]
  833. this.formData.end_hour = this.arrDate[1][e.detail.value[1]]
  834. } else if (type == "boRangeValue") {
  835. // 血氧
  836. // this.boRangeValue = e.detail.value
  837. this.formData.spo2alarmLow = this.boRange[this.boRangeValue]
  838. } else if (type == "palmingVal") {
  839. // 翻腕亮屏
  840. // this.palmingVal = e.detail.value
  841. this.formData.lcdgestureStart = this.arrDate[0][e.detail.value[0]]
  842. this.formData.lcdgestureEnd = this.arrDate[1][e.detail.value[1]]
  843. } else if (type == "interval") {
  844. // 手表模式
  845. // this.interval = e.detail.value
  846. const minute = this.intervalData[0][e.detail.value[0]] * 60 + Number(this.intervalData[1][e.detail.value[1]])
  847. this.formData.interval = minute
  848. } else if (type == "clockalarmVal") {
  849. // 添加闹钟
  850. // this.clockalarmVal = e.detail.value
  851. this.formData.hour = this.clockalarmRange[0][e.detail.value[0]]
  852. this.formData.minute = this.clockalarmRange[1][e.detail.value[1]]
  853. }
  854. },
  855. radioChange(e,type) {
  856. this.formData[type] = e.detail.value
  857. },
  858. submit() {
  859. this.$refs.form.validate().then(res => {
  860. if (this.title == "久坐提醒") {
  861. if (this.formData.sedentaryOpen == 1) {
  862. if (this.timeVal[0] > this.timeVal[1]) {
  863. uni.showToast({
  864. title: '时间无效',
  865. icon: 'none'
  866. })
  867. return
  868. }
  869. }
  870. } else if (this.title == "心率指导") {
  871. if (this.formData.hralarmOpen) {
  872. if (this.hrRangeValue[0] >= this.hrRangeValue[1]+10) {
  873. uni.showToast({
  874. title: '区间无效',
  875. icon: 'none'
  876. })
  877. return
  878. }
  879. }
  880. } else if (this.title == "翻腕亮屏") {
  881. if (this.formData.lcdgestureOpen) {
  882. if (this.palmingVal[0] > this.palmingVal[1]) {
  883. uni.showToast({
  884. title: '区间无效',
  885. icon: 'none'
  886. })
  887. return
  888. }
  889. }
  890. } else if (this.title == "手表模式") {
  891. if (this.formData.isLocation || this.formData.isPower) {
  892. if (this.formData.interval == 0) {
  893. uni.showToast({
  894. title: '时间间隔不能设置为0',
  895. icon: 'none'
  896. })
  897. return
  898. }
  899. }
  900. } else if (this.title == "添加闹钟"&&!this.isEdit) {
  901. const obj = {
  902. repeat: this.formData.repeatWeek.length == 0 ? false : true,
  903. monday: this.formData.repeatWeek.includes('周一'),
  904. tuesday: this.formData.repeatWeek.includes('周二'),
  905. wednesday: this.formData.repeatWeek.includes('周三'),
  906. thursday: this.formData.repeatWeek.includes('周四'),
  907. friday: this.formData.repeatWeek.includes('周五'),
  908. saturday: this.formData.repeatWeek.includes('周六'),
  909. sunday: this.formData.repeatWeek.includes('周日'),
  910. hour: Number(this.formData.hour),
  911. minute: Number(this.formData.minute),
  912. title: this.formData.title,
  913. status: true,
  914. }
  915. this.clockalarmInfo.push(obj)
  916. } else if (this.title == "添加闹钟"&&this.isEdit) {
  917. this.clockalarmInfo[this.index] = {
  918. repeat: this.formData.repeatWeek.length == 0 ? false : true,
  919. monday: this.formData.repeatWeek.includes('周一'),
  920. tuesday: this.formData.repeatWeek.includes('周二'),
  921. wednesday: this.formData.repeatWeek.includes('周三'),
  922. thursday: this.formData.repeatWeek.includes('周四'),
  923. friday: this.formData.repeatWeek.includes('周五'),
  924. saturday: this.formData.repeatWeek.includes('周六'),
  925. sunday: this.formData.repeatWeek.includes('周日'),
  926. hour: Number(this.formData.hour),
  927. minute: Number(this.formData.minute),
  928. title: this.formData.title,
  929. status: true,
  930. }
  931. }
  932. this.handleFun()
  933. }).catch(err => {
  934. console.log('表单错误信息:', err);
  935. })
  936. },
  937. handleFun() {
  938. const options = {
  939. // 久坐提醒
  940. "久坐提醒": () => setSedentary({
  941. deviceid: this.deviceId,
  942. sedentaries: [{
  943. repeat: this.formData.repeatWeek.length == 0 ? true : false,
  944. monday: this.formData.repeatWeek.includes('周一'),
  945. tuesday: this.formData.repeatWeek.includes('周二'),
  946. wednesday: this.formData.repeatWeek.includes('周三'),
  947. thursday: this.formData.repeatWeek.includes('周四'),
  948. friday: this.formData.repeatWeek.includes('周五'),
  949. saturday: this.formData.repeatWeek.includes('周六'),
  950. sunday: this.formData.repeatWeek.includes('周日'),
  951. start_hour: this.formData.start_hour ? this.$formatHour(this.formData.start_hour,1) : '',
  952. end_hour: this.formData.end_hour ? this.$formatHour(this.formData.end_hour,1) : '',
  953. duration: 5,
  954. threshold: 40
  955. }]
  956. }),
  957. // 心率指导
  958. "心率指导": () => hralarm({
  959. deviceid: this.deviceId,
  960. open: this.formData.hralarmOpen,
  961. high: this.formData.hralarmHigh,
  962. low: this.formData.hralarmLow,
  963. timeout:3,
  964. interval:10
  965. }),
  966. // 血氧预警
  967. "血氧预警": () => spo2alarm({
  968. deviceid: this.deviceId,
  969. open: this.formData.spo2alarmOpen,
  970. low: this.formData.spo2alarmLow ? Number(this.formData.spo2alarmLow.replace('%','')) : '',
  971. }),
  972. // 省电设置
  973. "省电设置": () => power({
  974. deviceId: this.deviceId,
  975. isLcdgesture: this.optionChoose.some(item=>item.name!="关闭翻腕亮屏") ? false : this.option.some(item=>item.name=="关闭自动定位" && item.checked) ? false : true,
  976. isLocation: this.optionChoose.some(item=>item.name=="关闭自动定位") ? false : this.option.some(item=>item.name=="关闭自动定位" && item.checked) ? false : true,
  977. isPower: this.optionChoose.some(item=>item.name=="关闭放置省电") ? false : this.option.some(item=>item.name=="关闭放置省电" && item.checked) ? false : true,
  978. isHeartHealth: this.optionChoose.some(item=>item.name=="关闭24小时心脏健康") ? false : this.option.some(item=>item.name=="关闭24小时心脏健康" && item.checked) ? false : true
  979. }),
  980. "翻腕亮屏": () => lcdgesture({
  981. deviceId: this.deviceId,
  982. flag: this.formData.lcdgestureOpen,
  983. start: this.formData.lcdgestureStart ? this.$formatHour(this.formData.lcdgestureStart,1) : '',
  984. end: this.formData.lcdgestureEnd ? this.$formatHour(this.formData.lcdgestureEnd,1) : '',
  985. }),
  986. "日期与时间": () => setDeviceTime({
  987. deviceId: this.deviceId,
  988. Itime: Number(this.formData.Itime || 0),
  989. IDate: Number(this.formData.IDate || 0),
  990. }),
  991. "单位设置": () => setDeviceUnit({
  992. deviceId: this.deviceId,
  993. measure: Number(this.formData.measure || 0),
  994. temperature: Number(this.formData.temperature || 0),
  995. }),
  996. "手表模式": () => setDeviceMode({
  997. deviceId: this.deviceId,
  998. isLocation: this.formData.isLocation,
  999. interval: this.formData.interval,
  1000. isPower: this.formData.isPower,
  1001. }),
  1002. "添加闹钟": () => setClockalarm({
  1003. deviceId: this.deviceId,
  1004. alarmclock: this.clockalarmInfo,
  1005. }),
  1006. }
  1007. const option = options[this.title];
  1008. if (option) {
  1009. this.btnLoading = true
  1010. option().then(res => {
  1011. this.btnLoading = false
  1012. if(res.code == 200) {
  1013. this.$navBack()
  1014. } else {
  1015. uni.showToast({
  1016. title: res.msg,
  1017. icon: "none"
  1018. })
  1019. }
  1020. }).catch(()=>{
  1021. this.btnLoading = false
  1022. })
  1023. }
  1024. }
  1025. }
  1026. }
  1027. </script>
  1028. <style scoped lang="scss">
  1029. @mixin u-flex($flexD, $alignI, $justifyC) {
  1030. display: flex;
  1031. flex-direction: $flexD;
  1032. align-items: $alignI;
  1033. justify-content: $justifyC;
  1034. }
  1035. ::v-deep {
  1036. .uni-forms-item {
  1037. margin-bottom: 0;
  1038. }
  1039. .uni-easyinput__content-input {
  1040. padding-right: 0 !important;
  1041. padding-left: 0 !important;
  1042. }
  1043. }
  1044. .container {
  1045. padding-bottom: 50rpx;
  1046. }
  1047. .picker-view {
  1048. width: 100%;
  1049. height: 300rpx;
  1050. margin-top: 20rpx;
  1051. }
  1052. .item {
  1053. // #ifndef MP-WEIXIN
  1054. line-height: 100rpx;
  1055. // #endif
  1056. text-align: center;
  1057. display: flex;
  1058. align-items: center;
  1059. justify-content: center;
  1060. }
  1061. .hrRangetag {
  1062. width: 100%;
  1063. padding: 30rpx;
  1064. box-sizing: border-box;
  1065. @include u-flex(row, center, flex-start);
  1066. // gap: 30rpx;
  1067. margin: 0 -30rpx -30rpx 0;
  1068. flex-wrap: wrap;
  1069. view {
  1070. width: 200rpx;
  1071. height: 60rpx;
  1072. margin: 0 30rpx 30rpx 0;
  1073. box-sizing: border-box;
  1074. border-radius: 60rpx;
  1075. line-height: 57rpx;
  1076. text-align: center;
  1077. background-color: #fff;
  1078. font-size: 28rpx;
  1079. color: #FF7700;
  1080. border: 1rpx solid #FF7700;
  1081. }
  1082. .hractive {
  1083. border: none !important;
  1084. color: #fff !important;
  1085. background-color: #FF7700 !important;
  1086. }
  1087. }
  1088. .popbox {
  1089. background-color: #f7f7f7;
  1090. padding: 0;
  1091. &-head {
  1092. height: 90rpx;
  1093. font-size: 34rpx;
  1094. line-height: 90rpx;
  1095. @include u-flex(row, center, space-between);
  1096. background-color: #fff;
  1097. text {
  1098. box-sizing: border-box;
  1099. padding: 0 28rpx;
  1100. }
  1101. }
  1102. &-body {
  1103. height: 50vh;
  1104. overflow-y: auto;
  1105. }
  1106. .weektype {
  1107. height: 90rpx;
  1108. line-height: 90rpx;
  1109. background-color: #fff;
  1110. padding: 0 24rpx;
  1111. }
  1112. .weektype-item {
  1113. height: 90rpx;
  1114. line-height: 90rpx;
  1115. padding: 0 24rpx;
  1116. }
  1117. .item-flex {
  1118. @include u-flex(row, center, space-between);
  1119. }
  1120. }
  1121. .forms-item-title {
  1122. font-family: PingFang SC, PingFang SC;
  1123. font-weight: 400;
  1124. font-size: 30rpx;
  1125. color: #333333;
  1126. line-height: 80rpx;
  1127. padding: 0 24rpx;
  1128. }
  1129. .forms-item {
  1130. min-height: 108rpx;
  1131. background-color: #fff;
  1132. padding: 24rpx;
  1133. box-sizing: border-box;
  1134. @include u-flex(row, center, space-between);
  1135. .label {
  1136. font-family: PingFang SC, PingFang SC;
  1137. font-weight: 400;
  1138. font-size: 32rpx;
  1139. color: #333333;
  1140. }
  1141. .label-tips {
  1142. margin-top: 10rpx;
  1143. font-size: 24rpx;
  1144. color: #999;
  1145. }
  1146. .choose-radio {
  1147. width: 32rpx;
  1148. height: 32rpx;
  1149. box-sizing: border-box;
  1150. border-radius: 50%;
  1151. border: 2rpx solid #999999;
  1152. }
  1153. .choose-image {
  1154. width: 32rpx;
  1155. height: 32rpx;
  1156. }
  1157. .box-itemr {
  1158. font-size: 28rpx;
  1159. color: #999999;
  1160. display: inline-flex;
  1161. align-items: center;
  1162. justify-content: flex-start;
  1163. }
  1164. .arrow_black {
  1165. flex-shrink: 0;
  1166. height: 48rpx;
  1167. width: 48rpx;
  1168. }
  1169. }
  1170. .footer {
  1171. padding: 50rpx 0;
  1172. .savebtn {
  1173. width: 622rpx;
  1174. height: 88rpx;
  1175. line-height: 88rpx;
  1176. border-radius: 44rpx 44rpx 44rpx 44rpx;
  1177. background-color: #FF7700;
  1178. font-family: PingFang SC, PingFang SC;
  1179. font-weight: 600;
  1180. font-size: 32rpx;
  1181. color: #FFFFFF;
  1182. &::after {
  1183. border: none;
  1184. }
  1185. }
  1186. }
  1187. </style>