diff --git a/app.js b/app.js index 772827e..66f31ed 100644 --- a/app.js +++ b/app.js @@ -22,7 +22,7 @@ App({ unique_key: "wechatxcx" }).then(res => { let data = JSON.parse(res.data); - data.isTest = data.isTest19?true:false; + data.isTest = data.isTest20?true:false; this.globalData.configJson = data }) diff --git a/pages/list/strategy/index.js b/pages/list/strategy/index.js index 61a1338..f23c328 100644 --- a/pages/list/strategy/index.js +++ b/pages/list/strategy/index.js @@ -1,5 +1,6 @@ // pages/list/store/index.js import commonApi from "../../../utils/https/common" +let app = getApp() Page({ /** @@ -90,7 +91,20 @@ Page({ }) }, - + gotoGuide: function(e) { + let item = e.currentTarget.dataset.item + if (item.outside_url) { + app.globalData.weburl = item.outside_url + wx.navigateTo({ + url: '/pages/pbService/web/index' + }) + } + else { + wx.navigateTo({ + url: '/pages/info/guideInfo/index?id='+item.id + }) + } + }, /** * 生命周期函数--监听页面初次渲染完成 */ diff --git a/pages/list/strategy/index.wxml b/pages/list/strategy/index.wxml index 2ec0276..68112d7 100644 --- a/pages/list/strategy/index.wxml +++ b/pages/list/strategy/index.wxml @@ -5,7 +5,7 @@ 搜索 - + @@ -38,7 +38,7 @@ - + {{item.title}} @@ -50,7 +50,7 @@ 查看详情 > - + diff --git a/project.config.json b/project.config.json index 7a60f0d..fe4e401 100644 --- a/project.config.json +++ b/project.config.json @@ -4,7 +4,7 @@ "ignore": [] }, "setting": { - "urlCheck": true, + "urlCheck": false, "es6": true, "enhance": false, "postcss": true,