diff --git a/pages/discountCardList/discountCardList.js b/pages/discountCardList/discountCardList.js index 27223ea..4e50beb 100644 --- a/pages/discountCardList/discountCardList.js +++ b/pages/discountCardList/discountCardList.js @@ -5,13 +5,27 @@ const imgurl = require("../../utils/imgurl"); let app = getApp(); Page({ data: { + tabData:[ + { + title: '全部', + id: '' + }, + { + title:'可转赠', + id:1 + }, + { + title: '不可转赠', + id: 0 + } + ], couponUrl: imgurl.coupon.url, loadingUrl: imgurl.loading.url, canTransferred: imgurl.canTransferred.url, tabs: [], list: [], current: "0", - current_scroll: "0", + current_scroll: "", page: 1, allow_load: true, loading: true, //"上拉加载"的变量,默认false,隐藏 @@ -76,7 +90,7 @@ Page({ var param = { pageNum: pageNum, pageSize: 8, - business: key, + supportTransfer:key, targetAd: 5, }; } @@ -142,6 +156,7 @@ Page({ handleChangeScroll({ detail }) { + console.log(detail) this.setData({ list: [], allow_load: true, diff --git a/pages/discountCardList/discountCardList.wxml b/pages/discountCardList/discountCardList.wxml index d98a267..c57df6a 100644 --- a/pages/discountCardList/discountCardList.wxml +++ b/pages/discountCardList/discountCardList.wxml @@ -2,7 +2,7 @@ - +