测试video
' + } + if(index === 3) { + this.fuText = '测试help
' } - axios({ - url: fileUrl, - method: 'GET', - responseType: 'blob' - }).then(response => { - const blob = new Blob([response.data], { type: 'application/octet-stream' }); - - // 生成新的文件名 - const originalFileName = fileUrl.split('/').pop(); - const timestamp = new Date().toISOString().replace(/[:.-]/g, ''); - const newFileName = `${timestamp}_${originalFileName}`; - - // 检查浏览器是否支持 showSaveFilePicker API - if (window.showSaveFilePicker) { - // 使用 showSaveFilePicker API 让用户选择保存路径 - window.showSaveFilePicker({ suggestedName: newFileName }).then(handle => { - handle.createWritable().then(writer => { - writer.write(blob); - writer.close(); - }).catch(error => { - console.error('创建文件写入器失败:', error); - this.$message.error('创建文件写入器失败,请联系管理员!'); - }); - }).catch(error => { - - }); - } else { - // 使用传统的 a 标签下载文件 - const link = document.createElement('a'); - link.href = URL.createObjectURL(blob); - link.download = newFileName; - link.click(); - URL.revokeObjectURL(link.href); - } - }).catch(error => { - console.error('下载文件出错:', error); - this.$message.error('下载文件出现错误,请联系管理员!'); - }); }, + //图片预览相关 showImage (e) { if (e.target.tagName == 'IMG') { @@ -445,4 +402,68 @@ export default { max-width:100%; } +.contact-box { + width: 250px; + padding: 20px; + border: 1px solid #ddd; + background-color: #f5f5f5; + text-align: center; + font-family: Arial, sans-serif; +} + +.contact-title { + display: flex; + justify-content: center; + align-items: center; + font-size: 16px; + color: red; + margin-bottom: 15px; +} + +.contact-button { + display: inline-block; + padding: 10px 20px; + font-size: 16px; + text-align: center; + border-radius: 5px; +} +.contact-butdiv { + display: flex; + justify-content: center; + align-items: center; +} +.contact-info { + display: flex; + justify-content: center; + align-items: center; + margin-top: 10px; + font-size: 14px; + color: #666; +} + +::v-deep .el-icon-weixin { + background: url('../../../assets/images/moren.png') no-repeat center; + font-size: 12px; + background-size: cover; + width: 20px; + height: 20px; + display: inline-block; /* 确保图标作为一个块级元素显示 */ + line-height: 24px; /* 使文本垂直居中 */ + text-align: center; /* 使文本水平居中 */ +} +::v-deep .el-icon-weixin:before { + content: "替"; + font-size: 12px; + visibility: hidden; +} + +.menu-div { + display: flex; + justify-content: center; + align-items: center; + margin-right: 20px; + margin-top: 20px; + width: 1000px; + height: 50px; +} diff --git a/ruoyi-ui/src/views/system/userFront/index.vue b/ruoyi-ui/src/views/system/userFront/index.vue index e5c9556c..7afb7c3f 100644 --- a/ruoyi-ui/src/views/system/userFront/index.vue +++ b/ruoyi-ui/src/views/system/userFront/index.vue @@ -103,7 +103,7 @@暂无数据
+支付成功,请保留好支付记录,谢谢!
+