...
|
...
|
@@ -11,19 +11,19 @@ var chosePanel = require('./chose-panel'); |
|
|
|
|
|
lazyLoad($('.lazy'));
|
|
|
|
|
|
$('.gift-advance-page').on('touchstart', '.chose', function() {
|
|
|
var id = $(this).closest('.gift-advance-good').data('id');
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
|
|
url: '/shoppingCart/goodinfo',
|
|
|
data: {
|
|
|
id: id
|
|
|
},
|
|
|
success: function(data) {
|
|
|
if (data.code === 200) {
|
|
|
chosePanel.show(data.data);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}); |
|
|
\ No newline at end of file |
|
|
//$('.gift-advance-page').on('touchstart', '.chose', function() {
|
|
|
// var id = $(this).closest('.gift-advance-good').data('id');
|
|
|
//
|
|
|
// $.ajax({
|
|
|
// type: 'GET',
|
|
|
// url: '/shoppingCart/goodinfo',
|
|
|
// data: {
|
|
|
// id: id
|
|
|
// },
|
|
|
// success: function(data) {
|
|
|
// if (data.code === 200) {
|
|
|
// chosePanel.show(data.data);
|
|
|
// }
|
|
|
// }
|
|
|
// });
|
|
|
//}); |
|
|
\ No newline at end of file |
...
|
...
|
|