addressManager.wxml
2.55 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
<import src="/pages/addressManager/addressEditer/addressEditer.wxml"/>
<view class="container">
<view class="my-address-page">
<block wx:if="{{showEditAddressPage}}">
<template wx:if="{{showEditAddressPage}}" is="addressEditer" data="{{editeAddressPage}}"/>
</block>
<block wx:else>
<view class="page-wrap clearfix">
<block wx:if="{{showContainer}}">
<view wx:if="{{showContainer}}" class="address-container">
<radio-group class="radio-group" bindchange="radioChange">
<label class="radio" wx:for="{{items}}">
<view class="address-item">
<view hidden="{{currentMode == modeEdit}}" class="address-item-left">
<view class="rdoselect">
<radio color="black" value="{{index}}" checked="{{item.address_id == address_id}}"/>
</view>
</view>
<view class="name">{{item.consignee}}</view>
<view class="tel">{{item.mobile}}</view>
<view class="address-info">{{item.area + ' ' + item.address}}</view>
<view class="action">
<view catchtap="editButtonTapped" class="edit" data-id="{{item.address_id}}" data-consignee="{{item.consignee}}" data-mobile="{{item.mobile}}" data-area_code="{{item.area_code}}" data-address="{{item.area}}" data-detail_address="{{item.address}}" data->编辑</view>
</view>
</view>
<view class="view-splite">
<view class="splite-line"></view>
</view>
</label>
</radio-group>
</view>
</block>
<block wx:else>
<view class='emptyClass' style='width:100%;height:100%;margin-top:200rpx'>
<image src="images/noad@3x.png" style="width:143rpx;height:190rpx;margin-top:80rpx"></image>
<view style="font-size:30rpx;text-align:center;margin-top:30rpx;color:#444444;">尚无地址,点击底部新增</view>
</view>
</block>
<view class="add-address" catchtap="addButtonTapped">
<text class='add-addressText'>新增收货地址</text>
</view>
</view>
</block>
</view>
</view>