소스 검색

[我的卡包][修改]:我的卡包状态的修i该

tags/广东版3.2.1
meo 6 년 전
부모
커밋
a89b7c5dbf
1개의 변경된 파일17개의 추가작업 그리고 6개의 파일을 삭제
  1. +17
    -6
      pages/cardorder/index/index.js

+ 17
- 6
pages/cardorder/index/index.js 파일 보기

@@ -9,7 +9,7 @@ Page({
name: "使用中" name: "使用中"
}, },
{ {
key: 5,
key: "5,6,7",
name: "已失效" name: "已失效"
} }
], ],
@@ -64,19 +64,30 @@ Page({
}, },
getList(key, pageNum) { getList(key, pageNum) {
var that = this; var that = this;
console.log(key)
if (that.data.allow_load) { if (that.data.allow_load) {
that.setData({ that.setData({
loading: true, loading: true,
content: "小主,我在玩命加载中...", content: "小主,我在玩命加载中...",
}); });
Http.get({
url: config.api.cardorderList,
data: {
if(key==4){
var data = {
pageNum: pageNum,
pageSize: 6,
couponType: "7",
couponOrderStatus: 4
}
}else if(key=='5,6,7'){
var data = {
pageNum: pageNum, pageNum: pageNum,
pageSize: 6, pageSize: 6,
couponType:"7",
couponOrderStatus: key
couponType: "7",
statusStr: "5,6,7"
} }
}
Http.get({
url: config.api.cardorderList,
data: data
}) })
.then(res => { .then(res => {
if(res.code == 200){ if(res.code == 200){


불러오는 중...
취소
저장