首页和搜索列表增加下拉刷新的样式

This commit is contained in:
zhl 2019-03-05 15:25:03 +08:00
parent b606bc086a
commit f3f3935096
2 changed files with 5 additions and 4 deletions

View File

@ -56,7 +56,8 @@
mixins = [base, tips]; mixins = [base, tips];
config = { config = {
navigationBarTitleText: '游戏大厅', navigationBarTitleText: '游戏大厅',
enablePullDownRefresh: true enablePullDownRefresh: true,
backgroundTextStyle: 'dark'
}; };
components = { components = {
toast: Toast, toast: Toast,
@ -103,7 +104,7 @@
onPullDownRefresh() { onPullDownRefresh() {
this.initPageParam(); this.initPageParam();
this.getRecords(); this.getAllData();
} }
onReachBottom() { onReachBottom() {
@ -120,7 +121,6 @@
async onLoad(options) { async onLoad(options) {
let userInfo = this.$parent.getUserInfo(); let userInfo = this.$parent.getUserInfo();
let self = this; let self = this;
console.log(userInfo);
if (userInfo) { if (userInfo) {
this.nickname = userInfo.nickName; this.nickname = userInfo.nickName;
this.avatar = userInfo.avatarUrl; this.avatar = userInfo.avatarUrl;

View File

@ -63,7 +63,8 @@
mixins = [base, tips]; mixins = [base, tips];
config = { config = {
navigationBarTitleText: '搜索', navigationBarTitleText: '搜索',
enablePullDownRefresh: true enablePullDownRefresh: true,
backgroundTextStyle: 'dark'
}; };
components = { components = {
toast: Toast, toast: Toast,