editAddress.wxml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!--pages/editAddress/editAddress.wxml-->
  2. <view class="ad-item" style="margin-top: 24rpx;">
  3. <text>收货人</text>
  4. <input class="ipt" placeholder-style="color: rgba(0,0,0,0.4);" type="text" placeholder="请输入姓名" value="{{name}}" bindinput="getNameInput"/>
  5. </view>
  6. <view class="ad-item" style="margin-bottom: 24rpx;">
  7. <text>手机号码</text>
  8. <text class="Fphone">+86</text>
  9. <input class="ipt" placeholder-style="color: rgba(0,0,0,0.4);" type="text" placeholder="请输入手机号码" value="{{phone}}" bindinput="getPhoneInput"/>
  10. </view>
  11. <view class="ad-item">
  12. <text>所在地区</text>
  13. <picker mode="multiSelector"bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange" value="{{multiIndex}}" range-key="districtName" range="{{multiArray}}">
  14. <view class="picBox">
  15. <text class="adCity" hidden="{{districtId}}">请选择省市区</text>
  16. <text class="adCity" hidden="{{!districtId}}" style="color: rgba(0,0,0,0.6);">{{districtArray[0][districtIndex[0]].districtName}} {{districtArray[1][districtIndex[1]].districtName}} {{districtArray[2][districtIndex[2]].districtName}}</text>
  17. <image class="arrow" src="/static/img/arrow.png" mode=""/>
  18. </view>
  19. </picker>
  20. </view>
  21. <view class="ad-item">
  22. <text>详细地址</text>
  23. <textarea class="iptarea" auto-height placeholder-style="color: rgba(0,0,0,0.4);" type="text" placeholder="输入小区/写字楼" value="{{detailAddress}}" bindinput="getDetailAddressInput"/>
  24. </view>
  25. <view class="ad-item">
  26. <text>设为默认地址</text>
  27. <switch class="swBtn" color="#FF5700" checked="{{defaultAddress}}" bindchange="switchDefaultAddressChange"/>
  28. </view>
  29. <view class="save-view" bindtap="toSave">{{userAddressId?'确认修改':'保存'}}</view>
  30. <view class="delete" bindtap="deleteFun" wx:if="{{userAddressId}}">删除</view>
  31. <view class="del-view" wx:if="{{delViewStatus}}">
  32. <view class="del-box">
  33. <text>确定要删除该地址吗?</text>
  34. <view class="del-btn">
  35. <text bindtap="cancelDel">取消</text>
  36. <text bindtap="sureDel">确认</text>
  37. </view>
  38. </view>
  39. </view>