diff --git a/pages/activity_detail/activity_detail.js b/pages/activity_detail/activity_detail.js index 7e4f0ec..0399516 100644 --- a/pages/activity_detail/activity_detail.js +++ b/pages/activity_detail/activity_detail.js @@ -276,17 +276,13 @@ Page({ }, // 图片加载 ruleImageLoad: function (image) { - var app = getApp(); - console.log(image) - var imageHeight = app.gw.systemInfo.windowWidth / image.detail.width * image.detail.height; + var imageHeight = getApp().gw.systemInfo.windowWidth / image.detail.width * image.detail.height; this.setData({ rule_image_height: imageHeight }) }, detailImageLoad: function (image) { - var app = getApp(); - console.log(image) - var imageHeight = app.gw.systemInfo.windowWidth / image.detail.width * image.detail.height; + var imageHeight = getApp().gw.systemInfo.windowWidth / image.detail.width * image.detail.height; this.setData({ detail_image_height: imageHeight })