Commit b6efbee3 authored by hewenhao's avatar hewenhao

feat: update

parent a7f2bb25
......@@ -56,7 +56,7 @@ const MainPage = () => {
if (
!isFocus ||
isGroupGuideComplete ||
!userInfo.pointReceive ||
userInfo.pointReceive === 'N' ||
!userInfo.city ||
!userInfo.grade
) {
......
......@@ -103,6 +103,8 @@ const getIconClassNames = (type?: StageType, extra: string[] = []) => {
return classNames(styles.icon, type === StageType.OneStop && styles.isOneStop, ...extra)
}
const isProduction = process.env.SERVER_ENDPOINT === 'https://geek.jkwljy.com'
const StageComp = (props: StageProps) => {
const { stage } = props
const updateState = useStoreActions(actions => actions.gameModel.updateState)
......@@ -112,7 +114,7 @@ const StageComp = (props: StageProps) => {
const mainGuideActive = useStoreState(state => state.guideModel.mainGuideActive)
const handleClick = () => {
if (stage.status !== StageStatus.DISABLED) {
if (stage.status !== StageStatus.DISABLED || !isProduction) {
/** 从首页进入更新状态 */
updateState({ isSubmit: false })
navigateTo({ url: `/pages/prepare/index?id=${stage.id}` })
......@@ -185,7 +187,7 @@ const StageComp = (props: StageProps) => {
onClick={handleClick}
>
{renderRound(isReady)}
<View className={styles.roundName}>{stage.name}</View>
<View className={styles.roundName}>{!isProduction ? `${stage.id}.` : ''}{stage.name}</View>
</View>
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment