✨ feat: 添加小程序二维码标题和体验版提示信息
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
This commit is contained in:
@@ -597,7 +597,11 @@ const OutdoorFairList: React.FC = () => {
|
||||
)}
|
||||
</Modal>
|
||||
<Modal
|
||||
title="招聘会小程序二维码"
|
||||
title={
|
||||
miniProgramQrInfo?.envVersion === 'trial'
|
||||
? '招聘会小程序二维码(体验版)'
|
||||
: '招聘会小程序二维码'
|
||||
}
|
||||
open={miniProgramQrModalOpen}
|
||||
width={420}
|
||||
footer={[
|
||||
@@ -628,6 +632,11 @@ const OutdoorFairList: React.FC = () => {
|
||||
<Typography.Text strong style={{ marginTop: 16, fontSize: 16 }}>
|
||||
请使用微信扫码
|
||||
</Typography.Text>
|
||||
{miniProgramQrInfo.envVersion === 'trial' && (
|
||||
<Typography.Text type="warning" style={{ marginTop: 8 }}>
|
||||
当前为体验版,仅项目成员或体验成员可扫码访问
|
||||
</Typography.Text>
|
||||
)}
|
||||
{miniProgramQrInfo.permanent && (
|
||||
<Typography.Text type="secondary" style={{ marginTop: 8 }}>
|
||||
此小程序码长期有效,无需定期更换
|
||||
|
||||
@@ -139,6 +139,8 @@ export interface OutdoorFairMiniProgramQrCodeInfo {
|
||||
fairId: number;
|
||||
page: string;
|
||||
scene: string;
|
||||
/** 小程序目标版本:当前尚未正式发布,默认为体验版 trial。 */
|
||||
envVersion: 'trial' | 'release' | 'develop';
|
||||
imageData: string;
|
||||
/** getUnlimitedQRCode 生成的小程序码长期有效。 */
|
||||
permanent: boolean;
|
||||
|
||||
Reference in New Issue
Block a user