addressManage.wxml 1.9 KB

1234567891011121314151617181920212223
  1. <view class="content">
  2. <view class="row b-b">
  3. <text class="tit">联系人</text>
  4. <input bindinput="__e" class="input" data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '$0','name','$event',[] ],['addressData'] ] ] ] ]}}" placeholder="收货人姓名" placeholderClass="placeholder" type="text" value="{{addressData.name}}"></input>
  5. </view>
  6. <view class="row b-b">
  7. <text class="tit">手机号</text>
  8. <input bindinput="__e" class="input" data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '$0','mobile','$event',[] ],['addressData'] ] ] ] ]}}" placeholder="收货人手机号码" placeholderClass="placeholder" type="number" value="{{addressData.mobile}}"></input>
  9. </view>
  10. <view class="row b-b">
  11. <text class="tit">地址</text>
  12. <picker-address bind:__l="__l" bind:change="__e" class="input" data-event-opts="{{[ [ '^change',[ ['onCityClick'] ] ] ]}}" vueId="0e0a4db1-1" vueSlots="{{['default']}}">{{addressDetail||'请选择地址'}}</picker-address>
  13. <text class="iconfont iconlocation"></text>
  14. </view>
  15. <view class="row b-b">
  16. <text class="tit">门牌号</text>
  17. <input bindinput="__e" class="input" data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '$0','area','$event',[] ],['addressData'] ] ] ] ]}}" placeholder="楼号、门牌" placeholderClass="placeholder" type="text" value="{{addressData.area}}"></input>
  18. </view>
  19. <uni-list bind:__l="__l" class="margin-t-20" vueId="0e0a4db1-2" vueSlots="{{['default']}}">
  20. <uni-list-item bind:__l="__l" bind:switchChange="__e" data-event-opts="{{[ [ '^switchChange',[ ['switchChange'] ] ] ]}}" showArrow="{{false}}" showSwitch="{{true}}" switchChecked="{{addressData.default}}" switchColor="#5dbc7c" title="设为默认" vueId="{{'0e0a4db1-3'+','+'0e0a4db1-2'}}"></uni-list-item>
  21. </uni-list>
  22. <button bindtap="__e" class="add-btn" data-event-opts="{{[ [ 'tap',[ [ 'e0',['$event'] ] ] ] ]}}">提交</button>
  23. </view>