Authored by 沈志敏

增加系统设置页 按钮及事件

1 <div class="my-page"> 1 <div class="my-page">
2 <div class="my-header"> 2 <div class="my-header">
  3 + <span class="setting icon icon-setting" id="setting"></span>
3 <a class="user-info" id="user-info" {{#if userinfourl}} href='{{userinfourl}}' {{/if}}> 4 <a class="user-info" id="user-info" {{#if userinfourl}} href='{{userinfourl}}' {{/if}}>
4 - <span class="setting icon icon-setting"></span>  
5 <span class="user-avatar" {{#if head_ico}} style="background-image: url('{{head_ico}}');" {{/if}}></span> 5 <span class="user-avatar" {{#if head_ico}} style="background-image: url('{{head_ico}}');" {{/if}}></span>
6 <br><span class="username">{{profile_name}}</span> 6 <br><span class="username">{{profile_name}}</span>
7 </a> 7 </a>
@@ -25,3 +25,8 @@ $('#address').on('click', function() { @@ -25,3 +25,8 @@ $('#address').on('click', function() {
25 'type': '2' 25 'type': '2'
26 }); 26 });
27 }); 27 });
  28 +
  29 +// 系统设置
  30 +$('#setting').on('click', function() {
  31 + yoho.goSetting();
  32 +})
@@ -6,17 +6,28 @@ @@ -6,17 +6,28 @@
6 color: #000; 6 color: #000;
7 } 7 }
8 8
  9 + .my-header {
  10 + background: resolve("home/header-bg.png");
  11 + background-size: cover;
  12 +
  13 + .setting {
  14 + float: left;
  15 + margin-top: 30px;
  16 + margin-left: 15px;
  17 + font-size: 46px;
  18 + }
  19 + }
  20 +
9 .user-info { 21 .user-info {
10 display: block; 22 display: block;
11 position: relative; 23 position: relative;
12 padding: 0 30px; 24 padding: 0 30px;
  25 + margin: 0 180px;
13 color: #000; 26 color: #000;
14 font-size: 34px; 27 font-size: 34px;
15 line-height: 138px; 28 line-height: 138px;
16 height: 469px; 29 height: 469px;
17 text-align: center; 30 text-align: center;
18 - background: resolve("home/header-bg.png");  
19 - background-size: cover;  
20 31
21 .user-avatar { 32 .user-avatar {
22 display: inline-block; 33 display: inline-block;