addressEditer.wxml
2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template name="addressEditer">
<view class="addressEditerContainer" bindtap="hiddenPicker">
<view class="view-splite clearfix"></view>
<view class="page-container clearfix">
<view class="cell-container cell-bottom-border">
<text class="cell-float-left">收货人姓名</text>
<input data-id="txtConsignee" class="cell-float-right" placeholder="请输入姓名" bindinput="onInputChanged" value="{{editeAddressPage._consignee}}"/>
</view>
<view class="cell-container cell-bottom-border">
<text class="cell-float-left">手机号码</text>
<input data-id="txtMobile" class="cell-float-right" placeholder="请输入手机号码" bindinput="onInputChanged" value="{{editeAddressPage._mobile}}"/>
</view>
<view class="cell-container cell-bottom-border" >
<text class="cell-float-left">省市</text>
<input class="cell-float-right" disabled="disabled" placeholder="请选择" value="{{editeAddressPage._address}}"/>
<view class="cell-float-over" catchtap="choosearea"></view>
</view>
<view class="cell-container">
<text class="cell-float-left">详细地址</text>
<input data-id="txtAddress" class="cell-float-right" placeholder="街道地址" bindinput="onInputChanged" value="{{editeAddressPage._detailAddress}}"/>
</view>
</view>
<button type="primary" class="submit-btn" size="default" catchtap="onSubmitButtonTapped"> 确认 </button>
<button hidden="{{editeAddressPage.currentEditMode == editeAddressPage.modeAdd}}" type="default" class="delete-btn" size="default" catchtap="onDeleteButtonTapped"> 删除地址 </button>
<picker-view wx:if="{{editeAddressPage.isShow}}" class="picker-view" indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{editeAddressPage.value}}" bindchange="bindChange">
<picker-view-column>
<view wx:for="{{editeAddressPage.proviceData}}" class="addr-item">{{item.captionDot}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{editeAddressPage.cityData}}" class="addr-item">{{item.captionDot}}</view>
</picker-view-column>
<picker-view-column wx:if="{{editeAddressPage.showDistrict}}">
<view wx:for="{{editeAddressPage.districtData}}" class="addr-item">{{item.captionDot}}</view>
</picker-view-column>
</picker-view>
</view>
</template>