登录完善,会议活动筛选分页,扫码签到完善,分标委列表,详情

This commit is contained in:
姚亚男
2021-10-15 18:35:39 +08:00
parent 6ef45b33f7
commit 280db0a273
46 changed files with 785 additions and 474 deletions
+29 -3
View File
@@ -6,6 +6,7 @@ Page({
* 页面的初始数据
*/
data: {
userId: '',
list: [],
pageNo: 1,
pageSize: 10
@@ -31,16 +32,41 @@ Page({
let fileType = sliceFileTypeByFileName(fileObj.fileName)
// 文件类型不是docx,doc,pdf时,已邮件形式发送到参会人的邮箱
if(fileType !== 'docx' && fileType !== 'doc' && fileType !== 'pdf') {
let params = {
fileId: fileObj.fileId,
userId: this.data.userId
}
UserApi.sendEmail(params).then(res=>{
if(res.success){
wx.showToast({
title: '文件已发送到您的邮箱',
icon: 'none'
})
}else{
wx.showToast({
title: res.message,
icon: "none"
})
}
})
}else {
previewFile(fileObj.filId, fileObj.fileName)
previewFile(fileObj.fileId, fileObj.fileName)
}
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.loadData()
const that = this
that.loadData()
wx.getStorage({
key: 'userInfo',
success(res){
that.setData({
userId: res.data.id
})
}
})
},
/**