Commit b5d81295 authored by Mac's avatar Mac

1

parent c69c8242
......@@ -6,7 +6,7 @@
}
.salesvolume .zongxiaos{
width: 100%;
margin-top: 70rpx;
margin-top: 50rpx;
}
.salesvolume .distext{
font-size: 12px;
......@@ -20,7 +20,7 @@
color: #FFF;
}
.salesvolume .top-b{
margin-top: 50rpx;
margin-top: 35rpx;
width: 100%;
display: flex;
align-items: center;
......@@ -218,9 +218,9 @@
},
getTime() {
var myDate = new Date();
this.msg.EndTime = myDate.getFullYear() + '-' + (myDate.getMonth() + 1) + '-' + myDate.getDate()
this.msg.EndTime = myDate.getFullYear() + '-' + ((myDate.getMonth() + 1)<10?'0'+(myDate.getMonth() + 1):(myDate.getMonth() + 1)) + '-' + (myDate.getDate()<10?'0'+myDate.getDate():myDate.getDate())
var startDate = new Date(myDate.setDate(myDate.getDate() - 7)) //计算当前时间的前7天的时间
this.msg.StartTime = startDate.getFullYear() + '-' + (startDate.getMonth() + 1) + '-' + startDate.getDate()
this.msg.StartTime = startDate.getFullYear() + '-' + ((myDate.getMonth() + 1)<10?'0'+(myDate.getMonth() + 1):(myDate.getMonth() + 1))+ '-' + (myDate.getDate()<10?'0'+myDate.getDate():myDate.getDate())
this.cWidth=uni.upx2px(750);
this.cHeight=uni.upx2px(500);
this.init();
......@@ -435,7 +435,7 @@
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 44px;
line-height: 34px;
padding: 0 10px;
}
......
<template>
<view style="height: 100vh;">
<calendar ref="calendar"
v-if="show"
:startDate="StartTime"
:height="height"
:endDate="EndTime"
......@@ -23,6 +24,7 @@
limit:36,
StartTime:'',
EndTime:'',
show:false,
}
},
created() {
......@@ -35,6 +37,9 @@
if(options){
this.StartTime = options.StartTime
this.EndTime = options.EndTime
setTimeout(()=>{
this.show = true
},100)
}
},
methods:{
......
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