薛鸿潇 %!s(int64=5) %!d(string=hai) anos
pai
achega
f3ba75f831

+ 4 - 4
tower_sanguo/assets/scripts/manager/XXConst.ts

@@ -5,13 +5,13 @@
 /*============================================================================================================*/
 export class XXConst {
     /** 更新上阵数据 */
-    public UpdateGenerals = Symbol();
+    public UpdateGenerals = 'update-general-info';
     /** 更新任务数据 */
-    public UpdateTaskData = Symbol();
+    public UpdateTaskData = 'update-task-data';
     /** 获得奖励 */
-    public EventGetReward = Symbol();
+    public EventGetReward = 'event-get-reward';
     /** 是新的一天 */
-    public EventIsNewDay = Symbol();
+    public EventIsNewDay = 'event-is-new-day';
 };
 declare global {
     const XXConst: XXConst;

+ 3 - 1
tower_sanguo/assets/scripts/module/general/GeneralTuJianUI.ts

@@ -15,7 +15,7 @@ export default class GeneralTuJianUI extends BaseUI {
     @property({ type: cc.Node, displayName: '页签组节点' })
     private node_tab: cc.Node = null;
     @property({ type: cc.ScrollView, displayName: '滑动列表' })
-    private p_scroll_list: cc.ScrollView = null;
+    public p_scroll_list: cc.ScrollView = null;
     @property({ type: cc.Prefab, displayName: '滑动列表item' })
     private scroll_tiem: cc.Prefab[] = [];
     /** 收集按钮 */
@@ -43,6 +43,8 @@ export default class GeneralTuJianUI extends BaseUI {
     }
     /** 初始化图鉴列表 */
     private initList(camp_type = 0) {
+        cc.log(this.node)
+        cc.log(this.node_tab)
         this.now_camp_tab = camp_type;
         let list_data = this.GetData(camp_type);
         if (this.comp_ScrollList) this.comp_ScrollList.clearItem();

+ 1 - 0
tower_sanguo/assets/scripts/module/general/GeneralZhenWeiUI.ts

@@ -387,6 +387,7 @@ export default class GeneralZhenWeiUI extends BaseUI {
             GameController.uiM.showToast('武将品质不够,无法上阵');
             return;// 统帅位品质不达标
         }
+        this.temp_generals = [];
         // if (!this.beChangeGeneral) return;
         // 材质还原
         // let g_count = this.arr_spr_general.length;