| @@ -33,6 +33,9 @@ var config = { | |||||
| /** | /** | ||||
| * 业态查询 | * 业态查询 | ||||
| * filter | |||||
| * 2 券 | |||||
| * 1 商户 | |||||
| */ | */ | ||||
| businessList: "/wxBusiness/listAll", | businessList: "/wxBusiness/listAll", | ||||
| /** | /** | ||||
| @@ -57,6 +57,9 @@ Page({ | |||||
| let that = this; | let that = this; | ||||
| Http.get({ | Http.get({ | ||||
| url: config.api.businessList, | url: config.api.businessList, | ||||
| data:{ | |||||
| filter:1 | |||||
| } | |||||
| }).then(res => { | }).then(res => { | ||||
| that.setData({ | that.setData({ | ||||
| lists: [{ id: 0, title: "全部", type: 1 }].concat(res.data) | lists: [{ id: 0, title: "全部", type: 1 }].concat(res.data) | ||||
| @@ -183,7 +183,10 @@ Component({ | |||||
| Http.setToken(token); | Http.setToken(token); | ||||
| // business获取 | // business获取 | ||||
| Http.get({ | Http.get({ | ||||
| url: config.api.businessList | |||||
| url: config.api.businessList, | |||||
| data:{ | |||||
| filter:2 | |||||
| } | |||||
| }).then(res => { | }).then(res => { | ||||
| that.setData({ | that.setData({ | ||||
| tabs: [{ id: 0, title: "全部", type: 1 }].concat(res.data) | tabs: [{ id: 0, title: "全部", type: 1 }].concat(res.data) | ||||