|
@@ -25,6 +25,9 @@ Page({
|
|
|
},
|
|
|
search() {
|
|
|
if (this.data.fetcherData.name != '') {
|
|
|
+ wx.showLoading({
|
|
|
+ title: '加载中...',
|
|
|
+ });
|
|
|
// console.log(this.data.searchKey)
|
|
|
this.searchRoomList()
|
|
|
} else {
|
|
@@ -60,8 +63,12 @@ Page({
|
|
|
|
|
|
},
|
|
|
searchRoomList() {
|
|
|
+ this.setData({
|
|
|
+ 'fetcherData.page': 1,
|
|
|
+ 'fetcherData.size': 100,
|
|
|
+ })
|
|
|
util.request(api.BrandList, this.data.fetcherData).then((res) => {
|
|
|
- console.log(res)
|
|
|
+ wx.hideLoading()
|
|
|
if (res.errno === 0) {
|
|
|
this.setData({
|
|
|
roomList: res.data.data,
|
|
@@ -95,6 +102,7 @@ Page({
|
|
|
title: 'VR场景直播间'
|
|
|
})
|
|
|
}
|
|
|
+ this.getRoomList()
|
|
|
|
|
|
},
|
|
|
|
|
@@ -108,9 +116,7 @@ Page({
|
|
|
/**
|
|
|
* 生命周期函数--监听页面显示
|
|
|
*/
|
|
|
- onShow: function () {
|
|
|
- this.getRoomList()
|
|
|
- },
|
|
|
+ onShow: function () {},
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面隐藏
|