From 326bdb73c590cb669af344cfdc4ee6f02bf1b0a8 Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Wed, 27 May 2020 10:16:11 +0800
Subject: [PATCH] 链接指纹是杯页面
---
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