提交 7cdf0a76 authored 作者: 龙菲's avatar 龙菲

展览增加关联文物显示

上级 3aa9cdc4
...@@ -191,7 +191,7 @@ export default { ...@@ -191,7 +191,7 @@ export default {
// height: 100%; // height: 100%;
.tab-item { .tab-item {
margin-right: 90px; margin-right: 70px;
color: #fff; color: #fff;
// height: 100%; // height: 100%;
display: flex; display: flex;
......
<!-- --> <!-- -->
<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: 100%; width: 60%;
display: flex; display: flex;
.center { .center {
margin: 0 16px; margin: 0 16px;
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
>返回上页</el-button >返回上页</el-button
> >
</div> </div>
<el-row class="detail-container" :gutter="10"> <el-row class="detail-container" :gutter="30">
<el-col class="cr-images" :span="18"> <el-col class="cr-images" :span="16">
<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;
......
...@@ -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%;
......
<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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论