From 2fdc3dc444a2f8199866780205c0fa4b5ac40522 Mon Sep 17 00:00:00 2001
From: liuwh <hugeinfo123>
Date: Fri, 29 May 2020 10:38:46 +0800
Subject: [PATCH] 指纹登记与对比

---
 SunshineLnsMinApp/pages/index/index.js |   49 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 48 insertions(+), 1 deletions(-)

diff --git a/SunshineLnsMinApp/pages/index/index.js b/SunshineLnsMinApp/pages/index/index.js
index d77abf8..fef8357 100644
--- a/SunshineLnsMinApp/pages/index/index.js
+++ b/SunshineLnsMinApp/pages/index/index.js
@@ -14,12 +14,33 @@
     sjxf: app.globalData.imgUrl + '/image/sjxf.svg',
     user: app.globalData.imgUrl + '/image/user.svg',
     gyssp: app.globalData.imgUrl + '/image/suishoupai.svg',
+    boy: '../../utils/boy.svg',
     shce: app.globalData.imgUrl + '/image/saoheichue.svg',
     userCenter: app.globalData.imgUrl + '/image/icon_geren.svg',
     llz: app.globalData.imgUrl + '/image/icon_lianluo.svg',
     flxc: app.globalData.imgUrl + '/image/icon_flxc.svg',
+    ywbl1: './../images/home/1.png',
     showModel: false,
-    code: ''
+    code: '',
+    moduleDiv: 0,
+    TabCur: 0,
+    list: [{
+      name: '业务办理'
+    }, {
+      name: '办事指南'
+    }, {
+      name: '智慧未检'
+    }, {
+      name: '企业服务'
+    }, {
+      name: '智能问答'
+    }, {
+      name: '南检活动'
+    }, {
+      name: '检务公开'
+    }, {
+      name: '知识产权'
+    }],
   },
   //事件处理函数
 
@@ -123,6 +144,32 @@
     })
   },
 
+
+  tabSelect(e) {
+    console.log(e.currentTarget.dataset.id)
+    this.setData({
+      moduleDiv: e.currentTarget.dataset.id,
+      TabCur: e.currentTarget.dataset.id,
+    })
+  },
+
+
+  linkFunction: function(event) {
+    var str = event.currentTarget.dataset['str'];
+    wx.navigateTo({
+      url: '../' + str + '/' + str
+    })
+  },
+
+  clinkFunction: function(event) {
+    var str = event.currentTarget.dataset['str'];
+    var id = event.currentTarget.dataset['id'];
+    console.log(id)
+    wx.navigateTo({
+      url: '../' + str + '/' + str + '?id=' + id
+    })
+  },
+
   onLoad: function() {
     var that = this;
     // 登录

--
Gitblit v1.8.0