Przeglądaj źródła

消费卡筛选条件修改

tags/富茂链客4.1.0
刘晖 6 lat temu
rodzic
commit
c051c79dc1
2 zmienionych plików z 18 dodań i 3 usunięć
  1. +17
    -2
      pages/discountCardList/discountCardList.js
  2. +1
    -1
      pages/discountCardList/discountCardList.wxml

+ 17
- 2
pages/discountCardList/discountCardList.js Wyświetl plik

@@ -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,


+ 1
- 1
pages/discountCardList/discountCardList.wxml Wyświetl plik

@@ -2,7 +2,7 @@
<view class='content'>
<view class="market clearfix">
<i-tabs current="{{current_scroll}}" scroll bindchange="handleChangeScroll">
<i-tab wx:for="{{tabs}}" wx:key="unique" key="{{item.id}}" title="{{item.title}}"></i-tab>
<i-tab wx:for="{{tabData}}" wx:key="unique" key="{{item.id}}" title="{{item.title}}"></i-tab>
</i-tabs>
<view class='cards clearfix'>
<view class="nocoupon" wx:if="{{list.length==0}}">


Ładowanie…
Anuluj
Zapisz