绑定成功后关闭页面

This commit is contained in:
guange 2016-04-09 23:20:24 +08:00
parent 7c5d62b8a8
commit 055ba00de5
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ class WechatsController < ActionController::Base
url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=#{Wechat.config.appid}&redirect_uri=#{login_wechat_url}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
article.item title: "#{n[:title]}",
description: n[:content],
pic_url: 'http://wechat.trustie.net/images/trustie_logo2.png',
pic_url: 'https://www.trustie.net/images/trustie_logo2.png',
url: url
end
end

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="/stylesheets/weui/weui.min.css"/>
<script type="text/javascript">
function close(){
WeixinJSBridge.call('closeWindow');
window.close();
}
</script>