From 63bb4750121df03b5c6ea6710929479368b4c69b Mon Sep 17 00:00:00 2001 From: caolc <572275724@qq.com> Date: Mon, 29 Aug 2022 09:45:23 +0800 Subject: [PATCH] 11 --- .env.development | 2 +- .env.production | 2 +- README.md | 2 +- package-lock.json | 14 ++- package.json | 14 ++- public/index.html | 6 +- public/logo.png | Bin 0 -> 4116 bytes src/App.vue | 21 +++- src/api/oil-site.js | 8 +- src/components/homeNavBar.vue | 45 +++++-- src/components/listItem.vue | 69 ++++++++--- src/components/paymentlListItem.vue | 30 +++-- src/main.js | 27 +++++ src/permission.js | 30 +++-- src/router/index.js | 7 +- src/store/piniaIndex.js | 86 +++++++++++++- src/utils/addressResolution.js | 5 +- src/utils/encode.js | 4 +- src/utils/mixin.js | 9 ++ src/utils/request.js | 19 ++- src/views/HomeView.vue | 73 ++++++------ src/views/cashier/cashierIndex.vue | 17 +-- src/views/cashier/components/detailsCard.vue | 49 ++++++-- .../cashier/components/detailsCardHeader.vue | 9 +- src/views/cashier/paymentl.vue | 26 ++-- .../orderDetails/components/oilEvaluate.vue | 112 +++++++++++------- src/views/orderDetails/components/oilGun.vue | 108 +++++++++++++++-- .../orderDetails/components/oilLable.vue | 2 +- .../orderDetails/components/oilNextFooter.vue | 35 ++++-- .../components/optionalOilLable.vue | 37 +++--- src/views/orderDetails/nextOrderDetails.vue | 1 + src/views/orderDetails/orderDetailsIndex.vue | 2 +- src/views/personalOrderList/index.vue | 27 +++-- vue.config.js | 75 +++++++++++- 34 files changed, 742 insertions(+), 231 deletions(-) create mode 100644 public/logo.png create mode 100644 src/utils/mixin.js diff --git a/.env.development b/.env.development index 49a0838..dfaf2c7 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_ENCRYPT = 'PUBLIC' VUE_APP_BASE_API = '/api' -VUE_APP_BASE_LSM_API = '/lsm'cls +VUE_APP_BASE_LSM_API = '/lsm' # 文件上传 VUE_APP_UPLOAD_URL = '/api/oil-oss/obejct/uploadFile' VUE_APP_UPLOAD_PRIVATE_URL = '/api/oil-dict/imageHandler/uploadProtectedImg' diff --git a/.env.production b/.env.production index 5c534d9..db9e528 100644 --- a/.env.production +++ b/.env.production @@ -2,7 +2,7 @@ ENV = 'production' # base api VUE_APP_ENCRYPT = 'PRIVATE' - +BASE_URL = '/h5' VUE_APP_BASE_API = '/adminapi' VUE_APP_BASE_LSM_API = '/lsm' # 文件上传 diff --git a/README.md b/README.md index 82b4b07..4bbf788 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# company_h5 +# 星油能源 ## Project setup ``` diff --git a/package-lock.json b/package-lock.json index 0f329e8..bdd4272 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "company_h5", + "name": "星油能源", "version": "0.1.0", "lockfileVersion": 1, "requires": true, @@ -3534,7 +3534,6 @@ "version": "4.3.4", "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, "requires": { "ms": "2.1.2" } @@ -5864,8 +5863,7 @@ "ms": { "version": "2.1.2", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "multicast-dns": { "version": "7.2.5", @@ -7391,6 +7389,14 @@ "ajv-keywords": "^3.5.2" } }, + "script-ext-html-webpack-plugin": { + "version": "2.1.5", + "resolved": "https://registry.npmmirror.com/script-ext-html-webpack-plugin/-/script-ext-html-webpack-plugin-2.1.5.tgz", + "integrity": "sha512-nMjd5dtsnoB8dS+pVM9ZL4mC9O1uVtTxrDS99OGZsZxFbkZE6pw0HCMued/cncDrKivIShO9vwoyOTvsGqQHEQ==", + "requires": { + "debug": "^4.2.0" + } + }, "select-hose": { "version": "2.0.0", "resolved": "https://registry.npmmirror.com/select-hose/-/select-hose-2.0.0.tgz", diff --git a/package.json b/package.json index ac29c4a..a59dc51 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,21 @@ "version": "0.1.0", "private": true, "scripts": { - "serve": "vue-cli-service serve", + "dev": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint" }, + "lint-staged": { + "src/**/*.{js,vue}": [ + "eslint --fix", + "git add" + ] + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, "dependencies": { "amfe-flexible": "^2.2.1", "axios": "^0.27.2", @@ -20,6 +31,7 @@ "postcss-px2rem": "^0.3.0", "postcss-pxtorem": "^5.1.1", "px2rem-loader": "^0.1.9", + "script-ext-html-webpack-plugin": "^2.1.5", "vant": "^2.12.48", "vue": "^2.6.14", "vue-qr": "^4.0.9", diff --git a/public/index.html b/public/index.html index 9f0bb9e..a6d002f 100644 --- a/public/index.html +++ b/public/index.html @@ -6,12 +6,12 @@ - -
vd^-{_wPcxd!TtAi#J||Hc#2+gW<5^KUOv8F~S(cu@u|;6{vl+r9%~1
zv!69|WbBS8f_s_2`x#}g8y<(Iy$uN)7sI4Mwy-Pv!L=ix*m<6B=b~2y;gmna-c5O;
zByWRAtB{*?f7~+6{w*;38O!q#L~idh*C!n)e<2Kb%Sr*2`!h$ug7L;}6ma{DHJ0pk
z2-V6u)9#0*AHm5Zxn7yKLF6JrhbE!4Dr)@I7^^m8s2B2Fhhmfp#O_a6U9|3NcxQ-Z
zFO7