Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas / mini-program / hmd

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • hmd
  • node_modules
  • glsx-applet-component
  • src
  • GLTab
  • index.js
  • 李伟康's avatar
    新增隐私协议 · 282b04c1
    李伟康 committed Sep 04, 2023
    282b04c1 Browse Files
index.js 485 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Component({
  data: {
    deactiveStyle: {},
    activeStyle: {},
    tabActive: 0
  },
  properties: {
    tabObj: {
      type: Object,
      value: {},
      observer: function (n) {
        this.setData({
          deactiveStyle: n.mainStyle.deactiveClass,
          activeStyle: n.mainStyle.activeClass
        })
      },
    }
  },
  methods: {
    changeTab(e) {
      console.log(e);
      this.setData({
        tabActive: e.currentTarget.dataset.index
      })
    }
  }
})