|
|
/**
|
|
|
* Created by targaryen on 2016/11/28.
|
|
|
*/
|
|
|
var $ = require('yoho-jquery');
|
|
|
var $ = require('yoho-jquery'),
|
|
|
tip = require('../plugin/tip');
|
|
|
|
|
|
require('../common');
|
|
|
|
...
|
...
|
@@ -32,8 +33,12 @@ $selectBtn.on('click', function() { |
|
|
*/
|
|
|
$buyNowBtn.on('click', function() {
|
|
|
$('span[id^="gskn"]').each(function() {
|
|
|
if (!$(this).data('sku')) {
|
|
|
tip.show('请为套餐商品选择属性');
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
// TODO tar 已经获取到 sku
|
|
|
console.log($(this).data('sku'));
|
|
|
console.log($(this).data('skn'), '-', $(this).data('sku'));
|
|
|
});
|
|
|
}); |
...
|
...
|
|