Commit 708d5d3a by 谢中龙

修改加载状态

parent d5895e04
...@@ -24,7 +24,8 @@ wxService.page({ ...@@ -24,7 +24,8 @@ wxService.page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
const { pageSize, pageNo, current } = this.data
this.getTaskPage(pageSize, pageNo, current)
}, },
...@@ -32,8 +33,7 @@ wxService.page({ ...@@ -32,8 +33,7 @@ wxService.page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
const {pageSize, pageNo,current} = this.data
this.getTaskPage(pageSize, pageNo,current)
}, },
getTaskPage(pageSize, pageNo,current) { // 1 销售任务 2 招募任务 getTaskPage(pageSize, pageNo,current) { // 1 销售任务 2 招募任务
wx.showLoading({ wx.showLoading({
...@@ -80,7 +80,8 @@ wxService.page({ ...@@ -80,7 +80,8 @@ wxService.page({
pageNo: 1, pageNo: 1,
totalPages: 0, totalPages: 0,
navBar: this.data.navBar, navBar: this.data.navBar,
current: this.data.current current: this.data.current,
list : [],
},()=>{ },()=>{
if (wx.pageScrollTo) { if (wx.pageScrollTo) {
wx.pageScrollTo({ wx.pageScrollTo({
......
...@@ -73,9 +73,12 @@ ...@@ -73,9 +73,12 @@
</view> </view>
</view> </view>
<!-- empty --> <!-- empty -->
<!-- <view class='empty' wx:if="{{noTag}}">暂无数据~</view> -->
<!-- 沒有更多數據啦 --> <!-- 沒有更多數據啦 -->
<view class='no-more-data' wx:if="{{!noMoreData}}">--- 到底啦 ---</view> <!-- <view class='no-more-data' wx:if="{{!noMoreData}}">--- 到底啦 ---</view> -->
</view>
<view class='empty' wx:if="{{tags.length == 0}}">
{{noTag ? "暂无数据~" : "数据加载中.."}}
</view> </view>
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