修复部分页面展示bug
|
@ -4,8 +4,8 @@ export default {
|
||||||
uploadQiNiuDomain: 'https://upload-z2.qiniup.com',
|
uploadQiNiuDomain: 'https://upload-z2.qiniup.com',
|
||||||
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
// baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
||||||
// baseUrl: 'http://47.93.242.168:8080',
|
// baseUrl: 'http://47.93.242.168:8080',
|
||||||
// baseUrl: 'http://47.93.242.168:8080',
|
baseUrl: 'http://47.93.242.168:8080',
|
||||||
baseUrl: 'http://localhost:8080',
|
// baseUrl: 'http://localhost:8080',
|
||||||
// baseUrl: 'http://47.93.242.168:8080',
|
// baseUrl: 'http://47.93.242.168:8080',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
|
|
|
@ -337,8 +337,6 @@ align-items: center;
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
width: 60rpx;
|
|
||||||
height: 20rpx;
|
|
||||||
font-size: 20rpx;
|
font-size: 20rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #00CCBE;
|
color: #00CCBE;
|
||||||
|
|
|
@ -145,7 +145,7 @@ const leftClick = () => {
|
||||||
|
|
||||||
.dictAuto {
|
.dictAuto {
|
||||||
margin: 4rpx auto;
|
margin: 4rpx auto;
|
||||||
margin-bottom: 200rpx;
|
margin-bottom: 400rpx;
|
||||||
.state1 {
|
.state1 {
|
||||||
width: 686rpx;
|
width: 686rpx;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
|
|
|
@ -115,11 +115,13 @@ const uploadFilePromise = async (fileInfo1, name) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
fileInfo.name = fileNameOld[0] + "_" + store.state.user.phoneType + "_" + name;
|
fileInfo.name = fileNameOld[0] + "_" + store.state.user.phoneType + "_" + name;
|
||||||
|
|
||||||
let extension1 = fileInfo1.url.split('.');
|
let extension1 = fileInfo1.url.split('.');
|
||||||
// 防止 h5 报错
|
// 防止 h5 报错
|
||||||
if (extension1[1] == null) {
|
if (extension1[1] == null) {
|
||||||
extension1[1] = fileNameOld[1];
|
extension1[1] = fileNameOld[1];
|
||||||
}
|
}
|
||||||
|
//主要是为了拼接文件type(video/mp4),因为各端传入的type各有不同
|
||||||
fileInfo.type = fileInfo1.type + "/" + extension1[1];
|
fileInfo.type = fileInfo1.type + "/" + extension1[1];
|
||||||
fileInfo.extension = extension1[1];
|
fileInfo.extension = extension1[1];
|
||||||
try {
|
try {
|
||||||
|
@ -134,13 +136,8 @@ const uploadFilePromise = async (fileInfo1, name) => {
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
//多走一步,为了实现文件分片上传(废弃,简单上传即可)
|
||||||
const uploadQN = (file) => {
|
const uploadQN = (file) => {
|
||||||
// if (store.state.user.phoneType === 'mp-weixin') {
|
|
||||||
// return uploadQN1(file.url);
|
|
||||||
// } else {
|
|
||||||
// return uploadQN2(file);
|
|
||||||
// }
|
|
||||||
return uploadQN1(file.url);
|
return uploadQN1(file.url);
|
||||||
};
|
};
|
||||||
//废弃
|
//废弃
|
||||||
|
|
|
@ -89,7 +89,7 @@ import { useStore } from 'vuex';
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const fileTypeInfo1 = ref("image")
|
const fileTypeInfo1 = ref("image")
|
||||||
const fileTypeInfo2 = ref("file")
|
const fileTypeInfo2 = ref("video")
|
||||||
const QNDomain = store.state.user.QNDomain
|
const QNDomain = store.state.user.QNDomain
|
||||||
const current = ref(0)
|
const current = ref(0)
|
||||||
const swiperDotIndex = ref(0)
|
const swiperDotIndex = ref(0)
|
||||||
|
|
Before Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 13 KiB |