首页消息,首页来款项目,工作组,列表详情

This commit is contained in:
姚亚男
2021-10-13 19:05:42 +08:00
parent 7c69da53d3
commit 4a0dd996b6
16 changed files with 455 additions and 244 deletions
+22 -6
View File
@@ -1,18 +1,34 @@
// pages/meeting/meeting.js
import UserApi from '../../assets/js/http/userApi'
import { previewFile, initFileList } from '../../assets/js/preview'
Page({
/**
* 页面的初始数据
*/
data: {
form: {},
noticeFileList: [] // 通知文件
},
// 预览
preview(e){
const fileObj = e.currentTarget.dataset.file
previewFile(fileObj.id,fileObj.name)
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
UserApi.projectDetail({id: options.id}).then(res=>{
this.setData({
form: res.result
})
// 获取通知文件list
initFileList(this.data.form.files).then(res => {
this.setData({
noticeFileList:res
})
})
})
},
/**
@@ -26,7 +42,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
@@ -63,4 +79,4 @@ Page({
onShareAppMessage: function () {
}
})
})