Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_page
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_page
Commits
7cdf0a76
提交
7cdf0a76
authored
7月 26, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
展览增加关联文物显示
上级
3aa9cdc4
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
61 行增加
和
45 行删除
+61
-45
index.vue
src/components/NavBar/index.vue
+1
-1
index.vue
src/components/SearchBar/index.vue
+12
-10
Detail.vue
src/views/display/Detail.vue
+23
-19
index.vue
src/views/display/index.vue
+11
-6
index.vue
src/views/personal/components/Card/index.vue
+14
-9
没有找到文件。
src/components/NavBar/index.vue
浏览文件 @
7cdf0a76
...
@@ -191,7 +191,7 @@ export default {
...
@@ -191,7 +191,7 @@ export default {
// height: 100%;
// height: 100%;
.tab-item
{
.tab-item
{
margin-right
:
9
0px
;
margin-right
:
7
0px
;
color
:
#fff
;
color
:
#fff
;
// height: 100%;
// height: 100%;
display
:
flex
;
display
:
flex
;
...
...
src/components/SearchBar/index.vue
浏览文件 @
7cdf0a76
<!-- -->
<!-- -->
<
template
>
<
template
>
<div
class=
"search-bar"
>
<div
class=
"search-bar"
>
<!--
<el-select
v-model=
"select"
placeholder=
"请选择"
>
<el-input
v-model=
"searchValue"
placeholder=
"请输入关键词"
class=
"center"
@
keyup
.
enter
.
native=
"search"
>
<el-select
v-model=
"select"
placeholder=
"请选择"
slot=
"prepend"
v-if=
"options.length>0"
>
<el-option
<el-option
v-for=
"item in options"
v-for=
"item in options"
:key=
"item.value"
:key=
"item.value"
...
@@ -9,16 +16,11 @@
...
@@ -9,16 +16,11 @@
:value=
"item.value"
:value=
"item.value"
>
>
</el-option>
</el-option>
</el-select>
-->
</el-select>
<el-input
<el-button
round
type=
"primary"
@
click
.
native=
"search"
class=
"searchButton"
slot=
"append"
v-model=
"searchValue"
placeholder=
"请输入关键词"
class=
"center"
@
keyup
.
enter
.
native=
"search"
></el-input>
<el-button
round
type=
"primary"
@
click
.
native=
"search"
class=
"searchButton"
>
检索
</el-button
>
检索
</el-button
>
>
</el-input>
</div>
</div>
</
template
>
</
template
>
...
@@ -60,7 +62,7 @@ export default {
...
@@ -60,7 +62,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.search-bar
{
.search-bar
{
width
:
10
0%
;
width
:
6
0%
;
display
:
flex
;
display
:
flex
;
.center
{
.center
{
margin
:
0
16px
;
margin
:
0
16px
;
...
...
src/views/display/Detail.vue
浏览文件 @
7cdf0a76
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
>
返回上页
</el-button
>
返回上页
</el-button
>
>
</div>
</div>
<el-row
class=
"detail-container"
:gutter=
"
1
0"
>
<el-row
class=
"detail-container"
:gutter=
"
3
0"
>
<el-col
class=
"cr-images"
:span=
"1
8
"
>
<el-col
class=
"cr-images"
:span=
"1
6
"
>
<el-carousel
<el-carousel
indicator-position=
"outside"
indicator-position=
"outside"
:autoplay=
"false"
:autoplay=
"false"
...
@@ -178,7 +178,24 @@
...
@@ -178,7 +178,24 @@
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
<div
class=
"margin-bottom-32"
v-if=
"
displayDetail.culturalRelicVo &&
displayDetail.culturalRelicVo.length > 0
"
>
<CustomTitle
text=
"关联文物"
/>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
v-for=
"(item, index) in displayDetail.culturalRelicVo"
:key=
"index"
>
<Card
:title=
"item.name"
:url=
"item.faceImageUrl"
/></el-col>
</el-row>
</div>
<div
<div
class=
"relate-video margin-bottom-32"
class=
"relate-video margin-bottom-32"
v-if=
"displayDetail.videosVo && displayDetail.videosVo.length > 0"
v-if=
"displayDetail.videosVo && displayDetail.videosVo.length > 0"
...
@@ -244,11 +261,11 @@ import SearchBar from "@/components/SearchBar";
...
@@ -244,11 +261,11 @@ import SearchBar from "@/components/SearchBar";
import
AudioPlayer
from
"@/components/AudioPlayer"
;
import
AudioPlayer
from
"@/components/AudioPlayer"
;
import
CustomTitle
from
"@/components/CustomTitle"
;
import
CustomTitle
from
"@/components/CustomTitle"
;
import
ReaderOperations
from
"@/components/ReaderOperations"
;
import
ReaderOperations
from
"@/components/ReaderOperations"
;
import
Card
from
"@/views/personal/components/Card"
;
import
Video
from
"@/components/Video"
;
import
Video
from
"@/components/Video"
;
import
QRCode
from
"qrcodejs2"
;
import
QRCode
from
"qrcodejs2"
;
import
{
getDisplayById
}
from
"@/api/display"
;
import
{
getDisplayById
}
from
"@/api/display"
;
import
MenuList
from
"@/components/MenuList"
;
import
MenuList
from
"@/components/MenuList"
;
import
{
crRecommendByPage
}
from
"@/api/culturalRelic"
;
export
default
{
export
default
{
components
:
{
components
:
{
SearchBar
,
SearchBar
,
...
@@ -257,6 +274,7 @@ export default {
...
@@ -257,6 +274,7 @@ export default {
ReaderOperations
,
ReaderOperations
,
MenuList
,
MenuList
,
Video
,
Video
,
Card
,
"el-image-viewer"
:
()
=>
"el-image-viewer"
:
()
=>
import
(
"element-ui/packages/image/src/image-viewer"
),
import
(
"element-ui/packages/image/src/image-viewer"
),
},
},
...
@@ -332,20 +350,6 @@ export default {
...
@@ -332,20 +350,6 @@ export default {
}
}
},
},
// async loadCrRecommend() {
// const { exhibitionId, type } = this.displayDetail;
// // debugger
// const params = {
// exhibitionId,
// // type,
// // years,
// page: 1,
// limit: 5,
// };
// let res = await crRecommendByPage(params);
// this.relateRelics = res.data.records;
// console.log("res", res);
// },
handleBack
()
{
handleBack
()
{
this
.
$router
.
go
(
-
1
);
this
.
$router
.
go
(
-
1
);
},
},
...
@@ -401,7 +405,7 @@ $label: #9f9c9a;
...
@@ -401,7 +405,7 @@ $label: #9f9c9a;
}
}
.cr-images
{
.cr-images
{
width
:
700px
;
width
:
700px
;
margin-right
:
32px
;
//
margin-right: 32px;
position
:
relative
;
position
:
relative
;
.el-image
{
.el-image
{
background-color
:
#f5f5f9
;
background-color
:
#f5f5f9
;
...
...
src/views/display/index.vue
浏览文件 @
7cdf0a76
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
clearable
clearable
><i
slot=
"suffix"
class=
"el-input__icon el-icon-search"
></i
><i
slot=
"suffix"
class=
"el-input__icon el-icon-search"
></i
></el-input>
-->
></el-input>
-->
<SearchBar
@
search=
"search"
:keyword=
"keyword"
/>
<SearchBar
@
search=
"search"
:keyword=
"keyword"
:options=
"searchOptions"
/>
</div>
</div>
<div
class=
"display-group"
>
<div
class=
"display-group"
>
<!--
<div
class=
"total"
>
<!--
<div
class=
"total"
>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<div
class=
"divider"
></div>
-->
<div
class=
"divider"
></div>
-->
<el-row
:gutter=
"60"
>
<el-row
:gutter=
"60"
>
<el-col
<el-col
:span=
"
6
"
:span=
"
8
"
class=
"display-item"
class=
"display-item"
@
click
.
native=
"handleClick(item)"
@
click
.
native=
"handleClick(item)"
v-for=
"(item, index) in list.records"
v-for=
"(item, index) in list.records"
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
width=
"100%"
width=
"100%"
@
error=
"defImg"
@
error=
"defImg"
lazy
lazy
style=
"
height: 280px;width: 100%;
"
style=
"
width: 100%
"
/>
/>
<img
<img
v-else
v-else
...
@@ -91,6 +91,9 @@ export default {
...
@@ -91,6 +91,9 @@ export default {
return
{
return
{
selectValue
:
""
,
selectValue
:
""
,
keyword
:
""
,
//搜索关键词
keyword
:
""
,
//搜索关键词
searchOptions
:[
{
label
:
'展览类型'
,
value
:
''
}
],
currentType
:
"all"
,
currentType
:
"all"
,
list
:
{
list
:
{
records
:
[],
records
:
[],
...
@@ -177,9 +180,8 @@ $text-indent: 16px;
...
@@ -177,9 +180,8 @@ $text-indent: 16px;
// margin-top: 20px;
// margin-top: 20px;
.search-bar
{
.search-bar
{
margin-bottom
:
40px
;
margin-bottom
:
40px
;
// width: 400px;
width
:
1200px
;
width
:
1200px
;
// border-radius: 48px !important
;
padding
:
0
40px
;
}
}
}
}
...
@@ -194,7 +196,9 @@ $text-indent: 16px;
...
@@ -194,7 +196,9 @@ $text-indent: 16px;
}
}
.content
{
.content
{
width
:
100%
;
width
:
1200px
;
// background-color: #fff;
// padding: 60px;
.selectors
{
.selectors
{
margin-top
:
80px
;
margin-top
:
80px
;
...
@@ -281,6 +285,7 @@ $text-indent: 16px;
...
@@ -281,6 +285,7 @@ $text-indent: 16px;
.display-item
{
.display-item
{
cursor
:
pointer
;
cursor
:
pointer
;
margin-bottom
:
20px
;
.img
{
.img
{
img
{
img
{
width
:
100%
;
width
:
100%
;
...
...
src/views/personal/components/Card/index.vue
浏览文件 @
7cdf0a76
<
template
>
<
template
>
<div
class=
"display-item"
>
<div
class=
"display-item"
>
<el-image
:src=
"url"
width=
"100%"
:alt=
"title"
height=
"200px"
lazy
/>
<el-image
:src=
"url"
width=
"100%"
:alt=
"title"
style=
"height:200px;"
lazy
fit=
"fill"
/>
<div
class=
"display-desc"
>
<div
class=
"display-desc"
>
<div
class=
"desc-title"
>
<div
class=
"desc-title"
>
<
h4>
{{
title
}}
</h4
>
<
span>
{{
title
}}
</span
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -34,7 +34,7 @@ export default {
...
@@ -34,7 +34,7 @@ export default {
margin-bottom
:
32px
;
margin-bottom
:
32px
;
border-radius
:
16px
;
border-radius
:
16px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.1
);
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.1
);
padding
:
0
0
32px
0
;
background-color
:
#fff
;
background-color
:
#fff
;
margin-right
:
10px
;
margin-right
:
10px
;
cursor
:
pointer
;
cursor
:
pointer
;
...
@@ -44,13 +44,18 @@ export default {
...
@@ -44,13 +44,18 @@ export default {
}
}
.display-desc
{
.display-desc
{
padding
:
0
16px
;
padding
:
0
16px
;
.desc-content
{
.desc-title
{
text-indent
:
16px
;
font-size
:
18px
;
white-space
:
nowrap
;
font-weight
:
bold
;
overflow
:
hidden
;
padding
:
10px
0
20px
0
;
text-overflow
:
ellipsis
;
display
:
block
;
}
}
// .desc-content {
// text-indent: 16px;
// white-space: nowrap;
// overflow: hidden;
// text-overflow: ellipsis;
// display: block;
// }
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论