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