diff --git a/pages/index/components/monthCharts.vue b/pages/index/components/monthCharts.vue
index a3a1e44..b5a80a7 100644
--- a/pages/index/components/monthCharts.vue
+++ b/pages/index/components/monthCharts.vue
@@ -88,6 +88,7 @@ export default {
uni.canvasToTempFilePath({
canvasId:id,
complete:(res)=>{
+ console.log('res',res)
if (res.tempFilePath){
uni.getFileSystemManager().readFile({
filePath: res.tempFilePath,
diff --git a/pages/revenue/component/otherCharts.vue b/pages/revenue/component/otherCharts.vue
index e9d6b50..a268f7d 100644
--- a/pages/revenue/component/otherCharts.vue
+++ b/pages/revenue/component/otherCharts.vue
@@ -1,113 +1,123 @@
-
-
-
-
+
+
+
+
diff --git a/pages/revenue/component/yearCharts.vue b/pages/revenue/component/yearCharts.vue
index ca06a28..fef6148 100644
--- a/pages/revenue/component/yearCharts.vue
+++ b/pages/revenue/component/yearCharts.vue
@@ -1,7 +1,7 @@
-
+
@@ -76,10 +76,12 @@ export default {
}
});
setTimeout( ()=>{
- this.canvasToTempImage('month')
- },100)
+ console.log('变成图片')
+ _this.canvasToTempImage('month')
+ },500)
},
canvasToTempImage(id){
+ let _this = this
uni.canvasToTempFilePath({
canvasId:id,
complete:(res)=>{
@@ -89,12 +91,13 @@ export default {
encoding: 'base64',
success: res => {
let base64 = 'data:image/png;base64,' + res.data;
- this.preferPath = base64
+ _this.preferPath = base64
+ console.log('this.preferPath',_this.preferPath)
}
})
}
}
- },this)
+ },_this)
},
}
}
diff --git a/pages/revenue/index.vue b/pages/revenue/index.vue
index 557c719..11353f5 100644
--- a/pages/revenue/index.vue
+++ b/pages/revenue/index.vue
@@ -1,8 +1,8 @@
-
-
+