| @@ -118,6 +118,10 @@ var config = { | |||||
| * 频道查询 | * 频道查询 | ||||
| */ | */ | ||||
| couponChannelList: "/wxCouponChannel/list", | couponChannelList: "/wxCouponChannel/list", | ||||
| /** | |||||
| * 积分券查询 | |||||
| */ | |||||
| creditProductList: "/wxCouponChannel/creditProductList", | |||||
| /** | /** | ||||
| * 是否显示已售 | * 是否显示已售 | ||||
| */ | */ | ||||
| @@ -17,7 +17,7 @@ | |||||
| }, | }, | ||||
| "version": "release" | "version": "release" | ||||
| }, | }, | ||||
| "mchId": "1695209702", | |||||
| "mchId": "1539123951", | |||||
| "imgProxy": [ | "imgProxy": [ | ||||
| { | { | ||||
| "newUrl": "https://c.malls.iformall.com/img", | "newUrl": "https://c.malls.iformall.com/img", | ||||
| @@ -34,12 +34,11 @@ | |||||
| ], | ], | ||||
| "configUrl": "https://c.malls.iformall.com/C/api", | "configUrl": "https://c.malls.iformall.com/C/api", | ||||
| "ifStoreApp": "0", | "ifStoreApp": "0", | ||||
| "businessSwitch": "1", | |||||
| "ifHaveWebSocket": "0", | "ifHaveWebSocket": "0", | ||||
| "ifHaveCarModular": "1" | "ifHaveCarModular": "1" | ||||
| }, | }, | ||||
| "name": "欢乐城", | |||||
| "weappId": "wx8e5cab05e850bc91", | |||||
| "name": "欢乐城万象金街", | |||||
| "weappId": "wxde54451891094c16", | |||||
| "appVersion": "C.5.1.1" | "appVersion": "C.5.1.1" | ||||
| }, | }, | ||||
| "debug": false, | "debug": false, | ||||
| @@ -85,17 +84,14 @@ | |||||
| "navigationBarBackgroundColor": "#FFFFFF" | "navigationBarBackgroundColor": "#FFFFFF" | ||||
| }, | }, | ||||
| "plugins": { | "plugins": { | ||||
| "auto-points-plugin": { | |||||
| "version": "1.3.0", | |||||
| "provider": "wxfab2bf944bfc4da6" | |||||
| }, | |||||
| "live-player-plugin": { | "live-player-plugin": { | ||||
| "version": "1.2.5", | "version": "1.2.5", | ||||
| "provider": "wx2b03c6e691cd7370" | "provider": "wx2b03c6e691cd7370" | ||||
| } | } | ||||
| }, | }, | ||||
| "extAppid": "wx8e5cab05e850bc91", | |||||
| "extAppid": "wxde54451891094c16", | |||||
| "extEnable": true, | "extEnable": true, | ||||
| "permission": {}, | |||||
| "directCommit": false, | "directCommit": false, | ||||
| "networkTimeout": { | "networkTimeout": { | ||||
| "request": 30000, | "request": 30000, | ||||
| @@ -294,7 +294,8 @@ Page({ | |||||
| sortOrder: that.data.sortOrder, | sortOrder: that.data.sortOrder, | ||||
| userCredit: that.data.userCredit | userCredit: that.data.userCredit | ||||
| }; | }; | ||||
| var url = config.api.couponChannelList; | |||||
| var url = config.api.creditProductList; | |||||
| // var url = config.api.couponChannelList; | |||||
| // 请求接口 | // 请求接口 | ||||
| Http.get({ | Http.get({ | ||||
| url: url, | url: url, | ||||
| @@ -305,7 +306,7 @@ Page({ | |||||
| * 加载完成 | * 加载完成 | ||||
| */ | */ | ||||
| if (pageNum >= res.data.pages) { | if (pageNum >= res.data.pages) { | ||||
| if (res.data.pages == 0 || res.data.pages == 1) { | |||||
| if (res.data.pages == 0) { | |||||
| that.setData({ | that.setData({ | ||||
| allow_load: true, | allow_load: true, | ||||
| loading: false, | loading: false, | ||||
| @@ -324,7 +325,7 @@ Page({ | |||||
| lists: [], | lists: [], | ||||
| }) | }) | ||||
| } | } | ||||
| var tmpArr = that.data.lists; | |||||
| var tmpArr = that.data.lists || []; | |||||
| // tmpArr = [...tmpArr, ...res.data.list]; | // tmpArr = [...tmpArr, ...res.data.list]; | ||||
| tmpArr.push.apply(tmpArr, res.data.list); | tmpArr.push.apply(tmpArr, res.data.list); | ||||
| that.setData({ | that.setData({ | ||||
| @@ -7,7 +7,7 @@ | |||||
| "preloadBackgroundData": false, | "preloadBackgroundData": false, | ||||
| "useIsolateContext": true | "useIsolateContext": true | ||||
| }, | }, | ||||
| "libVersion": "3.11.2", | |||||
| "libVersion": "3.13.0", | |||||
| "condition": { | "condition": { | ||||
| "miniprogram": { | "miniprogram": { | ||||
| "list": [ | "list": [ | ||||