addSite.wxml 1.2 KB

12345678910111213141516171819202122232425
  1. <!--pages/my/address/addSite/addSite.wxml-->
  2. <view class="form">
  3. <van-field bind:input="input1" clearable label="姓名" value='{{name}}' placeholder="请填写您的姓名" />
  4. <van-field bind:input="input2" clearable label="手机" value='{{phone}}' placeholder="请填写您的手机号码" />
  5. <van-field bind:input="input3" clearable label="地址" value='{{address}}' placeholder="填写宿舍楼名称、宿舍号信息" />
  6. </view>
  7. <view class="bg"></view>
  8. <view class="default flex ju-b">
  9. <view class="le">
  10. <view class="tit">设为默认地址</view>
  11. <view class="tips">将该地址作为每次下单时默认选择的地址</view>
  12. </view>
  13. <van-switch checked="{{ checked4 }}" size="20px" bind:change="onChange" />
  14. </view>
  15. <view class="footer" wx:if="{{type}}">
  16. <view class="footerBtn skyBlue" wx:if="{{checked1 && checked2 && checked3}}" bindtap="addAddress">保存并使用</view>
  17. <view class="footerBtn " wx:else>保存并使用</view>
  18. </view>
  19. <view class="footer flex ju-c" wx:else>
  20. <view class="footerBtn border" bindtap="del" data-id="{{id}}">删除</view>
  21. <view class="footerBtn footerBtn2 skyBlue" bindtap="updateaddr" data-id="{{id}}">保存并使用</view>
  22. </view>