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