Authored by 毕凯

增加微信登录样式 code review by @bikai

@@ -48,6 +48,9 @@ @@ -48,6 +48,9 @@
48 </span> 48 </span>
49 </li> 49 </li>
50 <li class="third-party-login"> 50 <li class="third-party-login">
  51 + <a href="{{weixinLogin}}">
  52 + <span class="icon weixin"></span>
  53 + </a>
51 <a href="{{qqLogin}}"> 54 <a href="{{qqLogin}}">
52 <span class="icon qq"></span> 55 <span class="icon qq"></span>
53 </a> 56 </a>
@@ -86,7 +86,7 @@ $third: sprite-map("passport/third/*.png"); @@ -86,7 +86,7 @@ $third: sprite-map("passport/third/*.png");
86 86
87 a { 87 a {
88 display: table-cell; 88 display: table-cell;
89 - width: 54px; 89 + width: 45px;
90 background-size: 100% 100%; 90 background-size: 100% 100%;
91 } 91 }
92 92
@@ -97,6 +97,10 @@ $third: sprite-map("passport/third/*.png"); @@ -97,6 +97,10 @@ $third: sprite-map("passport/third/*.png");
97 margin: 0 auto; 97 margin: 0 auto;
98 } 98 }
99 99
  100 + .weixin {
  101 + background: sprite($third, weixin) no-repeat;
  102 + }
  103 +
100 .qq { 104 .qq {
101 background: sprite($third, qq) no-repeat; 105 background: sprite($third, qq) no-repeat;
102 } 106 }
@@ -61,6 +61,7 @@ class LoginController extends AbstractAction @@ -61,6 +61,7 @@ class LoginController extends AbstractAction
61 'countryList' => RegData::getAreasData(), 61 'countryList' => RegData::getAreasData(),
62 'forgetPwd' => Helpers::url('/passport/back/index'), 62 'forgetPwd' => Helpers::url('/passport/back/index'),
63 'fastReg' => Helpers::url('/reg.html'), 63 'fastReg' => Helpers::url('/reg.html'),
  64 + 'weixinLogin' => Helpers::url('/passport/autosign/weixin'),
64 'qqLogin' => Helpers::url('/passport/autosign/qq'), 65 'qqLogin' => Helpers::url('/passport/autosign/qq'),
65 'weiboLogin' => Helpers::url('/passport/autosign/sina'), 66 'weiboLogin' => Helpers::url('/passport/autosign/sina'),
66 'alipayLogin' => Helpers::url('/passport/autosign/alipay'), 67 'alipayLogin' => Helpers::url('/passport/autosign/alipay'),