Authored by Rock Zhang

更新到201604151654静态资源

@@ -10549,17 +10549,21 @@ $('.cart-goods').on('touchstart', '.checkbox', function() { @@ -10549,17 +10549,21 @@ $('.cart-goods').on('touchstart', '.checkbox', function() {
10549 * @return false or undefined 10549 * @return false or undefined
10550 * 10550 *
10551 */ 10551 */
10552 -function showEditPannelWithSku(html, id, isSelected, isEditNum) {  
10553 - if (html.length < 2) { 10552 +function showEditPannelWithSku(html, id, isSelected, isEditNum, skn) {
  10553 + var $html = $(html);
  10554 +
  10555 + if (!$html.hasClass('chose-panel')) {
10554 tip.show('出错啦!'); 10556 tip.show('出错啦!');
10555 return false; 10557 return false;
10556 } 10558 }
10557 10559
  10560 + // 记录成功加载的选择框
  10561 + previousEditSkn = skn;
  10562 +
10558 //删掉页面上原有的pannel 10563 //删掉页面上原有的pannel
10559 chosePanel.remove(); 10564 chosePanel.remove();
10560 10565
10561 - $(html).appendTo('#mainCart');  
10562 - 10566 + $html.appendTo('#mainCart');
10563 10567
10564 chosePanel.init(); 10568 chosePanel.init();
10565 chosePanel.setEditModeWithSknId(id, isSelected); 10569 chosePanel.setEditModeWithSknId(id, isSelected);
@@ -10594,9 +10598,6 @@ $('.icon-edit').on('touchstart', function(e) { @@ -10594,9 +10598,6 @@ $('.icon-edit').on('touchstart', function(e) {
10594 return; 10598 return;
10595 } 10599 }
10596 10600
10597 - previousEditSkn = skn;  
10598 -  
10599 -  
10600 $checkBox = $this.closest('.info').siblings('.checkbox'); 10601 $checkBox = $this.closest('.info').siblings('.checkbox');
10601 $tag = $this.closest('.deps').siblings('.few-tag'); 10602 $tag = $this.closest('.deps').siblings('.few-tag');
10602 10603
@@ -10610,7 +10611,6 @@ $('.icon-edit').on('touchstart', function(e) { @@ -10610,7 +10611,6 @@ $('.icon-edit').on('touchstart', function(e) {
10610 10611
10611 loading.showLoadingMask(); 10612 loading.showLoadingMask();
10612 10613
10613 -  
10614 $.ajax({ 10614 $.ajax({
10615 url: '/cart/index/goodinfo', 10615 url: '/cart/index/goodinfo',
10616 data: { 10616 data: {
@@ -10618,7 +10618,7 @@ $('.icon-edit').on('touchstart', function(e) { @@ -10618,7 +10618,7 @@ $('.icon-edit').on('touchstart', function(e) {
10618 buy_num: count 10618 buy_num: count
10619 }, 10619 },
10620 success: function(res) { 10620 success: function(res) {
10621 - showEditPannelWithSku(res, id, $checkBox.hasClass('icon-cb-checked'), canEditNum); 10621 + showEditPannelWithSku(res, id, $checkBox.hasClass('icon-cb-checked'), canEditNum, skn);
10622 }, 10622 },
10623 error: function() { 10623 error: function() {
10624 tip.show('网络异常'); 10624 tip.show('网络异常');
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.
This diff could not be displayed because it is too large.