提交 74cb1d15 authored 作者: 刘旭's avatar 刘旭

。。

上级 750862dc
...@@ -31,18 +31,9 @@ ...@@ -31,18 +31,9 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue'; import { ref } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import { addressList } from '@/api/index'; import { addressList } from '@/api/index';
const refreshIfNeeded = ref(false);
const siteList = ref([] as any); const siteList = ref([] as any);
// const cartId = ref();
// onLoad((options: any) => {
// cartId.value = JSON.parse(options.cartId);
// console.log(cartId.value);
// });
// 新增地址
const toAddSite = () => { const toAddSite = () => {
uni.navigateTo({ uni.navigateTo({
...@@ -50,14 +41,6 @@ const toAddSite = () => { ...@@ -50,14 +41,6 @@ const toAddSite = () => {
}); });
}; };
onShow(() => {
console.log(refreshIfNeeded.value);
if (refreshIfNeeded.value) {
initAddressLit();
refreshIfNeeded.value = false;
}
});
// 设置地址 // 设置地址
const setAddress = (id: any) => { const setAddress = (id: any) => {
setTimeout(() => { setTimeout(() => {
...@@ -89,9 +72,6 @@ uni.$on('initAddress', () => { ...@@ -89,9 +72,6 @@ uni.$on('initAddress', () => {
initAddressLit() initAddressLit()
}) })
defineExpose({
refreshIfNeeded,
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论