|
@@ -94,11 +94,17 @@ Page({
|
|
|
uaerPrizeListView: function(data) {
|
|
|
if (!Array.isArray(data.goodsItemList) || data.goodsItemList.length == 0) {
|
|
|
console.log("优惠券数据为空");
|
|
|
+ if (this.data.page == 1) {
|
|
|
this.setData({
|
|
|
- noResult: true,
|
|
|
mobileTop:getMobileCache(),
|
|
|
- goodsItemList:[]
|
|
|
+ noResult: true
|
|
|
})
|
|
|
+ } else {
|
|
|
+ this.setData({
|
|
|
+ mobileTop:getMobileCache(),
|
|
|
+ noMore: true
|
|
|
+ })
|
|
|
+ }
|
|
|
return
|
|
|
}
|
|
|
data.goodsItemList.forEach(v => {
|
|
@@ -121,7 +127,7 @@ Page({
|
|
|
* 页面上拉触底事件的处理函数
|
|
|
*/
|
|
|
onReachBottom: function () {
|
|
|
- if (this.data.lock || this.data.noResult) {
|
|
|
+ if (this.data.lock || this.data.noMore) {
|
|
|
return
|
|
|
}
|
|
|
this.data.lock = true
|