用户地址管理

This commit is contained in:
devil_gong 2018-10-12 12:24:14 +08:00
parent b76c27129c
commit 2f2fcea132
3 changed files with 6 additions and 8 deletions

View File

@ -33,6 +33,9 @@
<notempty name="address.alias">
<span class="am-badge am-badge-danger am-radius">{{$address.alias}}</span>
</notempty>
<if condition="isset($address['is_default']) and $address['is_default'] eq 1">
<span class="am-badge am-radius">默认地址</span>
</if>
<span class="buy-address-detail">
<span class="buy-user">{{$address.name}}</span>
<span class="buy-phone">{{$address.tel}}</span>
@ -47,9 +50,6 @@
<span class="street">{{$address.address}}</span>
</span>
</div>
<if condition="isset($address['is_default']) and $address['is_default'] eq 1">
<span class="deftip">默认地址</span>
</if>
</div>
<div class="address-right">
<span class="am-icon-angle-right am-icon-lg"></span>

View File

@ -34,6 +34,9 @@
<notempty name="address.alias">
<span class="am-badge am-badge-danger am-radius">{{$address.alias}}</span>
</notempty>
<if condition="isset($address['is_default']) and $address['is_default'] eq 1">
<span class="am-badge am-radius">默认地址</span>
</if>
<span class="buy-address-detail">
<span class="buy-user">{{$address.name}}</span>
<span class="buy-phone">{{$address.tel}}</span>
@ -48,9 +51,6 @@
<span class="street">{{$address.address}}</span>
</span>
</div>
<if condition="isset($address['is_default']) and $address['is_default'] eq 1">
<span class="deftip">默认地址</span>
</if>
</div>
<div class="new-addr-btn">
<a href="javascript:;" class="address-default-submit" data-url="{{:U('Home/UserAddress/SetDefault')}}" data-id="{{$address.id}}" data-view="reload">设为默认</a>

View File

@ -6,8 +6,6 @@ ul.address-list li{display:none;width:100%;padding:10px;position: relative;min-h
.address-left{ width:90%;float:left;position: relative;}
ul.address-list li .user-base {font-size: 14px;font-weight: 700;}
.address-right{ float:right; margin-right:5px;padding-top:15px ;}
.deftip {position: absolute;top: 0px;right: 0px;padding: 0px 2px;text-decoration: none;opacity: 0.7; z-index: 3;background: #CCC none repeat scroll 0% 0%;
color: #FFF;}
/*地址操作-编辑删除*/
.new-addr-btn {display:none;font-size: 12px;color: #282828;text-align: right; padding-right:5px ;}