autoSetting.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  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. // 8 表示未配置
  251. list.push({
  252. 'Part008:Formula': 8,
  253. Formula: 8,
  254. ec: '',
  255. ph: '',
  256. wfratio: '',
  257. label: "未配置",
  258. channels: [],
  259. });
  260. console.log(list,'listlist')
  261. this.selector = list;
  262. },
  263. selectFertType(type){
  264. this.FertType = type;
  265. this.editGroup({
  266. FertType: type,
  267. });
  268. },
  269. selectFertPidType(type){
  270. this.FertPidType = type;
  271. this.editGroup({
  272. FertPidType: type,
  273. });
  274. },
  275. underChange(val){
  276. this.UnderClearWater = val;
  277. this.editGroup({UnderClearWater: val});
  278. },
  279. PartTimChange(e,index){
  280. const item = this.group_list[index];
  281. if(item.selected){
  282. item.PartTim = e.detail.value;
  283. const deleteKey = Object.keys(item).find(key => key.endsWith(':Status'));
  284. const deleteTimeR = Object.keys(item).find(key => key.endsWith(':TimR'));
  285. const deleteTimeT = Object.keys(item).find(key => key.endsWith(':TimT'));
  286. const deleteGroup = Object.keys(item).find(key => key.endsWith(':Group'));
  287. const getKey = Object.keys(item).find(key => key.endsWith(':PartTim'));
  288. const data = {
  289. ...this.excludeObjectKeys(item, ['selected', 'group_value','FertTim','PartTim','Formula','group_name',deleteKey,deleteTimeR,deleteTimeT,deleteGroup]),
  290. group_value: this.group_list[index].selected? 1 :0,
  291. [getKey]: item.PartTim
  292. }
  293. this.editGroupList(data);
  294. }
  295. },
  296. FertTimChange(e,index){
  297. const item = this.group_list[index];
  298. if(item.selected){
  299. item.FertTim = e.detail.value;
  300. const deleteKey = Object.keys(item).find(key => key.endsWith(':Status'));
  301. const deleteTimeR = Object.keys(item).find(key => key.endsWith(':TimR'));
  302. const deleteTimeT = Object.keys(item).find(key => key.endsWith(':TimT'));
  303. const deleteGroup = Object.keys(item).find(key => key.endsWith(':Group'));
  304. const getKey = Object.keys(item).find(key => key.endsWith(':Formula'));
  305. const data = {
  306. ...this.excludeObjectKeys(item, ['selected', 'group_value','FertTim','PartTim','Formula','group_name',deleteKey,deleteTimeR,deleteTimeT,deleteGroup]),
  307. group_value: this.group_list[index].selected? 1 :0,
  308. [getKey]: item.FertTim,
  309. }
  310. this.editGroupList(data);
  311. }
  312. },
  313. frontChange(val){
  314. this.FrontClearWater = val;
  315. this.editGroup({FrontClearWater: val});
  316. },
  317. idleChange(val){
  318. this.IdleTim = val;
  319. this.editGroup({IdleTim: val});
  320. },
  321. irrChange(val){
  322. this.IrrCnt = val;
  323. this.editGroup({IrrCnt: val});
  324. },
  325. selectFormula(index){
  326. this.show = true;
  327. this.currentIndex = index;
  328. },
  329. async editGroupList(data){
  330. const params = {
  331. devBid: parseInt(this.devBid),
  332. data,
  333. }
  334. const res = await this.$myRequest({
  335. url:'/api/v2/iot/device/sf/yunshang/auto/group/edit/',
  336. method:'POST',
  337. data: params,
  338. header: {
  339. 'Content-Type': 'application/json',
  340. 'accept': 'application/json, text/plain, */*'
  341. }
  342. })
  343. console.log(res,'resres')
  344. if(res?.code === '000000'){
  345. uni.showToast({
  346. title: '保存成功',
  347. icon: 'success',
  348. })
  349. this.refresh();
  350. }
  351. },
  352. async editGroup(data){
  353. const params = {
  354. devBid: parseInt(this.devBid),
  355. data,
  356. }
  357. const res = await this.$myRequest({
  358. url:'/api/v2/iot/device/sf/yunshang/auto/config/edit/',
  359. method:'POST',
  360. data: params,
  361. header: {
  362. 'Content-Type': 'application/json',
  363. 'accept': 'application/json, text/plain, */*'
  364. }
  365. })
  366. if(res?.code === '000000'){
  367. uni.showToast({
  368. title: '保存成功',
  369. icon: 'success',
  370. })
  371. this.refresh();
  372. }
  373. },
  374. async getConfigInfo(){
  375. const res = await this.$myRequest({
  376. url:'/api/v2/iot/device/sf/yunshang/auto/config/info/',
  377. method:'post',
  378. data: {
  379. devBid: String(this.devBid),
  380. },
  381. })
  382. const resData = res || {};
  383. this.FertPidType = resData?.FertPidType;
  384. this.FertType = resData?.FertType;
  385. this.IrrCnt = resData?.IrrCnt;
  386. this.IdleTim = resData?.IdleTim;
  387. this.FrontClearWater = resData?.FrontClearWater;
  388. this.UnderClearWater = resData?.UnderClearWater;
  389. const group_list = resData.group_list || [];
  390. this.group_list = group_list.map((item, index) => {
  391. const selected = item.group_value == 1 ? true : false;
  392. for (let key in item) {
  393. if (key.includes('PartTim')) {
  394. item.PartTim = item[key];
  395. } else if (key.includes('FertTim')) {
  396. item.FertTim = item[key];
  397. } else if (key.includes('Formula')) {
  398. item.Formula = item[key];
  399. }
  400. }
  401. return {
  402. ...item,
  403. selected
  404. };
  405. });
  406. },
  407. // 实现排除对象中的某些属性的方法
  408. excludeObjectKeys(obj, keys) {
  409. return Object.keys(obj).reduce((acc, key) => {
  410. if (!keys.includes(key)) {
  411. acc[key] = obj[key];
  412. }
  413. return acc;
  414. }, {});
  415. },
  416. changeGroupStatus(index) {
  417. const item = this.group_list[index];
  418. this.$set(item,'selected',!item.selected);
  419. const deleteKey = Object.keys(item).find(key => key.endsWith(':Status'));
  420. const deleteTimeR = Object.keys(item).find(key => key.endsWith(':TimR'));
  421. const deleteTimeT = Object.keys(item).find(key => key.endsWith(':TimT'));
  422. const deleteGroup = Object.keys(item).find(key => key.endsWith(':Group'));
  423. const data = {
  424. ...this.excludeObjectKeys(item, ['selected', 'group_value','FertTim','PartTim','Formula','group_name',deleteKey,deleteTimeR,deleteTimeT,deleteGroup]),
  425. group_value: this.group_list[index].selected? 1 :0,
  426. }
  427. console.log(data,'datadatadata')
  428. this.editGroupList(data);
  429. },
  430. selectGroup(index) {
  431. this.selectedGroup = index;
  432. uni.createSelectorQuery().select('#group-' + index).boundingClientRect((data) => {
  433. if (data) {
  434. uni.pageScrollTo({
  435. scrollTop: data.top,
  436. duration: 300
  437. });
  438. }
  439. }).exec();
  440. },
  441. // 减少轮灌次数
  442. decreaseRoundCount() {
  443. if (this.roundCount > 1) {
  444. this.roundCount--;
  445. }
  446. },
  447. // 增加轮灌次数
  448. increaseRoundCount() {
  449. this.roundCount++;
  450. },
  451. // 确认按钮点击事件
  452. confirm() {
  453. // 这里可以添加确认逻辑
  454. console.log('确认设置');
  455. }
  456. }
  457. };
  458. </script>
  459. <style scoped lang="scss">
  460. .auto-fertilization-container {
  461. width: 100%;
  462. min-height: 100vh;
  463. background: linear-gradient(180deg, #f5f6fa00 0%, #F5F6FA 23.64%, #F5F6FA 100%), linear-gradient(102deg, #BFEADD 6.77%, #B8F1E7 40.15%, #B9EEF5 84.02%);
  464. font-family: 'Source Han Sans CN';
  465. }
  466. .group-check-container{
  467. display: flex;
  468. width: 120rpx;
  469. }
  470. .select-group{
  471. text-align:right;
  472. }
  473. .group-check-radius{
  474. width: 30rpx;
  475. height: 30rpx;
  476. display: flex;
  477. align-items: center;
  478. justify-content: center;
  479. border-radius: 50%;
  480. background: #ffffff;
  481. border: 2rpx solid #E4E7ED;
  482. font-size: 24rpx;
  483. color: #14a478;
  484. margin-right: 10rpx;
  485. }
  486. .active{
  487. border-color: #0BBC58;
  488. }
  489. .text{
  490. color: #666666;
  491. font-family: "Source Han Sans CN VF";
  492. font-size: 28rpx;
  493. }
  494. .text-active{
  495. color: #0BBC58;
  496. }
  497. /* 内容区域 */
  498. .content {
  499. overflow-y: auto;
  500. width: calc(100% - 64rpx);
  501. margin-left: 32rpx;
  502. display:flex;
  503. flex-direction: column;
  504. }
  505. .setting-top-container{
  506. border: 2px solid #FFF;
  507. border-radius: 8px;
  508. padding: 32rpx;
  509. background: #FFF;
  510. }
  511. /* 设置项 */
  512. .setting-item {
  513. display: flex;
  514. align-items: center;
  515. justify-content: space-between;
  516. padding: 24rpx 0;
  517. border-bottom: 1rpx solid #e8e8e8;
  518. .setting-label {
  519. font-size: 28rpx;
  520. color: #042118;
  521. }
  522. /* 单选组 */
  523. .radio-group {
  524. display: flex;
  525. gap: 32rpx;
  526. .radio-item {
  527. display: flex;
  528. align-items: center;
  529. gap: 8rpx;
  530. font-size: 26rpx;
  531. color: #666;
  532. width: 120rpx;
  533. &.active {
  534. color: #14a478;
  535. }
  536. radio {
  537. transform: scale(0.8);
  538. }
  539. }
  540. }
  541. /* 数字输入 */
  542. .number-input {
  543. display: flex;
  544. align-items: center;
  545. gap: 16rpx;
  546. .number-btn {
  547. width: 40rpx;
  548. height: 40rpx;
  549. display: flex;
  550. align-items: center;
  551. justify-content: center;
  552. background: #f5f5f5;
  553. border-radius: 4rpx;
  554. font-size: 28rpx;
  555. color: #666;
  556. }
  557. .number-value {
  558. min-width: 60rpx;
  559. text-align: center;
  560. font-size: 26rpx;
  561. color: #042118;
  562. }
  563. }
  564. /* 时间输入 */
  565. .time-input {
  566. display: flex;
  567. align-items: center;
  568. gap: 8rpx;
  569. .time-input-field {
  570. flex:1;
  571. height: 52rpx;
  572. padding: 0 16rpx;
  573. font-size: 26rpx;
  574. text-align: right;
  575. color: #042118;
  576. }
  577. .time-unit {
  578. font-size: 24rpx;
  579. color: #666;
  580. }
  581. }
  582. }
  583. /* 轮灌组区域 */
  584. .round-groups-section {
  585. margin-top: 40rpx;
  586. flex:1;
  587. .section-title {
  588. font-size: 28rpx;
  589. font-weight: 500;
  590. color: #042118;
  591. }
  592. .round-groups-container {
  593. margin-top: 24rpx;
  594. display: flex;
  595. border-radius: 12rpx;
  596. flex:1;
  597. /* 左侧轮灌组列表 */
  598. .round-groups-list {
  599. width: 120rpx;
  600. background: #ffffff;
  601. border-radius: 8rpx;
  602. .round-group-item {
  603. height: 80rpx;
  604. display: flex;
  605. align-items: center;
  606. justify-content: center;
  607. font-size: 26rpx;
  608. color: #666;
  609. border-left-top-radius: 16rpx;
  610. border-left-bottom-radius: 16rpx;
  611. &.active {
  612. background: #0bbc581a;
  613. color:#0BBC58;
  614. font-weight: 700;
  615. color: #0bbc58;
  616. font-family: "Source Han Sans CN VF";
  617. }
  618. &:last-child {
  619. border-bottom: none;
  620. }
  621. .green-text {
  622. color: #14a478;
  623. font-weight: 500;
  624. }
  625. }
  626. }
  627. /* 右侧轮灌组详情 */
  628. .round-group-detail {
  629. margin-left: 24rpx;
  630. border-radius: 16rpx;
  631. height: 600rpx;
  632. overflow-y: auto;
  633. .group-detail-item {
  634. margin-bottom: 32rpx;
  635. padding: 24rpx;
  636. background: #ffffff;
  637. border-radius: 8rpx;
  638. &:last-child {
  639. margin-bottom: 0;
  640. }
  641. .group-header {
  642. display: flex;
  643. align-items: center;
  644. justify-content: space-between;
  645. margin-bottom: 24rpx;
  646. .group-title {
  647. font-size: 28rpx;
  648. font-weight: 500;
  649. color: #042118;
  650. }
  651. .group-check {
  652. width: 38rpx;
  653. height: 38rpx;
  654. display: flex;
  655. align-items: center;
  656. justify-content: center;
  657. background: #C9CDD4;
  658. color: #ffffff;
  659. border-radius: 50%;
  660. font-size: 24rpx;
  661. .check-icon{
  662. font-size: 24rpx;
  663. }
  664. &.active {
  665. background: #0BBC58;
  666. color: #fff;
  667. }
  668. }
  669. }
  670. .group-settings {
  671. .setting-row {
  672. display: flex;
  673. align-items: center;
  674. justify-content: space-between;
  675. margin-bottom: 24rpx;
  676. .setting-row-label {
  677. width: 120rpx;
  678. font-size: 26rpx;
  679. color: #666;
  680. }
  681. .setting-row-input {
  682. flex: 1;
  683. height: 56rpx;
  684. padding: 0 16rpx;
  685. font-size: 26rpx;
  686. color: #042118;
  687. margin-right: 12rpx;
  688. text-align: right;
  689. }
  690. .setting-row-unit {
  691. font-size: 24rpx;
  692. color: #666;
  693. }
  694. }
  695. }
  696. }
  697. }
  698. }
  699. }
  700. /* 底部确定按钮 */
  701. .confirm-btn-container {
  702. padding: 32rpx;
  703. .confirm-btn {
  704. height: 88rpx;
  705. display: flex;
  706. align-items: center;
  707. justify-content: center;
  708. background: #14a478;
  709. border-radius: 12rpx;
  710. box-shadow: 0 4rpx 12rpx rgba(20, 164, 120, 0.3);
  711. .confirm-btn-text {
  712. font-size: 32rpx;
  713. font-weight: 500;
  714. color: #fff;
  715. }
  716. }
  717. }
  718. </style>