Authored by yyq

merge outlets

... ... @@ -583,7 +583,9 @@ class WebAction extends Controller_Abstract
else if(empty($uid) && $sysUserSession >= 20) {
$this->setSession('_SYS_USER_SESSION', 0);
}
if ($channel === 'outlets') {
$header['outlets'] = true;
}
$this->_view->assign('headerdata', $header);
}
... ...
... ... @@ -22,13 +22,13 @@ class Yohobuy
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
//java API
// const API_URL = 'http://api.yoho.yohoops.org/';//
// const API_URL2 = 'http://api.yoho.yohoops.org/';//
// const SERVICE_URL = 'http://service.yoho.yohoops.org/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
//// 支付回调地址
// const SERVICE_NOTIFY = 'http://service.yoho.cn/';
// const API_URL = 'http://api.yoho.yohoops.org/';//
// const API_URL2 = 'http://api.yoho.yohoops.org/';//
// const SERVICE_URL = 'http://service.yoho.yohoops.org/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
// // 支付回调地址
// const SERVICE_NOTIFY = 'http://service.yoho.cn/';
// 测试环境 */
const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
... ...
{{#headerdata}}
<div class="yoho-header">
<div class="yoho-header {{#if outlets}} outlets{{/if}}">
<div class="header-topwrapper clearfix">
<div class="header-top">
<div class="leftpart float-left">
... ... @@ -74,13 +74,17 @@
<div class="header-navcontent">
<ul class="first-nav-list float-left">
{{# navbars}}
<li class="first-nav-item {{classname}}">
<h3 class="name-cn">
<a href="{{link}}">{{name_cn}}</a>
</h3>
<h3 class="name-en">
<a href="{{link}}">{{name_en}}</a>
</h3>
<li class="first-nav-item {{classname}}" {{#if showIcon}} style="background: url({{icon}}) no-repeat center center"{{/if}}>
{{#if showIcon}}
<a href="{{link}}" class="menu-ico"></a>
{{^}}
<h3 class="name-cn">
<a href="{{link}}">{{name_cn}}</a>
</h3>
<h3 class="name-en">
<a href="{{link}}">{{name_en}}</a>
</h3>
{{/if}}
<div class='sub-nav-wrapper'>
<ul class="sub-nav-list">
{{# subnav}}
... ... @@ -125,6 +129,7 @@
</li>
{{/ navbars}}
</ul>
<div class="outlets-logo"></div>
<div class="icon-logo"><a href="http://www.yohobuy.com/" class="main-link"></a></div>
<div class="header-tool float-right">
<div class="search float-left {{searchcate}}" >
... ...
This diff could not be displayed because it is too large.

2.73 KB | W: | H:

2.84 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.73 KB | W: | H:

2.84 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -94,7 +94,7 @@ if ($refundInfo.length) {
setBackInput($(this).val() * 1);
}
});
} else {
} else if (defaultArea) {
syncRefundMode(defaultArea);
}
... ...
... ... @@ -393,6 +393,12 @@
.first-nav-item {
float: left;
padding: 8px 23px 0;
.menu-ico {
width: 84px;
height: 32px;
display: block;
}
}
.all a,
... ... @@ -468,6 +474,9 @@
.gobuylifestyle {
background: url(/header/cart/lifestyle.png) no-repeat;
}
.gobuyoutlets {
background: url(/header/cart/outlets.png) no-repeat;
}
.searchcatelifestyle {
.searchinput {
border: 1px solid #5e4b3c !important
... ... @@ -528,6 +537,10 @@
}
}
.outlets > .sub-nav-wrapper {
display: block !important;
}
.name-cn {
text-align: center;
line-height: 16px !important;
... ... @@ -747,6 +760,16 @@
margin-top: -2px;
}
.outlets-logo {
background: resolve(header/outlets.png) no-repeat center center;
width: 200px;
height: 34px;
left: 42%;
margin-top: 28px;
position: absolute;
display: none;
}
.icon-logo {
background: resolve(/header/logo.png) no-repeat center center;
width: 182px;
... ... @@ -1120,6 +1143,62 @@
}
}
.yoho-header.outlets {
.header-navwrapper {
background-color: #3a3a3a;
.sub-nav-wrapper {
background-color: #e6e6e6;
margin-top: 37px;
}
.third-nav-wrapper {
border-top: 0;
}
}
.outlets-logo {
display: block;
}
.icon-logo {
display: none;
}
.first-nav-item.cure {
background: none;
}
.first-nav-item > h3 {
display: none;
}
.header-tool > .search {
display: none;
}
.sub-nav-list {
padding-left: 15%;
.sub-nav-item {
width: 14%;
text-align: center;
& > a {
color: #222!important;
}
}
.sub-nav-item:hover a {
border-color: #555;
}
.third-nav {
text-align: left;
}
}
}
.simple-header {
height: 66px;
margin: 0 0 20px 0;
... ...
... ... @@ -287,7 +287,7 @@ class ReturnsModel
if (!empty($value['cn_alphabet'])) {
$cnAlphabet = $value['cn_alphabet'];
}
$result['goods'][$key]['href'] = Helpers::getUrlBySkc($value['product_skn'], $value['goods_id'], $cnAlphabet);
$result['goods'][$key]['href'] = Helpers::getUrlBySkc($value['product_id'], $value['goods_id'], $cnAlphabet);
$result['goods'][$key]['thumb'] = Helpers::getImageUrl($value['goods_image'],60,60);
$result['goods'][$key]['name'] = $value['product_name'];
$result['goods'][$key]['color'] = $value['color_name'];
... ... @@ -354,7 +354,7 @@ class ReturnsModel
if (!empty($value['cn_alphabet'])) {
$cnAlphabet = $value['cn_alphabet'];
}
$result['goods'][$key]['href'] = Helpers::getUrlBySkc($value['product_skn'], $value['goods_id'], $cnAlphabet);
$result['goods'][$key]['href'] = Helpers::getUrlBySkc($value['product_id'], $value['goods_id'], $cnAlphabet);
$result['goods'][$key]['thumb'] = Helpers::getImageUrl($value['goods_image'],60,60);
$result['goods'][$key]['name'] = $value['product_name'];
$result['goods'][$key]['color'] = $value['color_name'];
... ...
... ... @@ -91,6 +91,13 @@ class HomeModel
'is_new' => $val['is_new'] == 'Y' ? true : false,
// 'subnav' => array()
);
// 奥莱头部显示配置图标
if (strtolower($val['sort_name_en']) === 'outlets' &&
$channel !== 'outlets') {
$item['showIcon'] = true;
};
$indexSub = 0;
foreach ($val['sub'] as $sub) { // 二级
$subnav = array(
... ...
... ... @@ -63,6 +63,11 @@ class ItemModel
if (!empty($baseInfo['salesPhrase'])) {
$goodsInfo['saleTip'] = $baseInfo['salesPhrase'];
}
//奥莱商品
if (!empty($baseInfo['isOutlets'])) {
$goodsInfo['isOutlets'] = $baseInfo['isOutlets'] == 'Y' ? 'outlets' : '';
}
// 商品价格
if (isset($baseInfo['productPriceBo'])) {
... ...
... ... @@ -46,6 +46,8 @@ class IndexController extends WebAction
$result['shopTemplateType'] = $shopIntro['shopTemplateType'];
$result['multBrandShopType'] = $shopIntro['multBrandShopType'];
$result['shopId'] = $shopIntro['shopId'];
$result['brandNameEn'] = '';
$result['brandNameCn'] = $shopIntro['brandName'];
break;
}
$this->shopHome($shopId);
... ...
... ... @@ -8,8 +8,6 @@ class ItemController extends WebAction
{
public function indexAction()
{
$this->setWebNavHeader();
$productId = $this->param('productId','');
if (!is_numeric($productId)) {
$this->error();
... ... @@ -53,12 +51,23 @@ class ItemController extends WebAction
array('fullSortName'=> implode('-', $sortNames)),
$productInfo['statGoodsInfo']),
);
//设置头部
$this->setWebNavHeader($productInfo['goodsInfo']['isOutlets']);
//导航
$data['detail']['pathNav'] = array_merge(
array(HomeModel::getHomeChannelNav()),
if ($productInfo['goodsInfo']['isOutlets'] === 'outlets') {
$data['detail']['pathNav'] = array(
array('href' => '/', 'name' => 'OUTLETS', 'pathTitle' => 'OUTLETS'),// TODO 首页地址
//array('href' => '/', 'name' => 'OUTLETS', 'pathTitle' => 'OUTLETS'), TODO 奥莱频道
array('href' => '/', 'name' => $productInfo['goodsInfo']['name'], 'pathTitle' => $productInfo['goodsInfo']['name']),
);
} else {
$data['detail']['pathNav'] = array_merge(
array(HomeModel::getHomeChannelNav()),
$navs,
array(array('name' => $productInfo['goodsInfo']['name']))
);
}
$data['detail']['latestWalk'] = 5;
$data['detail'] += $productInfo + $sizeInfo;
$this->_view->display('index', $data);
... ...