Browse Source

knowledege swipper切换

xjc 3 years ago
parent
commit
817a595bbf
1 changed files with 5 additions and 0 deletions
  1. 5 0
      pages/knowledge/knowledge.js

+ 5 - 0
pages/knowledge/knowledge.js

@@ -179,6 +179,11 @@ Page({
        }
      });
    },
+   swchange:function(e){
+    this.setData({
+      act: e.detail.current
+    })
+  },
   /**
    * 生命周期函数--监听页面初次渲染完成
    */