Commit 3b1c1ca9 authored by zhanglw's avatar zhanglw

产品后三类详情页

parent 36778880
......@@ -20,7 +20,7 @@
:src="item.imgSrc?imgSrcStart+'/productPic/'+item.imgSrc:defaultImgSystem"
style="width:348px;height: 240px;top: -3px"
/>
<div class="line-text touch" @click="goToDetails(item, 'course')">{{ item.title }}</div>
<div class="line-text touch" @click="goToDetails(item, '/product/details')">{{ item.title }}</div>
<div style="width: 100%;text-align: center;padding: 2px;color: #333">{{ item.subTitle }}</div>
<div class="line-btn" style="margin-top: 14px">
<div class="btn-o" style="width: 150px;border-radius: 10px;box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);font-size:20px;" @click="inquiry(item, 'course')">课程定制</div>
......@@ -92,8 +92,12 @@ export default {
this.$refs.inquiryView.initView(item.id, item.customerId, type)
},
// 跳转到详情
goToDetails(item, type) {
console.log(item, type)
goToDetails(item, path) {
if (item) {
this.$router.push({ path: `${path}/${item.id || 123}` })
} else {
this.$router.push({ path: `${path}` })
}
},
pageChange(e) {
this.page = e
......
......@@ -65,6 +65,7 @@
</el-col>
</el-row>
<el-divider />
<div v-if="projectObj.productType<5">
<div class="info-card-title" style="margin-bottom: 14px"><div class="title-li" /><span>产品属性</span></div>
<div>
<div v-if="projectObj.attributeBrand" class="attribute-box">
......@@ -121,6 +122,7 @@
</div>
</div>
<el-divider />
</div>
<div class="info-card-title"><div class="title-li" /><span>产品描述</span></div>
<div style="min-height: 30vh" v-html="projectObj.productDescribe" />
<div class="footnote-text">
......
......@@ -23,7 +23,7 @@
</div>
</el-col>
<el-col :span="12">
<div class="box-title touch" @click="goToDetails(item, 'project')">{{ item.title }}</div>
<div class="box-title touch" @click="goToDetails(item, '/product/details')">{{ item.title }}</div>
<div class="content ellipsis" :title="item.content">{{ item.content }}</div>
<div class="line-btn" style="margin-top: 4px;justify-content: flex-end;">
<div class="btn-o" style="width: 140px;border-radius: 10px;box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);font-size:20px;" @click="inquiry(item, 'project')">咨 询</div>
......@@ -48,7 +48,7 @@
<div v-for="(item,index) in serveList" :key="'pj_'+index" class="box-block">
<el-row :gutter="20">
<el-col :span="12">
<div class="box-title touch" style="padding-left: 30px" @click="goToDetails(item, 'project')">{{ item.title }}</div>
<div class="box-title touch" style="padding-left: 30px" @click="goToDetails(item, '/product/details')">{{ item.title }}</div>
<div class="content ellipsis" style="height: 200px;padding: 4px 10px 20px 30px;-webkit-line-clamp: 6;" :title="item.content">
&#12288;&#12288;{{ item.content }}
</div>
......@@ -137,8 +137,12 @@ export default {
this.$refs.inquiryView.initView(item.id, item.customerId, type)
},
// 跳转到详情
goToDetails(item, type) {
console.log(item, type)
goToDetails(item, path) {
if (item) {
this.$router.push({ path: `${path}/${item.id || 123}` })
} else {
this.$router.push({ path: `${path}` })
}
},
pageChange(e) {
this.page = e
......
......@@ -20,7 +20,7 @@
:src="item.imgSrc?imgSrcStart+'/productPic/'+item.imgSrc:defaultImgSystem"
style="width:348px;height: 240px;top: -3px"
/>
<div class="float-title touch" @click="goToDetails(item, 'software')">{{ item.title }}</div>
<div class="float-title touch" @click="goToDetails(item, '/product/details')">{{ item.title }}</div>
<div class="line-btn" style="margin-top: 4px">
<div class="btn-o" style="width: 150px;border-radius: 10px;box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);font-size:20px;" @click="inquiry(item, 'software')">免费获取方案</div>
</div>
......@@ -91,8 +91,12 @@ export default {
this.$refs.inquiryView.initView(item.id, item.customerId, type)
},
// 跳转到详情
goToDetails(item, type) {
console.log(item, type)
goToDetails(item, path) {
if (item) {
this.$router.push({ path: `${path}/${item.id || 123}` })
} else {
this.$router.push({ path: `${path}` })
}
},
pageChange(e) {
this.page = e
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment