Compare commits
2 Commits
3ab1e55f4c
...
f487ed7a3e
| Author | SHA1 | Date | |
|---|---|---|---|
| f487ed7a3e | |||
| 48bf9e6461 |
Binary file not shown.
117
f/web-kboss/src/api/productsServices/index.js
Normal file
117
f/web-kboss/src/api/productsServices/index.js
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
// 菜单添加
|
||||||
|
export function addProductMenuAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_product_menu_add.dspy`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 菜单更新
|
||||||
|
export function updateProductMenuAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_product_menu_update.dspy`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 菜单查找
|
||||||
|
export function findProductMenuAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_product_menu_search.dspy`,
|
||||||
|
method: 'get',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 菜单删除
|
||||||
|
export function deleteProductMenuAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_product_menu_delete.dspy`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 产品添加
|
||||||
|
export function addProductThreeMenuAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_product_add.dspy`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 产品列表
|
||||||
|
export function findProductThreeMenuAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_product_search.dspy`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 三级产品更新
|
||||||
|
export function updateProductThreeMenuAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_product_update.dspy`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 三级产品删除
|
||||||
|
export function deleteProductThreeMenuAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_product_delete.dspy`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//产品介绍页数据添加
|
||||||
|
export function addProductIntroAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_content_add.dspy`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 产品介绍页数据删除
|
||||||
|
export function deleteProductIntroAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_content_delete.dspy`,
|
||||||
|
method: 'get',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 产品介绍页数据更新
|
||||||
|
export function updateProductIntroAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_content_update.dspy`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 产品介绍页数据树
|
||||||
|
export function findProductIntroAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_content_get_tree.dspy`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 产品介绍页数据查找
|
||||||
|
export function findProductIntroTreeAPI(params) {
|
||||||
|
return request({
|
||||||
|
url: `/product/home_page_content_search.dspy`,
|
||||||
|
method: 'get',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -1156,8 +1156,17 @@ export const asyncRoutes = [
|
|||||||
path: "index",
|
path: "index",
|
||||||
component: () => import("@/views/operation/menuMangement/index.vue"),
|
component: () => import("@/views/operation/menuMangement/index.vue"),
|
||||||
name: "menuMangement",
|
name: "menuMangement",
|
||||||
meta: { title: "菜单管理", fullPath: "/menuMangement/index" },
|
meta: { title: "ncmatch菜单管理", fullPath: "/menuMangement/index" },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "productsServices",
|
||||||
|
component: () => import("@/views/operation/productsServices/index.vue"),
|
||||||
|
name: "productsServices",
|
||||||
|
meta: {
|
||||||
|
title: "产品与服务管理",
|
||||||
|
fullPath: "/operation/productsServices"
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -145,6 +145,22 @@ const mutations = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
|
/**
|
||||||
|
* 生成动态路由
|
||||||
|
*
|
||||||
|
* 根据用户类型、组织类型和权限列表生成对应的动态路由配置
|
||||||
|
* 包含管理员和普通用户的不同路由生成逻辑
|
||||||
|
*
|
||||||
|
* @param {Object} context - Vuex上下文对象
|
||||||
|
* @param {Function} context.commit - 提交mutation的方法
|
||||||
|
* @param {Object} context.rootState - 根模块的状态
|
||||||
|
* @param {Object} params - 参数对象
|
||||||
|
* @param {string} [params.userType] - 用户类型
|
||||||
|
* @param {number} [params.orgType] - 组织类型
|
||||||
|
* @param {Array} [params.auths] - 权限列表
|
||||||
|
* @param {Object} [params.user] - 用户信息对象
|
||||||
|
* @returns {Promise<Array>} 解析后的动态路由数组
|
||||||
|
*/
|
||||||
generateRoutes({ commit, rootState }, params) {
|
generateRoutes({ commit, rootState }, params) {
|
||||||
console.log("ACTION generateRoutes - params:", params);
|
console.log("ACTION generateRoutes - params:", params);
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
@mouseenter="selectSecondary(secondary)"
|
@mouseenter="selectSecondary(secondary)"
|
||||||
@click="handleSecondaryClick(secondary)">
|
@click="handleSecondaryClick(secondary)">
|
||||||
{{ secondary.second_level_name }}
|
{{ secondary.second_level_name }}
|
||||||
<span v-if="secondary.thirdClassification && secondary.thirdClassification.length > 0" class="item-arrow">›</span>
|
<!-- <span v-if="secondary.thirdClassification && secondary.thirdClassification.length > 0" class="item-arrow">›</span> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -341,10 +341,10 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.banner-box {
|
.banner-box {
|
||||||
height: 700px!important;
|
height: 600px!important;
|
||||||
background: url('./img/tt-banner.png') no-repeat ;
|
background: url('./img/tt-banner.png') no-repeat ;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 200px;
|
// padding-bottom: 10px;
|
||||||
|
|
||||||
.conter {
|
.conter {
|
||||||
width: 700px;
|
width: 700px;
|
||||||
|
|||||||
1963
f/web-kboss/src/views/operation/productsServices/index.vue
Normal file
1963
f/web-kboss/src/views/operation/productsServices/index.vue
Normal file
File diff suppressed because it is too large
Load Diff
687
f/web-kboss/src/views/operation/productsServices/less/index.css
Normal file
687
f/web-kboss/src/views/operation/productsServices/less/index.css
Normal file
@ -0,0 +1,687 @@
|
|||||||
|
.mianBox {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
min-height: 100vh;
|
||||||
|
gap: 16px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
padding-bottom: 40px;
|
||||||
|
}
|
||||||
|
.left {
|
||||||
|
width: 30%;
|
||||||
|
min-width: 320px;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
.left-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
|
||||||
|
}
|
||||||
|
.left-card /deep/ .el-card__body {
|
||||||
|
padding: 20px;
|
||||||
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.right {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.toptit {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
border-bottom: 1px solid #e4e7ed;
|
||||||
|
}
|
||||||
|
.search {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.search /deep/ .el-input-group__append {
|
||||||
|
background-color: #409eff;
|
||||||
|
border-color: #409eff;
|
||||||
|
}
|
||||||
|
.search /deep/ .el-input-group__append .el-button {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.search /deep/ .el-input-group__append .el-button:hover {
|
||||||
|
background-color: #66b1ff;
|
||||||
|
}
|
||||||
|
.custom-tree-node {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 6px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: background-color 0.2s;
|
||||||
|
}
|
||||||
|
.custom-tree-node:hover {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
}
|
||||||
|
.custom-tree-node .el-button {
|
||||||
|
padding: 4px;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
.custom-tree-node .el-button i {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.custom-tree-node .el-button:hover {
|
||||||
|
background-color: rgba(64, 158, 255, 0.1);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
.tree-container {
|
||||||
|
overflow-y: auto;
|
||||||
|
border: 1px solid #e4e7ed;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 12px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
}
|
||||||
|
.tree-container /deep/ .el-tree .el-tree-node .el-tree-node__content {
|
||||||
|
height: 36px;
|
||||||
|
}
|
||||||
|
.tree-container /deep/ .el-tree .el-tree-node .el-tree-node__content:hover {
|
||||||
|
background-color: #f0f7ff;
|
||||||
|
}
|
||||||
|
.tree-container /deep/ .el-tree .el-tree-node.is-current > .el-tree-node__content {
|
||||||
|
background-color: #ecf5ff;
|
||||||
|
color: #409eff;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.add-menu-box {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border: 2px dashed #c0c4cc;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 12px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
margin-top: 20px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
color: #606266;
|
||||||
|
}
|
||||||
|
.add-menu-box:hover {
|
||||||
|
border-color: #409eff;
|
||||||
|
background-color: #f0f7ff;
|
||||||
|
color: #409eff;
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 4px 12px rgba(64, 158, 255, 0.1);
|
||||||
|
}
|
||||||
|
.add-menu-box .add-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-right: 8px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
.add-menu-box div {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.product-card {
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.product-card /deep/ .el-card__body {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
.rigtop {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
.rigtop-left {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.breadcrumb {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
.breadcrumb /deep/ .el-breadcrumb__inner {
|
||||||
|
color: #909399;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
.breadcrumb /deep/ .el-breadcrumb__inner:hover {
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
|
.breadcrumb /deep/ .el-breadcrumb__separator {
|
||||||
|
color: #c0c4cc;
|
||||||
|
}
|
||||||
|
.current-menu {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
.add-product-btn .el-button {
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 10px 20px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.add-product-btn .el-button i {
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
.product-table {
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
.product-table /deep/ .el-table {
|
||||||
|
border-radius: 6px;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
}
|
||||||
|
.product-table /deep/ .el-table th {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
color: #303133;
|
||||||
|
font-weight: 600;
|
||||||
|
height: 48px;
|
||||||
|
}
|
||||||
|
.product-table /deep/ .el-table td {
|
||||||
|
padding: 16px 0;
|
||||||
|
}
|
||||||
|
.product-table /deep/ .el-table .el-table__row {
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.2s;
|
||||||
|
}
|
||||||
|
.product-table /deep/ .el-table .el-table__row:hover {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
}
|
||||||
|
.product-table /deep/ .el-table .el-table__row.current-row {
|
||||||
|
background-color: #ecf5ff;
|
||||||
|
}
|
||||||
|
.product-info .product-name {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
.product-info .product-desc {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #909399;
|
||||||
|
line-height: 1.5;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.product-tags {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
.product-tags .el-tag {
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0 8px;
|
||||||
|
height: 24px;
|
||||||
|
line-height: 22px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.product-tags .el-tag--info {
|
||||||
|
background-color: #f4f4f5;
|
||||||
|
border-color: #e9e9eb;
|
||||||
|
color: #909399;
|
||||||
|
}
|
||||||
|
.action-buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
.action-buttons .el-button {
|
||||||
|
min-width: 60px;
|
||||||
|
padding: 7px 15px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.action-buttons .el-button--danger {
|
||||||
|
background-color: #fef0f0;
|
||||||
|
border-color: #fbc4c4;
|
||||||
|
color: #f56c6c;
|
||||||
|
}
|
||||||
|
.action-buttons .el-button--danger:hover {
|
||||||
|
background-color: #f56c6c;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.pagination {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-top: 24px;
|
||||||
|
padding-top: 24px;
|
||||||
|
border-top: 1px solid #ebeef5;
|
||||||
|
}
|
||||||
|
.pagination /deep/ .el-pagination .el-pagination__sizes,
|
||||||
|
.pagination /deep/ .el-pagination .el-pagination__jump {
|
||||||
|
margin-left: 16px;
|
||||||
|
}
|
||||||
|
.pagination /deep/ .el-pagination .btn-prev,
|
||||||
|
.pagination /deep/ .el-pagination .btn-next {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #d8dce5;
|
||||||
|
}
|
||||||
|
.pagination /deep/ .el-pagination .el-pager li {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #d8dce5;
|
||||||
|
margin: 0 4px;
|
||||||
|
}
|
||||||
|
.pagination /deep/ .el-pagination .el-pager li.active {
|
||||||
|
background-color: #409eff;
|
||||||
|
color: white;
|
||||||
|
border-color: #409eff;
|
||||||
|
}
|
||||||
|
.card-top {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding-bottom: 16px;
|
||||||
|
border-bottom: 1px solid #e4e7ed;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
.card-top .top-tit span:first-child {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
.card-top .top-tit span:last-child {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #909399;
|
||||||
|
}
|
||||||
|
.card-top .top-btn .el-button {
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 10px 24px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.card-content {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.card-content .content-tab {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.card-content .content-tab .tab-top {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
.card-content .content-tab .tab-content {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
.card-content .content-tab .tab-content .tab-item {
|
||||||
|
padding: 10px 24px;
|
||||||
|
border-radius: 20px;
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
color: #606266;
|
||||||
|
font-size: 14px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
border: 1px solid transparent;
|
||||||
|
}
|
||||||
|
.card-content .content-tab .tab-content .tab-item:hover {
|
||||||
|
background-color: #e4e7ed;
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
.card-content .content-tab .tab-content .tab-item.active {
|
||||||
|
background-color: #409eff;
|
||||||
|
color: white;
|
||||||
|
font-weight: 500;
|
||||||
|
border-color: #409eff;
|
||||||
|
box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
|
||||||
|
}
|
||||||
|
.product-detail-card {
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
|
||||||
|
}
|
||||||
|
.product-detail-card /deep/ .el-card__body {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-basic-info {
|
||||||
|
padding: 20px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-form-item__label {
|
||||||
|
color: #606266;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-input .el-input__inner,
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-textarea .el-input__inner,
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-input .el-textarea__inner,
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-textarea .el-textarea__inner {
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-input .el-input__inner:focus,
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-textarea .el-input__inner:focus,
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-input .el-textarea__inner:focus,
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-textarea .el-textarea__inner:focus {
|
||||||
|
border-color: #409eff;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-input-number .el-input-number__decrease,
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-input-number .el-input-number__increase {
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-basic-info /deep/ .el-form-item .el-input-number .el-input__inner {
|
||||||
|
border-radius: 0 4px 4px 0;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-detail-content {
|
||||||
|
margin-top: 16px;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-detail-content .editor-container /deep/ .el-textarea .el-textarea__inner {
|
||||||
|
border-radius: 6px;
|
||||||
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.6;
|
||||||
|
padding: 16px;
|
||||||
|
border: 1px solid #dcdfe6;
|
||||||
|
}
|
||||||
|
.product-detail-card .product-detail-content .editor-container /deep/ .el-textarea .el-textarea__inner:focus {
|
||||||
|
border-color: #409eff;
|
||||||
|
box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
|
||||||
|
}
|
||||||
|
.product-detail-card .product-detail-content .editor-container /deep/ .el-textarea .el-textarea__inner::placeholder {
|
||||||
|
color: #c0c4cc;
|
||||||
|
}
|
||||||
|
.empty-detail {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 80px 40px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.empty-detail .empty-icon {
|
||||||
|
font-size: 64px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
opacity: 0.3;
|
||||||
|
animation: float 3s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
.empty-detail .empty-text {
|
||||||
|
color: #909399;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.6;
|
||||||
|
max-width: 300px;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog {
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__header {
|
||||||
|
padding: 20px 24px 10px;
|
||||||
|
border-bottom: 1px solid #e4e7ed;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__header .el-dialog__title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__body {
|
||||||
|
padding: 20px 24px;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__body .el-form-item {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__body .el-form-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__footer {
|
||||||
|
padding: 10px 24px 20px;
|
||||||
|
border-top: 1px solid #e4e7ed;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__footer .dialog-footer .el-button {
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 10px 20px;
|
||||||
|
min-width: 80px;
|
||||||
|
}
|
||||||
|
/deep/ .el-dialog .el-dialog__footer .dialog-footer .el-button--primary {
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
@keyframes float {
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: translateY(-10px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 1200px) {
|
||||||
|
.mianBox {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.left,
|
||||||
|
.right {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.left {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
.tree-container {
|
||||||
|
height: 300px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.pagination-controls {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.rigtop {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
.add-product-btn {
|
||||||
|
align-self: flex-start;
|
||||||
|
}
|
||||||
|
.tab-content {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.tab-content .tab-item {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.action-buttons {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content-form {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
.content-form .el-form-item {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
.section-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #ebeef5;
|
||||||
|
}
|
||||||
|
.section-header h3 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 18px;
|
||||||
|
color: #303133;
|
||||||
|
}
|
||||||
|
.form-list {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.form-item {
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
}
|
||||||
|
.form-item.main-form-item {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
}
|
||||||
|
.form-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px dashed #ebeef5;
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
|
.form-actions {
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 10px;
|
||||||
|
padding-top: 10px;
|
||||||
|
border-top: 1px dashed #ebeef5;
|
||||||
|
}
|
||||||
|
.form-actions .el-button {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
.saved-list {
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
.list-item {
|
||||||
|
padding: 15px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
border: 1px solid #e4e7ed;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
.list-item.main-item {
|
||||||
|
background-color: #f8f9fa;
|
||||||
|
}
|
||||||
|
.list-item .item-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #f0f0f0;
|
||||||
|
}
|
||||||
|
.list-item .item-header .item-title {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #606266;
|
||||||
|
}
|
||||||
|
.list-item .item-content {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
.list-item .item-content .item-image {
|
||||||
|
margin-right: 15px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.list-item .item-content .item-details {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.list-item .item-content .item-details div {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
.list-item .item-content .item-details div strong {
|
||||||
|
color: #606266;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
.detail-section {
|
||||||
|
margin-top: 15px;
|
||||||
|
padding-top: 15px;
|
||||||
|
border-top: 1px dashed #e4e7ed;
|
||||||
|
}
|
||||||
|
.detail-list .detail-item {
|
||||||
|
padding: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #f0f0f0;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.detail-list .detail-item .detail-title {
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
color: #67c23a;
|
||||||
|
}
|
||||||
|
.detail-list .detail-item .detail-content {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.detail-list .detail-item .detail-content div {
|
||||||
|
margin-bottom: 3px;
|
||||||
|
}
|
||||||
|
.detail-list .detail-item .detail-content div strong {
|
||||||
|
color: #909399;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
.detail-list .detail-item .detail-actions {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.detail-form-section {
|
||||||
|
margin-top: 15px;
|
||||||
|
padding: 15px;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px dashed #dcdfe6;
|
||||||
|
}
|
||||||
|
.detail-form-item {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
padding: 15px;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
}
|
||||||
|
.add-detail-btn {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
.main-product-form {
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
}
|
||||||
|
.card-top {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
border-bottom: 1px solid #ebeef5;
|
||||||
|
}
|
||||||
|
.card-top .top-tit {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.card-top .top-tit span:first-child {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
.card-top .top-tit span:last-child {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
|
.no-product-selected {
|
||||||
|
padding: 80px 20px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.no-product-selected .empty-state {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 200px;
|
||||||
|
}
|
||||||
|
.product-table /deep/ .el-table__row {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.product-table /deep/ .el-table__row:hover {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
}
|
||||||
|
.product-table /deep/ .el-table__row.current-row {
|
||||||
|
background-color: #ecf5ff;
|
||||||
|
}
|
||||||
868
f/web-kboss/src/views/operation/productsServices/less/index.less
Normal file
868
f/web-kboss/src/views/operation/productsServices/less/index.less
Normal file
@ -0,0 +1,868 @@
|
|||||||
|
.mianBox {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
min-height: 100vh;
|
||||||
|
// min-height: 600px;
|
||||||
|
gap: 16px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
padding-bottom: 40px;
|
||||||
|
// box-sizing: border-box
|
||||||
|
}
|
||||||
|
|
||||||
|
.left {
|
||||||
|
width: 30%;
|
||||||
|
min-width: 320px;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-card {
|
||||||
|
// height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
|
||||||
|
|
||||||
|
/deep/ .el-card__body {
|
||||||
|
padding: 20px;
|
||||||
|
flex: 1;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0; // 防止flex溢出
|
||||||
|
}
|
||||||
|
|
||||||
|
.toptit {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
border-bottom: 1px solid #e4e7ed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
/deep/ .el-input-group__append {
|
||||||
|
background-color: #409eff;
|
||||||
|
border-color: #409eff;
|
||||||
|
|
||||||
|
.el-button {
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #66b1ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-tree-node {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 6px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: background-color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-button {
|
||||||
|
padding: 4px;
|
||||||
|
margin-left: 4px;
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: rgba(64, 158, 255, 0.1);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tree-container {
|
||||||
|
// height: 400px;
|
||||||
|
overflow-y: auto;
|
||||||
|
border: 1px solid #e4e7ed;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 12px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
|
||||||
|
/deep/ .el-tree {
|
||||||
|
.el-tree-node {
|
||||||
|
.el-tree-node__content {
|
||||||
|
height: 36px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #f0f7ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.is-current {
|
||||||
|
> .el-tree-node__content {
|
||||||
|
background-color: #ecf5ff;
|
||||||
|
color: #409eff;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-menu-box {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border: 2px dashed #c0c4cc;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 12px;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
margin-top: 20px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
color: #606266;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: #409eff;
|
||||||
|
background-color: #f0f7ff;
|
||||||
|
color: #409eff;
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 4px 12px rgba(64, 158, 255, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-right: 8px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
div {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 右侧产品卡片样式
|
||||||
|
.product-card {
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
/deep/ .el-card__body {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.rigtop {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: flex-start;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rigtop-left {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb {
|
||||||
|
margin-top: 8px;
|
||||||
|
|
||||||
|
/deep/ .el-breadcrumb__inner {
|
||||||
|
color: #909399;
|
||||||
|
font-size: 13px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/deep/ .el-breadcrumb__separator {
|
||||||
|
color: #c0c4cc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.current-menu {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-product-btn {
|
||||||
|
.el-button {
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 10px 20px;
|
||||||
|
font-weight: 500;
|
||||||
|
|
||||||
|
i {
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 产品表格样式
|
||||||
|
.product-table {
|
||||||
|
margin-bottom: 24px;
|
||||||
|
|
||||||
|
/deep/ .el-table {
|
||||||
|
border-radius: 6px;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
|
||||||
|
th {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
color: #303133;
|
||||||
|
font-weight: 600;
|
||||||
|
height: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
padding: 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-table__row {
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background-color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.current-row {
|
||||||
|
background-color: #ecf5ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-info {
|
||||||
|
.product-name {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-desc {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #909399;
|
||||||
|
line-height: 1.5;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-tags {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 4px;
|
||||||
|
|
||||||
|
.el-tag {
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0 8px;
|
||||||
|
height: 24px;
|
||||||
|
line-height: 22px;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
&--info {
|
||||||
|
background-color: #f4f4f5;
|
||||||
|
border-color: #e9e9eb;
|
||||||
|
color: #909399;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 操作按钮样式
|
||||||
|
.action-buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
|
||||||
|
.el-button {
|
||||||
|
min-width: 60px;
|
||||||
|
padding: 7px 15px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
&--danger {
|
||||||
|
background-color: #fef0f0;
|
||||||
|
border-color: #fbc4c4;
|
||||||
|
color: #f56c6c;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #f56c6c;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 分页样式
|
||||||
|
.pagination {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-top: 24px;
|
||||||
|
padding-top: 24px;
|
||||||
|
border-top: 1px solid #ebeef5;
|
||||||
|
|
||||||
|
/deep/ .el-pagination {
|
||||||
|
.el-pagination__sizes,
|
||||||
|
.el-pagination__jump {
|
||||||
|
margin-left: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-prev,
|
||||||
|
.btn-next {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #d8dce5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-pager {
|
||||||
|
li {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #d8dce5;
|
||||||
|
margin: 0 4px;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
background-color: #409eff;
|
||||||
|
color: white;
|
||||||
|
border-color: #409eff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-top {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding-bottom: 16px;
|
||||||
|
border-bottom: 1px solid #e4e7ed;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
|
||||||
|
.top-tit {
|
||||||
|
span:first-child {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span:last-child {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #909399;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-btn {
|
||||||
|
.el-button {
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 10px 24px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-content {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.content-tab {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.tab-top {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-content {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
|
||||||
|
.tab-item {
|
||||||
|
padding: 10px 24px;
|
||||||
|
border-radius: 20px;
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
color: #606266;
|
||||||
|
font-size: 14px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
border: 1px solid transparent;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #e4e7ed;
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
background-color: #409eff;
|
||||||
|
color: white;
|
||||||
|
font-weight: 500;
|
||||||
|
border-color: #409eff;
|
||||||
|
box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 产品详情卡片样式
|
||||||
|
.product-detail-card {
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
|
||||||
|
|
||||||
|
/deep/ .el-card__body {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-basic-info {
|
||||||
|
padding: 20px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
|
||||||
|
/deep/ .el-form-item {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-form-item__label {
|
||||||
|
color: #606266;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-input,
|
||||||
|
.el-textarea {
|
||||||
|
.el-input__inner,
|
||||||
|
.el-textarea__inner {
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
border-color: #409eff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-input-number {
|
||||||
|
.el-input-number__decrease,
|
||||||
|
.el-input-number__increase {
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-input__inner {
|
||||||
|
border-radius: 0 4px 4px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-detail-content {
|
||||||
|
margin-top: 16px;
|
||||||
|
|
||||||
|
.editor-container {
|
||||||
|
/deep/ .el-textarea {
|
||||||
|
.el-textarea__inner {
|
||||||
|
border-radius: 6px;
|
||||||
|
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.6;
|
||||||
|
padding: 16px;
|
||||||
|
border: 1px solid #dcdfe6;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
border-color: #409eff;
|
||||||
|
box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
&::placeholder {
|
||||||
|
color: #c0c4cc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-detail {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 80px 40px;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.empty-icon {
|
||||||
|
font-size: 64px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
opacity: 0.3;
|
||||||
|
animation: float 3s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-text {
|
||||||
|
color: #909399;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.6;
|
||||||
|
max-width: 300px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 对话框样式优化
|
||||||
|
/deep/ .el-dialog {
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
|
.el-dialog__header {
|
||||||
|
padding: 20px 24px 10px;
|
||||||
|
border-bottom: 1px solid #e4e7ed;
|
||||||
|
|
||||||
|
.el-dialog__title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #303133;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog__body {
|
||||||
|
padding: 20px 24px;
|
||||||
|
|
||||||
|
.el-form-item {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-dialog__footer {
|
||||||
|
padding: 10px 24px 20px;
|
||||||
|
border-top: 1px solid #e4e7ed;
|
||||||
|
|
||||||
|
.dialog-footer {
|
||||||
|
.el-button {
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 10px 20px;
|
||||||
|
min-width: 80px;
|
||||||
|
|
||||||
|
&--primary {
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 添加动画效果
|
||||||
|
@keyframes float {
|
||||||
|
0%, 100% {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: translateY(-10px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 响应式调整
|
||||||
|
@media (max-width: 1200px) {
|
||||||
|
.mianBox {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left,
|
||||||
|
.right {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tree-container {
|
||||||
|
height: 300px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.pagination-controls{
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.rigtop {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-product-btn {
|
||||||
|
align-self: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-content {
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
.tab-item {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-buttons {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 详情:添加样式
|
||||||
|
.content-form {
|
||||||
|
padding: 20px;
|
||||||
|
.el-form-item {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #ebeef5;
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 18px;
|
||||||
|
color: #303133;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-list {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-item {
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
|
||||||
|
&.main-form-item {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px dashed #ebeef5;
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 10px;
|
||||||
|
padding-top: 10px;
|
||||||
|
border-top: 1px dashed #ebeef5;
|
||||||
|
|
||||||
|
.el-button {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.saved-list {
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-item {
|
||||||
|
padding: 15px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
border: 1px solid #e4e7ed;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
|
&.main-item {
|
||||||
|
background-color: #f8f9fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px solid #f0f0f0;
|
||||||
|
|
||||||
|
.item-title {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #606266;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-content {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
|
||||||
|
.item-image {
|
||||||
|
margin-right: 15px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-details {
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
div {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
|
||||||
|
strong {
|
||||||
|
color: #606266;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-section {
|
||||||
|
margin-top: 15px;
|
||||||
|
padding-top: 15px;
|
||||||
|
border-top: 1px dashed #e4e7ed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-list {
|
||||||
|
.detail-item {
|
||||||
|
padding: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #f0f0f0;
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
.detail-title {
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
color: #67c23a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-content {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
|
||||||
|
div {
|
||||||
|
margin-bottom: 3px;
|
||||||
|
|
||||||
|
strong {
|
||||||
|
color: #909399;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-actions {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-form-section {
|
||||||
|
margin-top: 15px;
|
||||||
|
padding: 15px;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px dashed #dcdfe6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-form-item {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
padding: 15px;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-detail-btn {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-product-form {
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-top {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
border-bottom: 1px solid #ebeef5;
|
||||||
|
|
||||||
|
.top-tit {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
span:first-child {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span:last-child {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-product-selected {
|
||||||
|
padding: 80px 20px;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.empty-state {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 200px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 详情:为产品表格行添加悬停效果
|
||||||
|
.product-table {
|
||||||
|
/deep/ .el-table__row {
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.current-row {
|
||||||
|
background-color: #ecf5ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -81,7 +81,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { reqNavList } from "@/api/newHome";
|
import { reqNavList, reqNewHomeSync, reqNewHomeFestival } from "@/api/newHome";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ProductServicePage",
|
name: "ProductServicePage",
|
||||||
@ -125,6 +125,11 @@ export default {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return subItem && subItem.thrMenu ? subItem.thrMenu : [];
|
return subItem && subItem.thrMenu ? subItem.thrMenu : [];
|
||||||
|
},
|
||||||
|
// 检查是否登录
|
||||||
|
loginState() {
|
||||||
|
const userId = sessionStorage.getItem('userId');
|
||||||
|
return userId !== null && userId !== 'null' && userId !== '';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
@ -134,13 +139,11 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 生成唯一的二级菜单项key
|
// 生成唯一的二级菜单项key
|
||||||
getSubItemKey(subItem) {
|
getSubItemKey(subItem) {
|
||||||
// 使用分类标题和ID组合确保唯一性
|
|
||||||
return `${subItem.id}_${this.activeCategory}_${subItem.secTitle}`;
|
return `${subItem.id}_${this.activeCategory}_${subItem.secTitle}`;
|
||||||
},
|
},
|
||||||
|
|
||||||
// 生成唯一的三级菜单项key
|
// 生成唯一的三级菜单项key
|
||||||
getThirdItemKey(thirdItem) {
|
getThirdItemKey(thirdItem) {
|
||||||
// 使用三级菜单ID和父级ID组合确保唯一性
|
|
||||||
return `${thirdItem.id}_${this.activeSubId}_${thirdItem.thrTitle}`;
|
return `${thirdItem.id}_${this.activeSubId}_${thirdItem.thrTitle}`;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -326,9 +329,35 @@ export default {
|
|||||||
return descriptions[product.name] || '专业的云服务产品,提供稳定可靠的服务';
|
return descriptions[product.name] || '专业的云服务产品,提供稳定可靠的服务';
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 修复阿里云跳转逻辑
|
||||||
|
async handleAliyunProductClick() {
|
||||||
|
try {
|
||||||
|
// 第一步:同步请求
|
||||||
|
const syncResponse = await reqNewHomeSync();
|
||||||
|
|
||||||
|
if (!syncResponse.status) {
|
||||||
|
this.$message.warning(syncResponse.msg || '同步失败,请稍后重试');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 第二步:获取跳转链接
|
||||||
|
const festivalResponse = await reqNewHomeFestival();
|
||||||
|
|
||||||
|
if (festivalResponse.status && festivalResponse.data) {
|
||||||
|
window.open(festivalResponse.data);
|
||||||
|
} else {
|
||||||
|
this.$message.warning(festivalResponse.msg || '获取跳转链接失败');
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('阿里云跳转失败:', error);
|
||||||
|
this.$message.error('网络错误,请稍后重试');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// 点击产品
|
// 点击产品
|
||||||
handleProductClick(product) {
|
async handleProductClick(product) {
|
||||||
// 原有的产品点击逻辑保持不变
|
console.log('点击产品:', product);
|
||||||
|
|
||||||
const userId = sessionStorage.getItem('userId');
|
const userId = sessionStorage.getItem('userId');
|
||||||
|
|
||||||
if (product.type === '百度云') {
|
if (product.type === '百度云') {
|
||||||
@ -354,8 +383,9 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (product.type === '阿里云') {
|
} else if (product.type === '阿里云') {
|
||||||
|
|
||||||
if (userId) {
|
if (userId) {
|
||||||
window.open(product.url);
|
await this.handleAliyunProductClick();
|
||||||
} else {
|
} else {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: "/login",
|
path: "/login",
|
||||||
@ -397,7 +427,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
/* 样式保持不变 */
|
|
||||||
.product-service-page {
|
.product-service-page {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
@ -533,112 +562,112 @@ export default {
|
|||||||
.product-header {
|
.product-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
|
|
||||||
.product-name {
|
.product-name {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #1a1a1a;
|
color: #1a1a1a;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.discount-badge {
|
.discount-badge {
|
||||||
background: linear-gradient(135deg, #ff6b6b, #ff4757);
|
background: linear-gradient(135deg, #ff6b6b, #ff4757);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-desc {
|
.product-desc {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #666;
|
color: #666;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-footer {
|
.product-footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.product-type {
|
.product-type {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #999;
|
color: #999;
|
||||||
background: #f8f9fa;
|
background: #f8f9fa;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail-btn {
|
.detail-btn {
|
||||||
background: #1E6FFF;
|
background: #1E6FFF;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.3s;
|
transition: background 0.3s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: #0d5ae0;
|
background: #0d5ae0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-state {
|
.empty-state {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 60px 20px;
|
padding: 60px 20px;
|
||||||
|
|
||||||
.empty-icon {
|
.empty-icon {
|
||||||
font-size: 48px;
|
font-size: 48px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-text {
|
.empty-text {
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.product-service-page {
|
|
||||||
padding: 16px;
|
|
||||||
|
|
||||||
.product-content {
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
.menu-sidebar {
|
|
||||||
width: 100%;
|
|
||||||
order: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-content {
|
|
||||||
order: 1;
|
|
||||||
|
|
||||||
&.full-width {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-grid {
|
@media (max-width: 768px) {
|
||||||
grid-template-columns: 1fr !important;
|
.product-service-page {
|
||||||
|
padding: 16px;
|
||||||
|
|
||||||
|
.product-content {
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
.menu-sidebar {
|
||||||
|
width: 100%;
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-content {
|
||||||
|
order: 1;
|
||||||
|
|
||||||
|
&.full-width {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.product-grid {
|
||||||
|
grid-template-columns: 1fr !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user