【bug】会议不是pdf的分发邮箱 缴费凭证的显示
This commit is contained in:
@@ -35,10 +35,15 @@ Component({
|
|||||||
lifetimes: {
|
lifetimes: {
|
||||||
attached: function() {
|
attached: function() {
|
||||||
console.log(' this.data.initImgsList', this.data.initImgsList);
|
console.log(' this.data.initImgsList', this.data.initImgsList);
|
||||||
let initImgArr = this.data.initImgsList.split(',')
|
let initImgArr
|
||||||
|
if(!!this.data.initImgsList){
|
||||||
|
initImgArr = this.data.initImgsList.split(',')
|
||||||
|
}
|
||||||
const arr = []
|
const arr = []
|
||||||
for (let index = 0; index < initImgArr.length; index++) {
|
if(initImgArr && initImgArr.length > 0){
|
||||||
arr.push( baseUrl + URL_CONFIG + 'sys/common/download/' + initImgArr[index])
|
for (let index = 0; index < initImgArr.length; index++) {
|
||||||
|
arr.push( baseUrl + URL_CONFIG + 'sys/common/download/' + initImgArr[index])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.setData({
|
this.setData({
|
||||||
tempFilePaths:arr
|
tempFilePaths:arr
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<!--components/imageUpload/imageUpload.wxml-->
|
<!--components/imageUpload/imageUpload.wxml-->
|
||||||
<view class="img_box">
|
<view class="img_box">
|
||||||
<view class="imgs" wx:for="{{tempFilePaths}}" wx:key="index">
|
<view class="imgs" wx:for="{{tempFilePaths}}" wx:key="index" wx:if="{{tempFilePaths.length > 0}}">
|
||||||
<image src='{{item}}' bindlongpress="deleteImage" bindtap="previewImage" data-index="{{index}}" mode='widthFix' />
|
<image src='{{item}}' bindlongpress="deleteImage" bindtap="previewImage" data-index="{{index}}" mode='widthFix' />
|
||||||
</view>
|
</view>
|
||||||
<view class="imgs">
|
<view class="imgs">
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
// pages/meeting/meeting.js
|
// pages/meeting/meeting.js
|
||||||
import {
|
import {
|
||||||
previewFile
|
previewFile,sliceFileTypeByFileName
|
||||||
} from '../../assets/js/preview'
|
} from '../../assets/js/preview'
|
||||||
|
|
||||||
import MeetingApi from '../../assets/js/http/meetingApi'
|
import MeetingApi from '../../assets/js/http/meetingApi'
|
||||||
import signUpApi from '../../assets/js/http/signUp'
|
import signUpApi from '../../assets/js/http/signUp'
|
||||||
|
import UserApi from '../../assets/js/http/userApi'
|
||||||
import {
|
import {
|
||||||
baseUrl,
|
baseUrl,
|
||||||
URL_CONFIG
|
URL_CONFIG
|
||||||
@@ -31,7 +32,8 @@ Page({
|
|||||||
// 缴费凭证的回显
|
// 缴费凭证的回显
|
||||||
payRecordImgSrc: '',
|
payRecordImgSrc: '',
|
||||||
// 签到图片的回显
|
// 签到图片的回显
|
||||||
signImgSrc: ''
|
signImgSrc: '',
|
||||||
|
userId:''
|
||||||
},
|
},
|
||||||
|
|
||||||
// 获取图片的id
|
// 获取图片的id
|
||||||
@@ -73,7 +75,7 @@ Page({
|
|||||||
} else {
|
} else {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: "error",
|
icon: "none",
|
||||||
duration: 800,
|
duration: 800,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -141,8 +143,31 @@ Page({
|
|||||||
// 预览
|
// 预览
|
||||||
previewFile(e) {
|
previewFile(e) {
|
||||||
const fileObj = e.currentTarget.dataset.file
|
const fileObj = e.currentTarget.dataset.file
|
||||||
previewFile(fileObj.id, fileObj.name)
|
let fileType = sliceFileTypeByFileName(fileObj.name)
|
||||||
|
// 文件类型不是docx,doc,pdf时,已邮件形式发送到参会人的邮箱
|
||||||
|
if(fileType !== 'docx' && fileType !== 'doc' && fileType !== 'pdf') {
|
||||||
|
let params = {
|
||||||
|
fileId: fileObj.id,
|
||||||
|
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.fileId, fileObj.name)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
@@ -155,6 +180,15 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
meetingInfo: meetingInfo
|
meetingInfo: meetingInfo
|
||||||
})
|
})
|
||||||
|
|
||||||
|
wx.getStorage({
|
||||||
|
key: 'userInfo',
|
||||||
|
success(res){
|
||||||
|
that.setData({
|
||||||
|
userId: res.data.id
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
//
|
//
|
||||||
let {
|
let {
|
||||||
meetingFiles,
|
meetingFiles,
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
<!-- 缴费方式为线上的显示 -->
|
<!-- 缴费方式为线上的显示 -->
|
||||||
<view class="p-20" wx:if="{{singInPersonInfo.payMode === 2 && singInPersonInfo.checkResult !== 1 }}">
|
<view class="p-20" wx:if="{{singInPersonInfo.payMode === 2 && singInPersonInfo.checkResult !== 1 }}">
|
||||||
<text class="validate">缴费订单号后四位数</text>
|
<text class="validate">缴费订单号后四位数</text>
|
||||||
<input class="input" placeholder="请输入订单号后四位数" value="{{ordeCode}}" bindblur="setOrdeCode" />
|
<input class="input" maxlength="4" placeholder="请输入缴费订单号后四位数" value="{{ordeCode}}" bindblur="setOrdeCode" />
|
||||||
</view>
|
</view>
|
||||||
<!-- 审核通过后的订单后四位 -->
|
<!-- 审核通过后的订单后四位 -->
|
||||||
<view class="p-20" wx:if="{{ singInPersonInfo.checkResult === 1 }}">
|
<view class="p-20" wx:if="{{ singInPersonInfo.checkResult === 1 }}">
|
||||||
|
|||||||
Reference in New Issue
Block a user