autoSetting.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  1. <template>
  2. <view class="auto-fertilization-container">
  3. <custom-card>
  4. <block slot="backText">自动施肥</block>
  5. </custom-card>
  6. <!-- 内容区域 -->
  7. <view class="content">
  8. <!-- 灌溉模式 -->
  9. <view class="setting-top-container">
  10. <view class="setting-item">
  11. <text class="setting-label">灌溉模式</text>
  12. <view class="radio-group">
  13. <view class="group-check-container" @click="selectFertType('1')">
  14. <view class="group-check-radius" :class="{'active': FertType == '1'}">
  15. <u-icon class="check-icon" name="checkmark" size="24rpx" v-if="FertType == '1'"/>
  16. </view>
  17. <text class="text" :class="FertType == '1'?'text-active':''">定时</text>
  18. </view>
  19. <view class="group-check-container" @click="selectFertType('2')" :class="{'active': FertType == '2'}" style="width: 150rpx;">
  20. <view class="group-check-radius" :class="{'active': FertType == '2'}">
  21. <u-icon class="check-icon" name="checkmark" size="24rpx" v-if="FertType == '2'"/>
  22. </view>
  23. <text class="text" :class="FertType == '2'?'text-active':''">定量</text>
  24. </view>
  25. <view class="group-check-container" @click="selectFertType('0')" :class="{'active': FertType == '0'}">
  26. <view class="group-check-radius" :class="{'active': FertType == '0'}">
  27. <u-icon class="check-icon" name="checkmark" size="24rpx" v-if="FertType == '0'"/>
  28. </view>
  29. <text class="text" :class="FertType == '0'?'text-active':''">禁用</text>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 配方方式 -->
  34. <view class="setting-item">
  35. <text class="setting-label">配方方式</text>
  36. <view class="radio-group">
  37. <view class="group-check-container" @click="selectFertPidType('1')" >
  38. <view class="group-check-radius" :class="{'active': FertPidType == '1'}">
  39. <u-icon class="check-icon" name="checkmark" size="24rpx" v-if="FertPidType == '1'"/>
  40. </view>
  41. <text class="text" :class="FertPidType == '1'?'text-active':''">PID</text>
  42. </view>
  43. <view class="group-check-container" @click="selectFertPidType('2')" :class="{'active': FertPidType == '2'}" style="width: 150rpx;">
  44. <view class="group-check-radius" :class="{'active': FertPidType == '2'}">
  45. <u-icon class="check-icon" name="checkmark" size="24rpx" v-if="FertPidType == '2'"/>
  46. </view>
  47. <text class="text" :class="FertPidType == '2'?'text-active':''">水肥比例</text>
  48. </view>
  49. <view class="group-check-container" @click="selectFertPidType('0')" :class="{'active': FertPidType == '0'}">
  50. <view class="group-check-radius" :class="{'active': FertPidType == '0'}">
  51. <u-icon class="check-icon" name="checkmark" size="24rpx" v-if="FertPidType == '0'"/>
  52. </view>
  53. <text class="text" :class="FertPidType == '0'?'text-active':''">禁用</text>
  54. </view>
  55. </view>
  56. </view>
  57. <!-- 轮灌次数 -->
  58. <view class="setting-item">
  59. <text class="setting-label">轮灌次数</text>
  60. <view class="number-input">
  61. <u-number-box v-model="IrrCnt" placeholder="请输入轮灌次数" min="1" max="9999999" @minus="irrChange(IrrCnt)" @plus="irrChange(IrrCnt)"></u-number-box>
  62. </view>
  63. </view>
  64. <!-- 轮灌间隔 -->
  65. <view class="setting-item">
  66. <text class="setting-label">轮灌间隔</text>
  67. <view class="time-input">
  68. <input type="number" v-model="IdleTim" class="time-input-field" min="0" max="1440" placeholder="请输入轮灌间隔(分钟)" @change="idleChange(IdleTim)" />
  69. <text class="time-unit">分钟</text>
  70. </view>
  71. </view>
  72. <!-- 肥前水 -->
  73. <view class="setting-item">
  74. <text class="setting-label">肥前水</text>
  75. <view class="time-input">
  76. <input type="number" v-model="FrontClearWater" class="time-input-field" min="0" max="1440" placeholder="请输入肥前水(秒)" @change="frontChange(FrontClearWater)" />
  77. <text class="time-unit">秒</text>
  78. </view>
  79. </view>
  80. <!-- 肥后水 -->
  81. <view class="setting-item">
  82. <text class="setting-label">肥后水</text>
  83. <view class="time-input">
  84. <input type="number" v-model="UnderClearWater" class="time-input-field" min="0" max="1440" placeholder="请输入肥后水(秒)" @change="underChange(UnderClearWater)" />
  85. <text class="time-unit">秒</text>
  86. </view>
  87. </view>
  88. </view>
  89. <u-picker v-model="show" mode="selector" :range="selector" range-key="label" @confirm="confirmHandler"></u-picker>
  90. <!-- 定时轮灌组 -->
  91. <view class="round-groups-section">
  92. <text class="section-title">定时轮灌组</text>
  93. <view class="round-groups-container">
  94. <!-- 左侧轮灌组列表 -->
  95. <view class="round-groups-list">
  96. <view
  97. v-for="(item,index) in group_list" :key="item.group"
  98. class="round-group-item"
  99. @click="selectGroup(index)"
  100. :class="{ active: selectedGroup === index }"
  101. >
  102. <text :class="{ 'green-text': selectedGroup === index }">{{ index + 1 }}组</text>
  103. </view>
  104. </view>
  105. <!-- 右侧轮灌组详情 -->
  106. <view class="round-group-detail">
  107. <view class="group-detail-item" v-for="(item,index) in group_list" :key="item.group" :id="'group-'+index">
  108. <view class="group-header">
  109. <text class="group-title">{{index + 1}}组</text>
  110. <view class="group-check" :class="{ active: item.selected }" @tap="()=>changeGroupStatus(index)">
  111. <u-icon class="check-icon" name="checkmark" size="24rpx" />
  112. </view>
  113. </view>
  114. <view class="group-settings">
  115. <view class="setting-row">
  116. <text class="setting-row-label">施肥配方</text>
  117. <view @click="selectFormula(index)" class="select-group">{{ getTitle(item) }}</view>
  118. </view>
  119. <view class="setting-row">
  120. <text class="setting-row-label">灌溉时长</text>
  121. <input
  122. type="number"
  123. v-model="item.PartTim"
  124. class="setting-row-input"
  125. min="0"
  126. max="1440"
  127. placeholder="请输入灌溉时长(分钟)"
  128. @change="(e) => PartTimChange(e,index)"
  129. />
  130. <text class="setting-row-unit">分钟</text>
  131. </view>
  132. <view class="setting-row">
  133. <text class="setting-row-label">施肥时长</text>
  134. <input
  135. type="number"
  136. v-model="item.FertTim"
  137. class="setting-row-input"
  138. min="0"
  139. max="1440"
  140. placeholder="请输入施肥时长(分钟)"
  141. @change="(e) => FertTimChange(e,index)"
  142. />
  143. <text class="setting-row-unit">分钟</text>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. </template>
  153. <script>
  154. export default {
  155. data() {
  156. return {
  157. show: false,
  158. devBid:'',
  159. title: '选择配方',
  160. selector: [],
  161. selectedGroup: 0,
  162. FertType: -1,
  163. FertPidType: -1,
  164. IrrCnt: 0,
  165. IdleTim: 0,
  166. FrontClearWater: 0,
  167. UnderClearWater: 0,
  168. group_list:[],
  169. currentIndex: -1,
  170. };
  171. },
  172. async onLoad(options) {
  173. const { devBid } = options;
  174. this.devBid = devBid;
  175. await this.getInfoList();
  176. await this.getConfigInfo();
  177. },
  178. methods: {
  179. async refresh(){
  180. const params = {
  181. devBid: this.devBid,
  182. };
  183. await this.$myRequest({
  184. url:'/api/v2/iot/device/sf/refresh/',
  185. method:'POST',
  186. data: params,
  187. header: {
  188. 'Content-Type': 'application/json',
  189. 'accept': 'application/json, text/plain, */*'
  190. }
  191. })
  192. },
  193. getTitle(item){
  194. let value = '';
  195. if(item.labelText){
  196. return item.labelText;
  197. }
  198. for(let key in item){
  199. if(key.includes('Formula')){
  200. value = item[key];
  201. break;
  202. }
  203. }
  204. for(let i = 0;i< this.selector.length;i++){
  205. const item = this.selector[i];
  206. if(item.Formula == value){
  207. return item.label;
  208. }
  209. }
  210. return '选择配方';
  211. },
  212. confirmHandler(e){
  213. const currentItem = this.selector[e];
  214. const Formula = currentItem.Formula;
  215. const item = this.group_list[this.currentIndex];
  216. item.labelText = currentItem.label;
  217. if(item.selected){
  218. let keyLabel = '';
  219. for(let key in item){
  220. if(key.includes('Formula')){
  221. keyLabel = key
  222. break;
  223. }
  224. }
  225. const params = {
  226. [keyLabel]: Formula,
  227. group_value: 1,
  228. }
  229. this.editGroupList(params);
  230. }
  231. },
  232. async getInfoList(){
  233. this.recipeList = [];
  234. const params = {
  235. devBid: this.devBid
  236. }
  237. const res = await this.$myRequest({
  238. url:'/api/v2/iot/device/sf/yunshang/peifang/list/',
  239. method:'POST',
  240. data: params,
  241. header: {
  242. 'Content-Type': 'application/json',
  243. 'accept': 'application/json, text/plain, */*'
  244. }
  245. })
  246. const list = res?.data || [];
  247. list.forEach((item,index)=>{
  248. item.label = '配方' + (index + 1);
  249. })
  250. this.selector = list;
  251. },
  252. selectFertType(type){
  253. this.FertType = type;
  254. this.editGroup({
  255. FertType: type,
  256. });
  257. },
  258. selectFertPidType(type){
  259. this.FertPidType = type;
  260. this.editGroup({
  261. FertPidType: type,
  262. });
  263. },
  264. underChange(val){
  265. this.UnderClearWater = val;
  266. this.editGroup({UnderClearWater: val});
  267. },
  268. PartTimChange(e,index){
  269. const item = this.group_list[index];
  270. if(item.selected){
  271. item.PartTim = e.detail.value;
  272. const deleteKey = Object.keys(item).find(key => key.endsWith(':Status'));
  273. const deleteTimeR = Object.keys(item).find(key => key.endsWith(':TimR'));
  274. const deleteTimeT = Object.keys(item).find(key => key.endsWith(':TimT'));
  275. const deleteGroup = Object.keys(item).find(key => key.endsWith(':Group'));
  276. const getKey = Object.keys(item).find(key => key.endsWith(':PartTim'));
  277. const data = {
  278. ...this.excludeObjectKeys(item, ['selected', 'group_value','FertTim','PartTim','Formula','group_name',deleteKey,deleteTimeR,deleteTimeT,deleteGroup]),
  279. group_value: this.group_list[index].selected? 1 :0,
  280. [getKey]: item.PartTim
  281. }
  282. this.editGroupList(data);
  283. }
  284. },
  285. FertTimChange(e,index){
  286. const item = this.group_list[index];
  287. if(item.selected){
  288. item.FertTim = e.detail.value;
  289. const deleteKey = Object.keys(item).find(key => key.endsWith(':Status'));
  290. const deleteTimeR = Object.keys(item).find(key => key.endsWith(':TimR'));
  291. const deleteTimeT = Object.keys(item).find(key => key.endsWith(':TimT'));
  292. const deleteGroup = Object.keys(item).find(key => key.endsWith(':Group'));
  293. const getKey = Object.keys(item).find(key => key.endsWith(':Formula'));
  294. const data = {
  295. ...this.excludeObjectKeys(item, ['selected', 'group_value','FertTim','PartTim','Formula','group_name',deleteKey,deleteTimeR,deleteTimeT,deleteGroup]),
  296. group_value: this.group_list[index].selected? 1 :0,
  297. [getKey]: item.FertTim,
  298. }
  299. this.editGroupList(data);
  300. }
  301. },
  302. frontChange(val){
  303. this.FrontClearWater = val;
  304. this.editGroup({FrontClearWater: val});
  305. },
  306. idleChange(val){
  307. this.IdleTim = val;
  308. this.editGroup({IdleTim: val});
  309. },
  310. irrChange(val){
  311. this.IrrCnt = val;
  312. this.editGroup({IrrCnt: val});
  313. },
  314. selectFormula(index){
  315. this.show = true;
  316. this.currentIndex = index;
  317. },
  318. async editGroupList(data){
  319. const params = {
  320. devBid: parseInt(this.devBid),
  321. data,
  322. }
  323. const res = await this.$myRequest({
  324. url:'/api/v2/iot/device/sf/yunshang/auto/group/edit/',
  325. method:'POST',
  326. data: params,
  327. header: {
  328. 'Content-Type': 'application/json',
  329. 'accept': 'application/json, text/plain, */*'
  330. }
  331. })
  332. console.log(res,'resres')
  333. if(res?.code === '000000'){
  334. uni.showToast({
  335. title: '保存成功',
  336. icon: 'success',
  337. })
  338. this.refresh();
  339. }
  340. },
  341. async editGroup(data){
  342. const params = {
  343. devBid: parseInt(this.devBid),
  344. data,
  345. }
  346. const res = await this.$myRequest({
  347. url:'/api/v2/iot/device/sf/yunshang/auto/config/edit/',
  348. method:'POST',
  349. data: params,
  350. header: {
  351. 'Content-Type': 'application/json',
  352. 'accept': 'application/json, text/plain, */*'
  353. }
  354. })
  355. if(res?.code === '000000'){
  356. uni.showToast({
  357. title: '保存成功',
  358. icon: 'success',
  359. })
  360. this.refresh();
  361. }
  362. },
  363. async getConfigInfo(){
  364. const res = await this.$myRequest({
  365. url:'/api/v2/iot/device/sf/yunshang/auto/config/info/',
  366. method:'post',
  367. data: {
  368. devBid: String(this.devBid),
  369. },
  370. })
  371. const resData = res || {};
  372. this.FertPidType = resData?.FertPidType;
  373. this.FertType = resData?.FertType;
  374. this.IrrCnt = resData?.IrrCnt;
  375. this.IdleTim = resData?.IdleTim;
  376. this.FrontClearWater = resData?.FrontClearWater;
  377. this.UnderClearWater = resData?.UnderClearWater;
  378. const group_list = resData.group_list || [];
  379. this.group_list = group_list.map((item, index) => {
  380. const selected = item.group_value == 1 ? true : false;
  381. for (let key in item) {
  382. if (key.includes('PartTim')) {
  383. item.PartTim = item[key];
  384. } else if (key.includes('FertTim')) {
  385. item.FertTim = item[key];
  386. } else if (key.includes('Formula')) {
  387. item.Formula = item[key];
  388. }
  389. }
  390. return {
  391. ...item,
  392. selected
  393. };
  394. });
  395. },
  396. // 实现排除对象中的某些属性的方法
  397. excludeObjectKeys(obj, keys) {
  398. return Object.keys(obj).reduce((acc, key) => {
  399. if (!keys.includes(key)) {
  400. acc[key] = obj[key];
  401. }
  402. return acc;
  403. }, {});
  404. },
  405. changeGroupStatus(index) {
  406. const item = this.group_list[index];
  407. this.$set(item,'selected',!item.selected);
  408. const deleteKey = Object.keys(item).find(key => key.endsWith(':Status'));
  409. const deleteTimeR = Object.keys(item).find(key => key.endsWith(':TimR'));
  410. const deleteTimeT = Object.keys(item).find(key => key.endsWith(':TimT'));
  411. const deleteGroup = Object.keys(item).find(key => key.endsWith(':Group'));
  412. const data = {
  413. ...this.excludeObjectKeys(item, ['selected', 'group_value','FertTim','PartTim','Formula','group_name',deleteKey,deleteTimeR,deleteTimeT,deleteGroup]),
  414. group_value: this.group_list[index].selected? 1 :0,
  415. }
  416. console.log(data,'datadatadata')
  417. this.editGroupList(data);
  418. },
  419. selectGroup(index) {
  420. this.selectedGroup = index;
  421. uni.createSelectorQuery().select('#group-' + index).boundingClientRect((data) => {
  422. if (data) {
  423. uni.pageScrollTo({
  424. scrollTop: data.top,
  425. duration: 300
  426. });
  427. }
  428. }).exec();
  429. },
  430. // 减少轮灌次数
  431. decreaseRoundCount() {
  432. if (this.roundCount > 1) {
  433. this.roundCount--;
  434. }
  435. },
  436. // 增加轮灌次数
  437. increaseRoundCount() {
  438. this.roundCount++;
  439. },
  440. // 确认按钮点击事件
  441. confirm() {
  442. // 这里可以添加确认逻辑
  443. console.log('确认设置');
  444. }
  445. }
  446. };
  447. </script>
  448. <style scoped lang="scss">
  449. .auto-fertilization-container {
  450. width: 100%;
  451. min-height: 100vh;
  452. background: linear-gradient(180deg, #f5f6fa00 0%, #F5F6FA 23.64%, #F5F6FA 100%), linear-gradient(102deg, #BFEADD 6.77%, #B8F1E7 40.15%, #B9EEF5 84.02%);
  453. font-family: 'Source Han Sans CN';
  454. }
  455. .group-check-container{
  456. display: flex;
  457. width: 120rpx;
  458. }
  459. .select-group{
  460. text-align:right;
  461. }
  462. .group-check-radius{
  463. width: 30rpx;
  464. height: 30rpx;
  465. display: flex;
  466. align-items: center;
  467. justify-content: center;
  468. border-radius: 50%;
  469. background: #ffffff;
  470. border: 2rpx solid #E4E7ED;
  471. font-size: 24rpx;
  472. color: #14a478;
  473. margin-right: 10rpx;
  474. }
  475. .active{
  476. border-color: #0BBC58;
  477. }
  478. .text{
  479. color: #666666;
  480. font-family: "Source Han Sans CN VF";
  481. font-size: 28rpx;
  482. }
  483. .text-active{
  484. color: #0BBC58;
  485. }
  486. /* 内容区域 */
  487. .content {
  488. overflow-y: auto;
  489. width: calc(100% - 64rpx);
  490. margin-left: 32rpx;
  491. display:flex;
  492. flex-direction: column;
  493. }
  494. .setting-top-container{
  495. border: 2px solid #FFF;
  496. border-radius: 8px;
  497. padding: 32rpx;
  498. background: #FFF;
  499. }
  500. /* 设置项 */
  501. .setting-item {
  502. display: flex;
  503. align-items: center;
  504. justify-content: space-between;
  505. padding: 24rpx 0;
  506. border-bottom: 1rpx solid #e8e8e8;
  507. .setting-label {
  508. font-size: 28rpx;
  509. color: #042118;
  510. }
  511. /* 单选组 */
  512. .radio-group {
  513. display: flex;
  514. gap: 32rpx;
  515. .radio-item {
  516. display: flex;
  517. align-items: center;
  518. gap: 8rpx;
  519. font-size: 26rpx;
  520. color: #666;
  521. width: 120rpx;
  522. &.active {
  523. color: #14a478;
  524. }
  525. radio {
  526. transform: scale(0.8);
  527. }
  528. }
  529. }
  530. /* 数字输入 */
  531. .number-input {
  532. display: flex;
  533. align-items: center;
  534. gap: 16rpx;
  535. .number-btn {
  536. width: 40rpx;
  537. height: 40rpx;
  538. display: flex;
  539. align-items: center;
  540. justify-content: center;
  541. background: #f5f5f5;
  542. border-radius: 4rpx;
  543. font-size: 28rpx;
  544. color: #666;
  545. }
  546. .number-value {
  547. min-width: 60rpx;
  548. text-align: center;
  549. font-size: 26rpx;
  550. color: #042118;
  551. }
  552. }
  553. /* 时间输入 */
  554. .time-input {
  555. display: flex;
  556. align-items: center;
  557. gap: 8rpx;
  558. .time-input-field {
  559. flex:1;
  560. height: 52rpx;
  561. padding: 0 16rpx;
  562. font-size: 26rpx;
  563. text-align: right;
  564. color: #042118;
  565. }
  566. .time-unit {
  567. font-size: 24rpx;
  568. color: #666;
  569. }
  570. }
  571. }
  572. /* 轮灌组区域 */
  573. .round-groups-section {
  574. margin-top: 40rpx;
  575. flex:1;
  576. .section-title {
  577. font-size: 28rpx;
  578. font-weight: 500;
  579. color: #042118;
  580. }
  581. .round-groups-container {
  582. margin-top: 24rpx;
  583. display: flex;
  584. border-radius: 12rpx;
  585. flex:1;
  586. /* 左侧轮灌组列表 */
  587. .round-groups-list {
  588. width: 120rpx;
  589. background: #ffffff;
  590. border-radius: 8rpx;
  591. .round-group-item {
  592. height: 80rpx;
  593. display: flex;
  594. align-items: center;
  595. justify-content: center;
  596. font-size: 26rpx;
  597. color: #666;
  598. border-left-top-radius: 16rpx;
  599. border-left-bottom-radius: 16rpx;
  600. &.active {
  601. background: #0bbc581a;
  602. color:#0BBC58;
  603. font-weight: 700;
  604. color: #0bbc58;
  605. font-family: "Source Han Sans CN VF";
  606. }
  607. &:last-child {
  608. border-bottom: none;
  609. }
  610. .green-text {
  611. color: #14a478;
  612. font-weight: 500;
  613. }
  614. }
  615. }
  616. /* 右侧轮灌组详情 */
  617. .round-group-detail {
  618. margin-left: 24rpx;
  619. border-radius: 16rpx;
  620. height: 600rpx;
  621. overflow-y: auto;
  622. .group-detail-item {
  623. margin-bottom: 32rpx;
  624. padding: 24rpx;
  625. background: #ffffff;
  626. border-radius: 8rpx;
  627. &:last-child {
  628. margin-bottom: 0;
  629. }
  630. .group-header {
  631. display: flex;
  632. align-items: center;
  633. justify-content: space-between;
  634. margin-bottom: 24rpx;
  635. .group-title {
  636. font-size: 28rpx;
  637. font-weight: 500;
  638. color: #042118;
  639. }
  640. .group-check {
  641. width: 38rpx;
  642. height: 38rpx;
  643. display: flex;
  644. align-items: center;
  645. justify-content: center;
  646. background: #C9CDD4;
  647. color: #ffffff;
  648. border-radius: 50%;
  649. font-size: 24rpx;
  650. .check-icon{
  651. font-size: 24rpx;
  652. }
  653. &.active {
  654. background: #0BBC58;
  655. color: #fff;
  656. }
  657. }
  658. }
  659. .group-settings {
  660. .setting-row {
  661. display: flex;
  662. align-items: center;
  663. justify-content: space-between;
  664. margin-bottom: 24rpx;
  665. .setting-row-label {
  666. width: 120rpx;
  667. font-size: 26rpx;
  668. color: #666;
  669. }
  670. .setting-row-input {
  671. flex: 1;
  672. height: 56rpx;
  673. padding: 0 16rpx;
  674. font-size: 26rpx;
  675. color: #042118;
  676. margin-right: 12rpx;
  677. text-align: right;
  678. }
  679. .setting-row-unit {
  680. font-size: 24rpx;
  681. color: #666;
  682. }
  683. }
  684. }
  685. }
  686. }
  687. }
  688. }
  689. /* 底部确定按钮 */
  690. .confirm-btn-container {
  691. padding: 32rpx;
  692. .confirm-btn {
  693. height: 88rpx;
  694. display: flex;
  695. align-items: center;
  696. justify-content: center;
  697. background: #14a478;
  698. border-radius: 12rpx;
  699. box-shadow: 0 4rpx 12rpx rgba(20, 164, 120, 0.3);
  700. .confirm-btn-text {
  701. font-size: 32rpx;
  702. font-weight: 500;
  703. color: #fff;
  704. }
  705. }
  706. }
  707. </style>