From ead30c3479e84bfbe0e2c831bd555c7426cec86e Mon Sep 17 00:00:00 2001
From: denghaohaoya <1725652099@qq.com>
Date: Fri, 27 Mar 2026 00:18:36 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/translation.js | 11 +
manifest.json | 2 +-
pages.json | 6 +
pages/addProduct/addProduct.vue | 167 +++++++-
pages/index.vue | 9 +-
pages/product/product.vue | 10 +-
pages/translation/translation.vue | 636 ++++++++++++++++++++++++++++++
utils/api.js | 3 +
8 files changed, 818 insertions(+), 26 deletions(-)
create mode 100644 api/translation.js
create mode 100644 pages/translation/translation.vue
create mode 100644 utils/api.js
diff --git a/api/translation.js b/api/translation.js
new file mode 100644
index 0000000..7f04f12
--- /dev/null
+++ b/api/translation.js
@@ -0,0 +1,11 @@
+import request from '@/utils/request'
+
+// 根据用户ID查询门店列表
+export function PostData(data) {
+ return request({
+ baseUrl: 'http://193.112.94.36:8081',
+ url: `/mall/product/getByBarcodes`,
+ method: 'post',
+ data:data
+ })
+}
diff --git a/manifest.json b/manifest.json
index 57b5fab..c6853c2 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name" : "海驰24",
- "appid" : "__UNI__B012241",
+ "appid" : "__UNI__7302921",
"description" : "111",
"versionName" : "1.2.0",
"versionCode" : "100",
diff --git a/pages.json b/pages.json
index 6c0dc85..b6ce579 100644
--- a/pages.json
+++ b/pages.json
@@ -28,6 +28,12 @@
"style": {
"navigationBarTitleText": ""
}
+},
+{
+ "path": "pages/translation/translation",
+ "style": {
+ "navigationBarTitleText": "录入清单"
+ }
}
],
"subPackages": [
diff --git a/pages/addProduct/addProduct.vue b/pages/addProduct/addProduct.vue
index 5d69fef..8534a24 100644
--- a/pages/addProduct/addProduct.vue
+++ b/pages/addProduct/addProduct.vue
@@ -177,7 +177,7 @@
临期提醒天数
- {{ warningDaysDisplay }}
+ {{ productInfo.shelfLife }}
天
@@ -222,11 +222,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+
+
+
+
+
+
+
diff --git a/utils/api.js b/utils/api.js
new file mode 100644
index 0000000..5236e99
--- /dev/null
+++ b/utils/api.js
@@ -0,0 +1,3 @@
+const apiUrl = 'http://193.112.94.36:8081'
+
+ export default apiUrl
\ No newline at end of file