Browse Source

提交下代码

master
Myth 4 years ago
parent
commit
2246b4039a
  1. 2
      app.js
  2. 1
      pages/index/index.js

2
app.js

@ -22,7 +22,7 @@ App({
unique_key: "wechatxcx" unique_key: "wechatxcx"
}).then(res => { }).then(res => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
data.isTest = data.isTest7?true:false; data.isTest = data.isTest8?true:false;
this.globalData.configJson = data this.globalData.configJson = data
}) })

1
pages/index/index.js

@ -337,6 +337,7 @@ Page({
}, },
// 轮播图点击 // 轮播图点击
bannerClick:function(e){ bannerClick:function(e){
if(this.data.isTest) return;
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
console.log(item) console.log(item)
switch(item.jump_type){ switch(item.jump_type){

Loading…
Cancel
Save