Authored by unknown

简化头部数据结构修改及文档

... ... @@ -519,6 +519,28 @@
}
}
### 登录页公用简化头部
{
simpleHeader: {
logo: {
img:'', //头部logo图片
url:''
},
tool: {
user: '', //用户名字
userCenter: '', //用户中心链接
loginHref: '', //登录链接,已登录不传
registerHref: '', //注册链接,已登录不传
logoutHref: '', //登出链接,未登录不传
favoriteHref: '', //我的收藏链接
couponHref: '', //我的优惠券链接
orderHref: '', //订单中心连接
helpHref: '' //帮助中心连接
}
}
}
## 站点头部
{
gobuytype: 'gobuyboys',//购物车样式
... ...
... ... @@ -27,32 +27,42 @@
{{/ logo}}
<ul class="header-tool clearfix">
{{# tool}}
<li {{#if options}}class="tool-options"{{/if}}{{#if loginUrl}}class="login-box"{{/if}}>
{{# tell}}
<i class="tell-icon iconfont">&#xe61c;</i>
{{/ tell}}
<li>
<span>Hi~</span>
{{# user}}
<a href="{{userCenter}}">{{.}}</a>
{{/ user}}
{{#if url}}
<a href="{{url}}">{{title}}</a>
{{/if}}
{{# loginHref}}
<a href="{{.}}">[请登录]</a>
{{/ loginHref}}
{{#unless url}}
<span>{{title}}</span>
{{/unless}}
{{# logoutHref}}
<a href="{{.}}">[退出]</a>
{{/ logoutHref}}
{{#if options}}
{{# registerHref}}
<a href="{{.}}">[免费注册]</a>
{{/ registerHref}}
</li>
<li class="tool-options">
<span>MY有货</span>
<i class="options-icon down iconfont">&#xe604;</i>
<i class="options-icon up iconfont">&#xe603;</i>
<div class="tool-select">
{{# options}}
<a href="{{url}}">{{textCn}}</a>
{{/ options}}
<a href="{{favoriteHref}}">我的收藏</a>
<a href="{{couponHref}}">优惠券</a>
</div>
{{/if}}
{{# loginInfo}}
<a href="{{url}}">{{textCn}}</a>
{{/ loginInfo}}
</li>
<li>
<a href="{{orderHref}}">订单中心</a>
</li>
<li>
<a href="{{helpHref}}">帮助中心</a>
</li>
<li>
<i class="tell-icon iconfont">&#xe61c;</i>
<span>400-9889-9646</span>
</li>
{{/ tool}}
</ul>
... ...
... ... @@ -16,52 +16,14 @@ class BackController extends AbstractAction
'url' => 'http://www.yohobuy.com'
),
'tool' => array(
array(
'title' => 'Hi~',
'loginInfo' => array(
array(
'textCn' => '2586****@qq.com',
'url' => ''
),
array(
'textCn' => '[请登录]',
'url' => ''
),
array(
'textCn' => '[免费注册]',
'url' => ''
),
array(
'textCn' => '[退出]',
'url' => ''
)
)
),
array(
'title' => 'MY有货',
'options' => array(
array(
'textCn' => '我的收藏',
'url' => ''
),
array(
'textCn' => '优惠券',
'url' => ''
),
)
),
array(
'title' => '订单中心',
'url' => 'http://www.yohobuy.com/home/orders?t=1449801433.5294'
),
array(
'title' => '帮助中心',
'url' => 'http://www.yohobuy.com/help'
),
array(
'title' => '400-9889-9646',
'tell' => true
)
'user' => '2586703@qq.com',
'userCenter' => '',
'loginHref' => '',
'registerHref' => '',
'favoriteHref' => '',
'couponHref' => '',
'orderHref' => '',
'helpHref' => ''
)
);
$data = array(
... ... @@ -105,52 +67,15 @@ class BackController extends AbstractAction
'url' => 'http://www.yohobuy.com'
),
'tool' => array(
array(
'title' => 'Hi~',
'loginInfo' => array(
array(
'textCn' => '2586****@qq.com',
'url' => ''
),
array(
'textCn' => '[请登录]',
'url' => ''
),
array(
'textCn' => '[免费注册]',
'url' => ''
),
array(
'textCn' => '[退出]',
'url' => ''
)
)
),
array(
'title' => 'MY有货',
'options' => array(
array(
'textCn' => '我的收藏',
'url' => ''
),
array(
'textCn' => '优惠券',
'url' => ''
),
)
),
array(
'title' => '订单中心',
'url' => 'http://www.yohobuy.com/home/orders?t=1449801433.5294'
),
array(
'title' => '帮助中心',
'url' => 'http://www.yohobuy.com/help'
),
array(
'title' => '400-9889-9646',
'tell' => true
)
'user' => '2586703@qq.com',
'userCenter' => '',
'loginHref' => '',
'logoutHref' => '',
'registerHref' => '',
'favoriteHref' => '',
'couponHref' => '',
'orderHref' => '',
'helpHref' => ''
)
);
$data = array(
... ... @@ -174,52 +99,15 @@ class BackController extends AbstractAction
'url' => 'http://www.yohobuy.com'
),
'tool' => array(
array(
'title' => 'Hi~',
'loginInfo' => array(
array(
'textCn' => '2586****@qq.com',
'url' => ''
),
array(
'textCn' => '[请登录]',
'url' => ''
),
array(
'textCn' => '[免费注册]',
'url' => ''
),
array(
'textCn' => '[退出]',
'url' => ''
)
)
),
array(
'title' => 'MY有货',
'options' => array(
array(
'textCn' => '我的收藏',
'url' => ''
),
array(
'textCn' => '优惠券',
'url' => ''
),
)
),
array(
'title' => '订单中心',
'url' => 'http://www.yohobuy.com/home/orders?t=1449801433.5294'
),
array(
'title' => '帮助中心',
'url' => 'http://www.yohobuy.com/help'
),
array(
'title' => '400-9889-9646',
'tell' => true
)
'user' => '2586703@qq.com',
'userCenter' => '',
'loginHref' => '',
'logoutHref' => '',
'registerHref' => '',
'favoriteHref' => '',
'couponHref' => '',
'orderHref' => '',
'helpHref' => ''
)
);
$data = array(
... ... @@ -241,52 +129,15 @@ class BackController extends AbstractAction
'url' => 'http://www.yohobuy.com'
),
'tool' => array(
array(
'title' => 'Hi~',
'loginInfo' => array(
array(
'textCn' => '2586****@qq.com',
'url' => ''
),
array(
'textCn' => '[请登录]',
'url' => ''
),
array(
'textCn' => '[免费注册]',
'url' => ''
),
array(
'textCn' => '[退出]',
'url' => ''
)
)
),
array(
'title' => 'MY有货',
'options' => array(
array(
'textCn' => '我的收藏',
'url' => ''
),
array(
'textCn' => '优惠券',
'url' => ''
),
)
),
array(
'title' => '订单中心',
'url' => 'http://www.yohobuy.com/home/orders?t=1449801433.5294'
),
array(
'title' => '帮助中心',
'url' => 'http://www.yohobuy.com/help'
),
array(
'title' => '400-9889-9646',
'tell' => true
)
'user' => '2586703@qq.com',
'userCenter' => '',
'loginHref' => '',
'logoutHref' => '',
'registerHref' => '',
'favoriteHref' => '',
'couponHref' => '',
'orderHref' => '',
'helpHref' => ''
)
);
$data = array(
... ... @@ -307,52 +158,15 @@ class BackController extends AbstractAction
'url' => 'http://www.yohobuy.com'
),
'tool' => array(
array(
'title' => 'Hi~',
'loginInfo' => array(
array(
'textCn' => '2586****@qq.com',
'url' => ''
),
array(
'textCn' => '[请登录]',
'url' => ''
),
array(
'textCn' => '[免费注册]',
'url' => ''
),
array(
'textCn' => '[退出]',
'url' => ''
)
)
),
array(
'title' => 'MY有货',
'options' => array(
array(
'textCn' => '我的收藏',
'url' => ''
),
array(
'textCn' => '优惠券',
'url' => ''
),
)
),
array(
'title' => '订单中心',
'url' => 'http://www.yohobuy.com/home/orders?t=1449801433.5294'
),
array(
'title' => '帮助中心',
'url' => 'http://www.yohobuy.com/help'
),
array(
'title' => '400-9889-9646',
'tell' => true
)
'user' => '2586703@qq.com',
'userCenter' => '',
'loginHref' => '',
'logoutHref' => '',
'registerHref' => '',
'favoriteHref' => '',
'couponHref' => '',
'orderHref' => '',
'helpHref' => ''
)
);
$data = array(
... ...