【fix-bug】1、文件下载权限的问题 2、文件提示语的处理
This commit is contained in:
@@ -47,7 +47,7 @@ export function previewFile(fileId,fileName) {
|
||||
// 获取 . 的索引
|
||||
let index = fileName.lastIndexOf('.')
|
||||
// 截取文件类型
|
||||
return fileName.slice(index+1)
|
||||
return fileName.slice(index+1).toLowerCase()
|
||||
}
|
||||
|
||||
// 通过文件id获取文件的相关信息
|
||||
|
||||
@@ -267,9 +267,10 @@ Page({
|
||||
let flag = typeof(res) === 'string'
|
||||
const that = this
|
||||
// 只有审核通过的才可以去下载
|
||||
if (!flag && this.data.singInPersonInfo.checkResult !== 1) {
|
||||
// 原判断条件 !flag && this.data.singInPersonInfo.checkResult !== 1)
|
||||
if (!flag) {
|
||||
wx.showToast({
|
||||
title: '会议报名并审核通过后才可查看文件',
|
||||
title: res.message,
|
||||
icon: 'none',
|
||||
duration: 3000
|
||||
})
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<text>征集截止时间</text>
|
||||
<text>{{meetingInfo.endTimeAddQuestion}}</text>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<!-- 标协会议(标准宣贯、学习培训) -是否具有问题征集--结束 -->
|
||||
<view class="sign-in">
|
||||
@@ -105,10 +105,10 @@
|
||||
<view class="meeting-files" style="margin-top: 0;">
|
||||
<!-- 只有报名且审核通过的用户才可下载会议资料 -->
|
||||
<text>会议文件</text>
|
||||
<view class="warning-text">
|
||||
<!-- <view class="warning-text">
|
||||
<image src="../../assets/images/warn.png"></image>
|
||||
<text>单个账号会议文件只可发送五次</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="file-name" wx:for="{{meetingDataList}}" wx:key="item">
|
||||
<view>
|
||||
<image src="../../assets/images/pdf.png"></image>
|
||||
@@ -542,7 +542,7 @@
|
||||
<text class="validate">缴费订单号后四位数:{{singInPersonInfo.orderCode}}</text>
|
||||
|
||||
</view>
|
||||
<view class="tip" wx:if="{{singInPersonInfo.payMOde === 2 }}">请在会议期间内上传缴费凭证和缴费订单号后四位</view>
|
||||
<view class="tip" wx:if="{{singInPersonInfo.payMode === 2 }}">请在会议期间内上传缴费凭证和缴费订单号后四位</view>
|
||||
</view>
|
||||
<!-- 参会人的付款凭证审核状态 0 未审核 1已通过 2拒绝 -->
|
||||
<!-- 未审核不显示 -->
|
||||
|
||||
Reference in New Issue
Block a user