From 5a887acf1924950715086633d329db045223b5c4 Mon Sep 17 00:00:00 2001
From: liuwh <hugeinfo123>
Date: Tue, 09 Jun 2020 14:47:27 +0800
Subject: [PATCH] test
---
SunshineLnsMinApp/pages/yshjqyfw/yshjqyfw.js | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/SunshineLnsMinApp/pages/yshjqyfw/yshjqyfw.js b/SunshineLnsMinApp/pages/yshjqyfw/yshjqyfw.js
index d2d0a3a..273dbcf 100644
--- a/SunshineLnsMinApp/pages/yshjqyfw/yshjqyfw.js
+++ b/SunshineLnsMinApp/pages/yshjqyfw/yshjqyfw.js
@@ -68,7 +68,7 @@
/**
* 生命周期函数--监听页面加载
*/
- onLoad: function (options) {
+ onLoad: function(options) {
var that = this;
wx.showLoading();
wx.request({
@@ -78,7 +78,7 @@
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