feat(c端): 补齐 OPC认证申请 + 转园申请发起页(小程序+网站)

- 小程序:新增 pages/cert-apply(OPC认证)、pages/park-transfer(转园);utils/profile.js 封装 /opc/certification/apply|mine、/opc/park-transfer/apply|mine;app.config 注册;首页/我的加入口
- 网站:新增 services/opcProfile.js、user/CertApply.jsx、user/ParkTransfer.jsx;App.jsx 路由 + Home.jsx 申请区入口
- 登录门复用 auth(phoneLogin/bindPhone/isAuthed);重复提交/已认证前端禁用;build:weapp + website build 通过
- 至此 申请入驻/OPC认证/转园 三条流:C端发起 → 园区端|平台端审核 → 回填用户 全链路打通

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Pine
2026-08-26 19:37:01 +08:00
parent 600f4fc5a9
commit 35e87889db
15 changed files with 735 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import { request } from './api';
/** OPC 认证:提交认证申请(需登录,opc_member */
export async function submitOpCert(payload) {
const r = await request('POST', '/opc/certification/apply', payload, true);
if (!r?.ok) throw new Error(r?.detail || r?.error || '提交失败');
return r;
}
/** OPC 认证:我的认证状态 {certification_status, certification} */
export async function getOpCertMine() {
const r = await request('GET', '/opc/certification/mine', {}, true);
return r || {};
}
/** 转园:提交转园申请(需登录,园区 OPC) */
export async function submitParkTransfer(payload) {
const r = await request('POST', '/opc/park-transfer/apply', payload, true);
if (!r?.ok) throw new Error(r?.detail || r?.error || '提交失败');
return r;
}
/** 转园:我的转园申请 {transfer} */
export async function getParkTransferMine() {
const r = await request('GET', '/opc/park-transfer/mine', {}, true);
return r || {};
}