feat: 同步管理端、用户端与后端业务,并接通线上 Web 接口

补齐平台订阅、外部登录、CRM 同步与用户端页面;Nginx 转发用户端接口,登录页使用 Google 与 Apple 标志。

Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
wikiboss
2026-09-23 18:01:47 +08:00
父节点 8ea9c25386
当前提交 62e0ae4435
共有 227 个文件被更改,包括 21855 次插入 和 5264 次删除

查看文件

@@ -84,19 +84,19 @@
<view class="meta-grid">
<view class="meta-cell">
<text class="meta-label">{{ t('uidLabel') }}</text>
<text class="meta-value">{{ state.record.uid }}</text>
<text class="meta-value">{{ state.record!.uid }}</text>
</view>
<view class="meta-cell">
<text class="meta-label">{{ t('cardIdLabel') }}</text>
<text class="meta-value">#{{ state.record.cardId || state.cardIdRaw || '-' }}</text>
<text class="meta-value">#{{ state.record!.cardId || state.cardIdRaw || '-' }}</text>
</view>
<view class="meta-cell">
<text class="meta-label">{{ extraText('hardwareSpecs') }}</text>
<text class="meta-value">{{ state.record.batchNo || 'NTAG215-STD' }}</text>
<text class="meta-value">{{ state.record!.batchNo || 'NTAG215-STD' }}</text>
</view>
<view class="meta-cell">
<text class="meta-label">Scene Mode</text>
<text class="meta-value uppercase-txt">{{ state.record.sceneMode || 'business' }}</text>
<text class="meta-value uppercase-txt">{{ state.record!.sceneMode || 'business' }}</text>
</view>
</view>
@@ -190,11 +190,13 @@ import { getCurrentLocale, getOmniText, isRtl } from '../../../common/locale.uts
import { utsLightColors, utsRadius, utsSpacing, utsTypography } from '../../../common/tokens.uts';
import {
applyScanOptions,
buildNdefUri,
createScanState,
resolveScanText,
resolveStatusLine,
startScan,
submitScan,
writeNdefToTag,
ScanCopyKey,
ScanPageOptions,
} from './useScan.uts';
@@ -353,7 +355,9 @@ function extraText(key: ExtraCopyKey): string {
return isZh ? '物理实体卡绑定成功' : 'NFC Card Successfully Bound';
}
if (key === 'boundSuccessDesc') {
return isZh ? '名片直链已烧录至云端路由,碰一碰即可瞬间交换名片。' : 'Portal URL is routed. Tap to share instantly.';
return isZh
? '云端路由已绑定。芯片内容需等系统写入 API 成功后才会确认。'
: 'Cloud routing is bound. Chip content is confirmed only after a successful system write.';
}
if (key === 'actionDone') {
return isZh ? '完成' : 'Done';
@@ -395,7 +399,22 @@ function handleActivate(): void {
// #endif
return;
}
submitScan(state);
void runActivateAndWrite();
}
async function runActivateAndWrite(): Promise<void> {
const record = await submitScan(state);
if (record == null) {
return;
}
const cardId =
record.cardId != null
? record.cardId
: state.deviceCardId != null
? state.deviceCardId
: state.cardIdRaw;
const uri = buildNdefUri(cardId);
await writeNdefToTag(uri);
}
onLoad((options: ScanPageOptions) => {
@@ -1025,7 +1044,7 @@ onLoad((options: ScanPageOptions) => {
}
.primary-cta-btn:active {
opacity: 0.88;
opacity: 0.85;
}
.primary-cta-btn-disabled {
@@ -1043,19 +1062,16 @@ onLoad((options: ScanPageOptions) => {
color: var(--oc-text-2, #667085);
}
/* 脉冲微动画:400ms 单次,不循环 */
/* 脉冲微动画:400ms 单次,不循环(仅 opacity,无 scale) */
@keyframes scan-pulse {
0% {
opacity: 0.4;
transform: scale(0.92);
}
50% {
opacity: 1;
transform: scale(1.05);
}
100% {
opacity: 0.4;
transform: scale(1);
}
}
@@ -1065,6 +1081,10 @@ onLoad((options: ScanPageOptions) => {
transition: none !important;
}
.primary-cta-btn {
transition: none;
}
.scan-ring {
opacity: 1;
}