瀏覽代碼

Merge branch 'dev' of https://git.youlane.cn/weapp/C into dev

tags/富茂链客4.1.0
meo 6 年之前
父節點
當前提交
5e829963c8
共有 2 個檔案被更改,包括 18 行新增3 行删除
  1. +17
    -2
      pages/discountCardList/discountCardList.js
  2. +1
    -1
      pages/discountCardList/discountCardList.wxml

+ 17
- 2
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,


+ 1
- 1
pages/discountCardList/discountCardList.wxml 查看文件

@@ -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}}">


Loading…
取消
儲存