search列表根据配置显示隐藏相关元素

This commit is contained in:
zhl 2019-02-21 17:30:12 +08:00
parent b856cc8bb9
commit f53c9c4445
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
export default {
apiBase: 'http://192.168.100.232',
// apiBase: 'https://ghost-test.kingsome.cn',
// apiBase: 'http://192.168.100.232',
apiBase: 'https://ghost-test.kingsome.cn',
hostBase: 'https://pay.kingsome.cn',
//游戏页面根路径
gameBase: 'http://192.168.100.232',

View File

@ -35,7 +35,7 @@
</view>
</view>
<repeat for="{{records}}" item="item" >
<recordCell :item="item" @gameCellTap.user="gameTap"/>
<recordCell :item="item" @gameCellTap.user="gameTap" :showAll.sync = 'showAll'/>
</repeat>
<zanLoadmore :loading.sync="loading" :nodata.sync="noData" :nomore.sync="noMore" nodata_str="暂无数据"></zanLoadmore>
<toast/>
@ -80,7 +80,8 @@
type: 0,
languageArr: ['所有语言', '中文', '简体中文', '繁体中文', '英文', '日文', '多国语言', '德文', '法文', '欧洲', '其他'],
typeArr: g.gameTypes,
typeName: '所有类型'
typeName: '所有类型',
showAll: false
};
methods = {
@ -148,7 +149,8 @@
});
}
onShow() {
let cfg = wepy.getStorageSync('cfg');
this.showAll = !cfg ? false : !cfg.hide_main;
}
initPageParam() {
this.all_count = 999;