Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanglw
sensorConsult
Commits
3b1c1ca9
Commit
3b1c1ca9
authored
Aug 18, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品后三类详情页
parent
36778880
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
64 deletions
+78
-64
index.vue
src/views/homepage/course/index.vue
+7
-3
details.vue
src/views/homepage/product/details.vue
+56
-54
index.vue
src/views/homepage/project/index.vue
+8
-4
index.vue
src/views/homepage/software/index.vue
+7
-3
No files found.
src/views/homepage/course/index.vue
View file @
3b1c1ca9
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
:src=
"item.imgSrc?imgSrcStart+'/productPic/'+item.imgSrc:defaultImgSystem"
:src=
"item.imgSrc?imgSrcStart+'/productPic/'+item.imgSrc:defaultImgSystem"
style=
"width:348px;height: 240px;top: -3px"
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
style=
"width: 100%;text-align: center;padding: 2px;color: #333"
>
{{
item
.
subTitle
}}
</div>
<div
class=
"line-btn"
style=
"margin-top: 14px"
>
<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>
<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 {
...
@@ -92,8 +92,12 @@ export default {
this
.
$refs
.
inquiryView
.
initView
(
item
.
id
,
item
.
customerId
,
type
)
this
.
$refs
.
inquiryView
.
initView
(
item
.
id
,
item
.
customerId
,
type
)
},
},
// 跳转到详情
// 跳转到详情
goToDetails
(
item
,
type
)
{
goToDetails
(
item
,
path
)
{
console
.
log
(
item
,
type
)
if
(
item
)
{
this
.
$router
.
push
({
path
:
`
${
path
}
/
${
item
.
id
||
123
}
`
})
}
else
{
this
.
$router
.
push
({
path
:
`
${
path
}
`
})
}
},
},
pageChange
(
e
)
{
pageChange
(
e
)
{
this
.
page
=
e
this
.
page
=
e
...
...
src/views/homepage/product/details.vue
View file @
3b1c1ca9
...
@@ -65,62 +65,64 @@
...
@@ -65,62 +65,64 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-divider
/>
<el-divider
/>
<div
class=
"info-card-title"
style=
"margin-bottom: 14px"
><div
class=
"title-li"
/><span>
产品属性
</span></div>
<div
v-if=
"projectObj.productType
<5
"
>
<div>
<div
class=
"info-card-title"
style=
"margin-bottom: 14px"
><div
class=
"title-li"
/><span>
产品属性
</span></div>
<div
v-if=
"projectObj.attributeBrand"
class=
"attribute-box"
>
<div>
<div
class=
"attribute-label"
>
品牌
</div>
<div
v-if=
"projectObj.attributeBrand"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeBrand
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
品牌
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeBrand
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeConsumptionCurrent"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
消耗电流
</div>
<div
v-if=
"projectObj.attributeConsumptionCurrent"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeConsumptionCurrent
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
消耗电流
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeConsumptionCurrent
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeBatchNumber"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
批号
</div>
<div
v-if=
"projectObj.attributeBatchNumber"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeBatchNumber
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
批号
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeBatchNumber
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeRatedPower"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
额定功率
</div>
<div
v-if=
"projectObj.attributeRatedPower"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeRatedPower
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
额定功率
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeRatedPower
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeModel"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
型号
</div>
<div
v-if=
"projectObj.attributeModel"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeModel
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
型号
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeModel
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeReactionTime"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
反应时间
</div>
<div
v-if=
"projectObj.attributeReactionTime"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeReactionTime
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
反应时间
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeReactionTime
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeWorkingVoltage"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
工作电压
</div>
<div
v-if=
"projectObj.attributeWorkingVoltage"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeWorkingVoltage
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
工作电压
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeWorkingVoltage
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeQualityAssurance"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
质量保证
</div>
<div
v-if=
"projectObj.attributeQualityAssurance"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeQualityAssurance
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
质量保证
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeQualityAssurance
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeEncapsulation"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
封装
</div>
<div
v-if=
"projectObj.attributeEncapsulation"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeEncapsulation
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
封装
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeEncapsulation
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeProducingArea"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
产地
</div>
<div
v-if=
"projectObj.attributeProducingArea"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeProducingArea
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
产地
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeProducingArea
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeNumber"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
数量
</div>
<div
v-if=
"projectObj.attributeNumber"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeNumber
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
数量
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeNumber
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeColor"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
颜色
</div>
<div
v-if=
"projectObj.attributeColor"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeColor
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
颜色
</div>
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeColor
||
'
-
'
}}
</div>
<div
v-if=
"projectObj.attributeApplicableScenarios"
class=
"attribute-box"
>
</div>
<div
class=
"attribute-label"
>
适用场景
</div>
<div
v-if=
"projectObj.attributeApplicableScenarios"
class=
"attribute-box"
>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeApplicableScenarios
||
'
-
'
}}
</div>
<div
class=
"attribute-label"
>
适用场景
</div>
<div
class=
"attribute-value"
>
{{
projectObj
.
attributeApplicableScenarios
||
'
-
'
}}
</div>
</div>
</div>
</div>
<el-divider
/>
</div>
</div>
<el-divider
/>
<div
class=
"info-card-title"
><div
class=
"title-li"
/><span>
产品描述
</span></div>
<div
class=
"info-card-title"
><div
class=
"title-li"
/><span>
产品描述
</span></div>
<div
style=
"min-height: 30vh"
v-html=
"projectObj.productDescribe"
/>
<div
style=
"min-height: 30vh"
v-html=
"projectObj.productDescribe"
/>
<div
class=
"footnote-text"
>
<div
class=
"footnote-text"
>
...
...
src/views/homepage/project/index.vue
View file @
3b1c1ca9
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<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=
"content ellipsis"
:title=
"item.content"
>
{{
item
.
content
}}
</div>
<div
class=
"line-btn"
style=
"margin-top: 4px;justify-content: flex-end;"
>
<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>
<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 @@
...
@@ -48,7 +48,7 @@
<div
v-for=
"(item,index) in serveList"
:key=
"'pj_'+index"
class=
"box-block"
>
<div
v-for=
"(item,index) in serveList"
:key=
"'pj_'+index"
class=
"box-block"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<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"
>
<div
class=
"content ellipsis"
style=
"height: 200px;padding: 4px 10px 20px 30px;-webkit-line-clamp: 6;"
:title=
"item.content"
>
  
