Authored by uedxwg

update

@@ -155,7 +155,7 @@ class TemplateLayout implements View_Interface @@ -155,7 +155,7 @@ class TemplateLayout implements View_Interface
155 $template = file_get_contents($viewName, false, null); 155 $template = file_get_contents($viewName, false, null);
156 $phpStr = LightnCandy::compile($template, array( 156 $phpStr = LightnCandy::compile($template, array(
157 // DEBUG: LightnCandy::FLAG_RENDER_DEBUG | LightnCandy::FLAG_ERROR_EXCEPTION 157 // DEBUG: LightnCandy::FLAG_RENDER_DEBUG | LightnCandy::FLAG_ERROR_EXCEPTION
158 - 'flags' => LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_MUSTACHE | LightnCandy::FLAG_HANDLEBARS, // 使用MUSTACHE和HANDLEBARS的模板格式 158 + 'flags' => LightnCandy::FLAG_RENDER_DEBUG | LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_MUSTACHE | LightnCandy::FLAG_HANDLEBARS, // 使用MUSTACHE和HANDLEBARS的模板格式
159 'basedir' => array($config->template->partials), // 模板里使用 {{> partial_name}} 时查找的目录 159 'basedir' => array($config->template->partials), // 模板里使用 {{> partial_name}} 时查找的目录
160 'fileext' => array($tplExt), // 允许查找文件的后缀 160 'fileext' => array($tplExt), // 允许查找文件的后缀
161 'lcrun' => 'Plugin\LCRun3', // 指定编译模板的runtime 161 'lcrun' => 'Plugin\LCRun3', // 指定编译模板的runtime
@@ -30,9 +30,10 @@ @@ -30,9 +30,10 @@
30 .head-portrait{ 30 .head-portrait{
31 width:90rem / $pxConvertRem; 31 width:90rem / $pxConvertRem;
32 height: 90rem / $pxConvertRem; 32 height: 90rem / $pxConvertRem;
  33 + overflow: hidden;
33 float: right; 34 float: right;
34 border-radius:50%; 35 border-radius:50%;
35 - background: #000; 36 + border:1px solid #eee;
36 } 37 }
37 .grade{ 38 .grade{
38 width:85rem / $pxConvertRem; 39 width:85rem / $pxConvertRem;
@@ -40,7 +41,6 @@ @@ -40,7 +41,6 @@
40 overflow: hidden; 41 overflow: hidden;
41 display: inline-block; 42 display: inline-block;
42 margin-top: 25rem / $pxConvertRem; 43 margin-top: 25rem / $pxConvertRem;
43 - @include rem-sprite($vip, vip-1);  
44 } 44 }
45 &:last-of-type{ 45 &:last-of-type{
46 color: #b0b0b0; 46 color: #b0b0b0;
@@ -38,12 +38,12 @@ @@ -38,12 +38,12 @@
38 text-align: center; 38 text-align: center;
39 font-size: 22rem / $pxConvertRem; 39 font-size: 22rem / $pxConvertRem;
40 color: #fff; 40 color: #fff;
41 - background: image-url("sale-icon/rank.png") no-repeat; 41 + // background: image-url("sale-icon/rank.png") no-repeat;
42 background-position: center top; 42 background-position: center top;
43 background-size: auto 100%; 43 background-size: auto 100%;
44 44
45 &.top { 45 &.top {
46 - background: image-url("sale-icon/rank-t.png") no-repeat; 46 + // background: image-url("sale-icon/rank-t.png") no-repeat;
47 background-position: center top; 47 background-position: center top;
48 background-size: 100%; 48 background-size: 100%;
49 line-height: 58rem / $pxConvertRem; 49 line-height: 58rem / $pxConvertRem;
1 {{> layout/header}} 1 {{> layout/header}}
2 - {{ #personalDetails}}  
3 - <div class="personal-details">  
4 - <ul>  
5 - <li><span>头像</span><span><i class="head-portrait"></i></span></li>  
6 - <li><span>昵称</span><span>{{ name }}</span></li>  
7 - <li><span>性别</span><span>{{ sex }}</span></li>  
8 - <li><span>生日</span><span>{{ time }}</span></li>  
9 - <li><span>会员等级</span><span><i class="grade"></i>&gt;</span></li>  
10 - </ul>  
11 - </div>  
12 - {{ /personalDetails}} 2 + <div class="personal-details">
  3 + <ul>
  4 + <li><span>头像</span><span><i class="head-portrait"><img src="{{ head_ico }}"></i></span></li>
  5 + <li><span>昵称</span><span>{{ username }}</span></li>
  6 + <li><span>性别</span><span>{{ sex }}</span></li>
  7 + <li><span>生日</span><span>{{ birthday }}</span></li>
  8 + <li><span>会员等级</span><span><i class="grade vip-icon"></i></span></li>
  9 + </ul>
  10 + </div>
13 {{> layout/footer}} 11 {{> layout/footer}}
@@ -103,6 +103,20 @@ class HomeController extends AbstractAction @@ -103,6 +103,20 @@ class HomeController extends AbstractAction
103 $favBrands = \Index\UserModel::getFavBrandData($uid, $gender); 103 $favBrands = \Index\UserModel::getFavBrandData($uid, $gender);
104 104
105 print_r($favBrands); 105 print_r($favBrands);
  106 +
  107 + }
  108 +
  109 + /**
  110 + * 个人信息
  111 + */
  112 + public function personalDetailsAction()
  113 + {
  114 + // $uid = $this->getUid();
  115 + $uid = 967016;
  116 + $data = \Index\UserModel::getUserProfileData($uid);
  117 + $this->_view->display('personal-details', $data);
  118 +
  119 +
106 } 120 }
107 121
108 /** 122 /**
@@ -115,6 +129,8 @@ class HomeController extends AbstractAction @@ -115,6 +129,8 @@ class HomeController extends AbstractAction
115 $favBrands = \Index\UserModel::getYohoCoinData($uid); 129 $favBrands = \Index\UserModel::getYohoCoinData($uid);
116 130
117 print_r($favBrands); 131 print_r($favBrands);
  132 +
  133 + $this->_view->display('currency', $favBrands);
118 } 134 }
119 135
120 /** 136 /**