feat: 汉字每日打卡页面优化
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
pickPrimaryPinyin,
|
||||
HanziReadingsMap,
|
||||
} from '../shared/getWordsSvgJson';
|
||||
import { WORDS } from '../../core/data/words';
|
||||
import { WORDS, getCategoryTabIndex } from '../../core/data/words';
|
||||
import { CharacterItem } from '../../types/characterType';
|
||||
import tracker from '../../utils/tracker';
|
||||
import { createPage } from '../../base/pageMixin';
|
||||
@@ -179,7 +179,7 @@ createPage(
|
||||
currentMode: mode,
|
||||
functionId: mode,
|
||||
pickerMax: max,
|
||||
showCustomPanel: !isCheckin,
|
||||
showCustomPanel: true,
|
||||
},
|
||||
() => {
|
||||
this.initPageInfo(mode);
|
||||
@@ -300,7 +300,7 @@ createPage(
|
||||
const categoryId = Number(e.currentTarget.dataset.categoryId);
|
||||
this.setData({
|
||||
showSelectWordPopup: true,
|
||||
pickerCurrentTab: categoryId,
|
||||
pickerCurrentTab: getCategoryTabIndex(categoryId),
|
||||
});
|
||||
},
|
||||
|
||||
@@ -428,9 +428,9 @@ createPage(
|
||||
this.setData(
|
||||
{
|
||||
words: supported,
|
||||
inputWords: isCheckin ? [] : supported,
|
||||
selectedWords: isCheckin ? supported : [],
|
||||
inputValue: isCheckin ? '' : supported.join(''),
|
||||
inputWords: supported,
|
||||
selectedWords: [],
|
||||
inputValue: supported.join(''),
|
||||
},
|
||||
() => this.renderPracticeContent().catch(console.error),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user