绑定成功后关闭页面
This commit is contained in:
parent
7c5d62b8a8
commit
055ba00de5
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue