{
}}
onClose={() => setVisible(false)}
/>
+
+ {/* 底部浮动按钮 */}
+
>
);
};
diff --git a/src/user/address/index.tsx b/src/user/address/index.tsx
index 6291926..f9328db 100644
--- a/src/user/address/index.tsx
+++ b/src/user/address/index.tsx
@@ -5,6 +5,7 @@ import {Dongdong, ArrowRight, CheckNormal, Checked} from '@nutui/icons-react-tar
import {View} from '@tarojs/components'
import {ShopUserAddress} from "@/api/shop/shopUserAddress/model";
import {listShopUserAddress, removeShopUserAddress, updateShopUserAddress} from "@/api/shop/shopUserAddress";
+import FixedButton from "@/components/FixedButton";
const Address = () => {
const [list, setList] = useState([])
@@ -144,17 +145,8 @@ const Address = () => {
/>
))}
-
-
-
+ {/* 底部浮动按钮 */}
+ Taro.navigateTo({url: '/user/address/add'})} />
>
);
};
diff --git a/src/user/address/wxAddress.tsx b/src/user/address/wxAddress.tsx
index 50beeef..30fed0a 100644
--- a/src/user/address/wxAddress.tsx
+++ b/src/user/address/wxAddress.tsx
@@ -2,7 +2,7 @@ import {useEffect} from "react";
import Taro from '@tarojs/taro'
import {addShopUserAddress} from "@/api/shop/shopUserAddress";
-const Address = () => {
+const WxAddress = () => {
/**
* 从微信API获取用户收货地址
* 调用微信原生地址选择界面,获取成功后保存到服务器并刷新列表
@@ -64,4 +64,4 @@ const Address = () => {
);
};
-export default Address;
+export default WxAddress;