feat: 去除参数
parent
cafe33d233
commit
88555d37bf
|
|
@ -11,42 +11,32 @@ declare module 'vue' {
|
||||||
BackButton: typeof import('./src/components/back-button/index.vue')['default']
|
BackButton: typeof import('./src/components/back-button/index.vue')['default']
|
||||||
Carte: typeof import('./src/components/restaurant-cart/carte.vue')['default']
|
Carte: typeof import('./src/components/restaurant-cart/carte.vue')['default']
|
||||||
CheckoutBtn: typeof import('./src/components/restaurant-cart/checkout-btn.vue')['default']
|
CheckoutBtn: typeof import('./src/components/restaurant-cart/checkout-btn.vue')['default']
|
||||||
ChooseLoation: typeof import('./src/components/checkout/chooseLoation.vue')['default']
|
|
||||||
ChooseLocation: typeof import('./src/components/checkout/chooseLocation.vue')['default']
|
ChooseLocation: typeof import('./src/components/checkout/chooseLocation.vue')['default']
|
||||||
ChoosePeople: typeof import('./src/components/checkout/choosePeople.vue')['default']
|
ChoosePeople: typeof import('./src/components/checkout/choosePeople.vue')['default']
|
||||||
ChooseTime: typeof import('./src/components/checkout/chooseTime.vue')['default']
|
ChooseTime: typeof import('./src/components/checkout/chooseTime.vue')['default']
|
||||||
ElDivider: typeof import('element-plus/es')['ElDivider']
|
|
||||||
HealthCare: typeof import('./src/components/shopping-cart/health-care.vue')['default']
|
|
||||||
NutActionSheet: typeof import('@nutui/nutui')['ActionSheet']
|
NutActionSheet: typeof import('@nutui/nutui')['ActionSheet']
|
||||||
NutBadge: typeof import('@nutui/nutui')['Badge']
|
NutBadge: typeof import('@nutui/nutui')['Badge']
|
||||||
NutButton: typeof import('@nutui/nutui')['Button']
|
NutButton: typeof import('@nutui/nutui')['Button']
|
||||||
NutCalendar: typeof import('@nutui/nutui')['Calendar']
|
NutCalendar: typeof import('@nutui/nutui')['Calendar']
|
||||||
NutCard: typeof import('@nutui/nutui')['Card']
|
|
||||||
NutCell: typeof import('@nutui/nutui')['Cell']
|
NutCell: typeof import('@nutui/nutui')['Cell']
|
||||||
NutCellGroup: typeof import('@nutui/nutui')['CellGroup']
|
NutCellGroup: typeof import('@nutui/nutui')['CellGroup']
|
||||||
NutCheckbox: typeof import('@nutui/nutui')['Checkbox']
|
NutCheckbox: typeof import('@nutui/nutui')['Checkbox']
|
||||||
NutCheckboxGroup: typeof import('@nutui/nutui')['CheckboxGroup']
|
|
||||||
NutDivider: typeof import('@nutui/nutui')['Divider']
|
NutDivider: typeof import('@nutui/nutui')['Divider']
|
||||||
NutDrag: typeof import('@nutui/nutui')['Drag']
|
NutDrag: typeof import('@nutui/nutui')['Drag']
|
||||||
NutElevator: typeof import('@nutui/nutui')['Elevator']
|
NutElevator: typeof import('@nutui/nutui')['Elevator']
|
||||||
NutForm: typeof import('@nutui/nutui')['Form']
|
NutForm: typeof import('@nutui/nutui')['Form']
|
||||||
NutFormItem: typeof import('@nutui/nutui')['FormItem']
|
NutFormItem: typeof import('@nutui/nutui')['FormItem']
|
||||||
NutGrid: typeof import('@nutui/nutui')['Grid']
|
|
||||||
NutGridItem: typeof import('@nutui/nutui')['GridItem']
|
|
||||||
NutImage: typeof import('@nutui/nutui')['Image']
|
|
||||||
NutImagePreview: typeof import('@nutui/nutui')['ImagePreview']
|
NutImagePreview: typeof import('@nutui/nutui')['ImagePreview']
|
||||||
NutInput: typeof import('@nutui/nutui')['Input']
|
NutInput: typeof import('@nutui/nutui')['Input']
|
||||||
NutInputNumber: typeof import('@nutui/nutui')['InputNumber']
|
NutInputNumber: typeof import('@nutui/nutui')['InputNumber']
|
||||||
NutList: typeof import('@nutui/nutui')['List']
|
NutList: typeof import('@nutui/nutui')['List']
|
||||||
NutMenu: typeof import('@nutui/nutui')['Menu']
|
NutMenu: typeof import('@nutui/nutui')['Menu']
|
||||||
NutMenuItem: typeof import('@nutui/nutui')['MenuItem']
|
NutMenuItem: typeof import('@nutui/nutui')['MenuItem']
|
||||||
NutNavbar: typeof import('@nutui/nutui')['Navbar']
|
|
||||||
NutPopup: typeof import('@nutui/nutui')['Popup']
|
NutPopup: typeof import('@nutui/nutui')['Popup']
|
||||||
NutPrice: typeof import('@nutui/nutui')['Price']
|
NutPrice: typeof import('@nutui/nutui')['Price']
|
||||||
NutRadio: typeof import('@nutui/nutui')['Radio']
|
NutRadio: typeof import('@nutui/nutui')['Radio']
|
||||||
NutRadioGroup: typeof import('@nutui/nutui')['RadioGroup']
|
NutRadioGroup: typeof import('@nutui/nutui')['RadioGroup']
|
||||||
NutSearchbar: typeof import('@nutui/nutui')['Searchbar']
|
NutSearchbar: typeof import('@nutui/nutui')['Searchbar']
|
||||||
NutSticky: typeof import('@nutui/nutui')['Sticky']
|
|
||||||
NutSwiper: typeof import('@nutui/nutui')['Swiper']
|
NutSwiper: typeof import('@nutui/nutui')['Swiper']
|
||||||
NutSwiperItem: typeof import('@nutui/nutui')['SwiperItem']
|
NutSwiperItem: typeof import('@nutui/nutui')['SwiperItem']
|
||||||
NutSwitch: typeof import('@nutui/nutui')['Switch']
|
NutSwitch: typeof import('@nutui/nutui')['Switch']
|
||||||
|
|
@ -57,9 +47,6 @@ declare module 'vue' {
|
||||||
NutTextarea: typeof import('@nutui/nutui')['Textarea']
|
NutTextarea: typeof import('@nutui/nutui')['Textarea']
|
||||||
NutToast: typeof import('@nutui/nutui')['Toast']
|
NutToast: typeof import('@nutui/nutui')['Toast']
|
||||||
NutUploader: typeof import('@nutui/nutui')['Uploader']
|
NutUploader: typeof import('@nutui/nutui')['Uploader']
|
||||||
NutVideo: typeof import('@nutui/nutui')['Video']
|
|
||||||
Product: typeof import('./src/components/shopping-cart/product.vue')['default']
|
|
||||||
ResaurantBtn: typeof import('./src/components/restaurant-cart/resaurant-btn.vue')['default']
|
|
||||||
RestaurantCart: typeof import('./src/components/restaurant-cart/index.vue')['default']
|
RestaurantCart: typeof import('./src/components/restaurant-cart/index.vue')['default']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useUserStore } from "@/store/user";
|
// import { useUserStore } from "@/store/user";
|
||||||
import { X, PencilLine, CirclePlus, Check } from "lucide-vue-next";
|
import { X, PencilLine, CirclePlus, Check } from "lucide-vue-next";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const userStore = useUserStore();
|
// const userStore = useUserStore();
|
||||||
const recvAddrList = ref([
|
const recvAddrList = ref([
|
||||||
{ name: "王大力(女,67岁)", phone: "310108196005127765", isDefault: true },
|
{ name: "王大力(女,67岁)", phone: "310108196005127765", isDefault: true },
|
||||||
{ name: "王小力(女,67岁)", phone: "310108196005127765", isDefault: false },
|
{ name: "王小力(女,67岁)", phone: "310108196005127765", isDefault: false },
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
const shoppingCartStore = useShoppingCartStore();
|
const shoppingCartStore = useShoppingCartStore();
|
||||||
|
|
||||||
const props = defineProps({
|
defineProps({
|
||||||
carte: {
|
carte: {
|
||||||
type: Array as PropType<any[]>,
|
type: Array as PropType<any[]>,
|
||||||
default: () => [],
|
default: () => [],
|
||||||
|
|
@ -52,14 +52,14 @@
|
||||||
console.log("onScrollBottom");
|
console.log("onScrollBottom");
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleMinus = (event: any, item: any) => {
|
const handleMinus = (_event: any, item: any) => {
|
||||||
const orderCount = Number(item.count) - 1;
|
const orderCount = Number(item.count) - 1;
|
||||||
if(orderCount <= 0){
|
if(orderCount <= 0){
|
||||||
shoppingCartStore.removeShoppingCart(item.id);
|
shoppingCartStore.removeShoppingCart(item.id);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handlePlus = (item: any) => {
|
const handlePlus = (_item: any) => {
|
||||||
// console.log("handlePlus", item);
|
// console.log("handlePlus", item);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const handleLock = (id: string) => {
|
const handleLock = (_id: string) => {
|
||||||
router.push({name:'courses-cart',params:{id:route.params.id as string}})
|
router.push({name:'courses-cart',params:{id:route.params.id as string}})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
const searchText = ref("");
|
const searchText = ref("");
|
||||||
let suggestTimer: any = null;
|
let suggestTimer: any = null;
|
||||||
const suggestList = ref([]);
|
const suggestList = ref([]);
|
||||||
function onInput(val: string) {
|
function onInput(_val: string) {
|
||||||
if (suggestTimer) clearTimeout(suggestTimer);
|
if (suggestTimer) clearTimeout(suggestTimer);
|
||||||
suggestTimer = setTimeout(() => {
|
suggestTimer = setTimeout(() => {
|
||||||
fetchSuggest();
|
fetchSuggest();
|
||||||
|
|
|
||||||
|
|
@ -121,9 +121,9 @@
|
||||||
{ id: 2, name: "否" },
|
{ id: 2, name: "否" },
|
||||||
];
|
];
|
||||||
|
|
||||||
const toMap = () => {
|
// const toMap = () => {
|
||||||
router.push({ path: "/location/map" });
|
// router.push({ path: "/location/map" });
|
||||||
};
|
// };
|
||||||
|
|
||||||
const goBack = () => {
|
const goBack = () => {
|
||||||
router.back();
|
router.back();
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ import { showToast } from "@nutui/nutui";
|
||||||
address.value.splice(index,1)
|
address.value.splice(index,1)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleRadioChange = (val:number) => {
|
const handleRadioChange = (_val:number) => {
|
||||||
postRequest(setUserDefaultAddress()).then(()=>{
|
postRequest(setUserDefaultAddress()).then(()=>{
|
||||||
showToast.text("修改成功")
|
showToast.text("修改成功")
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ import { CartTypeEnum } from "@/types/cart";
|
||||||
const onClear = () => {
|
const onClear = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const onInput = (val: string) => {
|
const onInput = (_val: string) => {
|
||||||
};
|
};
|
||||||
watch(() => activeTab.value,(newVal) => {
|
watch(() => activeTab.value,(newVal) => {
|
||||||
switch(newVal){
|
switch(newVal){
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
val.value = index + 1;
|
val.value = index + 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
const productionImgs = ref<string[]>([]);
|
// const productionImgs = ref<string[]>([]);
|
||||||
|
|
||||||
const state = reactive<{ showPreview: boolean; imgData: { src: string }[] }>({
|
const state = reactive<{ showPreview: boolean; imgData: { src: string }[] }>({
|
||||||
showPreview: false,
|
showPreview: false,
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
const activeMenu = ref(0);
|
const activeMenu = ref(0);
|
||||||
|
|
||||||
const useProductCategory = () => {
|
const useProductCategory = () => {
|
||||||
getRequest(getProductCategory()).then((resp) => {});
|
getRequest(getProductCategory()).then((_resp) => {});
|
||||||
};
|
};
|
||||||
useProductCategory();
|
useProductCategory();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue