...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-04-06 16:51:52
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-04-07 16:49:18
|
|
|
* @Last Modified time: 2017-04-10 11:33:06
|
|
|
*/
|
|
|
|
|
|
const $ = require('yoho-jquery');
|
...
|
...
|
@@ -37,9 +37,19 @@ let bundle = { |
|
|
}, e);
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* 套餐选中/取消
|
|
|
*/
|
|
|
$bundle.on('click', '.bundle-title .opt .select', function(e) {
|
|
|
self.bundleCheckHandle(e);
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* 编辑状态下套餐选中/取消
|
|
|
*/
|
|
|
$bundle.on('click', '.bundle-title .opt .edit', function(e) {
|
|
|
self.bundleEditCheckHandle(e);
|
|
|
});
|
|
|
},
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -118,7 +128,24 @@ let bundle = { |
|
|
loading.hideLoading();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 编辑状态下套餐选中/取消
|
|
|
* @param {*} e
|
|
|
*/
|
|
|
bundleEditCheckHandle(e) {
|
|
|
let editCheck = $(e.delegateTarget).find('.edit');
|
|
|
let goodItem = $(e.delegateTarget).find('.good-item');
|
|
|
|
|
|
if (editCheck.hasClass('checked')) {
|
|
|
editCheck.removeClass('checked');
|
|
|
goodItem.find('.opt .edit').removeClass('checked');
|
|
|
} else {
|
|
|
editCheck.addClass('checked');
|
|
|
goodItem.find('.opt .edit').addClass('checked');
|
|
|
}
|
|
|
},
|
|
|
};
|
|
|
|
|
|
module.exports = bundle; |
...
|
...
|
|