Authored by 毕凯

地址选择触发方式优化

@@ -25,6 +25,8 @@ $('.address-item').on('touchend', function() { @@ -25,6 +25,8 @@ $('.address-item').on('touchend', function() {
25 25
26 orderInfo('addressId', addressId); 26 orderInfo('addressId', addressId);
27 orderInfo('address', address); 27 orderInfo('address', address);
  28 +
  29 + window.location.href = $this.data('href');
28 }).on('touchstart', '.edit', function() { 30 }).on('touchstart', '.edit', function() {
29 window.location.href = $(this).data('href'); 31 window.location.href = $(this).data('href');
30 return false; 32 return false;
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div class="my-address-page select-address-page yoho-page"> 2 <div class="my-address-page select-address-page yoho-page">
3 <div class="page-wrap clearfix"> 3 <div class="page-wrap clearfix">
4 {{# address}} 4 {{# address}}
5 - <a class="address-item" data-address-id="{{address_id}}" data-is-support="{{is_support}}" href="/cart/index/orderEnsure"> 5 + <div class="address-item" data-address-id="{{address_id}}" data-is-support="{{is_support}}" data-href="/cart/index/orderEnsure">
6 <span class="name">{{consignee}}</span> 6 <span class="name">{{consignee}}</span>
7 <span class="tel">{{mobile}}</span> 7 <span class="tel">{{mobile}}</span>
8 <p class="address-info">{{area}} {{address}}</p> 8 <p class="address-info">{{area}} {{address}}</p>
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 <span class="edit" data-href="/home/addressAct?id={{address_id}}&refer=shopping">&#xe61e;</span> 10 <span class="edit" data-href="/home/addressAct?id={{address_id}}&refer=shopping">&#xe61e;</span>
11 <span class="del" data-id="{{address_id}}">&#xe621;</span> 11 <span class="del" data-id="{{address_id}}">&#xe621;</span>
12 </div> 12 </div>
13 - </a> 13 + </div>
14 {{/ address}} 14 {{/ address}}
15 15
16 <a class="add-address" data-href="/home/addressAct?refer=shopping"> 16 <a class="add-address" data-href="/home/addressAct?refer=shopping">