...
|
...
|
@@ -12,7 +12,7 @@ var $confim = $('.confim-mask'), |
|
|
|
|
|
require('../common');
|
|
|
|
|
|
$('.address-item').on('touchend', function() {
|
|
|
$('.address-item').on('click', function() {
|
|
|
var $this = $(this);
|
|
|
var addressId = $this.data('address-id');
|
|
|
var address = {
|
...
|
...
|
@@ -26,14 +26,15 @@ $('.address-item').on('touchend', function() { |
|
|
orderInfo('addressId', addressId);
|
|
|
orderInfo('address', address);
|
|
|
window.location.href = $this.data('href') + (orderInfo('limitUrlSufix') || '');
|
|
|
}).on('touchend', '.edit', function() {
|
|
|
|
|
|
}).on('click', '.edit', function() {
|
|
|
window.location.href = $(this).data('href');
|
|
|
return false;
|
|
|
}).on('touchstart', '.del', function() {
|
|
|
}).on('click', '.del', function() {
|
|
|
deleteId = $(this).data('id');
|
|
|
});
|
|
|
|
|
|
$confim.on('touchend', '.confim', function() {
|
|
|
$confim.on('click', '.confim', function() {
|
|
|
if (orderInfo('addressId') === deleteId) {
|
|
|
orderInfo('addressId', null);
|
|
|
orderInfo('address', null);
|
...
|
...
|
|