liukangdong
2024-07-18 5b219a9694c8d69db42e746a654c779cc6a61bf6
wechat_jiaxuan/pages/userinfo/mysub.js
@@ -1,18 +1,31 @@
// pages/userinfo/mysub.js
import { customerLogPage } from '../../api/index'
Page({
  /**
   * 页面的初始数据
   */
  data: {
    activeTabs: '0'
    activeTabs: '0',
    dataList: [],
    total: 0,
    page: 0,
    capacity: 10,
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.getList()
  },
  getList() {
    const { page,  capacity} = this.data
    customerLogPage({
      model: {},page,capacity
    }).then(res => {
      this.setData({ dataList: res.data.records })
    })
  },
  tabsChange(e) {
    const activeTabs = e.currentTarget.dataset.val