Commit a0f24073 authored by hewenhao's avatar hewenhao

feat: 错题页guide

parent 8c76a101
...@@ -100,5 +100,11 @@ ...@@ -100,5 +100,11 @@
"w": 686, "w": 686,
"h": 320, "h": 320,
"ossName": "/pk-math/36jdXR2vuZH8FpKTZAji36dtpFfr/686x320" "ossName": "/pk-math/36jdXR2vuZH8FpKTZAji36dtpFfr/686x320"
},
"err-arrow.png": {
"u": "https://cdn.jkwljy.com/pk-math/4HgeLGu9D9s7M1gQ8K7huUcx9sW5/20x20",
"w": 20,
"h": 20,
"ossName": "/pk-math/4HgeLGu9D9s7M1gQ8K7huUcx9sW5/20x20"
} }
} }
...@@ -85,5 +85,10 @@ export default { ...@@ -85,5 +85,10 @@ export default {
"u": "https://cdn.jkwljy.com/pk-math/36jdXR2vuZH8FpKTZAji36dtpFfr/686x320", "u": "https://cdn.jkwljy.com/pk-math/36jdXR2vuZH8FpKTZAji36dtpFfr/686x320",
"w": 686, "w": 686,
"h": 320 "h": 320
},
"err-arrow.png": {
"u": "https://cdn.jkwljy.com/pk-math/4HgeLGu9D9s7M1gQ8K7huUcx9sW5/20x20",
"w": 20,
"h": 20
} }
} as const } as const
...@@ -55,10 +55,103 @@ ...@@ -55,10 +55,103 @@
padding: 0 70px; padding: 0 70px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
margin-top: -14px; margin-top: -14px;
} }
.guide_inner {
width: 100vw;
display: flex;
}
.guide {
position: absolute;
left: 0;
right: 0;
bottom: 0;
transform: translateY(100%);
display: flex;
justify-content: center;
animation-name: fadeIn_2;
animation-duration: .5s;
animation-timing-function: ease-out;
animation-iteration-count: 1;
animation-fill-mode: backwards;
animation-delay: 0s;
}
@keyframes fadeIn_2 {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.guide_icon {
width: 200px;
height: 300px;
}
.guide_modal {
width: 510px;
padding: 24px 20px 0 42px;
box-sizing: border-box;
background-size: 100% 100%;
margin-top: 60px;
height: 184px;
background-image: url(https://cdn.jkwljy.com/pk-math/2LZyrqzLwgYFGvJEb1vteEo4KL2r/510x184);
font-size: 28px;
font-weight: 500;
color: rgba(70,81,100,0.8);
line-height: 44px;
.em {
color: #FFC056;
}
}
.continue {
display: flex;
justify-content: flex-end;
}
.continue_btn {
display: flex;
justify-content: flex-end;
align-items: center;
font-size: 28px;
font-weight: 500;
color: #1786F7;
padding: 2px 8px 2px 20px;
margin-right: -8px;
line-height: 40px;
}
.continue_icon {
width: 28px;
height: 28px;
display: block;
margin-left: 4px;
}
.content_wrap {
border-radius: 40px;
&::after {
content: " ";
position: absolute;
left: -16px;
right: -16px;
top: -16px;
bottom: -16px;
pointer-events: none;
border: 4px dashed #fff;
border-radius: 58px;
}
}
.item { .item {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -68,6 +161,11 @@ ...@@ -68,6 +161,11 @@
animation-timing-function: ease-out; animation-timing-function: ease-out;
animation-fill-mode: backwards; animation-fill-mode: backwards;
animation-iteration-count: 1; animation-iteration-count: 1;
margin-right: 38px;
&:last-child {
margin-right: 0px;
}
&:nth-child(1) { &:nth-child(1) {
animation-delay: 0; animation-delay: 0;
...@@ -115,6 +213,16 @@ ...@@ -115,6 +213,16 @@
margin-left: -30px; margin-left: -30px;
} }
.err_icon {
width: 20px;
height: 20px;
margin-left: 2px;
}
.err { .err {
padding-left: 32px;
box-sizing: border-box;
color: #FF7770; color: #FF7770;
min-width: 164px;
padding-right: 20px;
} }
import { View, Image } from '@tarojs/components' import { View, Image, Text } from '@tarojs/components'
import { useMemo, useEffect } from 'react' import { useMemo, useEffect, useState } from 'react'
import { getMenuButtonBoundingClientRect, navigateTo } from '@tarojs/taro' import { getMenuButtonBoundingClientRect, navigateTo } from '@tarojs/taro'
import classNames from 'classnames' import classNames from 'classnames'
import assets from '@/assets/oss/assets-complete' import assets from '@/assets/oss/assets-complete'
import { useFormatTick } from '@/hooks/use-format-tick' import { useFormatTick } from '@/hooks/use-format-tick'
import { StageLevel, StageType } from '@/api' import { StageLevel } from '@/api'
import { useStoreState } from '@/store/hooks' import { useStoreState, useStoreActions } from '@/store/hooks'
import { palyAudio } from '@/utils/play-audio' import { palyAudio } from '@/utils/play-audio'
import audio from '@/assets/oss/assets-audio' import audio from '@/assets/oss/assets-audio'
import tutorialAssets from '@/assets/oss/assets-tutorial'
import { UserGuideView } from '@/components'
import styles from './complete-head.module.scss' import styles from './complete-head.module.scss'
...@@ -27,21 +29,21 @@ const getLevelBigBg = (s?: StageLevel | null): string => { ...@@ -27,21 +29,21 @@ const getLevelBigBg = (s?: StageLevel | null): string => {
return assets['level-big-fail.png'].u return assets['level-big-fail.png'].u
} }
const getWeight = (s?: StageLevel | null) => { // const getWeight = (s?: StageLevel | null) => {
switch (s) { // switch (s) {
case StageLevel.S: { // case StageLevel.S: {
return 100 // return 100
} // }
case StageLevel.A: { // case StageLevel.A: {
return 50 // return 50
} // }
case StageLevel.B: { // case StageLevel.B: {
return 25 // return 25
} // }
} // }
return 0 // return 0
} // }
const getAudioSrc = (s?: StageLevel | null) => { const getAudioSrc = (s?: StageLevel | null) => {
if (!s) { if (!s) {
...@@ -102,11 +104,14 @@ const getInearGradient = (s?: StageLevel | null) => { ...@@ -102,11 +104,14 @@ const getInearGradient = (s?: StageLevel | null) => {
const GameCompleteHead = () => { const GameCompleteHead = () => {
const nav = useMemo(getMenuButtonBoundingClientRect, []) const nav = useMemo(getMenuButtonBoundingClientRect, [])
const gameResult = useStoreState(state => state.gameModel.gameResult) const gameResult = useStoreState(state => state.gameModel.gameResult)
const stageDetail = useStoreState(state => state.gameModel.stageDetail)
const time = useFormatTick((gameResult?.resultTime ?? 0) * 1000) const time = useFormatTick((gameResult?.resultTime ?? 0) * 1000)
const au = useMemo(() => getAudioSrc(gameResult?.level), [gameResult?.level]) const au = useMemo(() => getAudioSrc(gameResult?.level), [gameResult?.level])
const errQuestionGuideComplete = useStoreState(state => state.mainModel.errQuestionGuideComplete)
const completeErrQuestionGuide = useStoreActions(actions => actions.mainModel.completeErrQuestionGuide)
const [isActive, setIsActive] = useState(false)
useEffect(() => { useEffect(() => {
palyAudio(au) palyAudio(au)
...@@ -133,8 +138,6 @@ const GameCompleteHead = () => { ...@@ -133,8 +138,6 @@ const GameCompleteHead = () => {
return { text: _text, color } return { text: _text, color }
}, [gameResult]) }, [gameResult])
const isOneStop = useMemo(() => stageDetail?.type === StageType.OneStop, [stageDetail?.type])
const style = useMemo(() => { const style = useMemo(() => {
return { return {
paddingTop: `${nav.top - 5}px` paddingTop: `${nav.top - 5}px`
...@@ -149,6 +152,45 @@ const GameCompleteHead = () => { ...@@ -149,6 +152,45 @@ const GameCompleteHead = () => {
} }
} }
const completeGuide = () => {
completeErrQuestionGuide()
setIsActive(false)
}
const completeGuideAndGo = () => {
completeGuide()
goWrong()
}
const errCountMsg = useMemo(() => {
if (!gameResult) {
return '-'
}
if (gameResult.isTimeout) {
return '-'
}
if (gameResult.errNum === 0) {
return '全对'
}
return `错${gameResult.errNum}题`
}, [gameResult])
useEffect(() => {
if (!gameResult) return
let timer
if (!errQuestionGuideComplete && gameResult.errNum > 0 && !gameResult.isTimeout) {
timer = setTimeout(() => {
setIsActive(true)
}, 1000)
}
return () => {
if (timer) {
clearTimeout(timer)
}
}
}, [errQuestionGuideComplete, gameResult])
if (!gameResult) { if (!gameResult) {
return null return null
} }
...@@ -162,12 +204,41 @@ const GameCompleteHead = () => { ...@@ -162,12 +204,41 @@ const GameCompleteHead = () => {
<Image src={require('../assets/bonus.png')} className={styles.icon}></Image> <Image src={require('../assets/bonus.png')} className={styles.icon}></Image>
<View className={styles.item_text}>+{bonus}</View> <View className={styles.item_text}>+{bonus}</View>
</View> </View>
{!isOneStop && ( <UserGuideView
<View className={styles.item} onClick={goWrong}> className={styles.item}
<Image src={require('../assets/right-count.png')} className={styles.icon}></Image> onClick={goWrong}
<View className={classNames(styles.item_text, gameResult.errNum > 0 && styles.err)}>{gameResult.errNum === 0 ? '全对' : `错${gameResult.errNum}题`}</View> isActive={isActive}
compnent={View}
wrapClass={styles.content_wrap}
verticalPadding={5}
horizonPadding={10}
onClickConent={completeGuideAndGo}
guideContent={(
<View className={styles.guide}>
<View className={styles.guide_inner}>
<Image src={tutorialAssets['cat.png'].u} className={styles.guide_icon}></Image>
<View className={styles.guide_modal}>
<View>
点击此处,可以查看<Text className={styles.em}>本次闯关的错题</Text>哦~
</View>
<View className={styles.continue}>
<View className={styles.continue_btn} onClick={completeGuide}>
我知道了<Image src={tutorialAssets['continue-arrow.png'].u} className={styles.continue_icon} />
</View>
</View>
</View>
</View> </View>
</View>
)}
>
<Image src={require('../assets/right-count.png')} className={styles.icon}></Image>
<View className={classNames(styles.item_text, gameResult.errNum > 0 && styles.err)}>
{errCountMsg}
{!gameResult.isTimeout && gameResult.errNum > 0 && (
<Image src={assets['err-arrow.png'].u} className={styles.err_icon}></Image>
)} )}
</View>
</UserGuideView>
<View className={styles.item}> <View className={styles.item}>
<Image src={require('../assets/time.png')} className={styles.icon}></Image> <Image src={require('../assets/time.png')} className={styles.icon}></Image>
<View className={classNames(styles.item_text, gameResult.isTimeout && styles.err)}>{time.minutes}:{time.seconds}</View> <View className={classNames(styles.item_text, gameResult.isTimeout && styles.err)}>{time.minutes}:{time.seconds}</View>
......
import { action, Action, computed, Computed, Thunk, thunk } from 'easy-peasy' import { action, Action, computed, Computed, Thunk, thunk } from 'easy-peasy'
import { AppStoreModel } from '@/store/store-model' import { AppStoreModel } from '@/store/store-model'
import { getQuestionList, type StageDetail, getStageDetail, completeStage, StageType, type CompleteStageOut, resumeGame } from '@/api' import { getQuestionList, StageLevel, type StageDetail, getStageDetail, completeStage, StageType, type CompleteStageOut, resumeGame } from '@/api'
import { showLoading, hideLoading, showModal, redirectTo, vibrateShort, getCurrentInstance, disableAlertBeforeUnload } from '@tarojs/taro' import { showLoading, hideLoading, showModal, redirectTo, vibrateShort, getCurrentInstance, disableAlertBeforeUnload } from '@tarojs/taro'
import assets from '@/assets/oss/assets-complete' import assets from '@/assets/oss/assets-complete'
import { palyAudio } from '@/utils/play-audio' import { palyAudio } from '@/utils/play-audio'
...@@ -92,8 +92,26 @@ export interface GameModel extends GameModelState { ...@@ -92,8 +92,26 @@ export interface GameModel extends GameModelState {
const gameModel: GameModel = { const gameModel: GameModel = {
counterId: COUNTER_ID, counterId: COUNTER_ID,
questionList: [], questionList: [],
errList: [{ questionType: '选择题', contentText: '一家超市有50个西瓜,要将它们装入箱子中,如果每个箱子最多只装8个西瓜,下面说法不正确的是', simpleType: false, questionItems: null, answers: [{ contentText: 'B', sort: 1 }], options: [{ index: 'A', contentText: '超市至少需要7个箱子才能将西瓜装下', answer: false, userAnswer: false }, { index: 'B', contentText: '超市需要6个箱子就能将西瓜装下', answer: true, userAnswer: false }, { index: 'C', contentText: '如果超市只有6个箱子的话,还有2个西瓜装不下', answer: false, userAnswer: true }], userAnswers: null, sort: 5, index: 1 }, { questionType: '选择题', contentText: '33根甘蔗平均分给5只大象,下面说法不正确的是', simpleType: false, questionItems: null, answers: [{ contentText: 'B', sort: 1 }], options: [{ index: 'A', contentText: '最终剩下了3根甘蔗没有分', answer: false, userAnswer: false }, { index: 'B', contentText: '最终5只大象共分了33根甘蔗', answer: true, userAnswer: false }, { index: 'C', contentText: '最终5只大象共分了30根甘蔗', answer: false, userAnswer: true }], userAnswers: null, sort: 12, index: 3 }, { questionType: '选择题', contentText: '五月奇奇班上去春游,加上老师一共49人,由小车来运送,每辆小车只能坐6名客人,下面说法不正确的是', simpleType: false, questionItems: null, answers: [{ contentText: 'C', sort: 1 }], options: [{ index: 'A', contentText: '如果只有8辆车,那么有1人不能上车', answer: false, userAnswer: true }, { index: 'B', contentText: '需要9辆车,全班出游才够', answer: false, userAnswer: false }, { index: 'C', contentText: '必须要10辆车,全班才能出游', answer: true, userAnswer: false }], userAnswers: null, sort: 16, index: 4 }, { questionType: '选择题', contentText: '乐乐有38个玻璃球,要将它们平均存放进5个罐子上,下面说法不正确的是', simpleType: false, questionItems: null, answers: [{ contentText: 'B', sort: 1 }], options: [{ index: 'A', contentText: '乐乐无法把所有玻璃球平均放进5个罐子里', answer: false, userAnswer: false }, { index: 'B', contentText: '乐乐可以将所有玻璃球平均地放到5个罐子里', answer: true, userAnswer: false }, { index: 'C', contentText: '如果每个罐子可以放8个玻璃球,那么所有玻璃球都可以放下', answer: false, userAnswer: true }], userAnswers: null, sort: 28, index: 5 }] as unknown as QuestionType[], errList: [],
gameResult: null, gameResult: {
/** 排名档位 */
gear: 10,
isTimeout: false,
gearReward: 10,
levelBefore: StageLevel.B,
levelReward: 20,
upGearReward: 40,
errNum: 12,
/** 成就等级:SAB */
level: StageLevel.S,
levelTime: 50,
/** 排名 */
ranks: [],
/** 耗时 */
resultTime: 60,
/** 是否升档奖励 */
upGear: true
},
bornTimes: 3, bornTimes: 3,
modalContinueVisible: false, modalContinueVisible: false,
gameStartTime: 0, gameStartTime: 0,
...@@ -306,14 +324,14 @@ const gameModel: GameModel = { ...@@ -306,14 +324,14 @@ const gameModel: GameModel = {
actions.updateState({ isSubmit: true }) actions.updateState({ isSubmit: true })
stopCounter() stopCounter()
const { questionList, stageDetail } = helpers.getState() const { questionList, stageDetail } = helpers.getState()
const { errList, ...rest } = buildCompleteStageParam(questionList, stageDetail!, getCounter()?.getCount() ?? 0) const { errList, errNum, ...rest } = buildCompleteStageParam(questionList, stageDetail!, getCounter()?.getCount() ?? 0)
const { data: gameResult } = await completeStage(rest) const { data: gameResult } = await completeStage(rest)
actions.updateState({ actions.updateState({
errList, errList,
gameResult: { gameResult: {
...gameResult, ...gameResult,
isTimeout: rest.isTimeout, isTimeout: rest.isTimeout,
errNum: rest.num - rest.correctNum, errNum,
levelTime: rest.levelTime levelTime: rest.levelTime
} }
}) })
......
...@@ -44,12 +44,15 @@ export function convertQuestion (question: QuestionType, itemIndex: number): Que ...@@ -44,12 +44,15 @@ export function convertQuestion (question: QuestionType, itemIndex: number): Que
} }
type BuildParamsOut = CompleteStageParam & { type BuildParamsOut = CompleteStageParam & {
errList: QuestionType[] errList: QuestionType[];
errNum: number;
} }
export function buildCompleteStageParam (questionList: QuestionType[], stageDetail: StageDetail, resultTime: number): BuildParamsOut { export function buildCompleteStageParam (questionList: QuestionType[], stageDetail: StageDetail, resultTime: number): BuildParamsOut {
const wrongList = questionList.filter(c => !determinQuestion(c)) const isAnsweredList = questionList.filter(answeredQuestion)
const wrongList = isAnsweredList.filter(c => !determinQuestion(c))
const wrongLength = wrongList.length const wrongLength = wrongList.length
const answeredLength = isAnsweredList.length
if (wrongLength > 0) { if (wrongLength > 0) {
logger.debug(getStorage(StorageKeys.userInfo)?.userId, '错误列表', wrongList) logger.debug(getStorage(StorageKeys.userInfo)?.userId, '错误列表', wrongList)
...@@ -65,7 +68,7 @@ export function buildCompleteStageParam (questionList: QuestionType[], stageDeta ...@@ -65,7 +68,7 @@ export function buildCompleteStageParam (questionList: QuestionType[], stageDeta
const isTimeout = resultTime > bTime const isTimeout = resultTime > bTime
const correctNum = num - wrongLength const correctNum = answeredLength - wrongLength
if (correctNum === num) { if (correctNum === num) {
if (resultTime <= sTime) { if (resultTime <= sTime) {
...@@ -82,6 +85,7 @@ export function buildCompleteStageParam (questionList: QuestionType[], stageDeta ...@@ -82,6 +85,7 @@ export function buildCompleteStageParam (questionList: QuestionType[], stageDeta
return { return {
correctNum, correctNum,
errNum: wrongList.length,
level, level,
isTimeout, isTimeout,
levelTime, levelTime,
...@@ -118,6 +122,23 @@ function convert (inQuestion: QuestionType): CompleteQuestion { ...@@ -118,6 +122,23 @@ function convert (inQuestion: QuestionType): CompleteQuestion {
throw new Error('question not supported') throw new Error('question not supported')
} }
/** 已答题目 */
export function answeredQuestion (question: QuestionType) {
if (isBlankQuestion(question)) {
return question.answers.every(c => c.userAnswer)
}
if (isSelectionQuestion(question)) {
return question.options.some(c => c.userAnswer)
}
if (isVerticalDivisionQuestion(question)) {
return question.answers.every(c => c.userAnswer)
}
throw new Error('question type not supported')
}
/** 判题 */ /** 判题 */
export function determinQuestion (question: QuestionType) { export function determinQuestion (question: QuestionType) {
if (isBlankQuestion(question)) { if (isBlankQuestion(question)) {
...@@ -132,5 +153,5 @@ export function determinQuestion (question: QuestionType) { ...@@ -132,5 +153,5 @@ export function determinQuestion (question: QuestionType) {
return question.answers.every(c => c.userAnswer === c.contentText) return question.answers.every(c => c.userAnswer === c.contentText)
} }
throw new Error('question not supported') throw new Error('question type not supported')
} }
...@@ -112,7 +112,7 @@ const StageComp = (props: StageProps) => { ...@@ -112,7 +112,7 @@ const StageComp = (props: StageProps) => {
const guideActive = useStoreState(state => state.mainModel.guideActive) const guideActive = useStoreState(state => state.mainModel.guideActive)
const handleClick = () => { const handleClick = () => {
if (stage.status !== StageStatus.DISABLED) { if (stage.status === StageStatus.DISABLED) {
/** 从首页进入更新状态 */ /** 从首页进入更新状态 */
updateState({ isSubmit: false }) updateState({ isSubmit: false })
navigateTo({ url: `/pages/prepare/index?id=${stage.id}` }) navigateTo({ url: `/pages/prepare/index?id=${stage.id}` })
......
...@@ -22,11 +22,14 @@ export interface MainModel { ...@@ -22,11 +22,14 @@ export interface MainModel {
player: InnerAudioContext; player: InnerAudioContext;
/** 完成首页引导 */ /** 完成首页引导 */
mainGuideComplete: boolean | null; mainGuideComplete: boolean | null;
/** 完成查看错题引导 */
errQuestionGuideComplete: boolean | null;
updateState: Action<MainModel, Partial<State<MainModel>>>; updateState: Action<MainModel, Partial<State<MainModel>>>;
updateReady: Action<MainModel, boolean>; updateReady: Action<MainModel, boolean>;
updateGuideActive: Action<MainModel, boolean>; updateGuideActive: Action<MainModel, boolean>;
updateStageList: Action<MainModel, Stage[]>; updateStageList: Action<MainModel, Stage[]>;
completeMainGuide: Thunk<MainModel, void, void, AppStoreModel>; completeMainGuide: Thunk<MainModel, void, void, AppStoreModel>;
completeErrQuestionGuide: Thunk<MainModel, void, void, AppStoreModel>;
fetchStage: Thunk<MainModel, void, void, AppStoreModel, Promise<[Stage[], Stage[]]>>; fetchStage: Thunk<MainModel, void, void, AppStoreModel, Promise<[Stage[], Stage[]]>>;
} }
...@@ -34,6 +37,7 @@ const mainModel: MainModel = { ...@@ -34,6 +37,7 @@ const mainModel: MainModel = {
isReady: false, isReady: false,
guideActive: false, guideActive: false,
mainGuideComplete: getStorage(StorageKeys.mainGuideComplete), mainGuideComplete: getStorage(StorageKeys.mainGuideComplete),
errQuestionGuideComplete: getStorage(StorageKeys.errQuestionGuideComplete),
player: getPlayer(), player: getPlayer(),
stageList: [], stageList: [],
updateState: action((state, payload) => { updateState: action((state, payload) => {
...@@ -41,6 +45,13 @@ const mainModel: MainModel = { ...@@ -41,6 +45,13 @@ const mainModel: MainModel = {
state[k] = payload[k] state[k] = payload[k]
} }
}), }),
completeErrQuestionGuide: thunk(async (actions) => {
actions.updateState({
errQuestionGuideComplete: true,
})
updateStorage(StorageKeys.errQuestionGuideComplete, true)
}),
completeMainGuide: thunk(async (actions) => { completeMainGuide: thunk(async (actions) => {
actions.updateState({ actions.updateState({
mainGuideComplete: true, mainGuideComplete: true,
......
...@@ -11,12 +11,15 @@ export enum StorageKeys { ...@@ -11,12 +11,15 @@ export enum StorageKeys {
/** 完成首页引导 */ /** 完成首页引导 */
mainGuideComplete, mainGuideComplete,
/** 完成页查看错题引导 */
errQuestionGuideComplete,
} }
type Storage = { type Storage = {
[StorageKeys.userInfo]: UserInfo | null; [StorageKeys.userInfo]: UserInfo | null;
[StorageKeys.openid]: string | null | undefined; [StorageKeys.openid]: string | null | undefined;
[StorageKeys.mainGuideComplete]: boolean | null; [StorageKeys.mainGuideComplete]: boolean | null;
[StorageKeys.errQuestionGuideComplete]: boolean | null;
} }
const store: Storage = {} as Storage const store: Storage = {} as Storage
...@@ -32,6 +35,7 @@ export function reloadStore () { ...@@ -32,6 +35,7 @@ export function reloadStore () {
StorageKeys.openid, StorageKeys.openid,
StorageKeys.userInfo, StorageKeys.userInfo,
StorageKeys.mainGuideComplete, StorageKeys.mainGuideComplete,
StorageKeys.errQuestionGuideComplete,
].forEach((element) => { ].forEach((element) => {
updateStorage(element, Taro.getStorageSync(`${storagePrefix}${element}`) ?? null) updateStorage(element, Taro.getStorageSync(`${storagePrefix}${element}`) ?? null)
}) })
......
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