...
|
...
|
@@ -7,9 +7,20 @@ |
|
|
var $ = require('jquery'),
|
|
|
orderInfo = require('./order-info').orderInfo;
|
|
|
|
|
|
var $confim = $('.confim-mask'),
|
|
|
deleteId;
|
|
|
|
|
|
$('.address-item').on('touchend', function() {
|
|
|
orderInfo('addressId', $(this).data('address-id'));
|
|
|
}).on('touchend', '.edit', function() {
|
|
|
window.location.href = $(this).data('href');
|
|
|
return false;
|
|
|
}).on('touchend', '.del', function() {
|
|
|
deleteId = $(this).data('address-id');
|
|
|
});
|
|
|
|
|
|
$confim.on('touchend', '.confim', function() {
|
|
|
if (orderInfo('addressId') === deleteId) {
|
|
|
orderInfo('addressId', null);
|
|
|
}
|
|
|
}); |
...
|
...
|
|