From 9a393ba03976f9239c32c54af7135505fcc0f34f Mon Sep 17 00:00:00 2001 From: panyiping <981892160@qq.com> Date: Wed, 18 May 2022 14:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B8=B8=E8=AE=B0=E6=94=BB?= =?UTF-8?q?=E7=95=A5=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- pages/list/strategy/index.js | 16 +++++++++++++++- pages/list/strategy/index.wxml | 6 +++--- project.config.json | 2 +- 4 files changed, 20 insertions(+), 6 deletions(-) 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,