From c051c79dc1e55a9d19c31cf3f97da3428270172d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=96?= Date: Wed, 27 Feb 2019 19:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E8=B4=B9=E5=8D=A1=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/discountCardList/discountCardList.js | 19 +++++++++++++++++-- pages/discountCardList/discountCardList.wxml | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-) 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 @@ - +