样式修改
This commit is contained in:
@@ -31,7 +31,7 @@ const UserApi = {
|
||||
// 设置密码
|
||||
setPassword: (params) => http.post(`${URL_CONFIG}company/changePasswordWithToken`, params),
|
||||
// 修改密码
|
||||
updatePassword: (params) => http.post(`${URL_CONFIG}company/verificationChangePassword`, params),
|
||||
updatePassword: (params) => http.post(`${URL_CONFIG}company/changePassword`, params),
|
||||
// 图片验证码
|
||||
sendImage: (params) => http.get(`${URL_CONFIG}sys/randomImage/${params.time}`, params),
|
||||
// 确认签到
|
||||
|
||||
@@ -1,23 +1,21 @@
|
||||
import MeetingApi from '../js/http/meetingApi'
|
||||
import { baseUrl } from '../../assets/js/http/api'
|
||||
/**
|
||||
* 预览文件的方法
|
||||
* 预览文件的方法
|
||||
* @param fileId 文件id
|
||||
* @param fileName 文件名称
|
||||
*/
|
||||
|
||||
// 文件下载的地址 后期上线需要修改地址
|
||||
const downFileUrl = `http://localhost:3000/jero-boot/sys/common/download/`
|
||||
const downFileUrl = `${baseUrl}/jero-boot/sys/common/download/`
|
||||
|
||||
// 预览
|
||||
export function previewFile(fileId,fileName) {
|
||||
|
||||
// 目前没有在真机调试上试过 不知道要不要改前缀
|
||||
// console.log(that.data.pdfFilePath.replace("wxfile", 'http'));
|
||||
// 文件下载的地址
|
||||
// 文件下载的地址
|
||||
const url = downFileUrl + fileId
|
||||
// 文件类型 目前是通过文件名称去截取
|
||||
// 文件类型 目前是通过文件名称去截取
|
||||
const fileType = sliceFileTypeByFileName(fileName)
|
||||
// const fileType =
|
||||
// const fileType =
|
||||
wx.downloadFile({
|
||||
url: url,
|
||||
success: function (res) {
|
||||
@@ -44,7 +42,7 @@ export function previewFile(fileId,fileName) {
|
||||
})
|
||||
}
|
||||
|
||||
// 截取文件类型的方法
|
||||
// 截取文件类型的方法
|
||||
export function sliceFileTypeByFileName(fileName){
|
||||
// 获取 . 的索引
|
||||
let index = fileName.lastIndexOf('.')
|
||||
|
||||
Reference in New Issue
Block a user