Commit b5d81295 authored by Mac's avatar Mac

1

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