<!--pages/prescription/site/site.wxml-->
<answer id='answer'></answer>
<view class="wrap">
<block wx:for="{{list}}" wx:key="index">
	<!-- <view class="list">
		<view bindtap="goback" data-item='{{item}}'>
			<text class="site">{{item.take_over}}{{item.detail_address}}</text>
			<view class="gexx">
				<text class="name">{{item.name}}</text>
				<text class="phone">{{item.phone}}</text>
			</view>
		</view>
		<image class="bianji" src="/images/xz.png" bindtap="addsite" data-item="{{item}}" data-num="1" data-id="{{item.id}}"></image>
 </view> -->
 <view class="header" bindtap="goback" data-item='{{item}}'>
	<view class="dz">
		<view class="po-re" >
			<!-- <text class="uname">收货人：</text> -->
			<text class="usname">{{item.name}}</text> 
			<wxs module="m1">
				var getMax = function(array) {
					var tel = array;
					console.log(array);
						tel = "" + tel;
						var tel1=	tel.replace(tel.substring(3,7), "****");
					return tel1;
				}
				module.exports.getMax = getMax;
				</wxs>
			<view> {{m1.getMax(item.phone)}} </view>
		</view>
		<view class="site-dz">
			<!-- <text class="shouhdz">收货地址：</text> -->
			<text class="site">{{item.take_over}}{{item.detail_address}}</text>
		</view>
	</view>
	<view class="add_btn" catchtap="addsite" data-item="{{item}}" data-num="1" data-id="{{item.id}}">编辑</view>
</view>
</block>
</view>

<view class="btn" bindtap="addsite" data-num="0">新增地址</view>