|
@@ -161,6 +161,7 @@ Page({
|
|
|
userInfo: {},
|
|
|
hasUserInfo: false,
|
|
|
canIUse: wx.canIUse('button.open-type.getUserInfo'),
|
|
|
+
|
|
|
imagewidth: 0,//缩放后的宽
|
|
|
imageheight: 0,//缩放后的高
|
|
|
chartData:{
|
|
@@ -179,7 +180,8 @@ Page({
|
|
|
]
|
|
|
},
|
|
|
ec: {
|
|
|
- onInit: initChart
|
|
|
+ onInit: initChart,
|
|
|
+ // lazyLoad: true // 延迟加载
|
|
|
},
|
|
|
// ec: {
|
|
|
// onInit: function (canvas, width, height) {
|
|
@@ -316,6 +318,18 @@ Page({
|
|
|
url: '../logs/logs'
|
|
|
})
|
|
|
},
|
|
|
+ //沪深
|
|
|
+ getHushen:function(){
|
|
|
+ apiServer.getHushen().then((res) =>{
|
|
|
+ if(res.statusCode == 200){
|
|
|
+ console.log(res);
|
|
|
+
|
|
|
+ this.setData({
|
|
|
+
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
onReady: function (e) {
|
|
|
this.computeScrollViewHeight();
|
|
|
// var query = wx.createSelectorQuery()
|
|
@@ -325,6 +339,7 @@ Page({
|
|
|
},
|
|
|
onLoad: function () {
|
|
|
this.getNewsList();
|
|
|
+ this.getHushen();
|
|
|
let sysinfo = wx.getSystemInfoSync(),
|
|
|
windowHeight = sysinfo.windowHeight,
|
|
|
statusHeight = sysinfo.statusBarHeight,
|
|
@@ -433,8 +448,6 @@ Page({
|
|
|
catchTouchMove:function(res){
|
|
|
return false
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
//初始化图表
|
|
|
init_echarts: function () {
|
|
|
this.echartsComponnet.init((canvas, width, height) => {
|