Commit 2914abbf authored by IvyXia123's avatar IvyXia123

样式

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