MrShi
昨天 8a899e63502939dbf034b90ba46741e0faa9023c
1
<view class="box data-v-75935d96"><view class="list data-v-75935d96"><view class="list-item data-v-75935d96"><view class="list-item-label data-v-75935d96">收件人</view><view class="list-item-input data-v-75935d96"><input type="text" placeholder="请输入收件人姓名" data-event-opts="{{[['input',[['__set_model',['$0','name','$event',[]],['form']]]]]}}" value="{{form.name}}" bindinput="__e" class="data-v-75935d96"/></view></view><view class="list-item data-v-75935d96"><view class="list-item-label data-v-75935d96">联系电话</view><view class="list-item-input data-v-75935d96"><input type="text" placeholder="请输入联系电话" maxlength="11" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['form']]]]]}}" value="{{form.phone}}" bindinput="__e" class="data-v-75935d96"/></view></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="list-item data-v-75935d96" bindtap="__e"><view class="list-item-label data-v-75935d96">所在地区</view><view class="list-item-sele data-v-75935d96"><text style="{{'color:'+(form.areaName?'#333333':'')+';'}}" class="data-v-75935d96">{{form.areaName?form.areaName:'请选择'}}</text><u-icon vue-id="3cd8d630-1" name="arrow-right" color="#B2B2B2" size="16" class="data-v-75935d96" bind:__l="__l"></u-icon></view></view><view data-event-opts="{{[['tap',[['chooseLocation',['$event']]]]]}}" class="list-item data-v-75935d96" bindtap="__e"><view class="list-item-label data-v-75935d96">详细地址</view><view class="list-item-sele data-v-75935d96"><text style="{{'color:'+(form.addr?'#333333':'')+';'}}" class="data-v-75935d96">{{form.addr?form.addr:'请选择'}}</text><u-icon vue-id="3cd8d630-2" name="arrow-right" color="#B2B2B2" size="16" class="data-v-75935d96" bind:__l="__l"></u-icon></view></view><view class="list-item data-v-75935d96" style="display:flex;align-items:center;justify-content:space-between;"><view class="list-item-label data-v-75935d96">设为默认地址</view><u-switch bind:input="__e" vue-id="3cd8d630-3" activeValue="{{1}}" inactiveValue="{{0}}" value="{{form.isDefault}}" data-event-opts="{{[['^input',[['__set_model',['$0','isDefault','$event',[]],['form']]]]]}}" class="data-v-75935d96" bind:__l="__l"></u-switch></view><block wx:if="{{type===1}}"><view class="box-footer data-v-75935d96"><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="btn2 data-v-75935d96" bindtap="__e">保存</view></view></block><block wx:if="{{type===2}}"><view class="box-footer data-v-75935d96"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="btn1 data-v-75935d96" bindtap="__e">删除</view><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="btn2 data-v-75935d96" bindtap="__e">保存</view></view></block></view><block wx:if="{{$root.g0}}"><u-picker vue-id="3cd8d630-4" show="{{show}}" confirmColor="#ff2c36" keyName="text" columns="{{columns}}" data-ref="uPicker" data-event-opts="{{[['^confirm',[['confirm']]],['^change',[['changeHandler']]],['^cancel',[['e2']]]]}}" bind:confirm="__e" bind:change="__e" bind:cancel="__e" class="data-v-75935d96 vue-ref" bind:__l="__l"></u-picker></block><u-modal vue-id="3cd8d630-5" show="{{show1}}" title="系统提示" content="确认删除当前收货地址吗?" confirmColor="#004096" showConfirmButton="{{true}}" showCancelButton="{{true}}" data-event-opts="{{[['^confirm',[['dele']]],['^cancel',[['e3']]]]}}" bind:confirm="__e" bind:cancel="__e" class="data-v-75935d96" bind:__l="__l"></u-modal></view>