You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.5 KiB
32 lines
1.5 KiB
<!--pages/enterprise/address/index.wxml-->
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content" style="color:black;font-size:36rpx">地址管理</view>
|
|
</cu-custom>
|
|
|
|
<view wx:for="{{ addressList }}" wx:key="index" style="margin-top:{{index > 0 ? 16: 0}}rpx">
|
|
<van-cell clickable data-index="{{index}}" bind:click="lookItem">
|
|
<view slot="title" class="flex flex-column">
|
|
<text class="flex">
|
|
<text class="text-sg text-bold">{{item.receiver}}</text>
|
|
<text class="text-df text-gray" style="margin-left:8rpx">{{item.receiverMobile}}</text>
|
|
</text>
|
|
<text class="text-df text-gray">{{item.provinceName + item.cityName + item.districtName + item.detail}}</text>
|
|
</view>
|
|
</van-cell>
|
|
<view class="bg-white flex flex-justify" style="padding:16rpx">
|
|
<view class="flex flex-center" style="padding-left:12rpx">
|
|
<van-checkbox value="true" icon-size="32rpx" wx:if="{{ item.isDefault == 1 }}"></van-checkbox>
|
|
<text class="text-blue" style="margin-left:12rpx" wx:if="{{ item.isDefault == 1 }}">已设为默认</text>
|
|
</view>
|
|
<view class="flex">
|
|
<view class="text-gray" style="padding:4rpx 20rpx" data-index="{{index}}" catchtap="delAddress">删除</view>
|
|
<view class="text-gray" style="padding:4rpx 20rpx;margin-left:24rpx" data-index="{{index}}" catchtap="addAddress">编辑</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view style="margin-top:30rpx;padding:30rpx 60rpx;">
|
|
<van-button block type="info" bind:click="addAddress">新增地址</van-button>
|
|
</view>
|
|
|
|
<van-dialog id="van-dialog" />
|