Commit 3d4cd635 authored by wildfirecode's avatar wildfirecode

1

parent 7ddf13f0
...@@ -7,6 +7,7 @@ import { DataManager } from "../libs/tw/manager/DataManager"; ...@@ -7,6 +7,7 @@ import { DataManager } from "../libs/tw/manager/DataManager";
import join_1_index from "./interfaces/join_1_index"; import join_1_index from "./interfaces/join_1_index";
import { getMyInfo } from "./MainScene"; import { getMyInfo } from "./MainScene";
import getcredits from "./getcredits"; import getcredits from "./getcredits";
import { showToast } from "../libs/new_wx/ctrls/toastCtrl";
export default class ListScene extends Scene { export default class ListScene extends Scene {
list: eui.List; list: eui.List;
...@@ -80,11 +81,16 @@ export default class ListScene extends Scene { ...@@ -80,11 +81,16 @@ export default class ListScene extends Scene {
item.func = this.onTap_detail; item.func = this.onTap_detail;
}); });
if(!datalist || datalist.length==0) {
showToast('未搜索到结果');
}
const ac = new eui.ArrayCollection( const ac = new eui.ArrayCollection(
datalist datalist
); );
this.list.dataProvider = ac; this.list.dataProvider = ac;
}, this['searchtxt'].text); }, this['searchtxt'].text);
} }
onTap_detail = (id) => { onTap_detail = (id) => {
......
...@@ -121,6 +121,7 @@ export default class MainBase extends eui.UILayer { ...@@ -121,6 +121,7 @@ export default class MainBase extends eui.UILayer {
RES.getResAsync(`common_json`);//弱网下需要toast资源的缓存 RES.getResAsync(`common_json`);//弱网下需要toast资源的缓存
else { else {
RES.getResAsync('main_star_png') RES.getResAsync('main_star_png')
RES.getResAsync('toast_png')
} }
this.createGameScene(); this.createGameScene();
......
...@@ -85,7 +85,7 @@ export default class MainScene extends Scene { ...@@ -85,7 +85,7 @@ export default class MainScene extends Scene {
this['starWrapper'].touchEnabled=true; this['starWrapper'].touchEnabled=true;
this['starWrapper'].touchChildren=true; this['starWrapper'].touchChildren=true;
}); });
this.setNormal(!this['starWrapper']['isNormal']) this.setNormal(!this['starWrapper']['isNormal']);
} }
async start(d?) { async start(d?) {
......
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