Commit 7fdcd5bf authored by liujiangnan's avatar liujiangnan

fix: 当前学习进度

parent 2ce2e7d2
...@@ -76,7 +76,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -76,7 +76,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 当前学习进度 // 当前学习进度
if (userInfo.last_game_str){ if (userInfo.last_game_str){
const gameNames = userInfo.last_game_str.split("~!"); const gameNames = userInfo.last_game_str.split("~!");
cc.find("learning", usercenter).getComponent(cc.RichText).string = `<color=#138977>当前正在学习</c> <color=#ef8d36>${gameNames[0]} - ${gameNames[1]}</color>`; cc.find("Canvas/usercenter/view/content/scollpage/learning").getComponent(cc.RichText).string = `<color=#138977>当前正在学习</c> <color=#ef8d36>${gameNames[0]} - ${gameNames[1]}</color>`;
} }
} }
......
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