界面优化
This commit is contained in:
parent
349f511c12
commit
babf30af0a
|
@ -142,8 +142,9 @@ class WechatsController < ActionController::Base
|
||||||
raise "用户名或密码错误,请重新登录" unless user
|
raise "用户名或密码错误,请重新登录" unless user
|
||||||
#补全用户信息
|
#补全用户信息
|
||||||
|
|
||||||
user.user_wechat = UserWechat.find_by_id(params[:openid])
|
uw = UserWechat.find_by_id(params[:openid])
|
||||||
user.save!
|
uw.user = user
|
||||||
|
uw.save!
|
||||||
rescue Exception=>e
|
rescue Exception=>e
|
||||||
@wechat_bind_errors = e.message
|
@wechat_bind_errors = e.message
|
||||||
render :login
|
render :login
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Ruby China</title>
|
||||||
|
<meta charset='utf-8' />
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="no">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>恭喜! 绑定成功.</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -1,3 +1,13 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Ruby China</title>
|
||||||
|
<meta charset='utf-8' />
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="no">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
<div class="loginIn">
|
<div class="loginIn">
|
||||||
<div>
|
<div>
|
||||||
<p class="wechat-error">
|
<p class="wechat-error">
|
||||||
|
@ -29,4 +39,7 @@
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue