addaddress.wxml 1.4 KB

1234567891011121314151617181920
  1. <form bindsubmit="formSubmit">
  2. <view class='information'>
  3. <view class='information-li flex'><label>姓名</label><input type='text' placeholder='请输入姓名' placeholder-class='placeholder' name="name" value='{{userAddress.real_name}}'/></view>
  4. <view class='information-li flex'><label>联系电话</label><input type='number' placeholder-class='placeholder' placeholder='请输入联系电话' name="phone" value='{{userAddress.phone}}'></input></view>
  5. <view class='information-li flex'>
  6. <label class='area'>所在地区</label>
  7. <picker mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
  8. <text class='areas' data-text="C">{{region[0]}},{{region[1]}},{{region[2]}}</text>
  9. <text class='iconfont icon-dizhi map'></text>
  10. </picker>
  11. </view>
  12. <view class='information-li flex'><label>详细地址</label><input type='text' placeholder-class='placeholder' placeholder='请填写具体地址' name="fulladdress" value='{{userAddress.detail}}'></input></view>
  13. </view>
  14. <view class='default' bindtap='defaulttap'>
  15. <text class='iconfont icon-duihao1 duihao {{_num==0?"active":""}}'></text>
  16. 设置为默认地址
  17. </view>
  18. <button class='but' formType="submit">立即保存</button>
  19. </form>