Authored by hf

Merge branch 'beta/wap' of http://git.dev.yoho.cn/web/yohobuy into beta/wap

@@ -8276,8 +8276,7 @@ define("js/me/index", ["jquery","swiper","index"], function(require, exports, mo @@ -8276,8 +8276,7 @@ define("js/me/index", ["jquery","swiper","index"], function(require, exports, mo
8276 * @author: bikai<kai.bi@yoho.cn> 8276 * @author: bikai<kai.bi@yoho.cn>
8277 * @date: 2015/11/12 8277 * @date: 2015/11/12
8278 */ 8278 */
8279 -var $ = require("jquery"),  
8280 - noticeScroll = require("js/plugin/notice-scroll"); 8279 +var $ = require("jquery");
8281 var $userAvatar = $('.user-avatar'), 8280 var $userAvatar = $('.user-avatar'),
8282 $listItem = $('.list-item'); 8281 $listItem = $('.list-item');
8283 var myImage = new Image(), 8282 var myImage = new Image(),
@@ -8293,8 +8292,6 @@ myImage.onload = function() { @@ -8293,8 +8292,6 @@ myImage.onload = function() {
8293 $userAvatar.css('background-image', 'url(' + avatar + ')'); 8292 $userAvatar.css('background-image', 'url(' + avatar + ')');
8294 }; 8293 };
8295 8294
8296 -noticeScroll('.notice');  
8297 -  
8298 $('.yoho-page').on('touchstart', '.list-item, .type-item, .order-title', function() { 8295 $('.yoho-page').on('touchstart', '.list-item, .type-item, .order-title', function() {
8299 $listItem.removeClass('highlight'); 8296 $listItem.removeClass('highlight');
8300 $(this).addClass('highlight'); 8297 $(this).addClass('highlight');
@@ -8303,38 +8300,6 @@ $('.yoho-page').on('touchstart', '.list-item, .type-item, .order-title', functio @@ -8303,38 +8300,6 @@ $('.yoho-page').on('touchstart', '.list-item, .type-item, .order-title', functio
8303 }); 8300 });
8304 8301
8305 }); 8302 });
8306 -define("js/plugin/notice-scroll", ["jquery"], function(require, exports, module){  
8307 -/**  
8308 - * 公告栏目滚动  
8309 - * bikai kai.bi@yoho.cn  
8310 - */  
8311 -  
8312 -var $ = require("jquery");  
8313 -  
8314 -function noticeScroll(selecter, time) {  
8315 - var $notice = $(selecter),  
8316 - $noticeItem = $notice.find('.notice-item'),  
8317 - count = $noticeItem.length,  
8318 - i = 1;  
8319 -  
8320 - selecter = selecter || '.notice';  
8321 - time = time || 3000;  
8322 -  
8323 - if (count > 1) {  
8324 - setInterval(function() {  
8325 - if (i >= count) {  
8326 - i = 0;  
8327 - }  
8328 - $noticeItem.fadeOut();  
8329 - $notice.find('.item-' + i).fadeIn();  
8330 - i++;  
8331 - }, time);  
8332 - }  
8333 -}  
8334 -  
8335 -module.exports = noticeScroll;  
8336 -  
8337 -});  
8338 define("js/product/recommend-for-you", ["swiper","jquery","index"], function(require, exports, module){ 8303 define("js/product/recommend-for-you", ["swiper","jquery","index"], function(require, exports, module){
8339 /** 8304 /**
8340 * 为您优选 8305 * 为您优选
@@ -8658,6 +8623,13 @@ $page.on('touchstart', '.del-icon', function() { @@ -8658,6 +8623,13 @@ $page.on('touchstart', '.del-icon', function() {
8658 }); 8623 });
8659 }); 8624 });
8660 }); 8625 });
  8626 +
  8627 +$('.deps').on('touchstart', 'span', function() {
  8628 + $(this).css('background', '#eee');
  8629 +}).on('touchend touchcancel', 'span', function() {
  8630 + $(this).css('background', 'transparent');
  8631 +});
  8632 +
8661 }); 8633 });
8662 define("js/me/address-act", ["jquery","hammer"], function(require, exports, module){ 8634 define("js/me/address-act", ["jquery","hammer"], function(require, exports, module){
8663 /** 8635 /**
@@ -9385,8 +9357,8 @@ $('.btn-balance').on('touchend', function() { @@ -9385,8 +9357,8 @@ $('.btn-balance').on('touchend', function() {
9385 } 9357 }
9386 }); 9358 });
9387 9359
9388 -$('.off-shell-goods .shopping-cart-good').on('touchend', function() {  
9389 - tip.show('商品已下架'); 9360 +$('.off-shell-goods').on('touchstart touchend', function() {
  9361 + return false;
9390 }); 9362 });
9391 9363
9392 $('.chose').on('touchend', function() { 9364 $('.chose').on('touchend', function() {
@@ -9533,6 +9505,11 @@ $('.icon-edit').on('touchstart', function(e) { @@ -9533,6 +9505,11 @@ $('.icon-edit').on('touchstart', function(e) {
9533 count, 9505 count,
9534 canEditNum; 9506 canEditNum;
9535 9507
  9508 + if ($this.parents('.off-shell-goods').length) {
  9509 + tip.show('商品已下架');
  9510 + return false;
  9511 + }
  9512 +
9536 //如果点击的是上次编辑的商品,直接显示chose-pannel 9513 //如果点击的是上次编辑的商品,直接显示chose-pannel
9537 if (skn === previousEditSkn) { 9514 if (skn === previousEditSkn) {
9538 chosePanel.show(); 9515 chosePanel.show();
@@ -9578,6 +9555,11 @@ $('.icon-edit').on('touchstart', function(e) { @@ -9578,6 +9555,11 @@ $('.icon-edit').on('touchstart', function(e) {
9578 $('.icon-del').on('touchstart', function(e) { 9555 $('.icon-del').on('touchstart', function(e) {
9579 var $this = $(this); 9556 var $this = $(this);
9580 9557
  9558 + if ($this.parents('.off-shell-goods').length) {
  9559 + tip.show('商品已下架');
  9560 + return false;
  9561 + }
  9562 +
9581 e.stopPropagation(); 9563 e.stopPropagation();
9582 9564
9583 dialog.showDialog({ 9565 dialog.showDialog({
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.