personal-list.js 751 Bytes
import {
  getBindtapData
} from '../../utils/util'

let app = getApp();
Page({
  data: {
    active: 0
  },
  onLoad(options) {},
  initData() {

  },
  onChange(event) {
    wx.showToast({
      title: `切换到标签 ${event.detail.name}`,
      icon: 'none'
    });
  },
  onVanTabsHandler(event) {
    console.log("event:", event);
    let {
      index,
      title
    } = event.detail;
  },
  onVideoHandler(evt) {
    let curItem = getBindtapData(evt);
    let curIndex = getBindtapData(evt, "index");
    app.router.push({
      path: "detail",
      query: {
        c: curIndex + ""
      }
    })
    console.log("curItem:", curItem);
    console.log("curIndex:", curIndex);
  },
  /**
   * 获取列列表
   */
  queryList() {

  }
})