├── .browserslistrc ├── public ├── favicon.ico └── index.html ├── src ├── assets │ └── logo.png ├── main.js └── App.vue ├── babel.config.js ├── release.sh ├── README.md ├── .gitignore ├── jsconfig.json ├── package.json └── vue.config.js /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | not dead 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanwencc/car-list/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanwencc/car-list/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | 4 | Vue.config.productionTip = false 5 | 6 | new Vue({ 7 | render: h => h(App), 8 | }).$mount('#app') 9 | -------------------------------------------------------------------------------- /release.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 确保脚本抛出遇到的错误 4 | set -e 5 | 6 | # 生成静态文件 7 | npm run build 8 | 9 | 10 | # 进入生成的文件夹 11 | cd dist 12 | 13 | git init -b dist 14 | git add -A 15 | git commit -m "deploy | $(date +'%Y-%m-%d %H:%M:%S')" 16 | 17 | 18 | git push -f git@github.com:Hanwencc/car-list.git dist:dist -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # choose-car 2 | 3 | ## 使用ui 4 | ```js 5 | https://opentiny.design/ 6 | ``` 7 | 8 | ## 启动 9 | ```js 10 | npm run serve 11 | ``` 12 | 13 | ## 编译 14 | ```js 15 | npm run build 16 | ``` 17 | 18 | ## 说明 19 | ``` 20 | 编译后的默认路径为 '/list' 21 | 如需修改路径 22 | 请求改 vue.config.js 23 | publicPath: "/list" 24 | ``` 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | dist.zip 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | pnpm-debug.log* 14 | /dist 15 | # Editor directories and files 16 | .idea 17 | .vscode 18 | *.suo 19 | *.ntvs* 20 | *.njsproj 21 | *.sln 22 | *.sw? 23 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "module": "esnext", 5 | "baseUrl": "./", 6 | "moduleResolution": "node", 7 | "paths": { 8 | "@/*": [ 9 | "src/*" 10 | ] 11 | }, 12 | "lib": [ 13 | "esnext", 14 | "dom", 15 | "dom.iterable", 16 | "scripthost" 17 | ] 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "choose-car", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build" 8 | }, 9 | "dependencies": { 10 | "@opentiny/vue": "^2.13.0", 11 | "axios": "^1.6.5", 12 | "core-js": "^3.8.3", 13 | "vue": "^2.6.14" 14 | }, 15 | "devDependencies": { 16 | "@vue/cli-plugin-babel": "~5.0.0", 17 | "@vue/cli-service": "~5.0.0", 18 | "vue-template-compiler": "^2.6.14" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | const { defineConfig } = require("@vue/cli-service"); 2 | module.exports = defineConfig({ 3 | transpileDependencies: true, 4 | //打包后不生成.map文件 5 | productionSourceMap: false, 6 | publicPath: "/list", 7 | //配置请求proxy 8 | devServer: { 9 | proxy: { 10 | "/carpage": { 11 | target: "https://share.xyhelper.com.cn", 12 | changeOrigin: true, 13 | ws: true, 14 | autoRewrite: true, 15 | cookieDomainRewrite: true, 16 | }, 17 | }, 18 | }, 19 | }); 20 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | <%= htmlWebpackPlugin.options.title %> 9 | 10 | 11 | 18 |
19 | 20 | 21 | 22 | 24 | 25 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 93 | 94 | 212 | 213 | 244 | --------------------------------------------------------------------------------