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