-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from biaov/release/v1.3.0
Release/v1.3.0
- Loading branch information
Showing
85 changed files
with
2,986 additions
and
1,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
VITE_API_BASE_URL=/api | ||
VITE_PROXY_BASE_URL=http://127.0.0.1:3600 | ||
VITE_API_SITE_URL=http://192.168.10.75:8888/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
VITE_API_BASE_URL=/api | ||
VITE_API_SITE_URL=https://ecosystem.biaov.cn/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/node_modules | ||
/dist | ||
/.git | ||
/.git |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { restful } from './factory' | ||
|
||
/** | ||
* 活动列表 | ||
*/ | ||
export const activityDrawPrizeApi = restful('/activity/draw-prize') | ||
|
||
/** | ||
* 活动记录列表 | ||
*/ | ||
export const activityDrawPrizeRecordApi = restful('/activity/draw-prize-record') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { useEffect, useState } from 'react' | ||
import { Modal, QRCode, Row } from 'antd' | ||
import { Props, FormState } from './types' | ||
|
||
/** | ||
* 二维码模态框组件 | ||
*/ | ||
export default function modalQrcodeComponent(props: Props) { | ||
const { visible, text, onChange } = props | ||
|
||
const [formState, setFormState] = useState<FormState>({ | ||
visible: false | ||
}) | ||
|
||
useEffect(() => { | ||
setFormState({ visible }) | ||
}, [visible]) | ||
|
||
const onCancel = () => { | ||
onChange && onChange(false) | ||
} | ||
|
||
return ( | ||
<> | ||
<Modal {...{ onCancel, footer: null, open: formState.visible, title: '投放二维码' }}> | ||
<div className="p-tb-40"> | ||
<Row justify="center"> | ||
<QRCode type="svg" value={text || '-'} color="#409eff" /> | ||
</Row> | ||
</div> | ||
</Modal> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* 表单 | ||
*/ | ||
export interface FormState { | ||
visible: boolean | ||
} | ||
|
||
/** | ||
* 参数 | ||
*/ | ||
export interface Props { | ||
visible: boolean | ||
text: string | ||
onChange(value: boolean): void | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* 活动状态 | ||
*/ | ||
export namespace ActivityStatus { | ||
export interface Option { | ||
label: string | ||
value: string | ||
status?: 'success' | 'processing' | 'error' | 'default' | 'warning' | ||
} | ||
|
||
export type Status = 'noStart' | 'normal' | 'ended' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.