Browse Source

Merge branch 'master' of http://zhi-edu.com:3000/lan/zedu_client

ckx 1 year ago
parent
commit
8fc0ff90f6

+ 42 - 41
assets/script/config/SemeGirdCfg.ts

@@ -2590,7 +2590,7 @@ let PoetrySemeCfg = [
             {
                 id: '23104',
                 name: '画',
-                authors: '佚名',
+                authors: '唐·王维',
                 poetryType: '隐语诗',
                 translate:
                     '远看高山色彩明亮,走近一听水却没有声音。春天过去,可是依旧有许多花草争奇斗艳,人走近,可是鸟却依然没有被惊动。  ',
@@ -2662,7 +2662,7 @@ let PoetrySemeCfg = [
             },
             {
                 id: '23112',
-                name: '赋得古原草送别(节选)',
+                name: '赋得古原草送别',
                 authors: '唐·白居易',
                 poetryType: '五言律诗',
                 translate: '古原上长满茂盛的青草,年年岁岁枯萎了又昌荣。原野的大火也无法烧尽,春风一吹它又遍地滋生。',
@@ -2724,7 +2724,7 @@ let PoetrySemeCfg = [
             },
             {
                 id: '23202',
-                name: '悯农(其一)',
+                name: '悯农',
                 authors: '唐·李绅',
                 poetryType: '五言古诗',
                 translate:
@@ -2761,7 +2761,7 @@ let PoetrySemeCfg = [
             },
             {
                 id: '23206',
-                name: '绝句(其一)',
+                name: '绝句',
                 authors: '唐·杜甫',
                 poetryType: '五言绝句',
                 translate:
@@ -2790,7 +2790,7 @@ let PoetrySemeCfg = [
             },
             {
                 id: '23209',
-                name: '秋浦歌(其十五)',
+                name: '秋浦歌',
                 authors: '唐·李白',
                 poetryType: '五言诗',
                 translate:
@@ -2808,7 +2808,7 @@ let PoetrySemeCfg = [
             },
             {
                 id: '23211',
-                name: '古朗月行(节选)',
+                name: '古朗月行',
                 authors: '唐·李白',
                 poetryType: '五言古诗',
                 translate: '小时候不认识月亮,把它称为白玉盘。又怀疑是瑶台仙镜,飞在夜空青云之上。',
@@ -2973,7 +2973,7 @@ let PoetrySemeCfg = [
             },
             {
                 id: '34112',
-                name: '绝句四首(其三)',
+                name: '绝句四首',
                 authors: '唐·杜甫',
                 poetryType: '七言绝句',
                 translate:
@@ -3093,7 +3093,7 @@ let PoetrySemeCfg = [
             },
             {
                 id: '34208',
-                name: '凉州词(其一)',
+                name: '凉州词',
                 authors: '唐·王翰',
                 poetryType: '七言绝句',
                 translate:
@@ -3141,7 +3141,7 @@ let PoetrySemeCfg = [
             },
             {
                 id: '34213',
-                name: '惠崇春江晚景(其一)',
+                name: '惠崇春江晚景',
                 authors: '宋·苏轼',
                 poetryType: '七言绝句',
                 translate:
@@ -3190,7 +3190,7 @@ let PoetrySemeCfg = [
             {
                 id: '45102',
                 name: '敕勒歌',
-                authors: '未知·佚名',
+                authors: '乐府诗集',
                 poetryType: '北朝民歌',
                 translate:
                     '阴山脚下啊,有敕勒族生活的大平原。敕勒川的天空啊,它的四面与大地相连, 看起来好像牧民们居住的毡帐一般。蓝天下的草原啊,都翻滚着绿色的波澜, 那风吹到草低处,有一群群的牛羊时隐时现。',
@@ -3235,8 +3235,8 @@ let PoetrySemeCfg = [
             },
             {
                 id: '45107',
-                name: '幼学琼林·卷二·师生',
-                authors: '程登吉',
+                name: '幼学琼林·02·师生',
+                authors: '明·程登吉',
                 poetryType: '俗语',
                 translate: '青从蓝草中提炼出来,但颜色比蓝草更深。比喻学生胜过老师,或后人胜过前人。',
                 explain: '[蓝]:蓼蓝,可以提取靛青染料的植物。',
@@ -3271,8 +3271,8 @@ let PoetrySemeCfg = [
             },
             {
                 id: '45111',
-                name: '幼学琼林·卷四·鸟兽',
-                authors: '程登吉',
+                name: '幼学琼林·04·鸟兽',
+                authors: '明·程登吉',
                 poetryType: '俗语',
                 translate: '不进老虎窝,怎能捉到小老虎。',
                 explain: '[焉]:怎么。',
@@ -3290,7 +3290,7 @@ let PoetrySemeCfg = [
             {
                 id: '45113',
                 name: '增广贤文',
-                authors: '佚名',
+                authors: '唐·王贞白',
                 poetryType: '俗语',
                 translate: '一寸光阴和一寸长的黄金一样昂贵,而一寸长的黄金却难以买到一寸光阴。比喻时间十分宝贵。',
                 explain: '[光阴]:时间。\n[金]:黄金。',
@@ -3307,7 +3307,7 @@ let PoetrySemeCfg = [
             },
             {
                 id: '45115',
-                name: '史记·三十世家·赵世家',
+                name: '史记·赵世家',
                 authors: '顾颉刚',
                 poetryType: '史记',
                 translate: '一日不耕作,则百日无可食。',
@@ -3366,7 +3366,7 @@ let PoetrySemeCfg = [
             {
                 id: '45205',
                 name: '增广贤文',
-                authors: '佚名',
+                authors: '唐·韩愈',
                 poetryType: '俗语',
                 translate: '书山有路,勤奋才是登上知识高峰的一条捷径;学海无边,不怕吃苦才能在知识的海洋里自由地遨游。',
                 explain: '[勤]:勤奋。\n[涯]:尽头。\n[苦]:吃苦。',
@@ -3420,8 +3420,8 @@ let PoetrySemeCfg = [
             },
             {
                 id: '45211',
-                name: '幼学琼林·卷四·文事',
-                authors: '程登吉',
+                name: '幼学琼林·04·文事',
+                authors: '明·程登吉',
                 poetryType: '俗语',
                 translate: '多才的士人才高八斗,博学的儒士学问超过五车书。',
                 explain:
@@ -3440,14 +3440,14 @@ let PoetrySemeCfg = [
             {
                 id: '45213',
                 name: '增广贤文',
-                authors: '佚名',
+                authors: '宋·颜真卿',
                 poetryType: '俗语',
                 translate: '年少时不知道勤学苦读,弹指一瞬间就会变成白发老人。',
                 explain: '[白头翁]:白发的老人。翁,老人。',
             },
             {
                 id: '45214',
-                name: '晓出净慈寺送林子方》(其二)',
+                name: '晓出净慈寺送林子方',
                 authors: '宋·杨万里',
                 poetryType: '七言绝句',
                 translate:
@@ -3457,9 +3457,9 @@ let PoetrySemeCfg = [
             },
             {
                 id: '45215',
-                name: '史记·七十列传·游侠列传',
+                name: '史记·游侠列传',
                 authors: '北宋·司马迁',
-                poetryType: '史记',
+                poetryType: '七十列传',
                 translate: '言语一定要诚信,行为一定要果敢,已经许下的诺言要真心实意地去履行。',
                 explain: '[信]:信用。\n[诚]:真心实意。',
             },
@@ -3560,8 +3560,8 @@ let PoetrySemeCfg = [
             },
             {
                 id: '56110',
-                name: '幼学琼林·卷三·人事',
-                authors: '程登吉',
+                name: '幼学琼林·03·人事',
+                authors: '明·程登吉',
                 poetryType: '俗语',
                 translate:
                     '通过竹管看豹子,只能看到一个斑纹,不能看见全身,见识短浅;坐在井里看天空,只能看到井口一块,自然难以增长知识。',
@@ -3570,14 +3570,14 @@ let PoetrySemeCfg = [
             {
                 id: '56111',
                 name: '增广贤文',
-                authors: '佚名',
+                authors: '明·周德清',
                 poetryType: '俗语',
                 translate: '读书的时候专心致志,肯下苦功夫,这样的人写出文章,一字值万千黄金。',
                 explain: '疑难注解',
             },
             {
                 id: '56112',
-                name: '史记·七十列传·商君列传',
+                name: '史记·商君列传',
                 authors: '北宋·司马迁',
                 poetryType: '谚语',
                 translate:
@@ -3594,18 +3594,19 @@ let PoetrySemeCfg = [
             },
             {
                 id: '56114',
-                name: '幼学琼林·卷三·器用',
-                authors: '程登吉',
+                name: '幼学琼林·03·器用',
+                authors: '明·程登吉',
                 poetryType: '俗语',
                 translate: '一个人生活中所使用的各种物品,需要具备各种技能的工匠才能制造出来。',
                 explain: '[所需]:所需要的物品。\n[备]:准备,打造。',
             },
             {
                 id: '56115',
-                name: '增广贤文',
-                authors: '佚名',
-                poetryType: '俗语',
-                translate: '道路不铲不修就不会平坦,事情如果不去做就不会成功。',
+                name: '道德经',
+                authors: '老子',
+                poetryType: '哲学思想',
+                translate:
+                    '道是独一无二的,道本身包含阴阳二气,阴阳二气相交而形成一种适匀的状态,万物在这种状态中产生。',
                 explain: '[平]:平坦。',
             },
             {
@@ -3625,7 +3626,7 @@ let PoetrySemeCfg = [
             {
                 id: '56201',
                 name: '诗经·小雅·鹤鸣',
-                authors: '佚名',
+                authors: '明·程登吉',
                 poetryType: '四言诗',
                 translate: '别的山上的石头,能够用来琢磨玉器。',
                 explain: '疑难注解',
@@ -3678,7 +3679,7 @@ let PoetrySemeCfg = [
             {
                 id: '56207',
                 name: '论语',
-                authors: '孔子及其弟子',
+                authors: '先秦·孔子及其弟子',
                 poetryType: '散文',
                 translate:
                     '只要身居上位的人自己行为端正,那么就是不发命令,下面的人也会照着去做;如果他的行为不正,即使发布命令,下面的人也不会服从。',
@@ -3686,16 +3687,16 @@ let PoetrySemeCfg = [
             },
             {
                 id: '56208',
-                name: '增广贤文',
-                authors: '佚名',
-                poetryType: '7.谚语',
-                translate: '当家后才能体会钱财来之不易,有了儿女才能理解父母的养育之恩。',
+                name: '古文观止',
+                authors: '明·刘基',
+                poetryType: '谚语',
+                translate: '拥有金玉般的外表,里面却像破棉絮,用来比喻外表华美,而实质糟糕。',
                 explain: '疑难注解',
             },
             {
                 id: '56209',
                 name: '论语·述而',
-                authors: '孔子及其弟子',
+                authors: '先秦·孔子及其弟子',
                 poetryType: '散文',
                 translate:
                     '多人同行,其中必定有可以做我老师的人。选取他们的优点学习,看到他们不好的地方,就对照自己,加以改正。',
@@ -3730,7 +3731,7 @@ let PoetrySemeCfg = [
             },
             {
                 id: '56213',
-                name: '幼学琼林·卷三·人事',
+                name: '幼学琼林·03·人事',
                 authors: '明·程登吉',
                 poetryType: '俗语',
                 translate: '应该知道容器满了就会倾倒,事物发展到极点必然走向反面。',

+ 1 - 1
assets/script/ui/poetry/PoetryMainUI.ts

@@ -64,7 +64,7 @@ export default class PoetryMainUI extends BaseGameUI {
         if (this.gameNode.active) {
             this.startGame()
         }
-        Mgr.ui.show(UI.GameOptUI, {showTitleAudioBtn: this.gameNode.active})
+        Mgr.ui.show(UI.GameOptUI, {isGameMode: this.gameNode.active})
     }
     initGuide() {
         ccUtils.setLabel(this.poetryCfg.name, this.guideNode, 'name')

+ 5 - 4
assets/script/ui/public/GameOptUI.ts

@@ -33,6 +33,8 @@ export default class GameOptUI extends BaseUI {
     testSemeTime: number
     //体验版上锁
     isTrialLock: boolean = false
+    //是否是游戏模式
+    isGameMode: boolean = true
     protected onLoad() {
         this.previousNode = cc.find('btn_previous', this.node)
         this.nextNode = cc.find('btn_next', this.node)
@@ -74,6 +76,7 @@ export default class GameOptUI extends BaseUI {
     }
 
     onShow(args, fromUI: number) {
+        if (args && args.isGameMode != undefined) this.isGameMode = args.isGameMode
         // 设置不同模块功能
         this.initUI(args)
         this.initGameData()
@@ -150,8 +153,7 @@ export default class GameOptUI extends BaseUI {
         ccUtils.setBtnInteract(isTeacher || !Data.child.isInClass, btnDraw)
         let btnTitle = cc.find('topBtns/btnTitle', this.node)
 
-        btnTitle.active = (isTeacher || !isSchoolApp) && !isChinese
-        if (args && args.showTitleAudioBtn != undefined) btnTitle.active &&= args.showTitleAudioBtn
+        btnTitle.active = (isTeacher || !isSchoolApp) && !isChinese && this.isGameMode
         ccUtils.setBtnInteract(isTeacher || !isSchoolApp, this.node, 'topBtns/btnTitle')
         cc.find('choosePart', this.node).active =
             !Data.home.isTestSeme && (!noGameUI || (isChinese && Data.home.isHomeWork)) && !Data.child.isInTest
@@ -200,8 +202,7 @@ export default class GameOptUI extends BaseUI {
     setGameDur() {
         let gameDur = cc.find('gameDur', this.node)
         for (let i = 0; i < Data.game.maxStarNum; i++) {
-            cc.find('to', gameDur).children[i].active = false
-            cc.find('to', gameDur).children[i].active = i < Data.game.starNum
+            cc.find('to', gameDur).children[i].active = i < Data.game.starNum && this.isGameMode
         }
         this.curShowStar = 0
     }