Commit d10a945e9f04f44adb19032e555cace5b98a7b69
1 parent
6be6f4b0
注释console.log , 解决echart中tooltip的悬浮提示中文字有黑色阴影的问题
Showing
8 changed files
with
18 additions
and
14 deletions
| ... | ... | @@ -5,11 +5,11 @@ App<IAppOption>({ |
| 5 | 5 | }, |
| 6 | 6 | onLaunch() { |
| 7 | 7 | // 展示本地存储能力 |
| 8 | - console.log(this, '-------------------app.ts') | |
| 8 | + // console.log(this, '-------------------app.ts') | |
| 9 | 9 | // 登录 |
| 10 | 10 | wx.login({ |
| 11 | 11 | success: res => { |
| 12 | - console.log(res, "res---------------res", this) | |
| 12 | + // console.log(res, "res---------------res", this) | |
| 13 | 13 | // 发送 res.code 到后台换取 openId, sessionKey, unionId |
| 14 | 14 | }, |
| 15 | 15 | }) | ... | ... |
| ... | ... | @@ -32,7 +32,7 @@ Component({ |
| 32 | 32 | }, |
| 33 | 33 | }, |
| 34 | 34 | ready() { |
| 35 | - console.log(this.data.deviceInfo, 'deviceInfo----deviceInfo') | |
| 35 | + // console.log(this.data.deviceInfo, 'deviceInfo----deviceInfo') | |
| 36 | 36 | const deviceInfo = this.data.deviceInfo |
| 37 | 37 | const res = Math.floor(((deviceInfo.inactiveCount / deviceInfo.deviceTotal) * 100)) |
| 38 | 38 | this.setData({ | ... | ... |
| ... | ... | @@ -21,7 +21,6 @@ function initChart(canvas: any, width: any, height: any, data: any, dpr: any) { |
| 21 | 21 | fontSize: 12, |
| 22 | 22 | color: '#323241', |
| 23 | 23 | }, |
| 24 | - | |
| 25 | 24 | itemHeight: 4, |
| 26 | 25 | itemWidth: 16 |
| 27 | 26 | }, |
| ... | ... | @@ -34,7 +33,14 @@ function initChart(canvas: any, width: any, height: any, data: any, dpr: any) { |
| 34 | 33 | color: color, |
| 35 | 34 | tooltip: { |
| 36 | 35 | show: true, |
| 37 | - trigger: 'axis' | |
| 36 | + trigger: 'axis', | |
| 37 | + textStyle: { | |
| 38 | + // textShadowColor: 'transparent',//文字块背景阴影颜色 | |
| 39 | + textShadowColor: "#fff", // 文字本身的阴影颜色 | |
| 40 | + textShadowBlur: 10, // 文字本身的阴影长度 | |
| 41 | + textShadowOffsetX: 10, // 文字本身的阴影X偏移 | |
| 42 | + textShadowOffsetY: 10, //阴影Y偏移 | |
| 43 | + }, | |
| 38 | 44 | }, |
| 39 | 45 | xAxis: { |
| 40 | 46 | type: 'category', | ... | ... |
| ... | ... | @@ -37,7 +37,7 @@ Component({ |
| 37 | 37 | let that: any = this; |
| 38 | 38 | const { index } = e.currentTarget.dataset; |
| 39 | 39 | // 2 触发 父组件中的事件,传递数据给父组件 把当前点击的index数据传给父组件 |
| 40 | - console.log(that.data.tabbarList[index], e, index) | |
| 40 | + // console.log(that.data.tabbarList[index], e, index) | |
| 41 | 41 | that.triggerEvent("tabsItemChange", that.data.tabbarList[index]); |
| 42 | 42 | that.myBehaviorMethod() |
| 43 | 43 | } |
| ... | ... | @@ -45,6 +45,5 @@ Component({ |
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | ready: function () { |
| 48 | - console.log(this.data, '0000000000000000000'); // 输出 someValue | |
| 49 | 48 | } |
| 50 | 49 | }) | ... | ... |
| ... | ... | @@ -270,7 +270,7 @@ Page({ |
| 270 | 270 | tableHeaderNew = this.data.tableHeaderList.find((item: any) => { |
| 271 | 271 | return item.type === idxToName |
| 272 | 272 | }) |
| 273 | - console.log(tableHeaderNew, '0000', idxToName) | |
| 273 | + // console.log(tableHeaderNew, '0000', idxToName) | |
| 274 | 274 | // this.allData |
| 275 | 275 | let dashboardListNew: any = [] // 仪表盘数据 |
| 276 | 276 | let allcardListNew: any = [] // 所有卡片数据 |
| ... | ... | @@ -289,7 +289,7 @@ Page({ |
| 289 | 289 | this.__getOpenQxCustomHczdGetDateEchartLine("INDEX_MAP") // 首页 曲线图 |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | - console.log(dashboardListNew, 'dashboardListdashboardList', this.data.dashboardList) | |
| 292 | + // console.log(dashboardListNew, 'dashboardListdashboardList', this.data.dashboardList) | |
| 293 | 293 | |
| 294 | 294 | }, |
| 295 | 295 | __getOpenQxCustomHczdInde() {//接口请求 |
| ... | ... | @@ -307,7 +307,7 @@ Page({ |
| 307 | 307 | }).then((data: any) => { |
| 308 | 308 | Toast.clear() |
| 309 | 309 | wx.stopPullDownRefresh() |
| 310 | - console.log(data, '-----------datat') | |
| 310 | + // console.log(data, '-----------datat') | |
| 311 | 311 | if (data.success) { |
| 312 | 312 | |
| 313 | 313 | let PV = data.data.PV // 光伏 |
| ... | ... | @@ -605,7 +605,7 @@ Page({ |
| 605 | 605 | type: type |
| 606 | 606 | } |
| 607 | 607 | }).then((res: any) => { |
| 608 | - console.log(res, 'res-----------getDate') | |
| 608 | + // console.log(res, 'res-----------getDate') | |
| 609 | 609 | if (res.success) { |
| 610 | 610 | this.setData({ |
| 611 | 611 | tableList: res.data | ... | ... |