|
|
|
@ -214,7 +214,7 @@ |
|
|
|
|
couponnoinvalidList: [], |
|
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
|
imgadres: 'noorder.png', |
|
|
|
|
headerTop: 0, |
|
|
|
|
headerTop: 0, |
|
|
|
|
headerswiperTop: '45px', |
|
|
|
|
//控制滑动效果 |
|
|
|
|
typeClass: 'valid', |
|
|
|
@ -254,7 +254,7 @@ |
|
|
|
|
clearInterval(Timer); //清除定时器 |
|
|
|
|
} |
|
|
|
|
}, 1); |
|
|
|
|
// #endif |
|
|
|
|
// #endif |
|
|
|
|
this.getDictionaryByCodeType(); |
|
|
|
|
}, |
|
|
|
|
filters: { |
|
|
|
@ -295,46 +295,46 @@ |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//查询我的优惠券 |
|
|
|
|
getUserDiscountList(item) { |
|
|
|
|
this.statusid = item; |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: '加载中...' |
|
|
|
|
}) |
|
|
|
|
if (this.isNoMoreData) { |
|
|
|
|
uni.hideLoading() |
|
|
|
|
this.loadingText = '到底了'; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
let pagenum = this.pageNum; |
|
|
|
|
let params = { |
|
|
|
|
pageNum: pagenum, |
|
|
|
|
status: item, |
|
|
|
|
pageSize: this.pageSize, |
|
|
|
|
useScope: this.ordertypeid |
|
|
|
|
} |
|
|
|
|
getUserDiscountList(params).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true; |
|
|
|
|
if (res.return_data.total == (this.pageNum * this.pageSize)) { |
|
|
|
|
this.isNoMoreData = true; |
|
|
|
|
} |
|
|
|
|
if (this.typeClass == 'valid') { |
|
|
|
|
this.couponValidList = this.couponValidList.concat(res.return_data.list); |
|
|
|
|
this.couponcout = res.return_data.total; |
|
|
|
|
} else if (this.typeClass == 'invalid') { |
|
|
|
|
this.couponinvalidList = this.couponinvalidList.concat(res.return_data.list); |
|
|
|
|
} else { |
|
|
|
|
this.couponnoinvalidList = this.couponnoinvalidList.concat(res.return_data.list); |
|
|
|
|
} |
|
|
|
|
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum; |
|
|
|
|
} else { |
|
|
|
|
this.couponValidList = []; |
|
|
|
|
this.couponinvalidList = []; |
|
|
|
|
this.couponnoinvalidList = []; |
|
|
|
|
uni.hideLoading() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
getUserDiscountList(item) { |
|
|
|
|
this.statusid = item; |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title: '加载中...' |
|
|
|
|
}) |
|
|
|
|
if (this.isNoMoreData) { |
|
|
|
|
uni.hideLoading() |
|
|
|
|
this.loadingText = '到底了'; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
let pagenum = this.pageNum; |
|
|
|
|
let params = { |
|
|
|
|
pageNum: pagenum, |
|
|
|
|
status: item, |
|
|
|
|
pageSize: this.pageSize, |
|
|
|
|
useScope: this.ordertypeid |
|
|
|
|
} |
|
|
|
|
getUserDiscountList(params).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
uni.hideLoading(); |
|
|
|
|
this.isNoMoreData = res.return_data.list.length == this.pageSize ? false : true; |
|
|
|
|
if (res.return_data.total == (this.pageNum * this.pageSize)) { |
|
|
|
|
this.isNoMoreData = true; |
|
|
|
|
} |
|
|
|
|
if (this.typeClass == 'valid') { |
|
|
|
|
this.couponValidList = this.couponValidList.concat(res.return_data.list); |
|
|
|
|
this.couponcout = res.return_data.total; |
|
|
|
|
} else if (this.typeClass == 'invalid') { |
|
|
|
|
this.couponinvalidList = this.couponinvalidList.concat(res.return_data.list); |
|
|
|
|
} else { |
|
|
|
|
this.couponnoinvalidList = this.couponnoinvalidList.concat(res.return_data.list); |
|
|
|
|
} |
|
|
|
|
this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum; |
|
|
|
|
} else { |
|
|
|
|
this.couponValidList = []; |
|
|
|
|
this.couponinvalidList = []; |
|
|
|
|
this.couponnoinvalidList = []; |
|
|
|
|
uni.hideLoading() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//分类类型 |
|
|
|
@ -349,29 +349,29 @@ |
|
|
|
|
this.getUserDiscountList(1); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//筛选类型 |
|
|
|
|
selectlist(item) { |
|
|
|
|
this.ordertypeid = item.codeValue; |
|
|
|
|
this.pageNum = 1; |
|
|
|
|
this.couponValidList = []; |
|
|
|
|
this.couponinvalidList = []; |
|
|
|
|
this.couponnoinvalidList = []; |
|
|
|
|
this.isNoMoreData = false; |
|
|
|
|
this.getUserDiscountList(this.statusid); |
|
|
|
|
}, |
|
|
|
|
//筛选类型 |
|
|
|
|
selectlist(item) { |
|
|
|
|
this.ordertypeid = item.codeValue; |
|
|
|
|
this.pageNum = 1; |
|
|
|
|
this.couponValidList = []; |
|
|
|
|
this.couponinvalidList = []; |
|
|
|
|
this.couponnoinvalidList = []; |
|
|
|
|
this.isNoMoreData = false; |
|
|
|
|
this.getUserDiscountList(this.statusid); |
|
|
|
|
}, |
|
|
|
|
//跳转详情 |
|
|
|
|
jumpcoupons(e) { |
|
|
|
|
if (e.useScope == 3) { |
|
|
|
|
if (e.discountUseScope == 3) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../unionPay/recharge/recharge' |
|
|
|
|
}) |
|
|
|
|
} else if (e.useScope == 4) { |
|
|
|
|
} else if (e.discountUseScope == 4) { |
|
|
|
|
app.globalData.distinguishid = 1; |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/qianzhu-KFC/buffet-order/buffet-order' |
|
|
|
|
}) |
|
|
|
|
} else if (e.useScope == 5) { |
|
|
|
|
} else if (e.discountUseScope == 5) { |
|
|
|
|
app.globalData.distinguishid = 2; |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/qianzhu-KFC/buffet-order/buffet-order' |
|
|
|
@ -380,7 +380,7 @@ |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/member-Recharge/choicepage/choicepage' |
|
|
|
|
}) |
|
|
|
|
} else if (e.useScope == 7) { |
|
|
|
|
} else if (e.discountUseScope == 7) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../goods/refuel/refuel' |
|
|
|
|
}) |
|
|
|
|