diff --git a/api/login.js b/api/login.js index edaf1a5..0418cee 100644 --- a/api/login.js +++ b/api/login.js @@ -7,15 +7,20 @@ const userLogin = (params) => { const getCodeImg = (params) => { return request('/captchaImage', params, 'get') } -// 获取图形验证码 +// 获取用户信息 const getInfo = (params) => { return request('/getInfo', params, 'get') } +// 退出登录 +const logout = (params) => { + return request('/logout', params, 'post') +} export { userLogin, getCodeImg, - getInfo + getInfo, + logout } diff --git a/components/BarcodeGenerator.vue b/components/BarcodeGenerator.vue new file mode 100644 index 0000000..189810d --- /dev/null +++ b/components/BarcodeGenerator.vue @@ -0,0 +1,60 @@ + + + + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 2ebf646..76a6634 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,6 +6,7 @@ "": { "dependencies": { "@climblee/uv-ui": "^1.1.20", + "jsbarcode": "^3.12.3", "z-paging": "^2.8.8" }, "devDependencies": { @@ -1034,6 +1035,12 @@ "node": ">= 10.13.0" } }, + "node_modules/jsbarcode": { + "version": "3.12.3", + "resolved": "https://registry.npmmirror.com/jsbarcode/-/jsbarcode-3.12.3.tgz", + "integrity": "sha512-CuHU9hC6dPsHF5oVFMo8NW76uQVjH4L22CsP4hW+dNnGywJHC/B0ThA1CTDVLnxKLrrpYdicBLnd2xsgTfRnvg==", + "license": "MIT" + }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmmirror.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -1519,14 +1526,6 @@ "punycode": "^2.1.0" } }, - "node_modules/uview-ui": { - "version": "2.0.38", - "resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-2.0.38.tgz", - "integrity": "sha512-6egHDf9lXHKpG3hEjRE0vMx4+VWwKk/ReTf5x18KrIKqdvdPRqO3+B8Unh7vYYwrIxzAWIlmhZ9RJpKI/4UqPQ==", - "engines": { - "HBuilderX": "^3.1.0" - } - }, "node_modules/watchpack": { "version": "2.5.1", "resolved": "https://registry.npmmirror.com/watchpack/-/watchpack-2.5.1.tgz", diff --git a/package.json b/package.json index 4d44bba..978e13e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "dependencies": { "@climblee/uv-ui": "^1.1.20", + "jsbarcode": "^3.12.3", "z-paging": "^2.8.8" }, "devDependencies": { diff --git a/pages/my/index.vue b/pages/my/index.vue index 2a101ca..f923b60 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -5,8 +5,7 @@

{{ userInfo?.nickName }}

- -

电网仓储公司

+

{{ userInfo?.dept.deptName }}

@@ -17,13 +16,26 @@ thumb-size="sm" link @click="item.click" clickable /> + + + +

确定退出登录吗?

+ + + + +
+
+
+ + \ No newline at end of file diff --git a/pages/uniqueCode/myUniqueCode/detail.vue b/pages/uniqueCode/myUniqueCode/detail.vue index 94afffd..4d3d64a 100644 --- a/pages/uniqueCode/myUniqueCode/detail.vue +++ b/pages/uniqueCode/myUniqueCode/detail.vue @@ -27,8 +27,10 @@ {{ item.remark }} 未填写

- + + +

@@ -41,7 +43,7 @@ - + @@ -61,7 +63,7 @@

- {{ item.unitName }} @@ -70,8 +72,9 @@ - + @@ -81,30 +84,32 @@ - - + + + + + \ No newline at end of file diff --git a/pages/uniqueCode/until.js b/pages/uniqueCode/until.js index b3a03e8..3eea086 100644 --- a/pages/uniqueCode/until.js +++ b/pages/uniqueCode/until.js @@ -46,6 +46,9 @@ export const getDetail = (info) => { typeName: info.typeName, unitName: info.unitName, typeParentNames: info.typeParentNames, + description: info.description, + weight: info.weight, + kgFactor: info.kgFactor, } diff --git a/static/logo/logo.jpg b/static/logo/logo.jpg new file mode 100644 index 0000000..cfbd233 Binary files /dev/null and b/static/logo/logo.jpg differ diff --git a/styles/theme.scss b/styles/theme.scss index 2539c9f..eba4f11 100644 --- a/styles/theme.scss +++ b/styles/theme.scss @@ -71,4 +71,11 @@ display: flex; align-items: center; justify-content: center; -} \ No newline at end of file +} + +.mt-8{ + margin-top: 8rpx; +} +.mt-16{ + margin-top: 16rpx; +} diff --git a/yarn.lock b/yarn.lock index ebfe774..ca8d16f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -460,6 +460,11 @@ jest-worker@^27.4.5: merge-stream "^2.0.0" supports-color "^8.0.0" +jsbarcode@^3.12.3: + version "3.12.3" + resolved "https://registry.npmmirror.com/jsbarcode/-/jsbarcode-3.12.3.tgz" + integrity sha512-CuHU9hC6dPsHF5oVFMo8NW76uQVjH4L22CsP4hW+dNnGywJHC/B0ThA1CTDVLnxKLrrpYdicBLnd2xsgTfRnvg== + json-parse-even-better-errors@^2.3.1: version "2.3.1" resolved "https://registry.npmmirror.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz"