From d3b34e6af83b3a7cee4c111e52677b37cb94ae86 Mon Sep 17 00:00:00 2001 From: xuechunyuan <17853500702@163.com> Date: Mon, 6 Feb 2023 09:20:20 +0800 Subject: [PATCH] init --- package.json | 2 + public/index.html | 67 +++++++++++++++++------ src/App.vue | 21 ++------ src/components/Guidance.vue | 104 ++++++++++++++++++++++++++++++++++++ src/main.js | 5 ++ src/views/HomeView.vue | 71 +++++++++++++++++++++--- vue.config.js | 1 + yarn.lock | 35 +++++++++++- 8 files changed, 264 insertions(+), 42 deletions(-) create mode 100644 src/components/Guidance.vue diff --git a/package.json b/package.json index 9a479e9..4830f0f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ }, "dependencies": { "core-js": "^3.8.3", + "vant": "^2.12.53", "vue": "^2.6.14", + "vue-axios": "^3.5.2", "vue-router": "^3.5.1", "vuex": "^3.6.2" }, diff --git a/public/index.html b/public/index.html index 3e5a139..ef8ab0f 100644 --- a/public/index.html +++ b/public/index.html @@ -1,17 +1,54 @@ - - - - - - <%= htmlWebpackPlugin.options.title %> - - - -
- - - + + + + + + + + <%= htmlWebpackPlugin.options.title %> + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 0c69ed8..04644e2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,32 +1,17 @@ diff --git a/src/components/Guidance.vue b/src/components/Guidance.vue new file mode 100644 index 0000000..ba47e65 --- /dev/null +++ b/src/components/Guidance.vue @@ -0,0 +1,104 @@ + + + + + + diff --git a/src/main.js b/src/main.js index 6c9e622..d5b9918 100644 --- a/src/main.js +++ b/src/main.js @@ -3,6 +3,11 @@ import App from "./App.vue"; import router from "./router"; import store from "./store"; +import vant from "vant"; +import "vant/lib/index.css"; + +Vue.use(vant); + Vue.config.productionTip = false; new Vue({ diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 318e397..5499348 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,18 +1,75 @@ - + diff --git a/vue.config.js b/vue.config.js index 0aed899..aaf30b2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,5 @@ const { defineConfig } = require("@vue/cli-service"); module.exports = defineConfig({ + lintOnSave: false, transpileDependencies: true, }); diff --git a/yarn.lock b/yarn.lock index d936ebe..9d3437e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -925,7 +925,7 @@ "@babel/types" "^7.4.4" esutils "^2.0.2" -"@babel/runtime@^7.12.13", "@babel/runtime@^7.8.4": +"@babel/runtime@7.x", "@babel/runtime@^7.12.13", "@babel/runtime@^7.8.4": version "7.20.13" resolved "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.20.13.tgz#7055ab8a7cff2b8f6058bf6ae45ff84ad2aded4b" integrity sha512-gt3PKXs0DBoL9xCvOIIZ2NEqAGZqHjAnmVbfQtB620V0uReIQutpel14KcneZuer7UioY8ALKZ7iocavvzTNFA== @@ -1298,7 +1298,17 @@ dependencies: "@types/node" "*" -"@vue/babel-helper-vue-jsx-merge-props@^1.4.0": +"@vant/icons@^1.7.1": + version "1.8.0" + resolved "https://registry.npmmirror.com/@vant/icons/-/icons-1.8.0.tgz#36b13f2e628b533f6523a93a168cf02f07056674" + integrity sha512-sKfEUo2/CkQFuERxvkuF6mGQZDKu3IQdj5rV9Fm0weJXtchDSSQ+zt8qPCNUEhh9Y8shy5PzxbvAfOOkCwlCXg== + +"@vant/popperjs@^1.1.0": + version "1.3.0" + resolved "https://registry.npmmirror.com/@vant/popperjs/-/popperjs-1.3.0.tgz#e0eff017124b5b2352ef3b36a6df06277f4400f2" + integrity sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw== + +"@vue/babel-helper-vue-jsx-merge-props@^1.0.0", "@vue/babel-helper-vue-jsx-merge-props@^1.4.0": version "1.4.0" resolved "https://registry.npmmirror.com/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.4.0.tgz#8d53a1e21347db8edbe54d339902583176de09f2" integrity sha512-JkqXfCkUDp4PIlFdDQ0TdXoIejMtTHP67/pvxlgeY+u5k3LEdKuWZ3LK6xkxo52uDoABIVyRwqVkfLQJhk7VBA== @@ -5721,11 +5731,27 @@ validate-npm-package-license@^3.0.1: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" +vant@^2.12.53: + version "2.12.53" + resolved "https://registry.npmmirror.com/vant/-/vant-2.12.53.tgz#d8cc479a044c415b2e3d216a41ee3b7857730770" + integrity sha512-f/wSWMCm/fd8bvm2QfPkpPqYUn8gwmBGw3DxAUPSTd/5prc1cRn23HEak8LDMJ5FmfW9mp7G5vdGlnEYCtww8Q== + dependencies: + "@babel/runtime" "7.x" + "@vant/icons" "^1.7.1" + "@vant/popperjs" "^1.1.0" + "@vue/babel-helper-vue-jsx-merge-props" "^1.0.0" + vue-lazyload "1.2.3" + vary@~1.1.2: version "1.1.2" resolved "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== +vue-axios@^3.5.2: + version "3.5.2" + resolved "https://registry.npmmirror.com/vue-axios/-/vue-axios-3.5.2.tgz#28637524cca550a9e97197e85a41930ec63604d5" + integrity sha512-GP+dct7UlAWkl1qoP3ppw0z6jcSua5/IrMpjB5O8bh089iIiJ+hdxPYH2NPEpajlYgkW5EVMP95ttXWdas1O0g== + vue-eslint-parser@^8.0.1: version "8.3.0" resolved "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-8.3.0.tgz#5d31129a1b3dd89c0069ca0a1c88f970c360bd0d" @@ -5744,6 +5770,11 @@ vue-hot-reload-api@^2.3.0: resolved "https://registry.npmmirror.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2" integrity sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog== +vue-lazyload@1.2.3: + version "1.2.3" + resolved "https://registry.npmmirror.com/vue-lazyload/-/vue-lazyload-1.2.3.tgz#901f9ec15c7e6ca78781a2bae4a343686bdedb2c" + integrity sha512-DC0ZwxanbRhx79tlA3zY5OYJkH8FYp3WBAnAJbrcuoS8eye1P73rcgAZhyxFSPUluJUTelMB+i/+VkNU/qVm7g== + vue-loader@^17.0.0: version "17.0.1" resolved "https://registry.npmmirror.com/vue-loader/-/vue-loader-17.0.1.tgz#c0ee8875e0610a0c2d13ba9b4d50a9c8442e7a3a"