Commit d10a945e9f04f44adb19032e555cace5b98a7b69

Authored by 周铨
1 parent 6be6f4b0

注释console.log , 解决echart中tooltip的悬浮提示中文字有黑色阴影的问题

@@ -13,7 +13,7 @@ module.exports = Behavior({ @@ -13,7 +13,7 @@ module.exports = Behavior({
13 attached: function(){}, 13 attached: function(){},
14 methods: { 14 methods: {
15 myBehaviorMethod: function(){ 15 myBehaviorMethod: function(){
16 - console.log('这是Behavior方法------------') 16 + // console.log('这是Behavior方法------------')
17 } 17 }
18 } 18 }
19 }) 19 })
@@ -5,11 +5,11 @@ App<IAppOption>({ @@ -5,11 +5,11 @@ App<IAppOption>({
5 }, 5 },
6 onLaunch() { 6 onLaunch() {
7 // 展示本地存储能力 7 // 展示本地存储能力
8 - console.log(this, '-------------------app.ts') 8 + // console.log(this, '-------------------app.ts')
9 // 登录 9 // 登录
10 wx.login({ 10 wx.login({
11 success: res => { 11 success: res => {
12 - console.log(res, "res---------------res", this) 12 + // console.log(res, "res---------------res", this)
13 // 发送 res.code 到后台换取 openId, sessionKey, unionId 13 // 发送 res.code 到后台换取 openId, sessionKey, unionId
14 }, 14 },
15 }) 15 })
@@ -32,7 +32,7 @@ Component({ @@ -32,7 +32,7 @@ Component({
32 }, 32 },
33 }, 33 },
34 ready() { 34 ready() {
35 - console.log(this.data.deviceInfo, 'deviceInfo----deviceInfo') 35 + // console.log(this.data.deviceInfo, 'deviceInfo----deviceInfo')
36 const deviceInfo = this.data.deviceInfo 36 const deviceInfo = this.data.deviceInfo
37 const res = Math.floor(((deviceInfo.inactiveCount / deviceInfo.deviceTotal) * 100)) 37 const res = Math.floor(((deviceInfo.inactiveCount / deviceInfo.deviceTotal) * 100))
38 this.setData({ 38 this.setData({
@@ -127,7 +127,6 @@ Component({ @@ -127,7 +127,6 @@ Component({
127 }, 127 },
128 128
129 ready: function () { 129 ready: function () {
130 - console.log(this.data, '----------data----------')  
131 }, 130 },
132 131
133 }) 132 })
@@ -18,7 +18,7 @@ Component({ @@ -18,7 +18,7 @@ Component({
18 }, 18 },
19 getChildComponent: function () { 19 getChildComponent: function () {
20 const child = this.selectComponent('.dashboardListItem') 20 const child = this.selectComponent('.dashboardListItem')
21 - console.log(child,'dashboardListItem') 21 + // console.log(child,'dashboardListItem')
22 }, 22 },
23 23
24 /** 24 /**
@@ -21,7 +21,6 @@ function initChart(canvas: any, width: any, height: any, data: any, dpr: any) { @@ -21,7 +21,6 @@ function initChart(canvas: any, width: any, height: any, data: any, dpr: any) {
21 fontSize: 12, 21 fontSize: 12,
22 color: '#323241', 22 color: '#323241',
23 }, 23 },
24 -  
25 itemHeight: 4, 24 itemHeight: 4,
26 itemWidth: 16 25 itemWidth: 16
27 }, 26 },
@@ -34,7 +33,14 @@ function initChart(canvas: any, width: any, height: any, data: any, dpr: any) { @@ -34,7 +33,14 @@ function initChart(canvas: any, width: any, height: any, data: any, dpr: any) {
34 color: color, 33 color: color,
35 tooltip: { 34 tooltip: {
36 show: true, 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 xAxis: { 45 xAxis: {
40 type: 'category', 46 type: 'category',
@@ -37,7 +37,7 @@ Component({ @@ -37,7 +37,7 @@ Component({
37 let that: any = this; 37 let that: any = this;
38 const { index } = e.currentTarget.dataset; 38 const { index } = e.currentTarget.dataset;
39 // 2 触发 父组件中的事件,传递数据给父组件 把当前点击的index数据传给父组件 39 // 2 触发 父组件中的事件,传递数据给父组件 把当前点击的index数据传给父组件
40 - console.log(that.data.tabbarList[index], e, index) 40 + // console.log(that.data.tabbarList[index], e, index)
41 that.triggerEvent("tabsItemChange", that.data.tabbarList[index]); 41 that.triggerEvent("tabsItemChange", that.data.tabbarList[index]);
42 that.myBehaviorMethod() 42 that.myBehaviorMethod()
43 } 43 }
@@ -45,6 +45,5 @@ Component({ @@ -45,6 +45,5 @@ Component({
45 45
46 46
47 ready: function () { 47 ready: function () {
48 - console.log(this.data, '0000000000000000000'); // 输出 someValue  
49 } 48 }
50 }) 49 })
@@ -270,7 +270,7 @@ Page({ @@ -270,7 +270,7 @@ Page({
270 tableHeaderNew = this.data.tableHeaderList.find((item: any) => { 270 tableHeaderNew = this.data.tableHeaderList.find((item: any) => {
271 return item.type === idxToName 271 return item.type === idxToName
272 }) 272 })
273 - console.log(tableHeaderNew, '0000', idxToName) 273 + // console.log(tableHeaderNew, '0000', idxToName)
274 // this.allData 274 // this.allData
275 let dashboardListNew: any = [] // 仪表盘数据 275 let dashboardListNew: any = [] // 仪表盘数据
276 let allcardListNew: any = [] // 所有卡片数据 276 let allcardListNew: any = [] // 所有卡片数据
@@ -289,7 +289,7 @@ Page({ @@ -289,7 +289,7 @@ Page({
289 this.__getOpenQxCustomHczdGetDateEchartLine("INDEX_MAP") // 首页 曲线图 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 __getOpenQxCustomHczdInde() {//接口请求 295 __getOpenQxCustomHczdInde() {//接口请求
@@ -307,7 +307,7 @@ Page({ @@ -307,7 +307,7 @@ Page({
307 }).then((data: any) => { 307 }).then((data: any) => {
308 Toast.clear() 308 Toast.clear()
309 wx.stopPullDownRefresh() 309 wx.stopPullDownRefresh()
310 - console.log(data, '-----------datat') 310 + // console.log(data, '-----------datat')
311 if (data.success) { 311 if (data.success) {
312 312
313 let PV = data.data.PV // 光伏 313 let PV = data.data.PV // 光伏
@@ -605,7 +605,7 @@ Page({ @@ -605,7 +605,7 @@ Page({
605 type: type 605 type: type
606 } 606 }
607 }).then((res: any) => { 607 }).then((res: any) => {
608 - console.log(res, 'res-----------getDate') 608 + // console.log(res, 'res-----------getDate')
609 if (res.success) { 609 if (res.success) {
610 this.setData({ 610 this.setData({
611 tableList: res.data 611 tableList: res.data