diff --git a/components/sleep-list-data/sleep-list-data.vue b/components/sleep-list-data/sleep-list-data.vue
index e215ec6..16c84e0 100644
--- a/components/sleep-list-data/sleep-list-data.vue
+++ b/components/sleep-list-data/sleep-list-data.vue
@@ -1,6 +1,14 @@
-
+
+
+
+
+
+
+
+
+
@@ -14,12 +22,15 @@
},
data() {
return {
+ zz:'block',
};
},
watch:{
dataList(newVal,oldVal){
+
if(newVal.length > 0){
+ this.zz = 'none'
const query = uni.createSelectorQuery().in(this);
query.select('#myCanvas').boundingClientRect(data => {
if (data) {
@@ -36,7 +47,6 @@
},
methods:{
doDraw(canvasWidth){
- console.log(canvasWidth)
const colorArr = [
'#e933dd',
'#6452da',
@@ -51,7 +61,6 @@
let times = 0;
// 计算出每个线条的宽度
const oneLineWidth = (canvasWidth / this.dataList.length).toFixed(2)
- console.log(oneLineWidth)
const ctx = uni.createCanvasContext(this.canvasId, this);
// 设置填充颜色为红色
this.dataList.map((v,i) => {
diff --git a/pages/index/sleep_info.vue b/pages/index/sleep_info.vue
index 59b41de..59d1aeb 100644
--- a/pages/index/sleep_info.vue
+++ b/pages/index/sleep_info.vue
@@ -77,7 +77,7 @@
-
+
睡眠阶段
@@ -174,6 +174,7 @@
},
series: [
{
+ data:[],
type: 'pie',
radius: ['70%', '90%'],
avoidLabelOverlap: false,
diff --git a/static/image/1722482824117.jpg b/static/image/1722482824117.jpg
new file mode 100644
index 0000000..3faf55f
Binary files /dev/null and b/static/image/1722482824117.jpg differ
diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html
index 826a2f1..f2f2e36 100644
--- a/unpackage/dist/build/web/index.html
+++ b/unpackage/dist/build/web/index.html
@@ -1,2 +1,2 @@
智能终端
\ No newline at end of file
+ document.write('')