|
|
|
@ -1,13 +1,16 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="wrap"> |
|
|
|
|
<el-card shadow="hover" |
|
|
|
|
<!-- <el-card shadow="hover" |
|
|
|
|
class="m-b-20"> |
|
|
|
|
<div class="flex-between"> |
|
|
|
|
<el-page-header @back="$router.back()" |
|
|
|
|
:content="form.mall.productName"></el-page-header> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
</el-card> --> |
|
|
|
|
|
|
|
|
|
<div class="inner"> |
|
|
|
|
<Breadcrumb ref="breadcrumb" |
|
|
|
|
:data.sync="routes" /> |
|
|
|
|
<div class="top"> |
|
|
|
|
<el-carousel class="pics" |
|
|
|
|
:interval="6000" |
|
|
|
@ -209,10 +212,12 @@ |
|
|
|
|
<script> |
|
|
|
|
import Util from "@/libs/util" |
|
|
|
|
import Setting from "@/setting" |
|
|
|
|
import Breadcrumb from '@/components/breadcrumb' |
|
|
|
|
export default { |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
id: this.$route.query.id, |
|
|
|
|
routes: {}, |
|
|
|
|
curTab: 0, |
|
|
|
|
tabs: [ |
|
|
|
|
{ |
|
|
|
@ -236,6 +241,9 @@ export default { |
|
|
|
|
qrcodeTop: '100px' |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
components: { |
|
|
|
|
Breadcrumb, |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
// 是否没关联产品或者产品类型是数据前瞻,并且设置了链接 |
|
|
|
|
withLink () { |
|
|
|
@ -294,6 +302,19 @@ export default { |
|
|
|
|
e.interfaceDiagrams = pics |
|
|
|
|
} |
|
|
|
|
this.form = e |
|
|
|
|
this.routes = [ |
|
|
|
|
{ |
|
|
|
|
name: '职站商城', |
|
|
|
|
path: '/index', |
|
|
|
|
query: { |
|
|
|
|
id: 13, |
|
|
|
|
siteId: 1 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: e.mall.productName |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
this.chapterList = '' |
|
|
|
|
e.mall.associatedProduct && this.getChapter() |
|
|
|
|
this.$nextTick(() => { |
|
|
|
@ -520,6 +541,10 @@ export default { |
|
|
|
|
span { |
|
|
|
|
font-family: PingFangSC-Regular !important; |
|
|
|
|
} |
|
|
|
|
img { |
|
|
|
|
max-width: 100%; |
|
|
|
|
object-fit: cover; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.chapters { |
|
|
|
|
margin-top: 16px; |
|
|
|
@ -584,6 +609,7 @@ export default { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 140px; |
|
|
|
|
transition: 0.3s; |
|
|
|
|
object-fit: cover; |
|
|
|
|
} |
|
|
|
|
.my-school { |
|
|
|
|
position: absolute; |
|
|
|
@ -688,4 +714,42 @@ export default { |
|
|
|
|
color: #fff; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@media (max-width: 1200px) { |
|
|
|
|
.wrap { |
|
|
|
|
.inner { |
|
|
|
|
width: 100%; |
|
|
|
|
} |
|
|
|
|
.top { |
|
|
|
|
flex-direction: column; |
|
|
|
|
.pics { |
|
|
|
|
width: 100%; |
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
} |
|
|
|
|
.el-image__preview { |
|
|
|
|
object-fit: cover; |
|
|
|
|
} |
|
|
|
|
.right { |
|
|
|
|
width: 100%; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.course { |
|
|
|
|
flex-direction: column; |
|
|
|
|
.detail { |
|
|
|
|
width: 100%; |
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
} |
|
|
|
|
.products { |
|
|
|
|
width: 100%; |
|
|
|
|
margin-left: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@media (max-width: 480px) { |
|
|
|
|
.wrap { |
|
|
|
|
.tab { |
|
|
|
|
position: static; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |