|
|
|
@ -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 |
|
|
|
}) |
|
|
|
|