autoOff.vue 21 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015
  1. <template>
  2. <view>
  3. <u-navbar :title="title" title-color="#101010">
  4. <view slot="right" @click="submitApi">
  5. <img src="@/assets/img/riLine-check-line 1.svg" alt="" />
  6. </view>
  7. </u-navbar>
  8. <view class="time-group">
  9. <view class="time-item" @click="typeShow=true">
  10. <view class="time">
  11. <view class="time-slot">
  12. 重复
  13. </view>
  14. <view class="type weeklistclass" v-if="typeShowIndex==2">
  15. <template v-for="(item,i) in weekdaysList">
  16. <template v-if="item==1">
  17. <span :key="i">
  18. {{weeklist[i]}}
  19. </span>
  20. <span class="weeklistclassSpan" :key="i+'a'" >
  21. ,
  22. </span>
  23. </template>
  24. </template>
  25. </view>
  26. <view class="type" v-else >
  27. {{typeShowIndex==0?'执行一次':''}}
  28. {{typeShowIndex==1?'每天':''}}
  29. </view>
  30. </view>
  31. <view class="more">
  32. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  33. </view>
  34. </view>
  35. <view class="time-item" v-show="switchStatus==2"
  36. @click="pickerShow4=true">
  37. <view class="time">
  38. <view class="time-slot" >
  39. 供电时间段
  40. </view>
  41. <view class="type">
  42. {{startTime?startTimeStr(startTime)+'-':'未设置'}}
  43. {{showjp2time(startTime,endTime)?'次日':''}}
  44. {{endTime?startTimeStr(endTime):''}}
  45. </view>
  46. </view>
  47. <view class="more">
  48. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  49. </view>
  50. </view>
  51. <view class="time-item" v-show="switchStatus==3"
  52. @click="pickerShow3=true">
  53. <view class="time">
  54. <view class="time-slot" >
  55. 智能停电时间段
  56. </view>
  57. <view class="type">
  58. {{startTime?startTimeStr(startTime)+'-':'未设置'}}
  59. {{showjp2time(startTime,endTime)?'次日':''}}
  60. {{endTime?startTimeStr(endTime):''}}
  61. </view>
  62. </view>
  63. <view class="more">
  64. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  65. </view>
  66. </view>
  67. <view class="time-item" v-show="switchStatus==1"
  68. @click="pickerShow1=true">
  69. <view class="time">
  70. <view class="time-slot" >
  71. 供电时间
  72. </view>
  73. <view class="type">
  74. {{startTime?startTimeStr(startTime):'未设置'}}
  75. </view>
  76. </view>
  77. <view class="more">
  78. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  79. </view>
  80. </view>
  81. <view class="time-item" v-show="switchStatus==0"
  82. @click="pickerShow2=true">
  83. <view class="time">
  84. <view class="time-slot" v-show="switchStatus==0">
  85. 停电时间
  86. </view>
  87. <view class="type">
  88. {{endTime?startTimeStr(endTime):'未设置'}}
  89. </view>
  90. </view>
  91. <view class="more">
  92. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  93. </view>
  94. </view>
  95. <view class="time-item" v-show="switchStatus==3"
  96. @click="thresholdsPopup=true" >
  97. <view class="time">
  98. <view class="time-slot">
  99. 最大功率阈值
  100. </view>
  101. <view class="type">
  102. {{formData.maxPower!=''?formData.maxPower+'kW':'未设置'}}
  103. </view>
  104. </view>
  105. <view class="more">
  106. <u-icon name="arrow-right" color="#b2b2b2"></u-icon>
  107. </view>
  108. </view>
  109. <view class="time-item" v-show="switchStatus==3"
  110. >
  111. <view class="time">
  112. <view class="type">
  113. 1. 功率达到最大阈值时“自动停电”;<br/>
  114. 2.“智能停电”结束时,如果处于停电状态将打开电源供电;
  115. </view>
  116. </view>
  117. </view>
  118. <view class="time-item" v-show="switchStatus==2">
  119. <view class="time">
  120. <view class="type">
  121. 供电时间段,在时间段里打开电源供电,超过时间段停电。
  122. </view>
  123. </view>
  124. </view>
  125. <view class="time-item2" v-show="startTime||endTime" >
  126. <view class="time">
  127. <view class="time-slot" >
  128. 用电设置图示
  129. </view>
  130. </view>
  131. <view class="progressText" >
  132. <view class="progress1" v-if="progress1style.width!='0%'" :style="progress1style" >{{progress1style.text}}</view>
  133. <view class="progress2">&nbsp;</view>
  134. <view class="progress3" v-if="progress3style.width!='0%'"
  135. :style="progress3style">{{progress3style.text}}</view>
  136. </view>
  137. <view class="progress" :style="{
  138. backgroundColor:progressColor
  139. }" >
  140. <view class="progress1" :style="progress1style" ></view>
  141. <view class="progress2">&nbsp;</view>
  142. <view class="progress3" :style="progress3style"></view>
  143. </view>
  144. </view>
  145. </view>
  146. <!-- 重复类型 -->
  147. <view class="repeatType" v-if="typeShow">
  148. <u-popup v-model="typeShow" mode="bottom">
  149. <view>
  150. <view class="headline">
  151. 重复类型
  152. </view>
  153. <view class="type-group">
  154. <view class="item" :class="{
  155. 'item-title-checked':typeShowIndex==0
  156. }" @click="typeShowIndex=0,typeShow=false">
  157. <view class="item-title " >
  158. 执行一次
  159. </view>
  160. <view class="item-icon item-icon1">
  161. <img src="@/assets/img/riLine-check-line.svg" alt="" />
  162. </view>
  163. <view class="item-icon item-icon2">
  164. <img src="" alt="" />
  165. </view>
  166. </view>
  167. <view class="item" :class="{
  168. 'item-title-checked':typeShowIndex==1
  169. }" @click="typeShowIndex=1,typeShow=false">
  170. <view class="item-title " > 每天
  171. </view>
  172. <view class="item-icon item-icon1">
  173. <img src="@/assets/img/riLine-check-line.svg" alt="" />
  174. </view>
  175. <view class="item-icon item-icon2">
  176. <img src="" alt="" />
  177. </view>
  178. </view>
  179. <view class="item" :class="{
  180. 'item-title-checked':typeShowIndex==2
  181. }" @click="customPopup=true,weekdaysListTemp=weekdaysList">
  182. <view class="item-title" >
  183. 自定义
  184. </view>
  185. <view class="item-icon item-icon1">
  186. <img src="@/assets/img/riLine-check-line.svg" alt="" />
  187. </view>
  188. <view class="item-icon item-icon2">
  189. <img src="" alt="" />
  190. </view>
  191. </view>
  192. </view>
  193. </view>
  194. </u-popup>
  195. </view>
  196. <!-- 关闭时间 -->
  197. <ujpPicker mode="time" jp="1" :default-time="startTime?'2024-1-1 '+startTime+':1':''"
  198. v-model="pickerShow1" :params="params" @confirm="pickerShow1confirm" ></ujpPicker>
  199. <ujpPicker mode="time" jp="2" :default-time="endTime?'2024-1-1 '+endTime+':1':''" :defaultStartTime="startTime"
  200. v-model="pickerShow2" :params="params" @confirm="pickerShow2confirm" ></ujpPicker>
  201. <!-- 自定义重复 -->
  202. <<<<<<< HEAD
  203. <ujpPicker2 :texts="['开启“智能停电”','停止“智能停电”']"
  204. =======
  205. <ujpPicker2 :texts="['开启"智能停电"','停止"智能停电"']"
  206. >>>>>>> e73dcc9d2155f78c3385e274ba0b15e23f531c38
  207. :defaultTime="startTime?'2024-1-1 '+startTime+':1':''"
  208. :defaultTime2="endTime?'2024-1-1 '+endTime+':1':''"
  209. v-model="pickerShow3" @confirm="pickerShow1confirm2" ></ujpPicker2>
  210. <ujpPicker2 :texts="['供电时间','停电时间']"
  211. :defaultTime="startTime?'2024-1-1 '+startTime+':1':''"
  212. :defaultTime2="endTime?'2024-1-1 '+endTime+':1':''"
  213. v-model="pickerShow4" @confirm="pickerShow1confirm2" ></ujpPicker2>
  214. <u-popup v-model="customPopup" mode="bottom">
  215. <view class="custom">
  216. <view class="headline">
  217. 自定义重复
  218. </view>
  219. <view class="radio-group">
  220. <checkbox-group @change="checkboxChange" >
  221. <view class="radio-item" v-for="(item,i) in weekdaysListTemp" :key="i">
  222. <view class="item-title" >
  223. {{weeklist[i]}}
  224. </view>
  225. <view class="item-value">
  226. <checkbox
  227. :value="''+i"
  228. :checked="item?true:false"
  229. ></checkbox>
  230. </view>
  231. </view>
  232. </checkbox-group>
  233. </view>
  234. <view class="btn-group">
  235. <view class="btn cancel" @click="customPopup=false">
  236. 取消
  237. </view>
  238. <view class="btn confirm" @click="customPopupApi" >
  239. 确认
  240. </view>
  241. </view>
  242. </view>
  243. </u-popup>
  244. <!-- 最大功率阈值 -->
  245. <u-popup v-model="thresholdsPopup" mode="bottom">
  246. <view class="thresholds">
  247. <view class="headline">
  248. 最大功率阈值(kW)
  249. </view>
  250. <view class="input" style=" padding: 0 24rpx;">
  251. <u-input type="digit" min="1"
  252. v-model="maxPower" placeholder="填写触发智能停电的功率数值" />
  253. </view>
  254. <view class="btn-group">
  255. <view class="btn cancel" @click="thresholdsPopup=false" >
  256. 取消
  257. </view>
  258. <view class="btn confirm" @click="thresholdsPopupApi">
  259. 确认
  260. </view>
  261. </view>
  262. </view>
  263. </u-popup>
  264. </view>
  265. </template>
  266. <script>
  267. import ujpPicker from '@/components/u-picker.vue'
  268. import ujpPicker2 from '@/components/u-picker2.vue'
  269. import * as API from '@/apis/pagejs/meterTimer.js'
  270. export default {
  271. components: {
  272. ujpPicker,ujpPicker2
  273. },
  274. data() {
  275. return {
  276. typeShow: true,
  277. pickerShow1: false,
  278. pickerShow2: false,
  279. pickerShow3: false,
  280. pickerShow4: false,
  281. typeShow: false,
  282. customPopup: false,
  283. thresholdsPopup: false,
  284. listtemp: [3,2,1,0],
  285. list: [
  286. {
  287. text:'智能停电',
  288. value:3
  289. },{
  290. text: '供电时间',
  291. value:2
  292. }, {
  293. text: '定时供电',
  294. value:1
  295. }, {
  296. text: '定时停电' ,
  297. value:0
  298. }],
  299. params: {
  300. year: false,
  301. month: false,
  302. day: false,
  303. hour: true,
  304. minute: true,
  305. second: false,
  306. },
  307. id:"",
  308. type:"",
  309. meterId:"",
  310. title:"",
  311. weekdaysListTemp:[0,0,0,0,0,0,0],
  312. weekdaysList:[0,0,0,0,0,0,0],
  313. weeklist:[
  314. '周一','周二','周三','周四','周五','周六','周日'
  315. ],
  316. typeShowIndex:0,
  317. startTime:"",
  318. endTime:"",
  319. maxPower:"",
  320. timerSwitch:{},
  321. switchStatus:"",
  322. formData:{
  323. meterId:"",
  324. weekdays:"",
  325. startTime:"",
  326. type:"",
  327. switchStatus:"",
  328. status:true,
  329. id:"",
  330. endTime:"",
  331. maxPower:"",
  332. },
  333. progressColor:"#53b56b",
  334. }
  335. },
  336. onLoad(op) {
  337. if(op.meterId){
  338. this.meterId=op.meterId;
  339. this.formData.meterId=this.meterId
  340. }
  341. if(op.type){
  342. this.type=op.type;
  343. this.title=this.list[this.type].text
  344. this.switchStatus=this.list[this.type].value
  345. }
  346. if(op.id){
  347. this.id=op.id;
  348. this.getMeterTimerDetails()
  349. }
  350. },
  351. computed:{
  352. progress1style(){
  353. var width=0;
  354. var color="red"
  355. this.progressColor="#53b56b"
  356. var text=""
  357. var textColor=""
  358. if(this.switchStatus==1||this.switchStatus==2||this.switchStatus==3){
  359. var startTime=this.startTime
  360. var endTime=this.endTime
  361. if(!startTime){
  362. startTime="9999"
  363. }
  364. if(!endTime){
  365. endTime="9999"
  366. }
  367. console.log(startTime,endTime)
  368. var num1=parseInt(startTime.replace(":",''))
  369. var num2=parseInt(endTime.replace(":",''))
  370. var num=parseInt(num1>num2?num2:num1)
  371. if(num1>num2){
  372. if(this.switchStatus!=1){
  373. color=" #53b56b"
  374. this.progressColor="red"
  375. }
  376. textColor=" red"
  377. if(this.switchStatus==3){
  378. text=`智能停电${endTime}`
  379. }else{
  380. text=`停电 (${endTime})`
  381. }
  382. }else{
  383. textColor="#53b56b"
  384. if(this.switchStatus==3){
  385. text=`智能停电${startTime}`
  386. }else{
  387. text+=`供电 (${startTime})`
  388. }
  389. }
  390. width=parseInt(num/2400*100)
  391. console.log(width)
  392. }else{
  393. }
  394. return {
  395. color:textColor,
  396. text:text,
  397. width: width+"%",
  398. backgroundColor:color
  399. }
  400. },
  401. progress3style(){
  402. var width=0;
  403. var color="red"
  404. var text=""
  405. var textColor=""
  406. if(this.switchStatus==0||this.switchStatus==2||this.switchStatus==3){
  407. var startTime=this.startTime
  408. var endTime=this.endTime
  409. if(!startTime){
  410. startTime="-1"
  411. }
  412. if(!endTime){
  413. endTime="-1"
  414. }
  415. var num1=parseInt(startTime.replace(":",''))
  416. var num2=parseInt(endTime.replace(":",''))
  417. if(num1<num2||this.switchStatus==0){
  418. textColor=" red"
  419. if(this.switchStatus==3){
  420. text=`智能停电${endTime}`
  421. }else{
  422. text=`停电(${endTime})`
  423. }
  424. }else{
  425. if(this.switchStatus!=0){
  426. color=" #53b56b"
  427. }
  428. textColor=" #53b56b"
  429. //this.progressColor="red"
  430. if(this.switchStatus==3){
  431. text=`智能停电${startTime}`
  432. }else{
  433. text+=`供电(${startTime})`
  434. }
  435. }
  436. var num=parseInt(num1<num2?num2:num1)
  437. width=parseInt((2400-num)/2400*100)
  438. }else{
  439. }
  440. return {
  441. color:textColor,
  442. text:text,
  443. width: width+"%",
  444. backgroundColor:color
  445. }
  446. }
  447. },
  448. methods: {
  449. showjp2time(time1,time2){
  450. if(time1&&time2){
  451. var num1=parseInt(time1.replace(":",''))
  452. var num2=parseInt(time2.replace(":",''))
  453. return num1>num2
  454. }else{
  455. return false
  456. }
  457. },
  458. getMeterTimerDetails(){
  459. uni.showLoading({
  460. title: "加载中",
  461. mask: true,
  462. })
  463. API.meterTimerDetails({
  464. id:this.id
  465. }).then((response) => {
  466. uni.hideLoading();
  467. var timerSwitch=response.data.timerSwitch;
  468. this.formData=timerSwitch
  469. this.meterId=timerSwitch.meterId
  470. this.type=this.listtemp[timerSwitch.switchStatus]
  471. this.switchStatus=this.list[this.type].value
  472. this.title=this.list[this.type].text
  473. if(timerSwitch.type==1){
  474. this.typeShowIndex=0;
  475. }else{
  476. if(timerSwitch.weekdays=="1,2,3,4,5,6,7"){
  477. this.typeShowIndex=1;
  478. }else{
  479. this.typeShowIndex=2;
  480. var sz=timerSwitch.weekdays.split(',');
  481. for(var i in sz){
  482. var num= parseInt(sz[i])-1
  483. this.weekdaysListTemp[num]=1
  484. }
  485. this.weekdaysList=this.weekdaysListTemp
  486. }
  487. }
  488. this.startTime=timerSwitch.startTime
  489. this.endTime=timerSwitch.endTime
  490. if(this.switchStatus==0){
  491. this.endTime=timerSwitch.startTime
  492. }
  493. this.maxPower=this.formData.maxPower
  494. }).catch(error => {
  495. uni.showToast({
  496. title: error,
  497. icon: "none"
  498. })
  499. })
  500. },
  501. thresholdsPopupApi(){
  502. if(this.maxPower!=''){
  503. if(this.maxPower<=0){
  504. uni.showToast({
  505. title: "请输入大于0的功率阈值(kw)",
  506. icon: "none"
  507. })
  508. }else{
  509. this.thresholdsPopup=false
  510. this.formData.maxPower=this.maxPower
  511. }
  512. }else{
  513. uni.showToast({
  514. title: "请填写最大功率阈值(kw)",
  515. icon: "none"
  516. })
  517. }
  518. },
  519. pickerShow1confirm2(e){
  520. if(e.hour+":"+e.minute+""==e.hour2+":"+e.minute2+""){
  521. this.pickerShow3=true
  522. uni.showToast({
  523. title: "请勿设置相同时间",
  524. icon: "none"
  525. })
  526. }else{
  527. this.startTime=e.hour+":"+e.minute+""
  528. this.endTime=e.hour2+":"+e.minute2+""
  529. }
  530. },
  531. pickerShow1confirm(e){
  532. this.startTime=e.hour+":"+e.minute+""
  533. //this.startTimeStr=e.hour+"时"+e.minute+"分"
  534. },
  535. startTimeStr(str){
  536. if(str){
  537. return str.replace(":","时")+"分"
  538. }else{
  539. return ''
  540. }
  541. },
  542. pickerShow2confirm(e){
  543. this.endTime=e.hour+":"+e.minute+""
  544. //this.endTimeStr=e.hour+"时"+e.minute+"分"
  545. },
  546. customPopupApi(){
  547. var str1=[0,0,0,0,0,0,0].join()
  548. var str2=this.weekdaysListTemp.join()
  549. if(str1!=str2){
  550. this.typeShowIndex=2;
  551. this.customPopup=false
  552. this.typeShow=false;
  553. this.weekdaysList=this.weekdaysListTemp;
  554. }else{
  555. uni.showToast({
  556. title: "请至少勾选一项",
  557. icon: "none"
  558. })
  559. }
  560. },
  561. checkboxChange(e){
  562. var sz=e.detail.value;
  563. this.weekdaysListTemp=[0,0,0,0,0,0,0]
  564. for(var i in sz){
  565. var k=sz[i]
  566. this.weekdaysListTemp[k]=1
  567. }
  568. console.log(this.weekdaysListTemp)
  569. },
  570. submitApi(){
  571. this.formData.weekdays=""
  572. this.formData.switchStatus=this.list[this.type].value
  573. if(!this.startTime){
  574. if(this.formData.switchStatus==1){
  575. uni.showToast({
  576. title: "请设置供电时间",
  577. icon: "none"
  578. })
  579. return
  580. }
  581. if(this.formData.switchStatus==2){
  582. uni.showToast({
  583. title: "请设置供电时间段",
  584. icon: "none"
  585. })
  586. return
  587. }
  588. if(this.formData.switchStatus==3){
  589. uni.showToast({
  590. title: "请设置智能停电时间段",
  591. icon: "none"
  592. })
  593. return
  594. }
  595. }
  596. if(!this.endTime){
  597. if(this.formData.switchStatus==0){
  598. uni.showToast({
  599. title: "请设置停电时间",
  600. icon: "none"
  601. })
  602. return
  603. }
  604. }
  605. if(this.formData.switchStatus==0){
  606. this.formData.startTime=this.endTime
  607. }else{
  608. this.formData.startTime=this.startTime
  609. this.formData.endTime=this.endTime
  610. }
  611. if(!this.formData.endTime){
  612. this.formData.endTime=""
  613. }
  614. if(this.typeShowIndex==0){
  615. this.formData.type="1"
  616. }else{
  617. this.formData.type="2"
  618. var weekdaysList=this.weekdaysList
  619. if(this.typeShowIndex==1){
  620. this.formData.weekdays='1,2,3,4,5,6,7'
  621. }
  622. if(this.typeShowIndex==2){
  623. for(var i in weekdaysList){
  624. var day=weekdaysList[i]
  625. if(day==1){
  626. if(this.formData.weekdays!=""){
  627. this.formData.weekdays+=","
  628. }
  629. this.formData.weekdays+=(parseInt(i)+1)
  630. }
  631. }
  632. }
  633. }
  634. if(this.formData.switchStatus==3&&this.maxPower==''){
  635. uni.showToast({
  636. title: "请填写最大功率阈值(kw)",
  637. icon: "none"
  638. })
  639. return
  640. }else{
  641. this.formData.maxPower=this.maxPower;
  642. if(!this.formData.maxPower){
  643. this.formData.maxPower=''
  644. }
  645. }
  646. uni.showLoading({
  647. title: "加载中",
  648. mask: true,
  649. })
  650. API.saveSwitch(this.formData).then((response) => {
  651. //uni.hideLoading();
  652. //this.getMeterTimerListReady=true
  653. //this.timerSwitchList=response.data.timerSwitchList;
  654. uni.navigateBack();
  655. }).catch(error => {
  656. uni.showToast({
  657. title: error,
  658. icon: "none"
  659. })
  660. })
  661. }
  662. }
  663. }
  664. </script>
  665. <style lang="scss" scoped>
  666. .progressText{
  667. margin-top: 16rpx;
  668. margin-bottom: 2rpx;
  669. display: flex;
  670. justify-content: space-between;
  671. .progress1,.progress3{
  672. white-space: pre;
  673. background-color: #fff !important;
  674. }
  675. .progress1{
  676. text-align: right;
  677. }
  678. .progress3{
  679. text-align: left;
  680. min-width: 25%;
  681. }
  682. }
  683. .progress{
  684. background-color: #53b56b;
  685. color: #53b56b;
  686. height: 60rpx;
  687. border-radius: 30px;
  688. display: flex;
  689. justify-content: space-between;
  690. .progress1{
  691. border-radius: 30px 0 0 30px;
  692. }
  693. .progress3{
  694. border-radius:0 30px 30px 0;
  695. }
  696. }
  697. /deep/.u-slot-right {
  698. padding-right: 32rpx;
  699. img {
  700. width: 48rpx;
  701. height: 48rpx;
  702. }
  703. }
  704. .time-group {
  705. background-color: #fff;
  706. .time-item2 {
  707. padding: 24rpx 0;
  708. margin: 0 32rpx;
  709. .time {
  710. .time-slot {
  711. color: rgba(16, 16, 16, 1);
  712. font-size: 32rpx;
  713. }
  714. .type {
  715. color: rgba(119, 119, 119, 1);
  716. }
  717. }
  718. }
  719. .time-item {
  720. padding: 24rpx 0;
  721. margin: 0 32rpx;
  722. display: flex;
  723. justify-content: space-between;
  724. align-items: center;
  725. border-bottom: 1px solid rgba(221, 221, 221, 1);
  726. .time {
  727. .time-slot {
  728. color: rgba(16, 16, 16, 1);
  729. font-size: 32rpx;
  730. }
  731. .type {
  732. color: rgba(119, 119, 119, 1);
  733. }
  734. }
  735. }
  736. .time-item:last-of-type {
  737. border: none;
  738. }
  739. }
  740. .weeklistclassSpan:last-child{
  741. display: none;
  742. }
  743. // 重复类型
  744. .repeatType {
  745. .headline {
  746. color: rgba(16, 16, 16, 1);
  747. font-size: 36rpx;
  748. margin-top: 32rpx;
  749. font-weight: bold;
  750. text-align: center;
  751. }
  752. .type-group {
  753. margin-top: 24rpx;
  754. .item {
  755. display: flex;
  756. align-items: center;
  757. justify-content: space-between;
  758. height: 96rpx;
  759. line-height: 96rpx;
  760. border-bottom: 1px solid rgba(245,245,245,1);
  761. padding: 0 32rpx;
  762. }
  763. .time-item:last-of-type{
  764. border: none;
  765. }
  766. .item-title {
  767. color: rgb(16, 16, 16);
  768. font-size: 32rpx;
  769. }
  770. .item-icon1{
  771. display: none;
  772. }
  773. .item-icon2{
  774. display: block;
  775. }
  776. .item-title-checked {
  777. color: rgba(22, 119, 255, 1);
  778. .item-title {
  779. color: rgba(22, 119, 255, 1);
  780. font-size: 32rpx;
  781. }
  782. .item-icon1{
  783. display: block;
  784. }
  785. .item-icon2{
  786. display: none;
  787. }
  788. }
  789. }
  790. }
  791. // 自定义重复
  792. .custom,
  793. .thresholds {
  794. padding: 32rpx 0;
  795. .headline {
  796. color: rgba(16, 16, 16, 1);
  797. font-size: 36rpx;
  798. margin-bottom: 32rpx;
  799. font-weight: bold;
  800. text-align: center;
  801. }
  802. .radio-group {
  803. .radio-item {
  804. padding: 0 32rpx;
  805. display: flex;
  806. align-items: center;
  807. justify-content: space-between;
  808. height: 96rpx;
  809. line-height: 96rpx;
  810. border-bottom: 1px solid rgba(245,245,245,1);
  811. .item-title {
  812. color: rgba(16, 16, 16, 1);
  813. font-size: 32rpx;
  814. }
  815. }
  816. }
  817. .btn-group {
  818. display: flex;
  819. align-items: center;
  820. justify-content: space-between;
  821. padding: 0 32rpx;
  822. .btn {
  823. width: 328rpx;
  824. height: 80rpx;
  825. line-height: 80rpx;
  826. font-size: 32rpx;
  827. border-radius: 4px;
  828. text-align: center;
  829. margin-top: 24rpx;
  830. }
  831. .cancel {
  832. background-color: rgba(222, 225, 228, 1);
  833. color: rgba(51, 51, 51, 1);
  834. }
  835. .confirm {
  836. background-color: rgba(22, 119, 255, 1);
  837. color: rgba(255, 255, 255, 1);
  838. }
  839. }
  840. }
  841. /deep/.u-drawer-content-visible {
  842. border-radius: 12px 12px 0 0;
  843. }
  844. /deep/uni-input{
  845. background-color: rgba(241,242,245,1);
  846. color: rgba(119,119,119,1);
  847. font-size: 36rpx;
  848. height: 80rpx;
  849. padding-left: 16rpx;
  850. }
  851. </style>