|
@@ -105,6 +105,12 @@
|
|
// console.log("onLoad")
|
|
// console.log("onLoad")
|
|
// this.init();
|
|
// this.init();
|
|
// },
|
|
// },
|
|
|
|
+ onShow() {
|
|
|
|
+ var test = uni.getStorageSync('test');
|
|
|
|
+ if(test == 2){
|
|
|
|
+ this.init();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
console.log("mounted")
|
|
console.log("mounted")
|
|
this.init();
|
|
this.init();
|
|
@@ -124,6 +130,7 @@
|
|
await this.initDateRang(new Date(),'week');
|
|
await this.initDateRang(new Date(),'week');
|
|
await this.initDateRang(new Date(),'month');
|
|
await this.initDateRang(new Date(),'month');
|
|
await this.initDateRang(new Date(),'year');
|
|
await this.initDateRang(new Date(),'year');
|
|
|
|
+ uni.setStorageSync('test', '2');
|
|
},
|
|
},
|
|
initDateRang(day,chartType) {
|
|
initDateRang(day,chartType) {
|
|
const daystr = dateUtils.formateDate(day, 'yyyy/MM/dd');
|
|
const daystr = dateUtils.formateDate(day, 'yyyy/MM/dd');
|
|
@@ -448,20 +455,21 @@
|
|
.qiun-title-dot-light {
|
|
.qiun-title-dot-light {
|
|
border-left: 10upx solid #0ea391;
|
|
border-left: 10upx solid #0ea391;
|
|
padding-left: 10upx;
|
|
padding-left: 10upx;
|
|
|
|
+ font-family: "宋体";
|
|
font-size: 50upx;
|
|
font-size: 50upx;
|
|
- color: #000000
|
|
|
|
|
|
+ color: #000000;
|
|
}
|
|
}
|
|
|
|
|
|
.qiun-charts {
|
|
.qiun-charts {
|
|
width: 750upx;
|
|
width: 750upx;
|
|
- height: 430upx;
|
|
|
|
|
|
+ height: 500upx;
|
|
background-color: #FFFFFF;
|
|
background-color: #FFFFFF;
|
|
margin: auto;
|
|
margin: auto;
|
|
}
|
|
}
|
|
|
|
|
|
.charts {
|
|
.charts {
|
|
- width: 600upx;
|
|
|
|
- height: 430upx;
|
|
|
|
|
|
+ width: 750upx;
|
|
|
|
+ height: 500upx;
|
|
background-color: #FFFFFF;
|
|
background-color: #FFFFFF;
|
|
margin: auto;
|
|
margin: auto;
|
|
}
|
|
}
|