jiazhipeng 8 months ago
parent
commit
9e3237f416
  1. 2
      app.js
  2. 2
      pages/index/index.js

2
app.js

@ -38,7 +38,7 @@ App({
// 获取前端配置文件 // 获取前端配置文件
commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => { commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
data.isTest = data.isTest127? true : false; data.isTest = data.isTest128? true : false;
data.indexSeason = null data.indexSeason = null
this.globalData.configJson = data this.globalData.configJson = data
}).then(() => { }).then(() => {

2
pages/index/index.js

@ -518,7 +518,7 @@ Page({
}) })
} else { } else {
// 小程序是3 // 小程序是3
commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => { commonApi._post("adv/get_home_ui", {type_id: 15}).then(res => {
let obj = {}; let obj = {};
(res.data.content||[]).forEach(item => { (res.data.content||[]).forEach(item => {
obj[item.id] = item.image obj[item.id] = item.image

Loading…
Cancel
Save