1 line
4.0 KiB
Plaintext
1 line
4.0 KiB
Plaintext
<block wx:if="{{isLoading}}"><view class="pad-x170"><status-nav vue-id="85f8b75e-1" ifReturn="{{true}}" navBarTitle="地址管理" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="settlement-content pad-zy20 border-box"><block wx:for="{{addressList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="section background-white radius30 mar-x40 pad-all25 border-box font30"><view data-event-opts="{{[['tap',[['changeAddr',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="addr-info mar-s20" catchtap="__e"><view class="txt mar-x20"><view class="font30 mar-x10">{{item.name}}<text style="margin-left:30rpx;">{{item.phone}}</text></view><text class="font24 color-8c">{{item.addressMsg}}</text></view><view class="addr-bottom font28 flex"><label class="radio flex"><radio checked="{{item.is_default}}" color="#febf00" data-event-opts="{{[['tap',[['chooseEv',['$0'],[[['addressList','',index,'id']]]]]]]}}" catchtap="__e"></radio>设为默认地址</label><view class="btns flex"><view data-event-opts="{{[['tap',[['openEdit',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="btn" bindtap="__e">编辑</view><view data-event-opts="{{[['tap',[['delAddress',['$0'],[[['addressList','',index,'id']]]]]]]}}" class="btn" bindtap="__e">删除</view></view></view></view></view></block></view><view class="pull-btn background-white border-box"><view data-event-opts="{{[['tap',[['openAdd',['$event']]]]]}}" class="btn background-orange font36 radius30 flex" bindtap="__e">新增地址</view></view><view hidden="{{!(isShow)}}" class="pull-bg" style="background-color:rgba(0,0,0,.3);"></view><block wx:if="{{isShow}}"><view class="vip-box-bg border-box"><view class="vip-box radius20 background-white font30"><view class="title">收件人地址</view><view class="vip-list"><view class="vip-item mar-s20"><view class="tips color-99">姓名</view><input class="input" type="text" placeholder="请输入姓名" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindinput="__e"/></view><view class="vip-item mar-s40"><view class="tips color-99">电话</view><input class="input" type="number" placeholder="请输入联系电话" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/></view><view class="vip-item mar-s40"><view class="tips color-99">地址</view><picker mode="region" data-event-opts="{{[['change',[['change',['$event']]]]]}}" bindchange="__e"><view class="addr-input flex"><view class="input-box flex"><input class="input-flex clips1" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','province','$event',[]]]]]]}}" value="{{province}}" bindinput="__e"/><image src="/static/icon/icon-shop.png" mode="widthFix"></image></view><view class="input-box flex"><input class="input-flex clips1" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','city','$event',[]]]]]]}}" value="{{city}}" bindinput="__e"/><image src="/static/icon/icon-shop.png" mode="widthFix"></image></view><view class="input-box flex"><input class="input-flex clips1" type="text" disabled="true" data-event-opts="{{[['input',[['__set_model',['','county','$event',[]]]]]]}}" value="{{county}}" bindinput="__e"/><image src="/static/icon/icon-shop.png" mode="widthFix"></image></view></view></picker></view><view class="vip-item mar-s40"><view class="tips color-99">详细地址</view><input class="input" type="number" placeholder="请输入详细地址" placeholder-style="color:#000000" data-event-opts="{{[['input',[['__set_model',['','address','$event',[]]]]]]}}" value="{{address}}" bindinput="__e"/></view></view><view data-event-opts="{{[['tap',[['editAddress',['$0'],['id']]]]]}}" class="submit-btn font36 background-orange radius30 mar-s60 flex" bindtap="__e">确认保存</view><view data-event-opts="{{[['tap',[['closeEv',['$event']]]]]}}" class="close-btn" bindtap="__e"><image src="/static/icon/close-btn.png" mode="widthFix"></image></view></view></view></block></view></block> |