diff --git a/locale/en.json b/locale/en.json
index 8064dfe..1abf135 100644
--- a/locale/en.json
+++ b/locale/en.json
@@ -3,24 +3,9 @@
"locale.en": "English",
"locale.zh-hans": "简体中文",
"locale.zh-hant": "繁体中文",
- "locale.ja": "日语",
- "index.title": "Hello i18n",
- "index.home": "Home",
- "index.component": "Component",
- "index.api": "API",
- "index.schema": "Schema",
- "index.demo": "uni-app globalization",
- "index.demo-description": "Include uni-framework, manifest.json, pages.json, tabbar, Page, Component, API, Schema",
- "index.detail": "Detail",
"index.language": "Language",
"index.language-info": "Settings",
"index.system-language": "System language",
- "index.application-language": "Application language",
- "index.language-change-confirm": "Applying this setting will restart the app",
- "api.message": "Message",
- "schema.name": "Name",
- "schema.add": "Add",
- "schema.add-success": "Add success",
"hdk.productInformation":"ProductInformation",
"hdk.inspectionInformation":"InspectionInformation",
"hdk.attachmentInformation":"AttachmentInformation",
@@ -31,7 +16,7 @@
"hdk.gohome":"Click back to Home",
"hdk.ProductInformation":"productInformation",
"hdk.SnCode":"SNcode",
- "hdk.ProductName":"productName",
+ "hdk.ProductName":"ProductName",
"hdk.Model":"Model",
"hdk.DateOfProduction":"DateOfProduction",
"hdk.ProductionPersonnel":"ProductionPersonnel",
@@ -60,5 +45,25 @@
"hdk.Email":"Email",
"hdk.DetailedAddress":"DetailedAddress(e.g.**Street**)",
"hdk.ConfirmAndReport":"ConfirmAndReport",
- "hdk.Repair":"Repair"
+ "hdk.Repair":"Repair",
+ "hdk.noFile":"NoFiles",
+ "hdk.Check":"Check",
+ "hdk.Reminder":"WarmReminder",
+ "hdk.Confirm":"Confirm",
+ "hdk.PromptContent":"Confirm submission of this content",
+ "hdk.Cancel":"Cancel",
+ "hdk.QRCodeContent":"Two-dimensional code content",
+ "hdk.ErrorPrompt1":"The current SN code does not exist, please scan the correct QR code",
+ "hdk.ErrorPrompt2":"The current SN code format is incorrect. Please scan the correct QR code",
+ "hdk.Rescan":"Rescan",
+ "hdk.FillSNCode":"Please enter the SN code",
+ "hdk.FillProductName":"Please fill in the product name",
+ "hdk.FillName":"Please fill in the name",
+ "hdk.FillEmail":"Please fill in the correct email address",
+ "hdk.FillDescription":"Please fill in the description or upload a picture",
+ "hdk.FillAirportName":"Please fill in the airport name",
+ "hdk.Uploading":"Uploading",
+ "hdk.SuccessfullyReported":"Report successfully",
+ "hdk.CheckSN":"Check whether the SN code is correct",
+ "hdk.CheckForUnfilledItems":"Check the blanks"
}
diff --git a/locale/zh-Hans.json b/locale/zh-Hans.json
index d3e6121..a24b8e7 100644
--- a/locale/zh-Hans.json
+++ b/locale/zh-Hans.json
@@ -3,24 +3,9 @@
"locale.en": "English",
"locale.zh-hans": "简体中文",
"locale.zh-hant": "繁体中文",
- "locale.ja": "日语",
- "index.title": "Hello i18n",
- "index.home": "主页",
- "index.component": "组件",
- "index.api": "API",
- "index.schema": "Schema",
- "index.demo": "uni-app 国际化演示",
- "index.demo-description": "包含 uni-framework、manifest.json、pages.json、tabbar、页面、组件、API、Schema",
- "index.detail": "详情",
"index.language": "语言",
"index.language-info": "语言信息",
"index.system-language": "系统语言",
- "index.application-language": "应用语言",
- "index.language-change-confirm": "应用此设置将重启App",
- "api.message": "提示",
- "schema.name": "姓名",
- "schema.add": "新增",
- "schema.add-success": "新增成功",
"hdk.productInformation":"产品信息",
"hdk.inspectionInformation":"检验信息",
"hdk.attachmentInformation":"附件信息",
@@ -54,12 +39,31 @@
"hdk.Basicinformation":"基本信息",
"hdk.ProblemDescription":"问题描述",
"hdk.DescriptionPlaceholder":"请将所遇问题情况和具体位置描述准确,更有利于解决。",
- "hdk.ContactInformation":"联系方式",
"hdk.AirportName":"机场名",
"hdk.Name":"姓名",
"hdk.ContactInformations":"联系方式",
"hdk.Email":"邮箱",
"hdk.DetailedAddress":"详细地址(例如**街**号)",
"hdk.ConfirmAndReport":"确认并上报",
- "hdk.Repair":"维护报修"
+ "hdk.Repair":"维护报修",
+ "hdk.noFile":"无文件",
+ "hdk.Check":"查看",
+ "hdk.Reminder":"温馨提示",
+ "hdk.Confirm":"确认",
+ "hdk.PromptContent":"确定提交此内容",
+ "hdk.Cancel":"取消",
+ "hdk.QRCodeContent":"二维码内容",
+ "hdk.ErrorPrompt1":"当前SN码不存在,请扫描正确的二维码",
+ "hdk.ErrorPrompt2":"当前SN码格式不正确,请扫描正确的二维码",
+ "hdk.Rescan":"重新扫描",
+ "hdk.FillSNCode":"请填写SN码",
+ "hdk.FillProductName":"请填写产品名称",
+ "hdk.FillName":"请填写名称",
+ "hdk.FillEmail":"请填写正确的邮箱",
+ "hdk.FillDescription":"请填写描述或上传图片",
+ "hdk.FillAirportName":"请填写机场名",
+ "hdk.Uploading":"上传中",
+ "hdk.SuccessfullyReported":"上报成功",
+ "hdk.CheckSN":"请检查SN码是否正确",
+ "hdk.CheckForUnfilledItems":"检查未填项"
}
\ No newline at end of file
diff --git a/mobile/pages/component/QrScan.vue b/mobile/pages/component/QrScan.vue
index 00ebc06..4479fa3 100644
--- a/mobile/pages/component/QrScan.vue
+++ b/mobile/pages/component/QrScan.vue
@@ -50,7 +50,11 @@
}, {
fps: 10, // 设置每秒多少帧
aspectRatio: 1,
- qrbox: 250 // 设置取景范围
+ qrbox: 250, // 设置取景范围
+ colorDark: '#0000ff', //加深二维码黑色部分的颜色提高识别度
+ colorLight: '#ffffff', //这个应该是提高非黑即白部分的亮度 提高识别度
+ visualFeedback: true, //开启视觉反馈 没有体会到
+ halfSample: true, //缩小二维码提高识别精度吧
},
(decodedText) => {
this.$emit('ok', decodedText);
@@ -81,9 +85,10 @@
\ No newline at end of file
diff --git a/mobile/pages/product/invalidCode.vue b/mobile/pages/product/invalidCode.vue
index 9ba3395..53180d2 100644
--- a/mobile/pages/product/invalidCode.vue
+++ b/mobile/pages/product/invalidCode.vue
@@ -5,7 +5,7 @@
- 二维码内容:{{snCode}}
+ {{$t('hdk.QRCodeContent')}}:{{snCode}}