|
@@ -1,37 +1,53 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="list">
|
|
<div class="list">
|
|
|
- <div class="l-con" :class="showList?'active':''">
|
|
|
|
|
- <div class="clip-scroller">
|
|
|
|
|
- <ul class="pic-list" v-if="scenes.length>0" ref="pic">
|
|
|
|
|
- <li :title="item.sceneTitle" @click="handleVR(item)" v-for="(item,i) in scenes" :key="i">
|
|
|
|
|
- <div :class="{active:selected.sceneCode==item.sceneCode}">
|
|
|
|
|
- <img :src="item.icon+`?${Math.random()}`" alt="" />
|
|
|
|
|
- <i class="iconfont iconscene_map_3d" :class="{'iconjump':item.type!=='4dkk'}"></i>
|
|
|
|
|
- <rollName :offset="20" :active="selected.sceneCode==item.sceneCode" class="pic-name" :myref="'subw'+item.id" :name="item.sceneTitle"/>
|
|
|
|
|
- </div>
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="clip-scroller" v-if="childTab.length > 1">
|
|
|
|
|
|
|
+ <div class="l-con" :class="showList ? 'active' : ''">
|
|
|
|
|
+ <div class="pic-con">
|
|
|
|
|
+ <div class="clip-scroller">
|
|
|
|
|
+ <ul class="pic-list" v-if="scenes.length > 0" ref="pic">
|
|
|
|
|
+ <li :title="item.sceneTitle" @click="handleVR(item)" v-for="(item, i) in scenes" :key="i">
|
|
|
|
|
+ <div :class="{ active: selected.sceneCode == item.sceneCode }">
|
|
|
|
|
+ <img :src="item.icon + `?${Math.random()}`" alt="" />
|
|
|
|
|
+ <i class="iconfont iconscene_map_3d" :class="{ iconjump: item.type !== '4dkk' }"></i>
|
|
|
|
|
+ <rollName :offset="20" :active="selected.sceneCode == item.sceneCode" class="pic-name" :myref="'subw' + item.id" :name="item.sceneTitle" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="clip-scroller" v-if="childTab.length > 1">
|
|
|
|
|
+ <ul class="pp-tap">
|
|
|
|
|
+ <li @click="tabtowActive = item" v-for="(item, i) in childTab" :key="i">
|
|
|
|
|
+ <rollName
|
|
|
|
|
+ :offset="30"
|
|
|
|
|
+ :mgin="20"
|
|
|
|
|
+ :active="item.id == tabtowActive.id"
|
|
|
|
|
+ class="btn pic-rect"
|
|
|
|
|
+ :class="{ active: item.id == tabtowActive.id }"
|
|
|
|
|
+ :myref="'ww' + item.id"
|
|
|
|
|
+ :name="item.name"
|
|
|
|
|
+ />
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="clip-scroller" v-if="showInfo.catalogRoot.length > 0 && showInfo.catalogs.length > 1">
|
|
|
<ul class="tap">
|
|
<ul class="tap">
|
|
|
- <li @click="tabtowActive = item" v-for="(item,i) in childTab" :key="i">
|
|
|
|
|
- <rollName :offset="30" :mgin="20" :active="item.id == tabtowActive.id" class="btn rect" :class="{active:item.id == tabtowActive.id}" :myref="'ww'+item.id" :name="item.name"/>
|
|
|
|
|
|
|
+ <li @click="taboneActive = item" :class="{ active: item.id == taboneActive.id }" v-for="(item, i) in showInfo.catalogRoot" :key="i">
|
|
|
|
|
+ <rollName
|
|
|
|
|
+ :offset="30"
|
|
|
|
|
+ :mgin="20"
|
|
|
|
|
+ :active="item.id == taboneActive.id"
|
|
|
|
|
+ class="btn"
|
|
|
|
|
+ :class="{ active: item.id == taboneActive.id }"
|
|
|
|
|
+ :myref="'zw' + item.id"
|
|
|
|
|
+ :name="item.name"
|
|
|
|
|
+ />
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
- <div class="clip-scroller" v-if="showInfo.catalogRoot.length > 0 && showInfo.catalogs.length>1">
|
|
|
|
|
- <ul class="tap">
|
|
|
|
|
- <li @click="taboneActive = item" v-for="(item,i) in showInfo.catalogRoot" :key="i">
|
|
|
|
|
- <rollName :offset="30" :mgin="20" :active="item.id == taboneActive.id" class="btn rect" :class="{active:item.id == taboneActive.id}" :myref="'zw'+item.id" :name="item.name"/>
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="btn dl" @click="showList=!showList">
|
|
|
|
|
- <i class="iconfont " :class="showList?'iconnav_scene_down':'iconnav_scene_up'"></i>场景导航</div>
|
|
|
|
|
|
|
+ <div class="btn dl" @click="showList = !showList"><i class="iconfont " :class="showList ? 'iconnav_scene_down' : 'iconnav_scene_up'"></i>场景导航</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -43,242 +59,293 @@ import rollName from "@/components/rollName";
|
|
|
let $scroll = null;
|
|
let $scroll = null;
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- props:['select'],
|
|
|
|
|
- components:{rollName},
|
|
|
|
|
-
|
|
|
|
|
- data(){
|
|
|
|
|
- return{
|
|
|
|
|
- taboneActive:{children:[]},
|
|
|
|
|
- tabtowActive:'',
|
|
|
|
|
- childTab:[],
|
|
|
|
|
- scenes:[],
|
|
|
|
|
- showList:true,
|
|
|
|
|
|
|
+ props: ["select"],
|
|
|
|
|
+ components: { rollName },
|
|
|
|
|
+
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ taboneActive: { children: [] },
|
|
|
|
|
+ tabtowActive: "",
|
|
|
|
|
+ childTab: [],
|
|
|
|
|
+ scenes: [],
|
|
|
|
|
+ showList: true,
|
|
|
loadFirst: true,
|
|
loadFirst: true,
|
|
|
- menuWidth:0,
|
|
|
|
|
- sceneNum: config.sceneNum
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ menuWidth: 0,
|
|
|
|
|
+ sceneNum: config.sceneNum,
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
- ...mapGetters({
|
|
|
|
|
- showInfo: "showInfo"
|
|
|
|
|
- }),
|
|
|
|
|
- selected(){
|
|
|
|
|
- return {...this.select}
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ ...mapGetters({
|
|
|
|
|
+ showInfo: "showInfo",
|
|
|
|
|
+ }),
|
|
|
|
|
+ selected() {
|
|
|
|
|
+ return { ...this.select };
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- methods:{
|
|
|
|
|
- getCWidth(ref){
|
|
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ getCWidth(ref) {
|
|
|
if (this.$refs[ref]) {
|
|
if (this.$refs[ref]) {
|
|
|
- return this.$refs[ref][0].clientWidth
|
|
|
|
|
|
|
+ return this.$refs[ref][0].clientWidth;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- handleVR(item){
|
|
|
|
|
|
|
+ handleVR(item) {
|
|
|
history.replaceState(null, null, "".concat(window.location.pathname, "?").concat(`id=${this.showInfo.id}&vr=${item.sceneCode}`));
|
|
history.replaceState(null, null, "".concat(window.location.pathname, "?").concat(`id=${this.showInfo.id}&vr=${item.sceneCode}`));
|
|
|
- this.sceneNum = item.sceneCode
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.sceneNum = item.sceneCode;
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- mounted(){
|
|
|
|
|
|
|
+ mounted() {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
if ($scroll == null) {
|
|
if ($scroll == null) {
|
|
|
- let eles = $(".clip-scroller")
|
|
|
|
|
- Array.from(eles).forEach(item=>{
|
|
|
|
|
|
|
+ let eles = $(".clip-scroller");
|
|
|
|
|
+ Array.from(eles).forEach((item) => {
|
|
|
let frame = new PerfectScrollbar(item, {
|
|
let frame = new PerfectScrollbar(item, {
|
|
|
useBothWheelAxes: true,
|
|
useBothWheelAxes: true,
|
|
|
suppressScrollY: true,
|
|
suppressScrollY: true,
|
|
|
wheelSpeed: 0.8,
|
|
wheelSpeed: 0.8,
|
|
|
});
|
|
});
|
|
|
$(item).data("scrollbar", frame);
|
|
$(item).data("scrollbar", frame);
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- watch:{
|
|
|
|
|
|
|
+
|
|
|
|
|
+ watch: {
|
|
|
taboneActive: {
|
|
taboneActive: {
|
|
|
- handler: function (newVal) {
|
|
|
|
|
- let temp = []
|
|
|
|
|
- newVal.children && newVal.children.forEach(item=>{
|
|
|
|
|
- this.showInfo.catalogs.forEach(sub=>{
|
|
|
|
|
- if (item==sub.id) {
|
|
|
|
|
- temp.push(sub)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
- this.childTab = temp
|
|
|
|
|
|
|
+ handler: function(newVal) {
|
|
|
|
|
+ let temp = [];
|
|
|
|
|
+ newVal.children &&
|
|
|
|
|
+ newVal.children.forEach((item) => {
|
|
|
|
|
+ this.showInfo.catalogs.forEach((sub) => {
|
|
|
|
|
+ if (item == sub.id) {
|
|
|
|
|
+ temp.push(sub);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ this.childTab = temp;
|
|
|
if (!this.loadFirst) {
|
|
if (!this.loadFirst) {
|
|
|
- this.tabtowActive = ''
|
|
|
|
|
|
|
+ this.tabtowActive = "";
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
tabtowActive: {
|
|
tabtowActive: {
|
|
|
- deep:true,
|
|
|
|
|
- handler: function (newVal) {
|
|
|
|
|
|
|
+ deep: true,
|
|
|
|
|
+ handler: function(newVal) {
|
|
|
if (!newVal) {
|
|
if (!newVal) {
|
|
|
- this.tabtowActive = this.childTab[0]
|
|
|
|
|
- } else{
|
|
|
|
|
- let arr = this.showInfo.scenes.filter(item=>{
|
|
|
|
|
- return newVal.id == item.category
|
|
|
|
|
- })
|
|
|
|
|
- this.scenes = arr.sort((a,b)=>a.weight-b.weight)
|
|
|
|
|
|
|
+ this.tabtowActive = this.childTab[0];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ let arr = this.showInfo.scenes.filter((item) => {
|
|
|
|
|
+ return newVal.id == item.category;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.scenes = arr.sort((a, b) => a.weight - b.weight);
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- sceneNum:{
|
|
|
|
|
- deep:true,
|
|
|
|
|
- immediate:true,
|
|
|
|
|
- handler:function (newVal) {
|
|
|
|
|
- if (!newVal) {
|
|
|
|
|
- let tmp = this.showInfo.firstScene||this.showInfo.scenes[0]
|
|
|
|
|
- this.handleVR(tmp)
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- let val = this.showInfo.scenes.find(item=>item.sceneCode==newVal)
|
|
|
|
|
- let tmp = this.showInfo.catalogs.find(item=>item.id==val.category)
|
|
|
|
|
- let rootTmp = this.showInfo.catalogRoot.find(item => {
|
|
|
|
|
- return item.children.indexOf(tmp.id)>-1
|
|
|
|
|
- });
|
|
|
|
|
- this.taboneActive = rootTmp
|
|
|
|
|
- this.tabtowActive = tmp
|
|
|
|
|
|
|
+ sceneNum: {
|
|
|
|
|
+ deep: true,
|
|
|
|
|
+ immediate: true,
|
|
|
|
|
+ handler: function(newVal) {
|
|
|
|
|
+ if (!newVal) {
|
|
|
|
|
+ let tmp = this.showInfo.firstScene || this.showInfo.scenes[0];
|
|
|
|
|
+ this.handleVR(tmp);
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ let val = this.showInfo.scenes.find((item) => item.sceneCode == newVal);
|
|
|
|
|
+ let tmp = this.showInfo.catalogs.find((item) => item.id == val.category);
|
|
|
|
|
+ let rootTmp = this.showInfo.catalogRoot.find((item) => {
|
|
|
|
|
+ return item.children.indexOf(tmp.id) > -1;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.taboneActive = rootTmp;
|
|
|
|
|
+ this.tabtowActive = tmp;
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
- this.$emit('select',val)
|
|
|
|
|
- this.loadFirst = false
|
|
|
|
|
|
|
+ this.$emit("select", val);
|
|
|
|
|
+ this.loadFirst = false;
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
- selected:{
|
|
|
|
|
- handler:function (newVal) {
|
|
|
|
|
- this.handleVR(newVal)
|
|
|
|
|
- if (newVal.type == '4dkk') {
|
|
|
|
|
- this.showList = false
|
|
|
|
|
|
|
+
|
|
|
|
|
+ selected: {
|
|
|
|
|
+ handler: function(newVal) {
|
|
|
|
|
+ this.handleVR(newVal);
|
|
|
|
|
+ if (newVal.type == "4dkk") {
|
|
|
|
|
+ this.showList = false;
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
|
-
|
|
|
|
|
-.btn{
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
- margin: 0 auto;
|
|
|
|
|
- padding: 0 20px;
|
|
|
|
|
- height: 36px;
|
|
|
|
|
- line-height: 36px;
|
|
|
|
|
- background: rgba(0, 0, 0, 0.1);
|
|
|
|
|
- border: 1px solid rgba(255, 255, 255, 0.2);
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- word-break: keep-all;
|
|
|
|
|
- max-width: 150px;
|
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
|
- overflow: hidden;
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- &.active{
|
|
|
|
|
- background: rgba(0, 0, 0, 0.3);
|
|
|
|
|
- border: 1px solid #1FE4DC;
|
|
|
|
|
- color: #1FE4DC;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+.btn {
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
|
+ padding: 0 20px;
|
|
|
|
|
+ height: 26px;
|
|
|
|
|
+ line-height: 26px;
|
|
|
|
|
+ background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
+ border: 1px solid rgba(255, 255, 255, 0.5);
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ word-break: keep-all;
|
|
|
|
|
+ max-width: 150px;
|
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ &.active {
|
|
|
|
|
+ border: 1px solid rgba(255, 255, 255, 1);
|
|
|
|
|
+ color: rgba(255, 255, 255, 1);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.rect{
|
|
|
|
|
|
|
+.pic-rect {
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
height: 24px;
|
|
height: 24px;
|
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
|
padding: 0;
|
|
padding: 0;
|
|
|
- & /deep/ span{
|
|
|
|
|
- margin: 0 20px;
|
|
|
|
|
|
|
+ padding-bottom: 10px;
|
|
|
|
|
+ background: none;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ &.active {
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ color: rgba(255, 255, 255, 1);
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ &::before {
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ width: 20px;
|
|
|
|
|
+ height: 2px;
|
|
|
|
|
+ z-index: 9999;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
+ background: #0076f6;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.line{
|
|
|
|
|
- background:#1FE4DC;
|
|
|
|
|
|
|
+.line {
|
|
|
|
|
+ background: #0076f6;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 0.1px;
|
|
height: 0.1px;
|
|
|
opacity: 0.5;
|
|
opacity: 0.5;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.list{
|
|
|
|
|
|
|
+.list {
|
|
|
position: fixed;
|
|
position: fixed;
|
|
|
bottom: 10px;
|
|
bottom: 10px;
|
|
|
- left: 0;
|
|
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
z-index: 999;
|
|
z-index: 999;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
|
+ max-width: 1207px;
|
|
|
pointer-events: none;
|
|
pointer-events: none;
|
|
|
- .dl{
|
|
|
|
|
|
|
+ .dl {
|
|
|
background: rgba(0, 0, 0, 0.3);
|
|
background: rgba(0, 0, 0, 0.3);
|
|
|
border-radius: 18px;
|
|
border-radius: 18px;
|
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
|
pointer-events: auto;
|
|
pointer-events: auto;
|
|
|
- >i{
|
|
|
|
|
|
|
+ height: 36px;
|
|
|
|
|
+ line-height: 36px;
|
|
|
|
|
+
|
|
|
|
|
+ > i {
|
|
|
margin-right: 8px;
|
|
margin-right: 8px;
|
|
|
vertical-align: bottom;
|
|
vertical-align: bottom;
|
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .l-con{
|
|
|
|
|
|
|
+ .l-con {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
transition: all ease 0.3s;
|
|
transition: all ease 0.3s;
|
|
|
max-height: 0px;
|
|
max-height: 0px;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
pointer-events: auto;
|
|
pointer-events: auto;
|
|
|
- .clip-scroller{
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .pic-con {
|
|
|
|
|
+ background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .clip-scroller {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
- background: rgba(0, 0, 0, 0.3);
|
|
|
|
|
- margin-bottom: 2px;
|
|
|
|
|
|
|
+ border-radius: 4px;
|
|
|
}
|
|
}
|
|
|
- ul{
|
|
|
|
|
|
|
+ ul {
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
- li{
|
|
|
|
|
|
|
+ li {
|
|
|
margin: 0 5px;
|
|
margin: 0 5px;
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .tap{
|
|
|
|
|
- padding: 12px 0;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ .pp-tap {
|
|
|
|
|
+ padding: 0 0 16px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .tap {
|
|
|
|
|
+ padding: 16px 0;
|
|
|
|
|
+
|
|
|
|
|
+ > li {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+
|
|
|
|
|
+ &.active {
|
|
|
|
|
+ @size:5px;
|
|
|
|
|
+ &::before {
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ width: 0;
|
|
|
|
|
+ height: 0;
|
|
|
|
|
+ border-left: @size * 1.5 solid transparent;
|
|
|
|
|
+ border-right: @size * 1.5 solid transparent;
|
|
|
|
|
+ border-top: @size*2 solid rgba(0, 0, 0, 0.5);
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: -18px;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- .pic-list{
|
|
|
|
|
|
|
+ .pic-list {
|
|
|
padding: 12px 0;
|
|
padding: 12px 0;
|
|
|
- >li{
|
|
|
|
|
|
|
+ > li {
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
- >div{
|
|
|
|
|
|
|
+ > div {
|
|
|
width: 72px;
|
|
width: 72px;
|
|
|
height: 72px;
|
|
height: 72px;
|
|
|
- border: 2px solid #FFFFFF;
|
|
|
|
|
|
|
+ border: 2px solid #ffffff;
|
|
|
opacity: 1;
|
|
opacity: 1;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
- .pic-name{
|
|
|
|
|
|
|
+ .pic-name {
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
left: 0;
|
|
left: 0;
|
|
|
bottom: 0;
|
|
bottom: 0;
|
|
|
}
|
|
}
|
|
|
- >img{
|
|
|
|
|
|
|
+ > img {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
top: 50%;
|
|
top: 50%;
|
|
|
left: 50%;
|
|
left: 50%;
|
|
|
- transform: translate(-50%,-50%);
|
|
|
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
}
|
|
}
|
|
|
- .iconfont{
|
|
|
|
|
|
|
+ .iconfont {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
left: 4px;
|
|
left: 4px;
|
|
|
top: 4px;
|
|
top: 4px;
|
|
|
z-index: 99;
|
|
z-index: 99;
|
|
|
}
|
|
}
|
|
|
- >span{
|
|
|
|
|
|
|
+ > span {
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -289,25 +356,25 @@ export default {
|
|
|
bottom: 0;
|
|
bottom: 0;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
}
|
|
}
|
|
|
- &.active{
|
|
|
|
|
- border: 2px solid #1FE4DC;
|
|
|
|
|
|
|
+ &.active {
|
|
|
|
|
+ border: 2px solid #0076f6;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .onecls{
|
|
|
|
|
|
|
+ .onecls {
|
|
|
background: rgba(0, 0, 0, 0.3);
|
|
background: rgba(0, 0, 0, 0.3);
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .towcls{
|
|
|
|
|
|
|
+ .towcls {
|
|
|
background: rgba(0, 0, 0, 0.3);
|
|
background: rgba(0, 0, 0, 0.3);
|
|
|
}
|
|
}
|
|
|
- &.active{
|
|
|
|
|
- max-height: 200px;
|
|
|
|
|
|
|
+ &.active {
|
|
|
|
|
+ max-height: 250px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|