editAddress.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!--pages/editAddress/editAddress.wxml-->
  2. <view class='container'>
  3. <!--input列表 -->
  4. <view class='input-box'>
  5. <view class="section">
  6. <text>收 货 人</text>
  7. <input placeholder='姓名' type='text' maxlength='15' value="{{receiver}}" bindinput="onReceiverInput" ></input>
  8. </view>
  9. <view class="section">
  10. <text>手机号码</text>
  11. <input placeholder='11位手机号码' type='number' maxlength='11' value="{{mobile}}" bindinput="onMobileInput"></input>
  12. </view>
  13. <view class="section" bindtap="translate">
  14. <text>所在地区</text>
  15. <view class="pca">{{province}} {{city}} {{area}}</view>
  16. <view class="animation-element-wrapper" animation="{{animation}}" style="visibility:{{show ? 'visible':'hidden'}}" catchtap="hiddenFloatView">
  17. <view class="animation-element" catchtap="nono">
  18. <text class="right-bt" catchtap="hiddenFloatView">确定</text>
  19. <view class="line"></view>
  20. <picker-view indicator-style="height: 50rpx;" value="{{value}}" bindchange="bindChange" catchtap="nono">
  21. <!--省-->
  22. <picker-view-column>
  23. <view wx:for="{{provArray}}" wx:key="">
  24. {{item.areaName}}
  25. </view>
  26. </picker-view-column>
  27. <!--地级市-->
  28. <picker-view-column>
  29. <view wx:for="{{cityArray}}" wx:key="">
  30. {{item.areaName}}
  31. </view>
  32. </picker-view-column>
  33. <!--区县-->
  34. <picker-view-column>
  35. <view wx:for="{{areaArray}}" wx:key="">
  36. {{item.areaName}}
  37. </view>
  38. </picker-view-column>
  39. </picker-view>
  40. </view>
  41. </view>
  42. <view class='arrow'>
  43. <image src='../../images/icon/more.png'></image>
  44. </view>
  45. </view>
  46. <view class="section">
  47. <text>详细地址</text>
  48. <input placeholder='如楼号/单元/门牌号' type='text' value="{{addr}}" bindinput="onAddrInput"></input>
  49. </view>
  50. </view>
  51. <!-- end input列表 -->
  52. <!-- 功能按钮 -->
  53. <view class='btn-box'>
  54. <view class='keep btn' bindtap='onSaveAddr'>
  55. <text>保存收货地址</text>
  56. </view>
  57. <view class='clear btn' bindtap="onDeleteAddr" wx:if="{{addrId!=0}}">
  58. <text>删除收货地址</text>
  59. </view>
  60. </view>
  61. <!-- end 功能按钮 -->
  62. </view>