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