From f6d9e00a8ae76b5970d4af317ca245286b3514bd Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Wed, 6 Jun 2018 13:56:22 +0800 Subject: [PATCH] no message --- pages/activity_detail/activity_detail.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 })