Authored by hf

code review by fei.hong: do newuser coupon huodong

Showing 34 changed files with 74 additions and 56 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() {
... ...
... ... @@ -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({
... ...
... ... @@ -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="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>
... ...
... ... @@ -553,7 +553,7 @@ 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
'activityId' => 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,12 +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_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":"夏装"}}',
));
}
... ...