|
@@ -0,0 +1,409 @@
|
|
|
+<template>
|
|
|
+ <div class="Guide" :class="{ show }">
|
|
|
+ <!-- 左侧搜索 -->
|
|
|
+ <div class="leftTop">
|
|
|
+ <!-- 1 -->
|
|
|
+ <div class="model" :class="{ modelAc: showId === 1 }">
|
|
|
+ <div class="row1 active">
|
|
|
+ <div class="rowll"></div>
|
|
|
+ <div class="rowrr">三维展示</div>
|
|
|
+ </div>
|
|
|
+ <div class="row1">
|
|
|
+ <div class="rowll"></div>
|
|
|
+ <div class="rowrr">二维展示</div>
|
|
|
+ </div>
|
|
|
+ <!-- 提示框 -->
|
|
|
+ <div class="tit">
|
|
|
+ <h3>
|
|
|
+ <span>文物展示:</span>
|
|
|
+ <div class="ind">{{ showId }}/4</div>
|
|
|
+ </h3>
|
|
|
+ <div class="txt">查看立体三维文物/平面二维文物</div>
|
|
|
+ <div class="btn">
|
|
|
+ <div :class="{ noAc: showId === 1 }" @click="showId--">
|
|
|
+ <i class="el-icon-arrow-left"></i>上一条
|
|
|
+ </div>
|
|
|
+ <div @click="show = false">跳过</div>
|
|
|
+ <div :class="{ noAc: showId === 4 }" @click="showId++">
|
|
|
+ 下一条<i class="el-icon-arrow-right"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 2 -->
|
|
|
+ <div class="type" :class="{ modelAc: showId === 2 }">
|
|
|
+ <div class="typell">类型:</div>
|
|
|
+ <div class="typerr">
|
|
|
+ <div
|
|
|
+ class="row"
|
|
|
+ :class="{ active: index === 0 }"
|
|
|
+ v-for="(item, index) in genreList"
|
|
|
+ :key="item.bs"
|
|
|
+ >
|
|
|
+ {{ item.name }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 提示框 -->
|
|
|
+ <div class="tit">
|
|
|
+ <h3>
|
|
|
+ <span>类别筛选:</span>
|
|
|
+ <div class="ind">{{ showId }}/4</div>
|
|
|
+ </h3>
|
|
|
+ <div class="txt">根据文物类型,筛选出对应文物</div>
|
|
|
+ <div class="btn">
|
|
|
+ <div :class="{ noAc: showId === 1 }" @click="showId--">
|
|
|
+ <i class="el-icon-arrow-left"></i>上一条
|
|
|
+ </div>
|
|
|
+ <div @click="show = false">跳过</div>
|
|
|
+ <div :class="{ noAc: showId === 4 }" @click="showId++">
|
|
|
+ 下一条<i class="el-icon-arrow-right"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 3 -->
|
|
|
+ <div class="inputSearch" :class="{ modelAc: showId === 3 }">
|
|
|
+ <input disabled class="searll" type="text" />
|
|
|
+ <div class="searrr">
|
|
|
+ <img src="@/assets/img/Goods/search.svg" alt="" />
|
|
|
+ </div>
|
|
|
+ <!-- 提示框 -->
|
|
|
+ <div class="tit">
|
|
|
+ <h3>
|
|
|
+ <span>文物搜索:</span>
|
|
|
+ <div class="ind">{{ showId }}/4</div>
|
|
|
+ </h3>
|
|
|
+ <div class="txt">根据文物名称,智能搜索</div>
|
|
|
+ <div class="btn">
|
|
|
+ <div :class="{ noAc: showId === 1 }" @click="showId--">
|
|
|
+ <i class="el-icon-arrow-left"></i>上一条
|
|
|
+ </div>
|
|
|
+ <div @click="show = false">跳过</div>
|
|
|
+ <div :class="{ noAc: showId === 4 }" @click="showId++">
|
|
|
+ 下一条<i class="el-icon-arrow-right"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 右侧图标 -->
|
|
|
+ <div class="rightTop" :class="{ modelAc: showId === 4 }">
|
|
|
+ <div class="row" v-for="item in rightList" :key="item.type">
|
|
|
+ <img :src="require(`@/assets/img/Goods/inco${item.type}.png`)" alt="" />
|
|
|
+ <p>
|
|
|
+ {{ item.name }}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ <!-- 提示框 -->
|
|
|
+ <div class="tit">
|
|
|
+ <h3>
|
|
|
+ <span>更多</span>
|
|
|
+ <div class="ind">{{ showId }}/4</div>
|
|
|
+ </h3>
|
|
|
+ <div class="txt">可回到首页,关闭/开启声音,点赞和分享</div>
|
|
|
+ <div class="btn">
|
|
|
+ <div :class="{ noAc: showId === 1 }" @click="showId--">
|
|
|
+ <i class="el-icon-arrow-left"></i>上一条
|
|
|
+ </div>
|
|
|
+ <div @click="show = false">关闭</div>
|
|
|
+ <div :class="{ noAc: showId === 4 }" @click="showId++">
|
|
|
+ 下一条<i class="el-icon-arrow-right"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: "Guide",
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ show: true,
|
|
|
+ showId: 1,
|
|
|
+ genreList: [
|
|
|
+ { name: "全部", type: "all" },
|
|
|
+ { name: "书刊", type: "book" },
|
|
|
+ { name: "用具", type: "tool" },
|
|
|
+ { name: "服装", type: "clothing" },
|
|
|
+ ],
|
|
|
+ rightList: [
|
|
|
+ { name: "首页", type: 1 },
|
|
|
+ { name: "声音", type: 2 },
|
|
|
+ { name: "点赞", type: 3 },
|
|
|
+ { name: "分享", type: 4 },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {},
|
|
|
+ watch: {
|
|
|
+ show(val) {
|
|
|
+ if (!val) sessionStorage.setItem("YHT_GOODS_FLAG", 1);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ methods: {},
|
|
|
+ created() {
|
|
|
+ let flag = sessionStorage.getItem("YHT_GOODS_FLAG");
|
|
|
+ if (flag) this.show = false;
|
|
|
+ },
|
|
|
+ mounted() {},
|
|
|
+ beforeCreate() {}, //生命周期 - 创建之前
|
|
|
+ beforeMount() {}, //生命周期 - 挂载之前
|
|
|
+ beforeUpdate() {}, //生命周期 - 更新之前
|
|
|
+ updated() {}, //生命周期 - 更新之后
|
|
|
+ beforeDestroy() {}, //生命周期 - 销毁之前
|
|
|
+ destroyed() {}, //生命周期 - 销毁完成
|
|
|
+ activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang='less' scoped>
|
|
|
+.Guide {
|
|
|
+ opacity: 0;
|
|
|
+ pointer-events: none;
|
|
|
+ transition: opacity 0.3s;
|
|
|
+ position: absolute;
|
|
|
+ z-index: 20;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background-color: rgba(0, 0, 0, 0.6);
|
|
|
+ backdrop-filter: blur(4px);
|
|
|
+ .modelAc {
|
|
|
+ opacity: 1 !important;
|
|
|
+ pointer-events: auto !important;
|
|
|
+ }
|
|
|
+ .tit {
|
|
|
+ text-align: left;
|
|
|
+ z-index: 10;
|
|
|
+ position: absolute;
|
|
|
+ bottom: -220px;
|
|
|
+ left: -50px;
|
|
|
+ width: 300px;
|
|
|
+ height: 180px;
|
|
|
+ background-image: url("../../../assets/img/Union2.png");
|
|
|
+ background-size: 100% 100%;
|
|
|
+ color: #fff;
|
|
|
+ padding: 30px 15px 0;
|
|
|
+ h3 {
|
|
|
+ font-size: 20px;
|
|
|
+ color: #d8b275;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ .ind {
|
|
|
+ color: #fff;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .txt {
|
|
|
+ font-size: 14px;
|
|
|
+ margin: 12px 0;
|
|
|
+ }
|
|
|
+ .btn {
|
|
|
+ margin-top: 24px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ & > div {
|
|
|
+ cursor: pointer;
|
|
|
+ font-size: 14px;
|
|
|
+ padding: 6px 10px;
|
|
|
+ border: 1px solid #d8b275;
|
|
|
+ border-radius: 3px;
|
|
|
+ i {
|
|
|
+ padding-top: 2px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .noAc {
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ color: #ccc;
|
|
|
+ pointer-events: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .leftTop {
|
|
|
+ position: absolute;
|
|
|
+ top: 42px;
|
|
|
+ left: 160px;
|
|
|
+ height: 40px;
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ .model {
|
|
|
+ position: relative;
|
|
|
+ opacity: 0;
|
|
|
+ pointer-events: none;
|
|
|
+ color: #fff;
|
|
|
+ width: 260px;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: 20px;
|
|
|
+ background-color: #930909;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0 22px;
|
|
|
+ margin-right: 40px;
|
|
|
+
|
|
|
+ .row1 {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ font-size: 16px;
|
|
|
+
|
|
|
+ .rowll {
|
|
|
+ margin-right: 6px;
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ border-radius: 50%;
|
|
|
+ border: 1px solid #d8b275;
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+
|
|
|
+ .rowrr {
|
|
|
+ padding-bottom: 2px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .active {
|
|
|
+ color: #d8b275;
|
|
|
+
|
|
|
+ .rowll {
|
|
|
+ &::after {
|
|
|
+ content: "";
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+ border-radius: 50%;
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+ background-color: #d8b275;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .type {
|
|
|
+ position: relative;
|
|
|
+ opacity: 0;
|
|
|
+ pointer-events: none;
|
|
|
+ display: flex;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #fff;
|
|
|
+ background-color: #930909;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: 20px;
|
|
|
+ padding: 0 20px;
|
|
|
+ margin-right: 40px;
|
|
|
+
|
|
|
+ .typell {
|
|
|
+ width: 50px;
|
|
|
+ line-height: 38px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .typerr {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding-bottom: 4px;
|
|
|
+
|
|
|
+ .row {
|
|
|
+ margin: 0 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .active {
|
|
|
+ color: #d8b275;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ &::after {
|
|
|
+ content: "";
|
|
|
+ position: absolute;
|
|
|
+ bottom: -4px;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 2px;
|
|
|
+ background-color: #d8b275;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .inputSearch {
|
|
|
+ position: relative;
|
|
|
+ opacity: 0;
|
|
|
+ pointer-events: none;
|
|
|
+ display: flex;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #fff;
|
|
|
+ width: 260px;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: 20px;
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ .searll {
|
|
|
+ border-radius: 20px 0 0 20px;
|
|
|
+ width: 214px;
|
|
|
+ height: 40px;
|
|
|
+ border: none;
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 0 10px 0 20px;
|
|
|
+
|
|
|
+ &:focus {
|
|
|
+ outline: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .searrr {
|
|
|
+ border-radius: 0px 20px 20px 0px;
|
|
|
+ background-color: #930909;
|
|
|
+ width: 46px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ padding-right: 4px;
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .rightTop {
|
|
|
+ opacity: 0;
|
|
|
+ pointer-events: none;
|
|
|
+ position: absolute;
|
|
|
+ top: 32px;
|
|
|
+ right: 100px;
|
|
|
+ height: 60px;
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ .row {
|
|
|
+ position: relative;
|
|
|
+ width: 50px;
|
|
|
+ text-align: center;
|
|
|
+ margin-left: 24px;
|
|
|
+
|
|
|
+ & > img {
|
|
|
+ width: 50px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .likeMove {
|
|
|
+ color: #930909;
|
|
|
+ position: absolute;
|
|
|
+ top: 10px;
|
|
|
+ width: 100%;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .active2 {
|
|
|
+ color: #930909;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.show {
|
|
|
+ opacity: 1;
|
|
|
+ pointer-events: auto;
|
|
|
+}
|
|
|
+</style>
|