Commit 2914abbf authored by IvyXia123's avatar IvyXia123

样式

parent 2442a24d
......@@ -15,7 +15,7 @@
</div>
<div class="preservation" @click="preservationClick">保存</div>
<van-popup v-model="dateShow" position="bottom">
<van-datetime-picker :min-hour="minHour" @confirm="dateConfirm" @cancel="dateConfirmNo" v-model="currentTime" type="time"/>
<van-datetime-picker :min-hour="minHour" :max-hour="maxHour" @confirm="dateConfirm" @cancel="dateConfirmNo" v-model="currentTime" type="time"/>
</van-popup>
</div>
</template>
......@@ -32,6 +32,7 @@
return {
currentTime: '07:00',
minHour: 6,
maxHour: 22,
dateVal: '',
dateShow: false,
selectedValue: '',
......@@ -47,19 +48,15 @@
dateShowClick() {
this.dateShow = true;
this.$nextTick(() => {
document.querySelectorAll('.van-picker__confirm')[0].innerText = '完成'
document.querySelectorAll('.van-picker-column')[1].style.display = 'none';
let oLi = document.querySelectorAll('.van-picker-column')[0].querySelectorAll('li');
console.log(oLi)
for (var i = 0; i < oLi.length; i++) {
if(i < 6) {
// oLi[i].style.display = 'none'
}
oLi[i].innerText = oLi[i].innerText + ':00'
}
})
},
dateConfirm(val) {
console.log(val)
this.currentTime = val == 'aN:aN' ? '00:00' : val
this.contentFn()
},
......@@ -84,6 +81,7 @@
},
mounted() {
getNotifyApi(this.$route.query.periods_id).then(res => {
console.log(res, 8787878)
if(res.time)
this.currentTime = res.time.split(':')[0] + ':' + res.time.split(':')[1]
})
......@@ -98,6 +96,11 @@
border-radius: 30 * @toVw 30 * @toVw 0 0;
}
.van-picker__toolbar::after {
content: '';
border: none;
}
.van-picker__confirm {
color: #333333;
font-size: 15 * @toVw;
......
......@@ -231,16 +231,17 @@
},
methods: {
errorLog(e){
this.userDetail = JSON.parse(localStorage.getItem("userDesc"));
/*this.userDetail = JSON.parse(localStorage.getItem("userDesc"));
// console.log(e.target.error,229)
let str='code:'+e.target.error.code+',msg:'+e.target.error.message+',url:'+
this.showObj.video[this.videoIndex].url+',UserAgent:'+navigator.userAgent+',currentTime:'+this.$refs.videoDom.currentTime
console.log(str)
postErrorLogApi({
'routes_url':'videoerror,'+'userid:'+this.userDetail.user_id,
'result_text':str
}).then((res)=>{
// console.log(res)
})
})*/
},
sliceUrl() {
localStorage.setItem("clarityType", this.clarityType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment