addAddress.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <!--pages/my/addAddress/addAddress.wxml-->
  2. <view>
  3. <form catchsubmit="formSubmit">
  4. <label class="radio">
  5. <radio value="r1" checked="{{form.checked}}" bindtap="radioChange"/>设置为默认地址
  6. </label>
  7. <view class="info">
  8. <text class="name">收件人</text>
  9. <input type="text" class="input" data-key="name" placeholder="请输入收件人姓名" bindinput="inputChange"/>
  10. </view>
  11. <view class="info">
  12. <text class="name">手机号</text>
  13. <input type="number" data-key="phone" class="input" placeholder="请输入收件人手机号" bindinput="inputChange"/>
  14. </view>
  15. <view class="info">
  16. <text class="name">所在地区</text>
  17. <picker mode="region"
  18. class="input"
  19. bindchange="handleRegionChange"
  20. value="{{region}}"
  21. >
  22. <view wx:if="region.length > 0">{{region[0]}} {{region[1]}} {{region[2]}}</view>
  23. <text class="placeholder" wx:if="{{region.length === 0}}">请输入收件人地区</text>
  24. </picker>
  25. </view>
  26. <view class="info">
  27. <text class="name">详细地址</text>
  28. <input type="text" data-key="address" class="input" placeholder="请输入收件人详细地址" bindinput="inputChange"/>
  29. </view>
  30. <button class="saveAddress" formType="submit">保 存</button>
  31. </form>
  32. </view>