Authored by Rock Zhang

Merge branch 'develop/wap' of git.dev.yoho.cn:web/yohobuy into feature/limitsale

Showing 57 changed files with 341 additions and 204 deletions
... ... @@ -216,8 +216,8 @@ $('.btn-balance').on('touchend', function() {
}
});
$('.off-shell-goods .shopping-cart-good').on('touchend', function() {
tip.show('商品已下架');
$('.off-shell-goods').on('touchstart touchend', function() {
return false;
});
$('.chose').on('touchend', function() {
... ...
... ... @@ -34,6 +34,7 @@ var $chosePanel = $('#chose-panel'),
$allChoseItems,
queryString,
$choseArea,
$cartBar,
$soonSoldOut = $('.soonSoldOut-tag'),
$yohoPage = $('.yoho-page');
... ... @@ -54,6 +55,7 @@ function init() {
$sizeRowList = $('.size-list ul');
$colorRowList = $('.color-list ul');
$leftNum = $('#left-num');
$cartBar = $('.cart-bar');
curColorIndex = 0;
curSizeIndex = 0;
isEdit = 0;
... ... @@ -136,6 +138,10 @@ function show(html, cb) {
function hide() {
$('.chose-panel').hide();
innerScroll.enableScroll($choseArea);
if ($cartBar.length > 0) {
$cartBar.show();
}
}
//修改加入购物车的文字和背景
... ...
... ... @@ -128,6 +128,11 @@ $('.icon-edit').on('touchstart', function(e) {
count,
canEditNum;
if ($this.parents('.off-shell-goods').length) {
tip.show('商品已下架');
return false;
}
//如果点击的是上次编辑的商品,直接显示chose-pannel
if (skn === previousEditSkn) {
chosePanel.show();
... ... @@ -173,6 +178,11 @@ $('.icon-edit').on('touchstart', function(e) {
$('.icon-del').on('touchstart', function(e) {
var $this = $(this);
if ($this.parents('.off-shell-goods').length) {
tip.show('商品已下架');
return false;
}
e.stopPropagation();
dialog.showDialog({
... ...
... ... @@ -119,4 +119,10 @@ $page.on('touchstart', '.del-icon', function() {
}
});
});
});
\ No newline at end of file
});
$('.deps').on('touchstart', 'span', function() {
$(this).css('background', '#eee');
}).on('touchend touchcancel', 'span', function() {
$(this).css('background', 'transparent');
});
... ...
... ... @@ -3,8 +3,7 @@
* @author: bikai<kai.bi@yoho.cn>
* @date: 2015/11/12
*/
var $ = require('jquery'),
noticeScroll = require('../plugin/notice-scroll');
var $ = require('jquery');
var $userAvatar = $('.user-avatar'),
$listItem = $('.list-item');
var myImage = new Image(),
... ... @@ -20,8 +19,6 @@ myImage.onload = function() {
$userAvatar.css('background-image', 'url(' + avatar + ')');
};
noticeScroll('.notice');
$('.yoho-page').on('touchstart', '.list-item, .type-item, .order-title', function() {
$listItem.removeClass('highlight');
$(this).addClass('highlight');
... ...
/**
* 公告栏目滚动
* bikai kai.bi@yoho.cn
*/
var $ = require('jquery');
function noticeScroll(selecter, time) {
var $notice = $(selecter),
$noticeItem = $notice.find('.notice-item'),
count = $noticeItem.length,
i = 1;
selecter = selecter || '.notice';
time = time || 3000;
if (count > 1) {
setInterval(function() {
if (i >= count) {
i = 0;
}
$noticeItem.fadeOut();
$notice.find('.item-' + i).fadeIn();
i++;
}, time);
}
}
module.exports = noticeScroll;
... ... @@ -64,6 +64,7 @@ $('#likeBtn').on('touchstart', function() {
});
$('#addtoCart').on('touchstart', function() {
$('.cart-bar').hide();
chosePanel.show();
//统计代码:用于统计用户加入购物车的动作
... ...
... ... @@ -9,6 +9,10 @@
height: 160rem / $pxConvertRem;
}
.sold-out {
display: inline;
}
.deps {
margin-left: 135rem / $pxConvertRem;
padding: 0.5rem 0;
... ... @@ -43,7 +47,7 @@
}
.sold-out-tag {
font-size: 16px;
font-size: 12px;
line-height: 30rem / $pxConvertRem;
text-align: center;
color: #fff;
... ...
... ... @@ -52,9 +52,9 @@
font-size: 50px;
}
p{
width: 59.517241%;
width: 61.517241%;
height: auto;
margin: 0 3% 16em / $pxConvertRem;
margin: 0 2% 16em / $pxConvertRem;
float: left;
&:first-of-type{
margin-top: 0.75rem;
... ...
... ... @@ -86,6 +86,7 @@
}
.my-link {
margin-bottom: pxToRem(30px);
padding: pxToRem(6px) 0;
text-align: center;
background: rgba(0,0,0,0.8);
... ... @@ -132,34 +133,6 @@
}
}
.notice {
margin-bottom: pxToRem(30px);
padding: 0 pxToRem(30px);
background: #fff;
height: pxToRem(72px);
overflow: hidden;
.notice-item {
display: block;
width: 100%;
font-size: pxToRem(24px);
line-height: pxToRem(72px);
color: #444;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.notice-icon {
display: inline-block;
margin-right: pxToRem(10px);
width: pxToRem(28px);
height: pxToRem(28px);
@include rem-sprite($index, volume);
vertical-align: middle;
}
}
.my-order {
margin-bottom: pxToRem(30px);
border-top: 1px solid #e0e0e0;
... ... @@ -233,18 +206,17 @@
padding: 0 pxToRem(30px);
font-size: 16px;
line-height: pxToRem(88px);
.opinion{
width: 1.3rem;
height: 1.3rem;
overflow: hidden;
display: inline-block;
@include rem-sprite($index, talk);
background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHh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:100% 100%;
position: relative;
top: .36rem;
margin-right: pxToRem(12px);
}
&.highlight {
background: #eee;
}
... ...
$vip: sprite-map("me/vip/*.png", $spacing: 10px);
$fav: sprite-map("me/fav/*.png", $spacing: 5px);
$index: sprite-map("me/index/*.png", $spacing: 5px);
@import "home", "vip-grade", "order", "order-detail", "coupons", "personal-details", "yoho-coin", "fav", "suggest", "address", "online-service", "my-guang", "ihelp", "browse-record", "logistic", "pay","yoho-coin-new", "yoho-coin-detail";
... ...
@import "new-arrival", "discount", "list", "detail", "suspend-cart", "hot-rank", "_recommend-for-you.scss";
\ No newline at end of file
@import "new-arrival", "discount", "list", "detail", "suspend-cart", "hot-rank", "_recommend-for-you.scss", "limit";
... ...
.limit-good-page {
background-color: #f4f4f4;
color: #444;
.top {
font-size: 0.6rem;
height: 2rem;
line-height: 2.2rem;
margin-bottom: 0.1rem;
background-color: #fff;
padding: 0.2rem 0;
div {
width: 20%;
display: inline-block;
float: left;
img {
width: 1.5rem;
border: 1px solid #ccc;
border-radius: 100%;
position: relative;
top: 0.25rem;
}
}
p {
display: inline-block;
float: left;
width: 80%;
}
}
.detail {
background-color: #fff;
padding: 0.6rem 0.8rem;
border-bottom: 1px solid #e6e6e6;
.name {
font-size: 0.9rem;
margin-bottom: 0.5rem;
}
.sale-info {
height: 1rem;
line-height: 1rem;
}
.price {
font-size: 0.8rem;
color: #d0021b;
float: left;
}
.date {
font-size: 0.6rem;
float: right;
.text {
position: relative;
top: 0.08rem;
}
}
}
.goodDesc {
margin-top: 1rem;
}
.bottom {
background-color: #fff;
border-top: 1px solid #e6e6e6;
padding: 0.5rem 2rem 2rem 2rem;
height: 3rem;
position: absolute;
bottom: 0;
width: 12rem;
margin: 0 auto;
.logo {
width: 100;
height: 2.5rem;
background-image: image-url('logo-bottom.png');
background-size: 100%;
background-repeat: no-repeat;
background-position: center;
}
.btn {
font-size: 0.8rem;
background-color: #fff;
border: 1px solid #444;
border-radius: 0.2rem;
padding: 0.3rem 0.6rem;
}
.btn:active {
background-color: #ccc;
}
.left, .right {
display: inline-block;
float: left;
}
.left {
width: 39%;
}
.right {
width: 60%;
font-size: 0.65rem;
span {
display: block;
width: 95%;
margin: 0 auto;
}
}
}
}
... ...
... ... @@ -21,90 +21,90 @@
</head>
<body>
<div id="coupon-container" param="{{activityId}}" isLogged="{{isLogged}}">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/01.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/02.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/03.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/04.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/01.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/02.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/03.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/04.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/05.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/05.jpg">
<a class="href href-right" href="{{url_yohope}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/06.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/06.jpg">
<a class="href href-center" href="{{url_mycoupon}}"></a>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/07.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/07.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/08.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/08.jpg">
<a class="href href-left" href="{{url_more}}"></a>
<a class="href href-right" href="{{url_more}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/09.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12258"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12259"></span>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/09.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12311"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12312"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/10.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/10.jpg">
<a class="href href-left" href="{{url_more}}"></a>
<a class="href href-right" href="{{url_1}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/11.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12260"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12261"></span>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/11.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12313"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12314"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/12.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/12.jpg">
<a class="href href-left" href="{{url_1}}"></a>
<a class="href href-right" href="{{url_2}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/13.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12262"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12263"></span>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/13.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12315"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12316"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/14.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/14.jpg">
<a class="href href-left" href="{{url_3}}"></a>
<a class="href href-right" href="{{url_4}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/15.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12264"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12265"></span>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/15.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12317"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12318"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/16.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/16.jpg">
<a class="href href-left" href="{{url_5}}"></a>
<a class="href href-right" href="{{url_6}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/17.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12266"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12267"></span>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/17.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="12319"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="12320"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/24-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/24-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/24-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/24-2.jpg">
<a class="show-more" href="{{url_help}}"></a>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/24-3.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/25-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/25-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/25-3.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/26.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/27.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/24-3.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/25-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/25-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/25-3.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/26.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/27.jpg">
</div>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/newuser/coupon2.js"></script>
... ...
... ... @@ -14,97 +14,97 @@
.img-box .href-right {right: 0}
.img-box .href-center {width: 90%;height: 100%;position: absolute;top: 0;left: 5%;}
.show-more {height: 100%;width: 25%;position: absolute;top: 0;right: 10%;}
.yoho-tip {position: fixed;display: none;textlign: center;width: 70%;padding: 34px 0;top: 50%;left: 50%;margin-left: -35%;margin-top: -45px;background-color: #000;opacity: 0.9;color: #fff;font-size: 18px;border: none;border-radius: 10px;}
.yoho-tip {position: fixed;display: none;text-align: center;width: 70%;padding: 34px 0;top: 50%;left: 50%;margin-left: -35%;margin-top: -45px;background-color: #000;opacity: 0.9;color: #fff;font-size: 18px;border: none;border-radius: 10px;}
</style>
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
</head>
<body>
<div id="coupon-container" param="{{activityId}}" isLogged="{{isLogged}}">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/01.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/02.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/03.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/04.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/01.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/02.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/03.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/04.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/05.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/05.jpg">
<a class="href href-right" href="{{url_yohope}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/06.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/06.jpg">
<a class="href href-center" href="{{url_mycoupon}}"></a>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/07.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/07.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/08.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/08.jpg">
<a class="href href-left" href="{{url_more}}"></a>
<a class="href href-right" href="{{url_more}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/09.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="18719"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="18723"></span>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/09.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="18881"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="18883"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/10.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/10.jpg">
<a class="href href-left" href="{{url_more}}"></a>
<a class="href href-right" href="{{url_1}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/11.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="18725"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="18727"></span>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/11.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="18885"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="18887"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/12.jpg">
<a class="href href-left" href="{{url_1}}"></a>
<a class="href href-right" href="{{url_2}}"></a>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/12.jpg">
<a class="href href-left" href="{{url_2}}"></a>
<a class="href href-right" href="{{url_3}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/13.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="18717"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="18729"></span>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/13.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="18895"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="18889"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/14.jpg">
<a class="href href-left" href="{{url_3}}"></a>
<a class="href href-right" href="{{url_4}}"></a>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/14.jpg">
<a class="href href-left" href="{{url_4}}"></a>
<a class="href href-right" href="{{url_5}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/15.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="18731"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="18733"></span>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/15.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="18893"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="18891"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/16.jpg">
<a class="href href-left" href="{{url_5}}"></a>
<a class="href href-right" href="{{url_6}}"></a>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/16.jpg">
<a class="href href-left" href="{{url_6}}"></a>
<a class="href href-right" href="{{url_7}}"></a>
</div>
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/17.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="18735"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="18737"></span>
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/17.jpg">
<span class="href href-left get-coupon" href="{{jumpUrl}}" param="18897"></span>
<span class="href href-right get-coupon" href="{{jumpUrl}}" param="18899"></span>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/24-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/24-1.jpg">
<div class="img-box">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/24-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/24-2.jpg">
<a class="show-more" href="{{url_help}}"></a>
</div>
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/24-3.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/25-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/25-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/25-3.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/26.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160219/27.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/24-3.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/line-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/25-1.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/25-2.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/25-3.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/26.jpg">
<img src="{{jsUrl}}/cuxiao/img/newuser/160301/27.jpg">
</div>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script>
<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/newuser/coupon2.js"></script>
... ...
... ... @@ -10,7 +10,7 @@
<span class="market-price"{{market_price}}</span>
{{/if}}
</p>
<p class="row">
<p class="sold-out row">
{{#unless storage}}
<span class="sold-out-tag">已售罄</span>
{{/unless}}
... ...
... ... @@ -33,16 +33,6 @@
<p>浏览记录</p>
</a>
</div>
{{#if notice}}
<div class="notice">
{{#notice}}
<a class="notice-item item-{{@index}}" href="{{url}}">
<span class="notice-icon"></span>
{{title}}
</a>
{{/notice}}
</div>
{{/if}}
<div class="my-order">
<a class="order-title" href="/home/orders">
我的订单
... ...
{{> layout/header}}
<div class="yoho-page">
<div class="goodDesc"></div>
</div>
{{> layout/footer}}
... ...
{{> layout/header}}
<div class="limit-good-page yoho-page">
<div class="top clearfix">
<div>
<img src="{{profile}}" alt="">
</div>
<p>我在Yoho!Buy有货发现了一个限定发售商品</p>
</div>
<div class="banner">
<a href="{{bannerSrc}}">
<img src="{{banner}}" alt="">
</a>
</div>
<div class="detail clearfix">
<p class="name">{{name}}</p>
<div class="sale-info">
<span class="price">¥{{price}}</span>
<span class="date">
<span class="iconfont">&#xe603;</span>
<span class="text">{{releaseDate}}</span>
</span>
</div>
</div>
<div class="goodDesc"></div>
<div class="bottom">
<div class="logo"></div>
<div class="left">
<a href="{{appSrc}}">
<button class="btn">
立即下载
</button>
</a>
</div>
<div class="right">
<span>下载Yoho!Buy有货APP</span>
<span>抢购超级限量款</span>
</div>
</div>
</div>
{{> layout/footer}}
... ...
... ... @@ -552,8 +552,8 @@ class CouponController extends HuodongAction
}
$url = Helpers::url('/boys', array(), 'default') . '?openby:yohobuy={"action":"go.home","params":{"gender":"' . $gender . '","channel":"' . $channel . '"}}';
$this->_view->display('newuser3', array(
'activityId' => 498, //492, // 94活动ID
$this->_view->display('newuser3-test', array(
'activityId' => 489, //508, //498, //492, // 94活动ID
'staticTitle' => '新人潮这看,超值惊喜等你领', // 标题
'jumpUrl' => $isAppLogged ? 'javascript:;' : $urlNewuser . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $urlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}',
'isLogged' => $isLogged ? 'Y' : 'N', // 标识是否登录
... ... @@ -561,13 +561,20 @@ class CouponController extends HuodongAction
'url_yohope' => $urlYohope . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlYohope . '","param":{}}}',
'url_help' => $urlHelp . '?yohobuy={"action":"go.h5","params":{"islogin":"Y","type":0,"url":"' . $urlHelp . '","param":{}}}',
'url_more' => $url,
// 'url_1' => 'http://list.m.yohobuy.com/?msort=1&misort=18,20,21,22&title=冬装&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"18,20,21,22","title":"冬装"}}',
// 'url_2' => 'http://list.m.yohobuy.com/?msort=6&misort=45&title=靴子&openby:yohobuy={"action":"go.list","params":{"msort":"6","misort":"45","title":"靴子"}}',
// 'url_5' => 'http://list.m.yohobuy.com/?msort=1&misort=16,257&title=春装&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"16,257","title":"春装"}}',
// 'url_4' => 'http://list.m.yohobuy.com/?msort=3,4&title=下装&openby:yohobuy={"action":"go.list","params":{"msort":"3,4","title":"下装"}}',
// 'url_3' => 'http://list.m.yohobuy.com/?msort=7,8&title=包配&openby:yohobuy={"action":"go.list","params":{"msort":"7,8","title":"包配"}}',
// 'url_6' => 'http://list.m.yohobuy.com/?msort=1,3,6&misort=11,28,12,46&title=反季&openby:yohobuy={"action":"go.list","params":{"msort":"1,3,6","misort":"11,28,12,46","title":"反季"}}',
'url_1' => 'http://list.m.yohobuy.com/?msort=1&misort=18,20,21,22&title=冬装&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"18,20,21,22","title":"冬装"}}',
'url_2' => 'http://list.m.yohobuy.com/?msort=6&misort=45&title=靴子&openby:yohobuy={"action":"go.list","params":{"msort":"6","misort":"45","title":"靴子"}}',
'url_5' => 'http://list.m.yohobuy.com/?msort=1&misort=16,257&title=春装&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"16,257","title":"春装"}}',
'url_2' => 'http://list.m.yohobuy.com/?msort=1&misort=21,22,226&title=春装外套&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"18,20,21,22","title":"春装外套"}}',
'url_3' => 'http://list.m.yohobuy.com/?msort=6&misort=45&title=靴子&openby:yohobuy={"action":"go.list","params":{"msort":"6","misort":"45","title":"靴子"}}',
'url_4' => 'http://list.m.yohobuy.com/?msort=3,4&title=下装&openby:yohobuy={"action":"go.list","params":{"msort":"3,4","title":"下装"}}',
'url_3' => 'http://list.m.yohobuy.com/?msort=7,8&title=包配&openby:yohobuy={"action":"go.list","params":{"msort":"7,8","title":"包配"}}',
'url_6' => 'http://list.m.yohobuy.com/?msort=1,3,6&misort=11,28,12,46&title=反季&openby:yohobuy={"action":"go.list","params":{"msort":"1,3,6","misort":"11,28,12,46","title":"反季"}}',
'url_7' => 'http://list.m.yohobuy.com/?msort=1&misort=18,20,21,22&title=冬装&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"18,20,21,22","title":"冬装"}}',
'url_5' => 'http://list.m.yohobuy.com/?msort=7,8&title=包配&openby:yohobuy={"action":"go.list","params":{"msort":"7,8","title":"包配"}}',
'url_6' => 'http://list.m.yohobuy.com/?msort=1&misort=16,257&title=春装&openby:yohobuy={"action":"go.list","params":{"msort":"1","misort":"16,257","title":"春装"}}',
'url_7' => 'http://list.m.yohobuy.com/?msort=1,3,6&misort=11,28,12,46&title=夏装&openby:yohobuy={"action":"go.list","params":{"msort":"1,3,6","misort":"11,28,12,46","title":"夏装"}}',
));
}
... ...
... ... @@ -51,24 +51,6 @@ class HomeController extends AbstractAction
'myIndexPage' => true,
'showDownloadApp' => true,
'navHome' => true,
'notice' => array(
array(
'title' => '1. 通知内容内容通知内容内容通知内容内容通知内容内容通知内容内容',
'url' => 'http://www.yoho.cn'
),
array(
'title' => '2. 通知内容内容通知内容内容通知内容内容通知内容内容通知内容内容',
'url' => 'http://www.yoho.cn'
),
array(
'title' => '3. 通知内容内容通知内容内容通知内容内容通知内容内容通知内容内容',
'url' => 'http://www.yoho.cn'
),
array(
'title' => '4. 通知内容内容通知内容内容通知内容内容通知内容内容通知内容内容',
'url' => 'http://www.yoho.cn'
)
),
'pageFooter' => true,
'cartUrl' => Helpers::url('/cart/index/index', null),
'signinUrl' => Helpers::url('/signin.html', array('refer' => Helpers::url('/home'))),
... ... @@ -487,7 +469,7 @@ class HomeController extends AbstractAction
$info = 'userId=' . $uid . '&name=' . $this->_uname . '&memo=&hashCode=' . md5( strtoupper( rawurlencode($uid . $this->_uname . $time . '1231') ) ) . '&timestamp=' . $time;
$serviceUrl .= rawurlencode($info);
}
$this->_view->display('online-service', array(
'onlineServicePage' => true,
'pageFooter' => true,
... ...
... ... @@ -218,6 +218,7 @@ class UserModel
$product['discountPrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥' . Helpers::transPrice($val['sales_price']) : false;
$product['savePrice'] = ($val['price_down'] > 0) ? '¥' . Helpers::transPrice($val['price_down']) : false;
$product['sellOut'] = ($val['storage'] <= 0);
$product['invalidGoods'] = ($val['status'] == 0); // 下架商品
$datas[] = $product;
}
... ... @@ -358,9 +359,9 @@ class UserModel
$record = array();
foreach ($data as &$val) {
// 排除下架的商品
if ($val['status'] == 0) {
/*if ($val['status'] == 0) {
continue;
}
}*/
$record = array();
$record['product_name'] = $val['product_name'];
... ... @@ -369,6 +370,7 @@ class UserModel
$record['image'] = !empty($val['image']) ? Helpers::getImageUrl($val['image'], 447, 596) : '';
$record['sales_price'] = Helpers::transPrice($val['sales_price']);
$record['market_price'] = ($val['market_price'] - $val['sales_price'] > 0) ? Helpers::transPrice($val['market_price']) : false;
$record['invalidGoods'] = ($val['status'] == 0); // 下架商品
$record['storage'] = $val['storage'];
$allRecords[] = $record;
}
... ...
... ... @@ -229,4 +229,26 @@ class IndexController extends AbstractAction
$this->_view->display('index', $data);
}
public function limitDetailAction()
{
$data = array();
$this->_view->display('limit-detail', $data);
}
public function limitAction()
{
$data = array(
'profile' => 'http://cdn.yoho.cn/myohobuy/assets/img/me/index/user-avatar.png?1455719653',
'banner' => 'http://img11.static.yhbimg.com/yhb-img01/2016/02/25/02/016ed5a17fb9d9bc7542174c22dccb4acf.jpg?imageView/2/w/640/h/240',
'bannerSrc' => './',
'name' => '潮流尖端商品啊啊啊啊',
'price' => '1999',
'releaseDate' => '2016年12月发售',
'appSrc' => './'
);
$this->_view->display('limit', $data);
}
}
... ...