{{
item
.
content
}}
  
{{
item
.
content
}}
</div>
</div>
...
@@ -137,8 +137,12 @@ export default {
...
@@ -137,8 +137,12 @@ export default {
this
.
$refs
.
inquiryView
.
initView
(
item
.
id
,
item
.
customerId
,
type
)
this
.
$refs
.
inquiryView
.
initView
(
item
.
id
,
item
.
customerId
,
type
)
},
},
// 跳转到详情
// 跳转到详情
goToDetails
(
item
,
type
)
{
goToDetails
(
item
,
path
)
{
console
.
log
(
item
,
type
)
if
(
item
)
{
this
.
$router
.
push
({
path
:
`
${
path
}
/
${
item
.
id
||
123
}
`
})
}
else
{
this
.
$router
.
push
({
path
:
`
${
path
}
`
})
}
},
},
pageChange
(
e
)
{
pageChange
(
e
)
{
this
.
page
=
e
this
.
page
=
e
...
...
src/views/homepage/software/index.vue
View file @
3b1c1ca9
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
:src=
"item.imgSrc?imgSrcStart+'/productPic/'+item.imgSrc:defaultImgSystem"
:src=
"item.imgSrc?imgSrcStart+'/productPic/'+item.imgSrc:defaultImgSystem"
style=
"width:348px;height: 240px;top: -3px"
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=
"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
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>
</div>
...
@@ -91,8 +91,12 @@ export default {
...
@@ -91,8 +91,12 @@ export default {
this
.
$refs
.
inquiryView
.
initView
(
item
.
id
,
item
.
customerId
,
type
)
this
.
$refs
.
inquiryView
.
initView
(
item
.
id
,
item
.
customerId
,
type
)
},
},
// 跳转到详情
// 跳转到详情
goToDetails
(
item
,
type
)
{
goToDetails
(
item
,
path
)
{
console
.
log
(
item
,
type
)
if
(
item
)
{
this
.
$router
.
push
({
path
:
`
${
path
}
/
${
item
.
id
||
123
}
`
})
}
else
{
this
.
$router
.
push
({
path
:
`
${
path
}
`
})
}
},
},
pageChange
(
e
)
{
pageChange
(
e
)
{
this
.
page
=
e
this
.
page
=
e
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment