addaddress.wxml
1.7 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<view class="addressbox">
<view class="addressboxitem">
<view class="addressboxitemleft">
<view class="addressboxitemleftname">收货人</view>
<view class="addressenter">
<input placeholder='请输入收货人' placeholder-class='enteradd' bindinput="entershouhuo" value="{{name}}"/>
</view>
</view>
</view>
<view class="addressboxitem">
<view class="addressboxitemleft">
<view class="addressboxitemleftname">手机号码</view>
<view class="addressenter">
<input placeholder='请输入手机号码' placeholder-class='enteradd' bindinput="enterphone" type="number" value="{{mobile}}"/>
</view>
</view>
</view>
<picker mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
<view class="addressboxitem">
<view class="addressboxitemleft">
<view class="addressboxitemleftname">所在地区</view>
<view class="addressenter">
{{regionname}}
</view>
<!-- <view class="picker">
当前选择:{{region[0]}},{{region[1]}},{{region[2]}}
</view> -->
</view>
<view class="addressright">
<image src="/img/yourow.png"></image>
</view>
</view>
</picker>
<view class="addressboxitem">
<view class="addressboxitemleft">
<view class="addressboxitemleftname">详细地址</view>
<view class="addressenter">
<input placeholder='请输入详细地址' placeholder-class='enteradd' bindinput="enteraddress" value="{{addr}}"/>
</view>
</view>
</view>
</view>
<view class="adddizhibtn" bindtap="addsave" wx:if="{{type==1}}">保存</view>
<view class="adddizhibtn" bindtap="editsave" wx:else>保存</view>