系统上线运行问题修改
This commit is contained in:
parent
bde66e30a1
commit
d5aec763e5
|
|
@ -19,6 +19,7 @@
|
||||||
v-model="selectedTypes"
|
v-model="selectedTypes"
|
||||||
label="1"
|
label="1"
|
||||||
@change="filterMaterials"
|
@change="filterMaterials"
|
||||||
|
style="color: #000;"
|
||||||
>产品手册
|
>产品手册
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -27,6 +28,7 @@
|
||||||
v-model="selectedTypes"
|
v-model="selectedTypes"
|
||||||
label="0"
|
label="0"
|
||||||
@change="filterMaterials"
|
@change="filterMaterials"
|
||||||
|
style="color: #000;"
|
||||||
>
|
>
|
||||||
产品视频
|
产品视频
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
|
|
@ -36,7 +38,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="width: 100%;height: 100%;">
|
<div style="width: 100%;height: 100%;">
|
||||||
<div class="content-area" ref="servicesGrid">
|
<div class="content-area"
|
||||||
|
:class="{
|
||||||
|
'compact-grid': showProMaterialsDuctList.length >= 5 && showProMaterialsDuctList.length < 8,
|
||||||
|
'compact-grid-ba': showProMaterialsDuctList.length == 8
|
||||||
|
}"
|
||||||
|
ref="servicesGrid">
|
||||||
<div
|
<div
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
class="services-grid"
|
class="services-grid"
|
||||||
|
|
@ -45,14 +52,14 @@
|
||||||
<div class="card-image" @click="previewDocs(item)">
|
<div class="card-image" @click="previewDocs(item)">
|
||||||
<ImagePreview
|
<ImagePreview
|
||||||
style="margin-top: -10px"
|
style="margin-top: -10px"
|
||||||
:height="200"
|
:height="192"
|
||||||
:borderRadius="10"
|
:borderRadius="10"
|
||||||
:width="itemWidth"
|
:width="itemWidth"
|
||||||
:src1="item.image"
|
:src1="item.image"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-content" :style="{ width: itemWidth - 40 + 'px' }">
|
<div class="card-content" >
|
||||||
<!-- 第一行:名称和版本 -->
|
<!-- 第一行:名称和版本 -->
|
||||||
<el-tooltip :content="item.name" placement="top" :effect="'light'" :enterable="false">
|
<el-tooltip :content="item.name" placement="top" :effect="'light'" :enterable="false">
|
||||||
<div class="card-title-row">
|
<div class="card-title-row">
|
||||||
|
|
@ -92,12 +99,17 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<!-- 在这里添加分页组件 -->
|
<!-- 在这里添加分页组件 -->
|
||||||
<div class="pagination-container" style="margin-top: -40px !important;">
|
<div class="pagination-container"
|
||||||
|
:class="{
|
||||||
|
'pagination-container-grid': showProMaterialsDuctList.length >= 5 && showProMaterialsDuctList.length < 8,
|
||||||
|
'pagination-container-grid-ba': showProMaterialsDuctList.length == 8
|
||||||
|
}"
|
||||||
|
>
|
||||||
<el-pagination
|
<el-pagination
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@current-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
:current-page="currentPage"
|
:current-page="currentPage"
|
||||||
:page-sizes="[10, 20, 30, 50]"
|
:page-sizes="[8, 16]"
|
||||||
:page-size="pageSize"
|
:page-size="pageSize"
|
||||||
:total="total"
|
:total="total"
|
||||||
layout="total, sizes, prev, pager, next, jumper">
|
layout="total, sizes, prev, pager, next, jumper">
|
||||||
|
|
@ -155,7 +167,7 @@ export default {
|
||||||
|
|
||||||
// 添加分页相关属性
|
// 添加分页相关属性
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
pageSize: 10,
|
pageSize: 8,
|
||||||
total: 0,
|
total: 0,
|
||||||
|
|
||||||
// 添加请求控制变量
|
// 添加请求控制变量
|
||||||
|
|
@ -524,9 +536,11 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-content {
|
.card-content {
|
||||||
|
width: 95%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
margin-left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-title-row,
|
.card-title-row,
|
||||||
|
|
@ -538,6 +552,7 @@ export default {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 24px;
|
min-height: 24px;
|
||||||
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-name {
|
.title-name {
|
||||||
|
|
@ -546,12 +561,16 @@ export default {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #333;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: 'PingFang SC', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-version {
|
.title-version {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: 12px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-footer {
|
.card-footer {
|
||||||
|
|
@ -582,6 +601,239 @@ export default {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.compact-grid {
|
||||||
|
flex: 1;
|
||||||
|
height: 78%;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
padding-right: 12px;
|
||||||
|
padding-top: 2px;
|
||||||
|
//max-height: calc(100vh - 80px); /* 减去顶部padding */
|
||||||
|
overflow-y: auto;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 0px;
|
||||||
|
margin-left: 30px;
|
||||||
|
row-gap: 40px;
|
||||||
|
|
||||||
|
.services-grid {
|
||||||
|
height: 280px; /* 给子元素设置固定高度以便测试滚动 */
|
||||||
|
width: 354px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
border: 1px solid #d6d1d1;
|
||||||
|
border-radius: 10px;
|
||||||
|
align-content: flex-start;
|
||||||
|
justify-items: center;
|
||||||
|
|
||||||
|
// background-color: skyblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-image {
|
||||||
|
height: 200px;
|
||||||
|
border-top-left-radius: 10px;
|
||||||
|
border-top-right-radius: 10px;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-bottom: 1px solid #d6d1d1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.services-grid:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-content {
|
||||||
|
width: 95%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title-row,
|
||||||
|
.card-footer {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
width: 100%;
|
||||||
|
min-height: 24px;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-name {
|
||||||
|
flex: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
margin-right: 8px;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #333;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: 'PingFang SC', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-version {
|
||||||
|
flex-shrink: 0;
|
||||||
|
color: #999;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-footer {
|
||||||
|
justify-content: space-between; /* 描述左对齐,按钮右对齐 */
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-desc {
|
||||||
|
flex: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.primary-btn {
|
||||||
|
flex-shrink: 0;
|
||||||
|
padding: 4px 12px;
|
||||||
|
background: linear-gradient(180deg, #00c7ef 0%, #005eef 100%);
|
||||||
|
color: white;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.primary-btn.isDisabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.compact-grid-ba {
|
||||||
|
flex: 1;
|
||||||
|
height: 83%;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
padding-right: 12px;
|
||||||
|
padding-top: 2px;
|
||||||
|
//max-height: calc(100vh - 80px); /* 减去顶部padding */
|
||||||
|
overflow-y: auto;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 0px;
|
||||||
|
margin-left: 30px;
|
||||||
|
row-gap: 40px;
|
||||||
|
|
||||||
|
.services-grid {
|
||||||
|
height: 280px; /* 给子元素设置固定高度以便测试滚动 */
|
||||||
|
width: 354px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
border: 1px solid #d6d1d1;
|
||||||
|
border-radius: 10px;
|
||||||
|
align-content: flex-start;
|
||||||
|
justify-items: center;
|
||||||
|
|
||||||
|
// background-color: skyblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-image {
|
||||||
|
height: 200px;
|
||||||
|
border-top-left-radius: 10px;
|
||||||
|
border-top-right-radius: 10px;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-bottom: 1px solid #d6d1d1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.services-grid:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-content {
|
||||||
|
width: 95%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title-row,
|
||||||
|
.card-footer {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
width: 100%;
|
||||||
|
min-height: 24px;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-name {
|
||||||
|
flex: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
margin-right: 8px;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #333;
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: 'PingFang SC', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-version {
|
||||||
|
flex-shrink: 0;
|
||||||
|
color: #999;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-footer {
|
||||||
|
justify-content: space-between; /* 描述左对齐,按钮右对齐 */
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-desc {
|
||||||
|
flex: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.primary-btn {
|
||||||
|
flex-shrink: 0;
|
||||||
|
padding: 4px 12px;
|
||||||
|
background: linear-gradient(180deg, #00c7ef 0%, #005eef 100%);
|
||||||
|
color: white;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.primary-btn.isDisabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-item {
|
.category-item {
|
||||||
|
|
@ -592,9 +844,11 @@ export default {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #666;
|
color: #000;
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
|
font-family: 'PingFang SC', sans-serif;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-item:hover {
|
.category-item:hover {
|
||||||
|
|
@ -622,7 +876,7 @@ export default {
|
||||||
|
|
||||||
.section-title {
|
.section-title {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #666;
|
color: #000;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
}
|
}
|
||||||
|
|
@ -633,17 +887,22 @@ export default {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.2s ease;
|
transition: background-color 0.2s ease;
|
||||||
|
color: #000 !important;
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #f5f7fa;
|
background-color: #f5f7fa;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.pagination-container {
|
.pagination-container {
|
||||||
grid-column: 1 / -1; /* 占据整行 */
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
|
||||||
padding: 20px 0;
|
|
||||||
margin-top: -40px !important;
|
margin-top: -40px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pagination-container-grid{
|
||||||
|
margin-top: 8% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pagination-container-grid-ba{
|
||||||
|
margin-top: 6% !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -153,35 +153,6 @@ export default {
|
||||||
url = 'https://' + url
|
url = 'https://' + url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 确保 URL 是完整的绝对路径
|
|
||||||
/*
|
|
||||||
const authData = {
|
|
||||||
username: linkUser,
|
|
||||||
password: linkPassword
|
|
||||||
}
|
|
||||||
// 将对象转换为JSON字符串并加密
|
|
||||||
const authJson = JSON.stringify(authData)
|
|
||||||
console.log(authJson)
|
|
||||||
const encryptedParams = bnsCloudEncrypt(authJson)
|
|
||||||
console.log(encryptedParams)
|
|
||||||
|
|
||||||
|
|
||||||
// 将加密后的用户名和密码拼接到URL参数中
|
|
||||||
const separator = url.includes('?') ? '&' : '?'
|
|
||||||
url += `${separator}params=${encodeURIComponent(encryptedParams)}`
|
|
||||||
|
|
||||||
// 如果 URL 不是以 http:// 或 https:// 开头,则添加 https://
|
|
||||||
if (!url.startsWith('http://') && !url.startsWith('https://')) {
|
|
||||||
// 如果 URL 以 www. 开头,直接添加 https://
|
|
||||||
if (url.startsWith('www.')) {
|
|
||||||
url = 'https://' + url
|
|
||||||
} else {
|
|
||||||
// 其他情况,添加 https://
|
|
||||||
url = 'https://' + url
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
|
|
||||||
window.open(url, '_blank')
|
window.open(url, '_blank')
|
||||||
},
|
},
|
||||||
// 查看详情
|
// 查看详情
|
||||||
|
|
@ -380,7 +351,7 @@ export default {
|
||||||
|
|
||||||
.compact-grid {
|
.compact-grid {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 75%;
|
height: 82%;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
padding-right: 12px;
|
padding-right: 12px;
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
|
|
@ -391,7 +362,8 @@ export default {
|
||||||
gap: 33px;
|
gap: 33px;
|
||||||
|
|
||||||
.services-grid {
|
.services-grid {
|
||||||
height: 260px; /* 给子元素设置固定高度以便测试滚动 */
|
height: 300px; /* 给子元素设置固定高度以便测试滚动 */
|
||||||
|
width: 354px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -408,7 +380,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-image {
|
.card-image {
|
||||||
height: 165px;
|
height: 200px;
|
||||||
border-top-left-radius: 10px;
|
border-top-left-radius: 10px;
|
||||||
border-top-right-radius: 10px;
|
border-top-right-radius: 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,7 @@ import TextTip from '@/components/TextTip/index'
|
||||||
import {getProductCenterDetailAPI} from '@/api/publicService/productCenter'
|
import {getProductCenterDetailAPI} from '@/api/publicService/productCenter'
|
||||||
import {encryptCBCTime} from '@/utils/aes'
|
import {encryptCBCTime} from '@/utils/aes'
|
||||||
import useBase64 from '@/utils/base64Utils.js'
|
import useBase64 from '@/utils/base64Utils.js'
|
||||||
|
import {bnsCloudEncrypt} from "@/utils/aes_new";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ProductDetail',
|
name: 'ProductDetail',
|
||||||
|
|
@ -147,7 +148,8 @@ export default {
|
||||||
this.getProductCenterDetailInScreenFun(this.$route.params?.id)
|
this.getProductCenterDetailInScreenFun(this.$route.params?.id)
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {},
|
mounted() {
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
// 获取产品中心详情
|
// 获取产品中心详情
|
||||||
|
|
@ -165,6 +167,8 @@ export default {
|
||||||
introduction,
|
introduction,
|
||||||
videoList,
|
videoList,
|
||||||
fileList,
|
fileList,
|
||||||
|
linkUser,
|
||||||
|
linkPassword,
|
||||||
} = res.data
|
} = res.data
|
||||||
this.titleName = res.data.name
|
this.titleName = res.data.name
|
||||||
|
|
||||||
|
|
@ -178,6 +182,8 @@ export default {
|
||||||
linkImage,
|
linkImage,
|
||||||
isAccess,
|
isAccess,
|
||||||
introduction,
|
introduction,
|
||||||
|
linkUser,
|
||||||
|
linkPassword,
|
||||||
}
|
}
|
||||||
|
|
||||||
this.productCases = list.map((item) => {
|
this.productCases = list.map((item) => {
|
||||||
|
|
@ -206,14 +212,29 @@ export default {
|
||||||
this.$modal.msgWarning('该产品不支持访问')
|
this.$modal.msgWarning('该产品不支持访问')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
// 获取用户名和密码
|
||||||
|
const {linkUser, linkPassword} = this.productDetail
|
||||||
// 确保 URL 是完整的绝对路径
|
// 确保 URL 是完整的绝对路径
|
||||||
let url = this.productDetail.linkUrl
|
let url = this.productDetail.linkUrl
|
||||||
|
|
||||||
if (!url.startsWith('http://') && !url.startsWith('https://')) {
|
// 如果存在用户名和密码,则进行加密并拼接到URL中
|
||||||
|
if (linkUser && linkPassword) {
|
||||||
|
// 先拼接成 username=admin&password=123 这样的字符串
|
||||||
|
const authString = `username=${linkUser}&password=${linkPassword}`
|
||||||
|
|
||||||
|
// 对拼接后的字符串进行加密
|
||||||
|
const encryptedParams = bnsCloudEncrypt(authString)
|
||||||
|
|
||||||
|
// 将加密后的参数拼接到URL中
|
||||||
|
const separator = url.includes('?') ? '&' : '?'
|
||||||
|
url += `${separator}params=${encodeURIComponent(encryptedParams)}`
|
||||||
|
console.log('加密后的参数:', url)
|
||||||
|
} else if (!url.startsWith('http://') && !url.startsWith('https://')) {
|
||||||
|
// 如果 URL 不是以 http:// 或 https:// 开头,则添加 https://
|
||||||
if (url.startsWith('www.')) {
|
if (url.startsWith('www.')) {
|
||||||
url = 'https://' + url
|
url = 'https://' + url
|
||||||
} else {
|
} else {
|
||||||
|
// 其他情况,添加 https://
|
||||||
url = 'https://' + url
|
url = 'https://' + url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -308,8 +329,7 @@ export default {
|
||||||
|
|
||||||
// 在新窗口中打开预览页面
|
// 在新窗口中打开预览页面
|
||||||
window.open(previewPageUrl, '_blank');
|
window.open(previewPageUrl, '_blank');
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// 格式不正常,请重新上传
|
// 格式不正常,请重新上传
|
||||||
this.$modal.msgWarning('格式不正常,请重新上传');
|
this.$modal.msgWarning('格式不正常,请重新上传');
|
||||||
}
|
}
|
||||||
|
|
@ -897,6 +917,7 @@ export default {
|
||||||
span {
|
span {
|
||||||
color: #787878;
|
color: #787878;
|
||||||
}
|
}
|
||||||
|
|
||||||
& span:last-child {
|
& span:last-child {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue