From 77a1d7fb0296cced3179ca1b5ff8a7f5080bfac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=98=8E=E5=81=A5?= <2161737470@qq.com> Date: Sun, 26 May 2024 23:33:37 +0800 Subject: [PATCH] =?UTF-8?q?vue3=20=E4=BA=AC=E4=B8=9C=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vue3-jingdong-shopping/.gitignore" | 30 + .../.vscode/extensions.json" | 3 + .../vue3-jingdong-shopping/README.md" | 29 + .../vue3-jingdong-shopping/index.html" | 13 + .../vue3-jingdong-shopping/jsconfig.json" | 8 + .../vue3-jingdong-shopping/package-lock.json" | 1213 +++++++++++++++++ .../vue3-jingdong-shopping/package.json" | 22 + .../public/favicon.ico" | Bin 0 -> 4286 bytes .../vue3-jingdong-shopping/src/App.vue" | 11 + .../src/assets/base.css" | 86 ++ .../src/assets/logo.svg" | 1 + .../src/assets/main.css" | 35 + .../src/components/Address/AddressCard.vue" | 35 + .../src/components/Address/createAddress.vue" | 83 ++ .../src/components/Cart/CartButton.vue" | 316 +++++ .../src/components/Cart/CartCard.vue" | 88 ++ .../src/components/Home/NearBy.vue" | 37 + .../src/components/Home/ShopInfo.vue" | 77 ++ .../src/components/Home/StaticPart.vue" | 123 ++ .../src/components/Layout/Tabbar.vue" | 71 + .../src/components/Order/OrderCard.vue" | 83 ++ .../src/components/Shop/Product.vue" | 160 +++ .../vue3-jingdong-shopping/src/main.js" | 16 + .../src/router/index.js" | 67 + .../src/stores/cart.js" | 9 + .../src/stores/counter.js" | 174 +++ .../src/stores/user.js" | 53 + .../src/style/base.scss" | 17 + .../src/style/iconfont.css" | 43 + .../src/style/mixins.scss" | 5 + .../src/style/viriables.scss" | 12 + .../src/views/AddressView/index.vue" | 64 + .../src/views/CartView/index.vue" | 50 + .../src/views/HomeView/index.vue" | 25 + .../src/views/LayoutView/index.vue" | 44 + .../src/views/MyView/index.vue" | 186 +++ .../src/views/OrderView/OrderConfirm.vue" | 222 +++ .../src/views/OrderView/index.vue" | 44 + .../src/views/ShopView/index.vue" | 165 +++ .../vue3-jingdong-shopping/vite.config.js" | 16 + 40 files changed, 3736 insertions(+) create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/.gitignore" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/.vscode/extensions.json" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/README.md" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/index.html" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/jsconfig.json" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/package-lock.json" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/package.json" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/public/favicon.ico" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/App.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/assets/base.css" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/assets/logo.svg" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/assets/main.css" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/components/Address/AddressCard.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/components/Address/createAddress.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/components/Cart/CartButton.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/components/Cart/CartCard.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/components/Home/NearBy.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/components/Home/ShopInfo.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/components/Home/StaticPart.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/components/Layout/Tabbar.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/components/Order/OrderCard.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/components/Shop/Product.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/main.js" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/router/index.js" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/stores/cart.js" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/stores/counter.js" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/stores/user.js" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/style/base.scss" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/style/iconfont.css" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/style/mixins.scss" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/style/viriables.scss" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/views/AddressView/index.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/views/CartView/index.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/views/HomeView/index.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/views/LayoutView/index.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/views/MyView/index.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/views/OrderView/OrderConfirm.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/views/OrderView/index.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/src/views/ShopView/index.vue" create mode 100644 "22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/vite.config.js" diff --git "a/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/.gitignore" "b/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/.gitignore" new file mode 100644 index 0000000..8ee54e8 --- /dev/null +++ "b/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/.gitignore" @@ -0,0 +1,30 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +*.tsbuildinfo diff --git "a/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/.vscode/extensions.json" "b/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/.vscode/extensions.json" new file mode 100644 index 0000000..a7cea0b --- /dev/null +++ "b/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/.vscode/extensions.json" @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar"] +} diff --git "a/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/README.md" "b/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/README.md" new file mode 100644 index 0000000..aa6fdaf --- /dev/null +++ "b/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/README.md" @@ -0,0 +1,29 @@ +# vue3-jingdong-shopping + +This template should help get you started developing with Vue 3 in Vite. + +## Recommended IDE Setup + +[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). + +## Customize configuration + +See [Vite Configuration Reference](https://vitejs.dev/config/). + +## Project Setup + +```sh +npm install +``` + +### Compile and Hot-Reload for Development + +```sh +npm run dev +``` + +### Compile and Minify for Production + +```sh +npm run build +``` diff --git "a/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/index.html" "b/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/index.html" new file mode 100644 index 0000000..99f583a --- /dev/null +++ "b/22 \346\235\216\346\230\216\345\201\245/20240526 vue3\344\272\254\344\270\234\350\264\255\347\211\251\350\275\246/vue3-jingdong-shopping/index.html" @@ -0,0 +1,13 @@ + + +
+ + + +
+ {{ cartCount }}
+
+ {{ item.desc }}
+
+
+
+
+