提交 124db62a authored 作者: 龙菲's avatar 龙菲

完善剩余两个主题;修改菜单名称

上级 fc27c46e
差异被折叠。
...@@ -24,11 +24,12 @@ export default { ...@@ -24,11 +24,12 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-breadcrumb__inner{ ::v-deep .el-breadcrumb__inner{
color:#aaa; color:#666;
font-size: 18px;
} }
::v-deep .el-breadcrumb__item:last-child .el-breadcrumb__inner{ ::v-deep .el-breadcrumb__item:last-child .el-breadcrumb__inner{
color: #666; color: $themeColor;
} }
::v-deep .el-breadcrumb__inner.is-link:hover{ ::v-deep .el-breadcrumb__inner.is-link:hover{
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:class="{ :class="{
footer: true, footer: true,
//isHome:isHome, //isHome:isHome,
//isChStyle: navbarStyle == '2', isChStyle: navbarStyle == '2',
isRedStyle: navbarStyle == '3', isRedStyle: navbarStyle == '3',
isSDCS: navbarStyle == '4', isSDCS: navbarStyle == '4',
isSMGZ: navbarStyle == '5', isSMGZ: navbarStyle == '5',
...@@ -227,7 +227,9 @@ export default { ...@@ -227,7 +227,9 @@ export default {
} }
} }
.isChStyle { .isChStyle {
background-color: #892325 !important; background-color: #194448 !important;
position: relative;
top: -$nav-height;
} }
.isRedStyle { .isRedStyle {
background-color: #813525 !important; background-color: #813525 !important;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
'header-fixed ': isFixed, 'header-fixed ': isFixed,
// 'header-absolute': isHome || isBoutique, // 'header-absolute': isHome || isBoutique,
//'show-themeColor': isFixed && isHome, //'show-themeColor': isFixed && isHome,
//isChStyle: navbarStyle == '2', isChStyle: navbarStyle == '2',
isRedStyle: navbarStyle == '3', isRedStyle: navbarStyle == '3',
isSDCS: navbarStyle == '4' && isFixed, isSDCS: navbarStyle == '4' && isFixed,
isSMGZ: navbarStyle == '5' && isFixed, isSMGZ: navbarStyle == '5' && isFixed,
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
> >
<span @click="handleToPage(item.path)">{{ item.name }} </span> <span @click="handleToPage(item.path)">{{ item.name }} </span>
<i <i
v-if="item.name == '陈列展览'" v-if="item.name == '展览展示'"
class="el-icon-arrow-down" class="el-icon-arrow-down"
style="transform: translate(30%, 30%); cursor: pointer" style="transform: translate(30%, 30%); cursor: pointer"
></i> ></i>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<el-dropdown trigger="click"> <el-dropdown trigger="click">
<el-button round> <el-button round>
<i class="el-icon-user"></i> <i class="el-icon-user"></i>
<span>登录</span> <span>{{hasToken?userInfo.nickName||userInfo.username:'登录'}}</span>
<!-- <i class="el-icon-arrow-down el-icon--right"></i> --> <!-- <i class="el-icon-arrow-down el-icon--right"></i> -->
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
...@@ -252,8 +252,7 @@ export default { ...@@ -252,8 +252,7 @@ export default {
path: "/ccProduct", path: "/ccProduct",
}; };
} }
if (value.params.themeType) {
if (value.params.themeType) {
this.$store.commit("app/CHANGE_NAV_COLOR", value.params.themeType); this.$store.commit("app/CHANGE_NAV_COLOR", value.params.themeType);
} else { } else {
this.$store.commit("app/CHANGE_NAV_COLOR", "1"); this.$store.commit("app/CHANGE_NAV_COLOR", "1");
...@@ -309,7 +308,7 @@ export default { ...@@ -309,7 +308,7 @@ export default {
// path: "/boutique", // path: "/boutique",
// }, // },
{ {
name: "陈列展览", name: "展览展示",
path: "/display", path: "/display",
children: [ children: [
{ {
...@@ -537,13 +536,13 @@ export default { ...@@ -537,13 +536,13 @@ export default {
}, },
handleEnterTabItem(item) { handleEnterTabItem(item) {
if (item.name == "陈列展览") { if (item.name == "展览展示") {
this.showSubMenu = true; this.showSubMenu = true;
} }
}, },
handleLeaveTabItem(item) { handleLeaveTabItem(item) {
if (item.name == "陈列展览" && this.showSubMenu) { if (item.name == "展览展示" && this.showSubMenu) {
this.showSubMenu = false; this.showSubMenu = false;
} }
}, },
...@@ -597,7 +596,9 @@ export default { ...@@ -597,7 +596,9 @@ export default {
} }
.isChStyle { .isChStyle {
background-color: #892325 !important; // background-color: #892325 !important;
background-color: rgba(0,0,0,0.25) !important;
} }
.isRedStyle { .isRedStyle {
......
<template> <template>
<div class="reader-operations"> <div class="reader-operations">
<span <span class="operations" :style="{
class="operations" color,
:style="{ }">
color: color,
}"
>
<span class="operation-item"> <span class="operation-item">
<svg-icon <svg-icon icon-class="view" :style="{
icon-class="view" fontSize: iconSize + 'px',
:style="{ color,
fontSize: iconSize + 'px', }"></svg-icon>
color: color,
}"
></svg-icon>
<span>{{ formatNum(info.browseCount) }}</span> <span>{{ formatNum(info.browseCount) }}</span>
</span> </span>
<span class="operation-item"> <span class="operation-item">
<svg-icon <svg-icon @click="handleLike" :icon-class="info.loveCountStatus ? 'dianzan-s' : 'dianzan'" :style="{
@click="handleLike" fontSize: iconSize + 'px',
:icon-class="info.loaveCountStatus ? 'dianzan-s' : 'dianzan'" color: info.loveCountStatus ? selectColor : color,
:style="{ }"></svg-icon>
fontSize: iconSize + 'px',
color: info.loaveCountStatus ? selectColor : color,
}"
></svg-icon>
<span>{{ <span>{{
formatNum(info.loveCount) == 0 ? "点赞" : formatNum(info.loveCount) formatNum(info.loveCount) == 0 ? "点赞" : formatNum(info.loveCount)
}}</span> }}</span>
</span> </span>
<span class="operation-item" @click="handleCollect"> <span class="operation-item" @click="handleCollect">
<svg-icon <svg-icon :icon-class="info.collectCountStatus ? 'collect-s' : 'collect'" :style="{
:icon-class="info.collectCountStatus ? 'collect-s' : 'collect'" fontSize: iconSize + 'px',
:style="{ color: info.collectCountStatus ? selectColor : color,
fontSize: iconSize + 'px', }"></svg-icon>
color: info.collectCountStatus ? selectColor : color,
}"
></svg-icon>
<span>{{ <span>{{
formatNum(info.collectCount) == 0 formatNum(info.collectCount) == 0
? "收藏" ? "收藏"
: formatNum(info.collectCount) : formatNum(info.collectCount)
}}</span> }}</span>
</span> </span>
<span class="operation-item" @click="handleShare"> <span class="operation-item" @click="handleShare">
<svg-icon <svg-icon icon-class="share2" :style="{
icon-class="share2" fontSize: iconSize + 'px',
:style="{ color,
fontSize: iconSize + 'px', }"></svg-icon>
}"
></svg-icon>
<span>分享</span> <span>分享</span>
</span> </span>
</span> </span>
<el-dialog <el-dialog title="登录提示" :visible.sync="loginDialogVisible" width="30%" :before-close="handleLoginClose"
title="登录提示" append-to-body>
:visible.sync="loginDialogVisible"
width="30%"
:before-close="handleLoginClose"
append-to-body
>
<span>读者功能需登录进行使用,是否去登录?</span> <span>读者功能需登录进行使用,是否去登录?</span>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="loginDialogVisible = false">取 消</el-button> <el-button @click="loginDialogVisible = false">取 消</el-button>
<el-button type="primary" @click.native="handleToLogin" <el-button type="primary" @click.native="handleToLogin">确 定</el-button>
>确 定</el-button
>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog title="分享给朋友" :visible.sync="shareDialogVisible" width="40%" :before-close="handleShareClose"
title="分享给朋友" append-to-body>
:visible.sync="shareDialogVisible"
width="40%"
:before-close="handleShareClose"
append-to-body
>
<!-- <div class="qrcode"> <!-- <div class="qrcode">
</div> --> </div> -->
<div class="copy"> <div class="copy">
...@@ -84,9 +57,7 @@ ...@@ -84,9 +57,7 @@
<template slot="append"> <template slot="append">
<el-button type="text" @click.native="copyUrl"> <el-button type="text" @click.native="copyUrl">
<svg-icon icon-class="copy"></svg-icon> <svg-icon icon-class="copy"></svg-icon>
复制链接</el-button 复制链接</el-button></template>
></template
>
</el-input> </el-input>
</div> </div>
</el-dialog> </el-dialog>
...@@ -99,45 +70,6 @@ import { debounce, formatNum } from "@/utils/index"; ...@@ -99,45 +70,6 @@ import { debounce, formatNum } from "@/utils/index";
export default { export default {
name: "ReaderOperations", name: "ReaderOperations",
props: { props: {
// // 是否需要点赞,默认需要
// like: {
// type: Boolean,
// default: true,
// },
// // 是否需要收藏,默认需要
// collect: {
// type: Boolean,
// default: true,
// },
// // 是否需要分享,默认需要
// share: {
// type: Boolean,
// default: true,
// },
// // 点赞数量
// loveCount: {
// type: String,
// default: "0",
// },
// // 收藏数量
// collectCount: {
// type: String,
// default: "0",
// },
// // 点赞状态
// loveCountStatus: {
// type: Boolean,
// default: false,
// },
// // 收藏状态
// collectCountStatus: {
// type: Boolean,
// default: false,
// },
// sourceId: {
// type: String,
// default: "",
// },
info: { info: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
...@@ -147,10 +79,6 @@ export default { ...@@ -147,10 +79,6 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
// title: {
// type: String,
// default: "",
// },
iconSize: { iconSize: {
type: [Number, String], type: [Number, String],
default: 28, default: 28,
...@@ -163,26 +91,6 @@ export default { ...@@ -163,26 +91,6 @@ export default {
type: String, type: String,
default: "#fff", default: "#fff",
}, },
// //图标未选中时的颜色
// iconColor: {
// type: String,
// default: "#fff",
// },
// //图标选中时的颜色
// selectIconColor: {
// type: String,
// default: "#fff",
// },
// // 文字未选中时的颜色
// fontColor: {
// type: String,
// default: "#fff",
// },
// // 文本选中时的颜色
// selectFontColor: {
// type: String,
// default: "#fff",
// },
}, },
data() { data() {
return { return {
...@@ -212,13 +120,16 @@ export default { ...@@ -212,13 +120,16 @@ export default {
title, title,
}; };
this.$store.dispatch("user/toggleCollect", params).then(() => { this.$store.dispatch("user/toggleCollect", params).then(() => {
if (!this.collectCountStatus) { if (!this.info.collectCountStatus) {
// 点赞 // 点赞
this.$message.success("已收藏!"); this.$message.success("已收藏!");
} else { } else {
this.$message.success("已取消收藏!"); this.$message.success("已取消收藏!");
} }
this.$emit("reload"); setTimeout(() => {
this.$emit("reload", this.info.crId || this.info.exhibitionId);
}, 300)
}); });
} else { } else {
this.loginDialogVisible = true; this.loginDialogVisible = true;
...@@ -242,13 +153,15 @@ export default { ...@@ -242,13 +153,15 @@ export default {
title, title,
}; };
this.$store.dispatch("user/toggleLike", params).then(() => { this.$store.dispatch("user/toggleLike", params).then(() => {
if (!this.info.loaveCountStatus) { if (!this.info.loveCountStatus) {
// 点赞 // 点赞
this.$message.success("已点赞!"); this.$message.success("已点赞!");
} else { } else {
this.$message.success("已取消点赞!"); this.$message.success("已取消点赞!");
} }
this.$emit("reload"); setTimeout(() => {
this.$emit("reload", this.info.crId || this.info.exhibitionId);
}, 300)
}); });
} else { } else {
this.loginDialogVisible = true; this.loginDialogVisible = true;
...@@ -297,24 +210,29 @@ export default { ...@@ -297,24 +210,29 @@ export default {
width: 100%; width: 100%;
max-width: 500px; max-width: 500px;
} }
.operations { .operations {
// margin-top: 22px; // margin-top: 22px;
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.operation-item { .operation-item {
display: flex; display: flex;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 14px;
} }
.svg-icon { .svg-icon {
margin-right: 10px; margin-right: 10px;
font-size: 24px; font-size: 24px;
} }
.like { .like {
color: #831122; color: #831122;
} }
.collect { .collect {
color: #831122; color: #831122;
} }
...@@ -334,6 +252,7 @@ export default { ...@@ -334,6 +252,7 @@ export default {
.img-container { .img-container {
width: 200px; width: 200px;
height: 200px; height: 200px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -349,6 +268,7 @@ export default { ...@@ -349,6 +268,7 @@ export default {
.el-button { .el-button {
border-radius: 0; border-radius: 0;
} }
.el-button--primary { .el-button--primary {
border: none; border: none;
background-color: $themeColor; background-color: $themeColor;
......
...@@ -93,6 +93,12 @@ export default { ...@@ -93,6 +93,12 @@ export default {
height: 100%; height: 100%;
.video-js { .video-js {
&:hover{
.vjs-big-play-button{
// background-color: #fff;
// color: $themeColor;
}
}
video { video {
// object-fit: fill; // object-fit: fill;
} }
...@@ -105,7 +111,13 @@ export default { ...@@ -105,7 +111,13 @@ export default {
.vjs-big-play-button { .vjs-big-play-button {
left: 50%; left: 50%;
top: 50%; top: 50%;
width: 80px;
height: 80px;
border-radius: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
font-size: 50px;
color: #fff;
background-color: $themeColor;
} }
.vjs-control-bar { .vjs-control-bar {
......
...@@ -67,4 +67,8 @@ export default { ...@@ -67,4 +67,8 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// .display-detail{
// position: relative;
// top: -$nav-height;
// }
</style> </style>
\ No newline at end of file
差异被折叠。
...@@ -396,7 +396,7 @@ export default { ...@@ -396,7 +396,7 @@ export default {
dotImg: require("@/assets/imgs/display/normal/mz-dot.png"), dotImg: require("@/assets/imgs/display/normal/mz-dot.png"),
dotImgS: require("@/assets/imgs/display/normal/mz-dot-s.png"), dotImgS: require("@/assets/imgs/display/normal/mz-dot-s.png"),
page: null, page: null,
currentVideo: null, currentVideo: {},
videoSwiperOption: { videoSwiperOption: {
loop: false, loop: false,
loopedSlides: 8, // looped slides should be the same loopedSlides: 8, // looped slides should be the same
......
...@@ -26,20 +26,20 @@ ...@@ -26,20 +26,20 @@
</div> </div>
<div class="text-indent unit-content_intro" v-if="curUnit.intro" v-html="unitValue.intro"></div> <div class="text-indent unit-content_intro" v-if="curUnit.intro" v-html="unitValue.intro"></div>
<div class="unit-content_images" v-if="unitValue.imagesVo && unitValue.imagesVo.length > 0"> <div class="unit-content_images" v-if="unitValue.imagesVo && unitValue.imagesVo.length > 0">
<div class="imgs-title">单元图片</div> <!-- <div class="imgs-title">单元图片</div> -->
<div class="unit-imgs"> <div class="unit-imgs">
<SlideImageGroup :imgList="unitValue.imagesVo" :needEnlarge="true" <SlideImageGroup :imgList="unitValue.imagesVo" :needEnlarge="true"
v-if="unitValue.imagesVo.length > 3"> v-if="unitValue.imagesVo.length > 3">
<template slot-scope="{ item }" slot="img"> <template slot-scope="{ item }" slot="img">
<img :src="$getFullUrl(item.pressUrl)" alt="" <img :src="$getFullUrl(item.middleUrl)" alt=""
style="width: 100%; height: 100%; object-fit: contain" /> style="width: 100%; height: 100%; object-fit: contain" />
</template> </template>
</SlideImageGroup> </SlideImageGroup>
<el-row v-if="unitValue.imagesVo.length > 0 && unitValue.imagesVo.length < 4" :gutter="10"> <el-row v-if="unitValue.imagesVo.length > 0 && unitValue.imagesVo.length < 4" :gutter="10">
<el-col v-for="(item, index) in unitValue.imagesVo" :key="index" <el-col v-for="(item, index) in unitValue.imagesVo" :key="index"
:span="24 / unitValue.imagesVo.length" style="height:300px"> :span="24 / unitValue.imagesVo.length" style="height:300px">
<img :src="$getFullUrl(item.pressUrl)" alt="" <img :src="$getFullUrl(item.middleUrl)" alt=""
style="width: 100%; height: 100%; object-fit: contain;cursor: pointer;" style="width: 100%; height: 100%; object-fit: contain;cursor: pointer;"
@click="handelPreviewImages(unitValue.imagesVo)" /> @click="handelPreviewImages(unitValue.imagesVo)" />
</el-col> </el-col>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<div class="imgs-title">单元文物</div> <div class="imgs-title">单元文物</div>
<SlideImageGroup :imgList="unitValue.culturalRelics"> <SlideImageGroup :imgList="unitValue.culturalRelics">
<template slot-scope="{ item }" slot="img"> <template slot-scope="{ item }" slot="img">
<img :src="$getFullUrl(item.faceImagePressUrl)" alt="" style=" <img :src="$getFullUrl(item.faceImageMiddleUrl)" alt="" style="
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: fill; object-fit: fill;
...@@ -106,6 +106,13 @@ export default { ...@@ -106,6 +106,13 @@ export default {
}, },
} }
}, },
updated() {
let p = document.getElementsByTagName('p')
let arr = [...p]
arr.map(item => {
item.style.color = "#333"
})
},
methods: { methods: {
handleClickUnit(item) { handleClickUnit(item) {
this.$emit('handleClickUnit', item) this.$emit('handleClickUnit', item)
...@@ -120,12 +127,14 @@ export default { ...@@ -120,12 +127,14 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss" >
.unit-content_intro { .unit-content_intro {
p { p {
// color: red !important; // color: red !important;
font-family: $defaultFontFamily !important; font-family: $defaultFontFamily !important;
}
// color: #333 !important;
}
} }
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -183,25 +192,37 @@ export default { ...@@ -183,25 +192,37 @@ export default {
flex: 1; flex: 1;
padding: 60px 40px 0; padding: 60px 40px 0;
.unit-content-container {} .unit-content-container {
.unit-content-title { .unit-content-title {
font-size: 24px; font-size: 20px;
line-height: 2; line-height: 2;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-top: 48px; margin-top: 48px;
}
}
.unit-content_intro {
font-size: 16px;
font-weight: 400;
color: #444444;
line-height: 36px;
text-indent: 32px;
margin-bottom: 20px;
}
&:nth-child(1) {
.unit-content-title {
font-size: 24px;
font-weight: bold;
}
}
.unit-content_intro {
font-size: 16px;
font-weight: 400;
color: #444444;
line-height: 36px;
text-indent: 32px;
margin-bottom: 20px;
} }
.unit-content_images { .unit-content_images {
position: relative; position: relative;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论