|
@@ -81,9 +81,10 @@
|
|
<view class="popup-intime">
|
|
<view class="popup-intime">
|
|
<view class="popup-intime-top" > {{item.name}}</view>
|
|
<view class="popup-intime-top" > {{item.name}}</view>
|
|
<!-- <view class="popup-intime-bottom" v-if="item.time !=0">{{item.time}}</view> -->
|
|
<!-- <view class="popup-intime-bottom" v-if="item.time !=0">{{item.time}}</view> -->
|
|
- <picker class="openTime" mode="time" :value="time" start="09:01" end="21:01" @change="bindTimeChange">
|
|
|
|
- <view class="popup-intime-bottom" v-if="index==1">{{item.time}}</view>
|
|
|
|
|
|
+ <picker v-if="index === 1" class="openTime" mode="time" :value="time" start="09:01" end="21:01" @change="bindTimeChange">
|
|
|
|
+ <view class="popup-intime-bottom" >{{item.time}}</view>
|
|
</picker>
|
|
</picker>
|
|
|
|
+ <view v-else class="popup-intime-bottom" >{{item.time}}</view>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="pop-right"><u-button class="upset" size="mini" @click="upset()" v-if="index==0">修正</u-button></view> -->
|
|
<!-- <view class="pop-right"><u-button class="upset" size="mini" @click="upset()" v-if="index==0">修正</u-button></view> -->
|
|
</u-radio>
|
|
</u-radio>
|
|
@@ -177,15 +178,14 @@
|
|
onShow() {
|
|
onShow() {
|
|
this.timeList[1].time = this.getTimer();
|
|
this.timeList[1].time = this.getTimer();
|
|
// this.timeList[1].time=this.currentTime.getFullYear()+ '-' +(this.currentTime.getMonth()+1)+ '-' +this.currentTime.getDate()+ ' ' +this.finialtime+ ':'+"00";
|
|
// this.timeList[1].time=this.currentTime.getFullYear()+ '-' +(this.currentTime.getMonth()+1)+ '-' +this.currentTime.getDate()+ ' ' +this.finialtime+ ':'+"00";
|
|
- setInterval( () => {
|
|
|
|
|
|
+ setTimeout( () => {
|
|
this.timeList[0].time = this.inTime;
|
|
this.timeList[0].time = this.inTime;
|
|
-
|
|
|
|
}, 1000);
|
|
}, 1000);
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
- upset(){
|
|
|
|
- this.visible=true;
|
|
|
|
- },
|
|
|
|
|
|
+ // upset(){
|
|
|
|
+ // this.visible=true;
|
|
|
|
+ // },
|
|
bindTimeChange(e) {
|
|
bindTimeChange(e) {
|
|
this.finialtime = e.target.value;
|
|
this.finialtime = e.target.value;
|
|
console.log(this.finialtime)
|
|
console.log(this.finialtime)
|
|
@@ -198,8 +198,9 @@
|
|
},
|
|
},
|
|
submit(){
|
|
submit(){
|
|
this.time = this.confirmTime;
|
|
this.time = this.confirmTime;
|
|
- console.log(this.time)
|
|
|
|
|
|
+ console.log(this.timeList[1].time)
|
|
this.timeshow=true;
|
|
this.timeshow=true;
|
|
|
|
+ // this.timeList[0].time = this.inTime;
|
|
},
|
|
},
|
|
radioGroupChange(){
|
|
radioGroupChange(){
|
|
|
|
|