feat: 支持消费者按实物点击生成天河链存证证书
This commit is contained in:
@@ -806,7 +806,9 @@
|
||||
"tianheVerifyOk": "Verified. On-chain identity saved",
|
||||
"tianheManualHint": "Enter the saved User ID and User Key. The system verifies them with TiChain before saving (for reusing the existing wallet after reinstall/migration).",
|
||||
"tianheManualUserIdPh": "e.g. artveris-platform",
|
||||
"tianheManualUserKeyPh": "The User Key you saved offline"
|
||||
"tianheManualUserKeyPh": "The User Key you saved offline",
|
||||
"certificateEnabled": "On-demand certificates",
|
||||
"certificateDailyLimit": "Daily new certificate limit"
|
||||
},
|
||||
"profile": {
|
||||
"title": "Personal Info",
|
||||
|
||||
@@ -806,7 +806,9 @@
|
||||
"tianheVerifyOk": "校验通过,链上身份已保存",
|
||||
"tianheManualHint": "输入已保存的 User ID 与 User Key,系统将向天河链校验后保存(用于重装/迁移后复用既有钱包)。",
|
||||
"tianheManualUserIdPh": "如 artveris-platform",
|
||||
"tianheManualUserKeyPh": "已离线保存的 User Key"
|
||||
"tianheManualUserKeyPh": "已离线保存的 User Key",
|
||||
"certificateEnabled": "扫码页按需出证",
|
||||
"certificateDailyLimit": "每日新增证书上限"
|
||||
},
|
||||
"profile": {
|
||||
"title": "个人信息",
|
||||
|
||||
@@ -93,6 +93,12 @@
|
||||
<n-form-item :label="t('pages.settings.blockchainDriver')">
|
||||
<n-select v-model:value="form.blockchainDriver" :options="blockchainDriverOptions" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('pages.settings.certificateEnabled')">
|
||||
<n-switch v-model:value="form.certificateEnabled" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('pages.settings.certificateDailyLimit')">
|
||||
<n-input-number v-model:value="form.certificateDailyLimit" :min="0" :max="10000" :precision="0" />
|
||||
</n-form-item>
|
||||
<n-form-item :label="t('pages.settings.tianheEnv')">
|
||||
<n-select v-model:value="form.tianheEnv" :options="tianheEnvOptions" @update:value="onTianheEnvChange" />
|
||||
</n-form-item>
|
||||
@@ -317,6 +323,8 @@ const form = reactive({
|
||||
backupRetentionCount: 10,
|
||||
blockchainDriver: 'mock',
|
||||
tianheEnv: 'test',
|
||||
certificateEnabled: true,
|
||||
certificateDailyLimit: 100,
|
||||
tianheBaseUrl: TIANHE_TEST_URL,
|
||||
tianheAppId: '',
|
||||
tianheAppKey: '',
|
||||
@@ -362,6 +370,8 @@ async function load() {
|
||||
form.backupRetentionCount = Number(s.backupRetentionCount || 10);
|
||||
form.blockchainDriver = s.blockchainDriver || 'mock';
|
||||
form.tianheEnv = s.tianheEnv || 'test';
|
||||
form.certificateEnabled = s.certificateEnabled !== 'false';
|
||||
form.certificateDailyLimit = Number(s.certificateDailyLimit ?? '100');
|
||||
form.tianheBaseUrl = s.tianheBaseUrl || TIANHE_TEST_URL;
|
||||
form.tianheAppId = s.tianheAppId || '';
|
||||
form.tianheAppKey = s.tianheAppKey || '';
|
||||
@@ -551,6 +561,8 @@ async function save() {
|
||||
backupRetentionCount: String(form.backupRetentionCount),
|
||||
blockchainDriver: form.blockchainDriver,
|
||||
tianheEnv: form.tianheEnv,
|
||||
certificateEnabled: String(form.certificateEnabled),
|
||||
certificateDailyLimit: String(form.certificateDailyLimit ?? 0),
|
||||
tianheBaseUrl: form.tianheBaseUrl,
|
||||
tianheAppId: form.tianheAppId,
|
||||
tianheAppKey: form.tianheAppKey,
|
||||
|
||||
Reference in New Issue
Block a user