【bug】文件的邮箱 样式修改

This commit is contained in:
fengachen
2021-10-27 17:49:20 +08:00
parent b3d45d14f6
commit a007ca89cb
3 changed files with 28 additions and 17 deletions
@@ -1,6 +1,7 @@
// pages/meeting/meeting.js // pages/meeting/meeting.js
import { import {
previewFile,sliceFileTypeByFileName previewFile,
sliceFileTypeByFileName
} from '../../assets/js/preview' } from '../../assets/js/preview'
import MeetingApi from '../../assets/js/http/meetingApi' import MeetingApi from '../../assets/js/http/meetingApi'
@@ -33,7 +34,7 @@ Page({
payRecordImgSrc: '', payRecordImgSrc: '',
// 签到图片的回显 // 签到图片的回显
signImgSrc: '', signImgSrc: '',
userId:'' userId: ''
}, },
// 获取图片的id // 获取图片的id
@@ -55,7 +56,7 @@ Page({
orderCode: this.data.ordeCode, orderCode: this.data.ordeCode,
paymentRecord: this.data.imageIds paymentRecord: this.data.imageIds
} }
if(Array.isArray(this.data.imageIds)){ if (Array.isArray(this.data.imageIds)) {
param.paymentRecord = this.data.imageIds.join(',') param.paymentRecord = this.data.imageIds.join(',')
} }
signUpApi.uploadPayRecord(param).then(res => { signUpApi.uploadPayRecord(param).then(res => {
@@ -65,7 +66,7 @@ Page({
title: res.message, title: res.message,
icon: "success", icon: "success",
duration: 2000, duration: 2000,
success(){ success() {
wx.navigateBack({ wx.navigateBack({
delta: 1, delta: 1,
}) })
@@ -90,9 +91,13 @@ Page({
this.setData({ this.setData({
singInPersonInfo: res.result, singInPersonInfo: res.result,
ordeCode: res.result.orderCode, ordeCode: res.result.orderCode,
// 这是为了不点击图片上传的bug
imageIds: res.result.paymentRecord.split(',')
}) })
if (!!res.result.paymentRecord) {
this.setData({
// 这是为了不点击图片上传的bug
imageIds: res.result.paymentRecord.split(',')
})
}
// 已经审核的获取审核凭证的src // 已经审核的获取审核凭证的src
if (res.result.checkResult !== 0) { if (res.result.checkResult !== 0) {
this.setData({ this.setData({
@@ -105,6 +110,7 @@ Page({
this.setData({ this.setData({
signImgSrc: baseUrl + URL_CONFIG + 'sys/common/download/' + res.result.checkFile signImgSrc: baseUrl + URL_CONFIG + 'sys/common/download/' + res.result.checkFile
}) })
console.log(this.data.signImgSrc, 'this.data.signImgSrc');
} }
} }
}) })
@@ -145,29 +151,29 @@ Page({
const fileObj = e.currentTarget.dataset.file const fileObj = e.currentTarget.dataset.file
let fileType = sliceFileTypeByFileName(fileObj.name) let fileType = sliceFileTypeByFileName(fileObj.name)
// 文件类型不是docx,doc,pdf时,已邮件形式发送到参会人的邮箱 // 文件类型不是docx,doc,pdf时,已邮件形式发送到参会人的邮箱
if(fileType !== 'docx' && fileType !== 'doc' && fileType !== 'pdf') { if (fileType !== 'docx' && fileType !== 'doc' && fileType !== 'pdf') {
let params = { let params = {
fileId: fileObj.id, fileId: fileObj.id,
userId: this.data.userId userId: this.data.userId
} }
UserApi.sendEmail(params).then(res=>{ UserApi.sendEmail(params).then(res => {
if(res.success){ if (res.success) {
wx.showToast({ wx.showToast({
title: '文件已发送到您的邮箱', title: '文件已发送到您的邮箱',
icon: 'none' icon: 'none'
}) })
}else{ } else {
wx.showToast({ wx.showToast({
title: res.message, title: res.message,
icon: "none" icon: "none"
}) })
} }
}) })
}else { } else {
previewFile(fileObj.fileId, fileObj.name) previewFile(fileObj.fileId, fileObj.name)
} }
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
@@ -183,7 +189,7 @@ Page({
wx.getStorage({ wx.getStorage({
key: 'userInfo', key: 'userInfo',
success(res){ success(res) {
that.setData({ that.setData({
userId: res.data.id userId: res.data.id
}) })
@@ -259,4 +265,4 @@ Page({
onShareAppMessage: function () { onShareAppMessage: function () {
} }
}) })
@@ -167,7 +167,7 @@
</view> </view>
<view style='width:100%;height:120px'> <view style='width:100%;height:120px'>
<text>签到信息</text> <text>签到信息</text>
<imgae style='margin-right:30px' class="back-img" src="{{signImgSrc}}"></imgae> <image style='margin-right:30px' class="back-img" src="{{signImgSrc}}"></image>
</view> </view>
</view> </view>
<!-- 签到信息end --> <!-- 签到信息end -->
@@ -54,16 +54,21 @@ page{
} }
.file-name view{ .file-name view{
padding: 0; padding: 0;
height: 30px; height: auto;
line-height: 30px;
border-bottom: 0; border-bottom: 0;
} }
.file-name view text{
overflow: hidden;
}
.file-name view image{ .file-name view image{
width: 30px; width: 30px;
min-width: 30px;
height: 30px; height: 30px;
margin-right: 10px; margin-right: 10px;
} }
.basic-info .meeting-files .file-name .look-file{ .basic-info .meeting-files .file-name .look-file{
min-width: 40px;
color: #069F99; color: #069F99;
} }
.warning-text{ .warning-text{