From 8786023e8093d97b8d4fadc1b7f41f5883ac3a03 Mon Sep 17 00:00:00 2001 From: xuxj <hugeinfo123> Date: Sat, 09 May 2020 10:02:40 +0800 Subject: [PATCH] 部分调整 --- SunshineLnsMinApp/pages/yshjqyfw/yshjqyfw.js | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/SunshineLnsMinApp/pages/yshjqyfw/yshjqyfw.js b/SunshineLnsMinApp/pages/yshjqyfw/yshjqyfw.js index 2c26c2f..273dbcf 100644 --- a/SunshineLnsMinApp/pages/yshjqyfw/yshjqyfw.js +++ b/SunshineLnsMinApp/pages/yshjqyfw/yshjqyfw.js @@ -68,17 +68,17 @@ /** * 生命周期函数--监听页面加载 */ - onLoad: function (options) { + onLoad: function(options) { var that = this; wx.showLoading(); wx.request({ - url: app.globalData.url + '/api/question/publicMsgQuery', + url: app.globalData.url + '/api/article/publicMsgQuery', data: { page: 1, size: 1000, flag: '主动预防', }, - success: function (res) { + success: function(res) { wx.hideLoading(); console.log('res', res); if (res.data.code == 0) { @@ -102,8 +102,22 @@ }) }, + folder: function(event) { + var title = event.currentTarget.dataset['title']; + if(title == "法律宣传"){ + wx.navigateTo({ + url: '../law2Publicity/law2Publicity', + }) + }else{ + wx.navigateTo({ + url: '../law2Publicitylist/law2Publicitylist?title=' + title, + }) + } + + }, + // 跳转 - linkFunction: function (event) { + linkFunction: function(event) { var str = event.currentTarget.dataset['str']; var id = event.currentTarget.dataset['id']; wx.navigateTo({ -- Gitblit v1.8.0