|
@@ -130,7 +130,7 @@ function handleAction(action: string, item: any) {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
-onShow(() => {
|
|
|
+onShow(async () => {
|
|
|
paging.value.reload(true)
|
|
|
})
|
|
|
// 页面加载时获取参数
|
|
@@ -142,20 +142,22 @@ onLoad((options) => {
|
|
|
<template>
|
|
|
<z-paging ref="paging" v-model="dataList" use-page-scroll @query="queryList">
|
|
|
<view class="py-20rpx">
|
|
|
- <wd-swipe-action v-for="item in dataList" :key="item.id">
|
|
|
+ <wd-swipe-action v-for="item in dataList" :key="item.id" custom-class="mb-20rpx">
|
|
|
<view class="flex items-center justify-between bg-white px-22rpx py-18rpx" @click="handleAddressClick(item)">
|
|
|
<view class="flex-1">
|
|
|
- <view class="mb-20rpx flex items-center justify-between text-24rpx">
|
|
|
+ <view class="mb-20rpx flex items-center justify-between text-24rpx font-bold">
|
|
|
<view>
|
|
|
<text class="mr-20rpx">
|
|
|
{{ item.realName }}
|
|
|
</text>
|
|
|
<text>{{ item.phone }}</text>
|
|
|
</view>
|
|
|
- <wd-text v-if="item.isDefault" type="primary" :text="t('addressBook.tag.default')" />
|
|
|
+ <wd-tag type="primary" plain>
|
|
|
+ {{ t('addressBook.tag.default') }}
|
|
|
+ </wd-tag>
|
|
|
</view>
|
|
|
- <view class="text-22rpx text-#3A444C">
|
|
|
- {{ [item.province, item.city, item.district, item.street].filter(Boolean).join(', ') }} {{ item.postCode }}
|
|
|
+ <view class="line-clamp-2 text-22rpx text-#3A444C">
|
|
|
+ {{ [item.province, item.city, item.district, item.street, item.detail].filter(Boolean).join(', ') }} {{ item.postCode }}
|
|
|
</view>
|
|
|
</view>
|
|
|
<wd-icon name="arrow-right" custom-class="flex-shrink-0 ml-8rpx" color="#7D7D7D" size="24rpx" />
|