|
|
@ -1,7 +1,7 @@ |
|
|
|
import {useEffect, useState} from "react"; |
|
|
|
import {useState} from "react"; |
|
|
|
import Taro, {useDidShow} from '@tarojs/taro' |
|
|
|
import {Button, Cell, CellGroup, Space, Empty, ConfigProvider, Divider} from '@nutui/nutui-react-taro' |
|
|
|
import {Dongdong, ArrowRight, CheckNormal, Checked} from '@nutui/icons-react-taro' |
|
|
|
import Taro from '@tarojs/taro' |
|
|
|
import {View} from '@tarojs/components' |
|
|
|
import {ShopUserAddress} from "@/api/shop/shopUserAddress/model"; |
|
|
|
import {listShopUserAddress, removeShopUserAddress, updateShopUserAddress} from "@/api/shop/shopUserAddress"; |
|
|
@ -54,9 +54,9 @@ const Address = () => { |
|
|
|
reload(); |
|
|
|
} |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useDidShow(() => { |
|
|
|
reload() |
|
|
|
}, []); |
|
|
|
}); |
|
|
|
|
|
|
|
if (list.length == 0) { |
|
|
|
return ( |
|
|
@ -119,7 +119,8 @@ const Address = () => { |
|
|
|
删除 |
|
|
|
</View> |
|
|
|
<Divider direction={'vertical'}/> |
|
|
|
<View className={'text-gray-400'} onClick={() => Taro.navigateTo({url: '/user/address/add?id=' + item.id})}> |
|
|
|
<View className={'text-gray-400'} |
|
|
|
onClick={() => Taro.navigateTo({url: '/user/address/add?id=' + item.id})}> |
|
|
|
修改 |
|
|
|
</View> |
|
|
|
</> |
|
|
|