From 930acd382cce98f74ee882f2b24f12d41c37080b Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Tue, 20 Sep 2016 15:14:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=9B=BE=E7=89=87=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/wechats_helper.rb | 2 +- public/javascripts/wechat/directives/img_preview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/wechats_helper.rb b/app/helpers/wechats_helper.rb index 34c4dd9a1..e76ea08d6 100644 --- a/app/helpers/wechats_helper.rb +++ b/app/helpers/wechats_helper.rb @@ -4,7 +4,7 @@ module WechatsHelper def include_wechat_jsfile # if Rails.env.production? - # javascript_include_tag '/javascripts/wechat/build/app.min.js' + javascript_include_tag '/javascripts/wechat/build/app.min.js' # else wechat_path = File.join(Rails.root, "public", "javascripts", "wechat") srcs = Rails.application.config.wechat_srcs diff --git a/public/javascripts/wechat/directives/img_preview.js b/public/javascripts/wechat/directives/img_preview.js index 08f33d381..ce973c69b 100644 --- a/public/javascripts/wechat/directives/img_preview.js +++ b/public/javascripts/wechat/directives/img_preview.js @@ -12,7 +12,7 @@ app.directive('imgPreview',["$timeout",'wx',function(timer,wx){ if(item.src){ srcList.push(item.src); $(item).click(function(e){ - wx.previewImage(this.src,srcList); + wx.previewImage({current:this.src,urls:srcList}); }); } });