operate.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!--mMine/pages/address/operate/operate.wxml-->
  2. <!-- 导航栏 -->
  3. <van-nav-bar custom-style="background-color: #E92020">
  4. <van-icon slot="left" name="arrow-left" size="25px" color="white" bind:click="backToParent"/>
  5. <text slot="title" style="color: white;">收货地址管理</text>
  6. </van-nav-bar>
  7. <van-cell-group>
  8. <!-- 收货人 -->
  9. <van-field model:value="{{ username }}" required clearable label="收货人" placeholder="请输入收货人" />
  10. <!-- 联系电话 -->
  11. <van-field model:value="{{ mobile }}" type="number" required clearable label="联系电话" placeholder="请输入收货人联系电话"/>
  12. <!-- 收货地区 -->
  13. <view class="region">
  14. <text class="label">*收货地区</text>
  15. <view class="region-selsct" id="region-selsct" bindtap="onButtonPressed">{{region}}</view>
  16. <van-icon name="arrow" size="10px" color="#666"></van-icon>
  17. </view>
  18. <view class="default" wx:if="{{autoid != 0}}">
  19. <text class="label">设为默认</text>
  20. <van-switch checked="{{ checked }}" active-color="#07c160" bind:change="onChange"/>
  21. </view>
  22. <!-- 详细地址 -->
  23. <van-field model:value="{{ detailAddress }}" required clearable autosize label="详细地址" placeholder="请输入详细地址"/>
  24. </van-cell-group>
  25. <!-- 底部视图 -->
  26. <view class="buttom_view">
  27. <van-button round id = "confirm" color="linear-gradient(to right, #FF7252, #55A154)" block style="width: 90%; padding-top: 5px; padding-top: 10px;" bind:click="onButtonPressed">确定</van-button>
  28. <van-button wx:if="{{autoid != 0}}" id="delete" round color="linear-gradient(to right, #ed213a, #93291e)" block style="width: 90%; padding-top: 5px; padding-top: 10px;" bind:click="onButtonPressed">删除地址</van-button>
  29. </view>
  30. <!-- 地区选择 -->
  31. <van-popup show="{{ show }}" position="bottom" custom-style="height: 45%" bind:click-overlay="cancelArea">
  32. <van-area area-list="{{ areaList }}" value="110101" title="地区选择" bind:cancel="cancelArea" bind:confirm="confirmArea"/>
  33. </van-popup>
  34. <!-- toast -->
  35. <van-toast id="van-toast" />