会议详情,项目详情,我的页面
This commit is contained in:
@@ -1,18 +1,56 @@
|
||||
// pages/meeting/meeting.js
|
||||
import UserApi from '../../assets/js/http/userApi'
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
searchParams: {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
needInvoice: 0, // 是否需要发票 0 1
|
||||
pack: 0, // 是否打包 0 1
|
||||
year: '', // 运行年份
|
||||
},
|
||||
selects: [ // 自定义选择框参数
|
||||
{
|
||||
select: '发票',
|
||||
active: false,
|
||||
tabIndex: 1
|
||||
},
|
||||
{
|
||||
select: '打包',
|
||||
active: false,
|
||||
tabIndex: 2
|
||||
},
|
||||
{
|
||||
select: '时间',
|
||||
active: false,
|
||||
tabIndex: 3
|
||||
}
|
||||
]
|
||||
},
|
||||
// 项目详情
|
||||
projectDetail(){
|
||||
wx.navigateTo({
|
||||
url: '../projectDetail/projectDetail',
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
console.log(this.data.searchParams)
|
||||
UserApi.projectList(this.data.searchParams).then(res=>{
|
||||
console.log(res)
|
||||
|
||||
}).catch(err=>{
|
||||
wx.showToast({
|
||||
title: '加载失败',
|
||||
icon: 'fail',
|
||||
duration: 2000
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user