Kaynağa Gözat

[业态][修改]:[业态接口需要传的字段修改]

tags/江西版6.1.0
meo 6 yıl önce
ebeveyn
işleme
06395dc4eb
3 değiştirilmiş dosya ile 10 ekleme ve 1 silme
  1. +3
    -0
      config/config.js
  2. +3
    -0
      pages/index/searchbar/index.js
  3. +4
    -1
      pages/main/coupons/index.js

+ 3
- 0
config/config.js Dosyayı Görüntüle

@@ -33,6 +33,9 @@ var config = {


/** /**
* 业态查询 * 业态查询
* filter
* 2 券
* 1 商户
*/ */
businessList: "/wxBusiness/listAll", businessList: "/wxBusiness/listAll",
/** /**


+ 3
- 0
pages/index/searchbar/index.js Dosyayı Görüntüle

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


+ 4
- 1
pages/main/coupons/index.js Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet