|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="home">
|
|
<div class="home">
|
|
<div class="main">
|
|
<div class="main">
|
|
- <div class="myTitle">{{ myTitle }}</div>
|
|
|
|
|
|
+ <!-- <div class="myTitle">{{ myTitle }}</div> -->
|
|
<div class="mainCon" v-show="!oneTxt">
|
|
<div class="mainCon" v-show="!oneTxt">
|
|
<audio id="myAudio" v-if="audio" v-show="isOneAduio" :src="urlToFitFu(audio)" controls></audio>
|
|
<audio id="myAudio" v-if="audio" v-show="isOneAduio" :src="urlToFitFu(audio)" controls></audio>
|
|
<!-- 如果只有一个模块 -->
|
|
<!-- 如果只有一个模块 -->
|
|
@@ -18,8 +18,7 @@
|
|
|
|
|
|
<div class="contenBoxMain swiper-container">
|
|
<div class="contenBoxMain swiper-container">
|
|
<div class="swiper-wrapper">
|
|
<div class="swiper-wrapper">
|
|
- <div class="contenBox swiper-slide" v-for="(item, index) in data[myType]"
|
|
|
|
- :key="myType === 'video' ? item.url : item">
|
|
|
|
|
|
+ <div class="contenBox swiper-slide" v-for="(item, index) in data[myType]" :key="myType === 'video' ? item.url : item">
|
|
<!-- 模型页面 -->
|
|
<!-- 模型页面 -->
|
|
<div class="modelBox" v-if="myType === 'model'">
|
|
<div class="modelBox" v-if="myType === 'model'">
|
|
<iframe :src="urlToFitFu(item)" frameborder="0" v-if="index === myInd"></iframe>
|
|
<iframe :src="urlToFitFu(item)" frameborder="0" v-if="index === myInd"></iframe>
|
|
@@ -38,27 +37,30 @@
|
|
</div>
|
|
</div>
|
|
<!-- 左右箭头 -->
|
|
<!-- 左右箭头 -->
|
|
<template v-if="!isMobile">
|
|
<template v-if="!isMobile">
|
|
- <div @click="cutMyInd(-1, myInd === 0)" class="leftJJ awccJJ" :class="{ noClick: myInd === 0 }"
|
|
|
|
- v-if="data[myType] && data[myType].length > 1"></div>
|
|
|
|
- <div @click="cutMyInd(1, myInd === data[myType].length - 1)" class="rightJJ awccJJ"
|
|
|
|
- :class="{ noClick: myInd === data[myType].length - 1 }" v-if="data[myType] && data[myType].length > 1">
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div @click="cutMyInd(-1, myInd === 0)" class="leftJJ awccJJ" :class="{ noClick: myInd === 0 }" v-if="data[myType] && data[myType].length > 1"></div>
|
|
|
|
+ <div @click="cutMyInd(1, myInd === data[myType].length - 1)" class="rightJJ awccJJ" :class="{ noClick: myInd === data[myType].length - 1 }" v-if="data[myType] && data[myType].length > 1"></div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
|
|
- <div class="swiper-pagination" v-if="data[myType] && data[myType].length > 1"></div>
|
|
|
|
|
|
+ <div class="swiper-pagination" v-if="data[myType] && data[myType].length > 1"></div>
|
|
|
|
+ </div>
|
|
|
|
|
|
<!-- 下面的文字介绍 -->
|
|
<!-- 下面的文字介绍 -->
|
|
- <div class="flooTxt" :class="{ flooTxtOne: oneTxt }">
|
|
|
|
- <div class="flooTxtBox">
|
|
|
|
- <!-- <div class="myTitle">{{ myTitle }}</div> -->
|
|
|
|
- <!-- 视频的介绍 -->
|
|
|
|
- <div class="myTxt" v-if="myType === 'video' && videoTxt[myInd]" v-html="videoTxt[myInd]">
|
|
|
|
- </div>
|
|
|
|
- <div class="myTxt" v-if="myType === 'img' && imgTxt[myInd]" v-html="imgTxt[myInd]">
|
|
|
|
|
|
+ <div class="txtBox">
|
|
|
|
+ <div class="myTitle">{{ myTitle }}</div>
|
|
|
|
+ <div class="fixedTx">湖北省博物馆旧藏</div>
|
|
|
|
+ <div class="logo">
|
|
|
|
+ <img :src="require('@/assets/images/pc/logo.png')" alt="" />
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="flooTxt" :class="{ flooTxtOne: oneTxt }">
|
|
|
|
+ <div class="flooTxtBox">
|
|
|
|
+ <!-- <div class="myTitle">{{ myTitle }}</div> -->
|
|
|
|
+ <!-- 视频的介绍 -->
|
|
|
|
+ <div class="myTxt" v-if="myType === 'video' && videoTxt[myInd]" v-html="videoTxt[myInd]"></div>
|
|
|
|
+ <div class="myTxt" v-if="myType === 'img' && imgTxt[myInd]" v-html="imgTxt[myInd]"></div>
|
|
|
|
+ <div class="myTxt" v-html="myTxt"></div>
|
|
</div>
|
|
</div>
|
|
- <div class="myTxt" v-html="myTxt"></div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -69,19 +71,11 @@
|
|
|
|
|
|
<!-- 底部的tab -->
|
|
<!-- 底部的tab -->
|
|
<div class="flooTabBox" v-if="flooTab.length > 1">
|
|
<div class="flooTabBox" v-if="flooTab.length > 1">
|
|
- <div @click="myType = item.type" class="tabRow" :class="{ tabRowAc: myType === item.type }"
|
|
|
|
- v-for="item in flooTab" :key="item.id">
|
|
|
|
- <img :src="require(`@/assets/images/pc/icon${item.id}${myType === item.type ? 'Ac' : ''
|
|
|
|
- }.png`)
|
|
|
|
- " alt="" />
|
|
|
|
|
|
+ <div @click="myType = item.type" class="tabRow" :class="{ tabRowAc: myType === item.type }" v-for="item in flooTab" :key="item.id">
|
|
|
|
+ <img :src="require(`@/assets/images/pc/icon${item.id}${myType === item.type ? 'Ac' : ''}.png`)" alt="" />
|
|
<div>
|
|
<div>
|
|
{{ item.name }}
|
|
{{ item.name }}
|
|
- <span v-if="
|
|
|
|
- data[item.type] &&
|
|
|
|
- data[item.type].length &&
|
|
|
|
- data[item.type].length > 1
|
|
|
|
- ">{{ item.type === myType ? myInd + 1 + "/" : null
|
|
|
|
- }}{{ data[item.type].length }}</span>
|
|
|
|
|
|
+ <span v-if="data[item.type] && data[item.type].length && data[item.type].length > 1">{{ item.type === myType ? myInd + 1 + "/" : null }}{{ data[item.type].length }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 音频图标 -->
|
|
<!-- 音频图标 -->
|
|
@@ -94,13 +88,12 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import Swiper from "swiper"
|
|
|
|
-import "swiper/css/swiper.min.css"
|
|
|
|
|
|
+import Swiper from "swiper";
|
|
|
|
+import "swiper/css/swiper.min.css";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Home",
|
|
name: "Home",
|
|
- components: {
|
|
|
|
- },
|
|
|
|
|
|
+ components: {},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
isMobile: /iPhone|iPad|iPod|Android/i.test(navigator.userAgent),
|
|
isMobile: /iPhone|iPad|iPod|Android/i.test(navigator.userAgent),
|
|
@@ -143,29 +136,29 @@ export default {
|
|
|
|
|
|
// 只有标题和文字(没有视频,没有模型,没有图片)
|
|
// 只有标题和文字(没有视频,没有模型,没有图片)
|
|
oneTxt: false,
|
|
oneTxt: false,
|
|
- }
|
|
|
|
|
|
+ };
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
myType() {
|
|
myType() {
|
|
- this.myInd = 0
|
|
|
|
|
|
+ this.myInd = 0;
|
|
},
|
|
},
|
|
// 音频的开启和关闭
|
|
// 音频的开启和关闭
|
|
audioSta(val) {
|
|
audioSta(val) {
|
|
- const dom = document.querySelector("#myAudio")
|
|
|
|
|
|
+ const dom = document.querySelector("#myAudio");
|
|
if (val) {
|
|
if (val) {
|
|
- dom.play()
|
|
|
|
|
|
+ dom.play();
|
|
dom.onended = () => {
|
|
dom.onended = () => {
|
|
// console.log("----音频播放完毕");
|
|
// console.log("----音频播放完毕");
|
|
- this.audioSta = false
|
|
|
|
- }
|
|
|
|
- } else dom.pause()
|
|
|
|
|
|
+ this.audioSta = false;
|
|
|
|
+ };
|
|
|
|
+ } else dom.pause();
|
|
},
|
|
},
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
// 本地化 url 适配
|
|
// 本地化 url 适配
|
|
urlToFitFu(url) {
|
|
urlToFitFu(url) {
|
|
- return url
|
|
|
|
|
|
+ return url;
|
|
// const resUrl = url;
|
|
// const resUrl = url;
|
|
// if (url.includes("https://super.4dage.com")) {
|
|
// if (url.includes("https://super.4dage.com")) {
|
|
// return url.replace("https://super.4dage.com", "");
|
|
// return url.replace("https://super.4dage.com", "");
|
|
@@ -176,22 +169,22 @@ export default {
|
|
|
|
|
|
// 点击左右箭头
|
|
// 点击左右箭头
|
|
cutMyInd(num) {
|
|
cutMyInd(num) {
|
|
- console.log(num, this.swiper)
|
|
|
|
- if (!this.swiper) return
|
|
|
|
|
|
+ console.log(num, this.swiper);
|
|
|
|
+ if (!this.swiper) return;
|
|
if (num > 0) {
|
|
if (num > 0) {
|
|
- this.swiper.slideNext()
|
|
|
|
|
|
+ this.swiper.slideNext();
|
|
} else {
|
|
} else {
|
|
- this.swiper.slidePrev()
|
|
|
|
|
|
+ this.swiper.slidePrev();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 点击查看大图
|
|
// 点击查看大图
|
|
lookImg(url) {
|
|
lookImg(url) {
|
|
// console.log(url)
|
|
// console.log(url)
|
|
- let dom = this.$refs.viewer.$viewer
|
|
|
|
- this.lookPics = [url]
|
|
|
|
|
|
+ let dom = this.$refs.viewer.$viewer;
|
|
|
|
+ this.lookPics = [url];
|
|
// console.log(Object.keys(dom))
|
|
// console.log(Object.keys(dom))
|
|
- dom.options.toolbar = false
|
|
|
|
- dom.show()
|
|
|
|
|
|
+ dom.options.toolbar = false;
|
|
|
|
+ dom.show();
|
|
},
|
|
},
|
|
async getData() {
|
|
async getData() {
|
|
// https://www.4dmodel.com/
|
|
// https://www.4dmodel.com/
|
|
@@ -202,74 +195,69 @@ export default {
|
|
// let url = `/data/${
|
|
// let url = `/data/${
|
|
//本地化部署
|
|
//本地化部署
|
|
this.id
|
|
this.id
|
|
- }/hot/js/data.js?time=${Math.random()}`
|
|
|
|
- let result = (await this.$http.get(url)).data
|
|
|
|
- const resData = result[this.m]
|
|
|
|
|
|
+ }/hot/js/data.js?time=${Math.random()}`;
|
|
|
|
+ let result = (await this.$http.get(url)).data;
|
|
|
|
+ const resData = result[this.m];
|
|
// console.log("----", resData);
|
|
// console.log("----", resData);
|
|
if (resData) {
|
|
if (resData) {
|
|
- this.audio = resData.backgroundMusic
|
|
|
|
|
|
+ this.audio = resData.backgroundMusic;
|
|
// 只有单独的音频上传
|
|
// 只有单独的音频上传
|
|
- if (
|
|
|
|
- resData.backgroundMusic &&
|
|
|
|
- !resData.model &&
|
|
|
|
- !resData.video &&
|
|
|
|
- !resData.images
|
|
|
|
- ) {
|
|
|
|
- this.isOneAduio = true
|
|
|
|
|
|
+ if (resData.backgroundMusic && !resData.model && !resData.video && !resData.images) {
|
|
|
|
+ this.isOneAduio = true;
|
|
}
|
|
}
|
|
// 底部的tab
|
|
// 底部的tab
|
|
- const arr = []
|
|
|
|
- const obj = {}
|
|
|
|
|
|
+ const arr = [];
|
|
|
|
+ const obj = {};
|
|
if (resData.model) {
|
|
if (resData.model) {
|
|
- obj.model = resData.model
|
|
|
|
- arr.push({ id: 1, type: "model", name: "模型" })
|
|
|
|
|
|
+ obj.model = resData.model;
|
|
|
|
+ arr.push({ id: 1, type: "model", name: "模型" });
|
|
}
|
|
}
|
|
if (resData.video) {
|
|
if (resData.video) {
|
|
- obj.video = resData.video
|
|
|
|
- arr.push({ id: 2, type: "video", name: "视频" })
|
|
|
|
|
|
+ obj.video = resData.video;
|
|
|
|
+ arr.push({ id: 2, type: "video", name: "视频" });
|
|
}
|
|
}
|
|
if (resData.images) {
|
|
if (resData.images) {
|
|
- obj.img = resData.images
|
|
|
|
- arr.push({ id: 3, type: "img", name: "图片" })
|
|
|
|
|
|
+ obj.img = resData.images;
|
|
|
|
+ arr.push({ id: 3, type: "img", name: "图片" });
|
|
}
|
|
}
|
|
- this.flooTab = arr
|
|
|
|
- this.data = obj
|
|
|
|
|
|
+ this.flooTab = arr;
|
|
|
|
+ this.data = obj;
|
|
|
|
|
|
// 当前type的值 应该为
|
|
// 当前type的值 应该为
|
|
- if (resData.model) this.myType = "model"
|
|
|
|
- else if (resData.video) this.myType = "video"
|
|
|
|
- else if (resData.images) this.myType = "img"
|
|
|
|
|
|
+ if (resData.model) this.myType = "model";
|
|
|
|
+ else if (resData.video) this.myType = "video";
|
|
|
|
+ else if (resData.images) this.myType = "img";
|
|
|
|
|
|
- this.myTitle = resData.title || ""
|
|
|
|
- this.myTxt = resData.content || ""
|
|
|
|
- this.videoTxt = resData.videosDesc || []
|
|
|
|
- this.imgTxt = resData.imagesDesc || []
|
|
|
|
|
|
+ this.myTitle = resData.title || "";
|
|
|
|
+ this.myTxt = resData.content || "";
|
|
|
|
+ this.videoTxt = resData.videosDesc || [];
|
|
|
|
+ this.imgTxt = resData.imagesDesc || [];
|
|
|
|
|
|
// 只有 标题和 文字介绍(没有视频,没有模型,没有图片)
|
|
// 只有 标题和 文字介绍(没有视频,没有模型,没有图片)
|
|
if (!obj.model && !obj.video && !obj.img && !resData.backgroundMusic) {
|
|
if (!obj.model && !obj.video && !obj.img && !resData.backgroundMusic) {
|
|
- this.oneTxt = true
|
|
|
|
|
|
+ this.oneTxt = true;
|
|
}
|
|
}
|
|
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- const _this = this
|
|
|
|
- this.swiper = new Swiper('.contenBoxMain', {
|
|
|
|
|
|
+ const _this = this;
|
|
|
|
+ this.swiper = new Swiper(".contenBoxMain", {
|
|
on: {
|
|
on: {
|
|
slideChange() {
|
|
slideChange() {
|
|
- _this.myInd = this.activeIndex
|
|
|
|
- }
|
|
|
|
|
|
+ _this.myInd = this.activeIndex;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
pagination: {
|
|
pagination: {
|
|
- el: '.swiper-pagination',
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
|
|
+ el: ".swiper-pagination",
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.getData()
|
|
|
|
|
|
+ this.getData();
|
|
},
|
|
},
|
|
-}
|
|
|
|
|
|
+};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
@@ -296,7 +284,7 @@ export default {
|
|
opacity: 1;
|
|
opacity: 1;
|
|
|
|
|
|
&.swiper-pagination-bullet-active {
|
|
&.swiper-pagination-bullet-active {
|
|
- background: #603C23;
|
|
|
|
|
|
+ background: #603c23;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -318,23 +306,41 @@ export default {
|
|
width: 100%;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
height: 100%;
|
|
height: 100%;
|
|
- padding: 30px 0 20px 0;
|
|
|
|
|
|
+ padding: 30px 50px 20px 20px;
|
|
display: flex;
|
|
display: flex;
|
|
- flex-direction: column;
|
|
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
.myTitle {
|
|
.myTitle {
|
|
font-size: 22px;
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
- text-align: center;
|
|
|
|
|
|
+ padding: 0 30px;
|
|
|
|
+ letter-spacing: 4px;
|
|
|
|
+ color: #4b4b4b;
|
|
|
|
+ }
|
|
|
|
+ .fixedTx {
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ width: 250px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+ padding: 0 30px;
|
|
|
|
+ letter-spacing: 4px;
|
|
|
|
+ color: #535353;
|
|
|
|
+ }
|
|
|
|
+ .logo {
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+ padding: 0 30px;
|
|
|
|
+ & > img {
|
|
|
|
+ width: 45px;
|
|
|
|
+ object-fit: contain;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.mainCon {
|
|
.mainCon {
|
|
position: relative;
|
|
position: relative;
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- width: 100%;
|
|
|
|
- height: calc(100% - 300px);
|
|
|
|
|
|
+ width: 700px;
|
|
|
|
+ height: calc(100% - 270px);
|
|
.oneTabNum {
|
|
.oneTabNum {
|
|
z-index: 10;
|
|
z-index: 10;
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -370,7 +376,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.imgBox {
|
|
.imgBox {
|
|
- padding: 0px 50px;
|
|
|
|
|
|
+ padding: 0px 140px;
|
|
.smImgBox {
|
|
.smImgBox {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
@@ -388,9 +394,9 @@ export default {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 50%;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
transform: translateY(-50%);
|
|
- left: 30px;
|
|
|
|
- width: 16px;
|
|
|
|
- height: 30px;
|
|
|
|
|
|
+ left: 80px;
|
|
|
|
+ width: 37px;
|
|
|
|
+ height: 49px;
|
|
background-image: url("../assets/images/pc/left.png");
|
|
background-image: url("../assets/images/pc/left.png");
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
z-index: 1;
|
|
z-index: 1;
|
|
@@ -400,51 +406,58 @@ export default {
|
|
}
|
|
}
|
|
.rightJJ {
|
|
.rightJJ {
|
|
left: auto;
|
|
left: auto;
|
|
- right: 30px;
|
|
|
|
|
|
+ right: 80px;
|
|
background-image: url("../assets/images/pc/right.png");
|
|
background-image: url("../assets/images/pc/right.png");
|
|
}
|
|
}
|
|
.noClick {
|
|
.noClick {
|
|
cursor: default;
|
|
cursor: default;
|
|
- opacity: 0.4;
|
|
|
|
|
|
+ opacity: 0.6;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .flooTxt {
|
|
|
|
- margin: 0 auto;
|
|
|
|
- margin-top: 10px;
|
|
|
|
- width: 70%;
|
|
|
|
- height: 100%;
|
|
|
|
- max-height: 200px;
|
|
|
|
- .flooTxtBox {
|
|
|
|
|
|
+ .txtBox {
|
|
|
|
+ width: 0;
|
|
|
|
+ flex: 1;
|
|
|
|
+ height: 380px;
|
|
|
|
+ .flooTxt {
|
|
|
|
+ margin: 0 auto;
|
|
|
|
+ margin-top: 10px;
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
- padding: 0 30px;
|
|
|
|
- overflow-y: auto;
|
|
|
|
|
|
+ max-height: 300px;
|
|
|
|
+ .flooTxtBox {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ padding: 0 30px;
|
|
|
|
+ overflow-y: auto;
|
|
|
|
|
|
- .myTxt {
|
|
|
|
- font-size: 16px;
|
|
|
|
- color: #333333;
|
|
|
|
- line-height: 24px;
|
|
|
|
- }
|
|
|
|
- &::-webkit-scrollbar {
|
|
|
|
- /*滚动条整体样式*/
|
|
|
|
- width: 3px;
|
|
|
|
- /*高宽分别对应横竖滚动条的尺寸*/
|
|
|
|
- height: 1px;
|
|
|
|
- }
|
|
|
|
- &::-webkit-scrollbar-thumb {
|
|
|
|
- /*滚动条里面小方块*/
|
|
|
|
- border-radius: 10px;
|
|
|
|
- -webkit-box-shadow: inset 0 0 5px transparent;
|
|
|
|
- background: rgb(192, 166, 126);
|
|
|
|
- }
|
|
|
|
- &::-webkit-scrollbar-track {
|
|
|
|
- /*滚动条里面轨道*/
|
|
|
|
- -webkit-box-shadow: inset 0 0 5px transparent;
|
|
|
|
- border-radius: 10px;
|
|
|
|
- background: transparent;
|
|
|
|
|
|
+ .myTxt {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ color: #414141;
|
|
|
|
+ letter-spacing: 3px;
|
|
|
|
+ line-height: 32px;
|
|
|
|
+ }
|
|
|
|
+ &::-webkit-scrollbar {
|
|
|
|
+ /*滚动条整体样式*/
|
|
|
|
+ width: 3px;
|
|
|
|
+ /*高宽分别对应横竖滚动条的尺寸*/
|
|
|
|
+ height: 1px;
|
|
|
|
+ }
|
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
|
+ /*滚动条里面小方块*/
|
|
|
|
+ border-radius: 10px;
|
|
|
|
+ -webkit-box-shadow: inset 0 0 5px transparent;
|
|
|
|
+ background: rgb(192, 166, 126);
|
|
|
|
+ }
|
|
|
|
+ &::-webkit-scrollbar-track {
|
|
|
|
+ /*滚动条里面轨道*/
|
|
|
|
+ -webkit-box-shadow: inset 0 0 5px transparent;
|
|
|
|
+ border-radius: 10px;
|
|
|
|
+ background: transparent;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.flooTxtOne {
|
|
.flooTxtOne {
|
|
height: 600px;
|
|
height: 600px;
|
|
}
|
|
}
|