|
|
/*
|
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-05-08 09:43:20
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-05-08 10:41:36
|
|
|
*/
|
|
|
|
|
|
const $ = require('yoho-jquery');
|
|
|
const chosePanel = require('common/chose-panel-new');
|
|
|
|
|
|
let $addToCart = $('.add-to-cart');
|
|
|
|
|
|
$addToCart.on('click', function(e) {
|
|
|
let $this = $(e.currentTarget);
|
|
|
|
|
|
$.post(location.protocol + '//m.yohobuy.com/product/detail/info',
|
|
|
{
|
|
|
productSkn: $this.data('skn')
|
|
|
}, function(data) {
|
|
|
chosePanel.show({data});
|
|
|
});
|
|
|
}); |
...
|
...
|
|