diff --git a/src/assets/styles/adminIndex.scss b/src/assets/styles/adminIndex.scss
index 61c7316..6645b4a 100644
--- a/src/assets/styles/adminIndex.scss
+++ b/src/assets/styles/adminIndex.scss
@@ -10,6 +10,9 @@
background-color: #c1c1c1;
border-radius: 3px;
}
+
+img[src=""],img:not([src]){opacity:0;}
+
.home_item {
height: 248px;
padding: 0 18px;
@@ -243,13 +246,7 @@
display: block;
width: 164px;
height: 140px;
- }
-
- .radio_img {
- width: 164px;
- height: 140px;
- background: url(../../assets/images/t-yp.png) no-repeat #b3e8fa center;
- background-size: 98px 98px;
+ object-fit: cover;
}
.item_player {
position: absolute;
@@ -264,6 +261,22 @@
}
}
+.radio_img {
+ width: 164px;
+ height: 140px;
+ background: url(../../assets/images/t-yp.png) no-repeat #b3e8fa center;
+ background-size: 98px 98px;
+}
+
+.set_radio{
+ .radio_img {
+ width: 140px;
+ height: 250px;
+ background: url(../../assets/images/t-yp.png) no-repeat #b3e8fa center;
+ background-size: 98px 98px;
+ }
+}
+
.content_warp {
i {
font-style: normal;
@@ -402,14 +415,22 @@
overflow: hidden;
margin: 0 24px 24px 0;
img {
+ position: relative;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
+ &::after{
+ content: "222222";
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 999;
+ }
}
+
}
}
-
.cont_upload {
display: flex;
flex-wrap: wrap;
diff --git a/src/views/ThemeGallery/index.vue b/src/views/ThemeGallery/index.vue
index e763f77..3e4ce16 100644
--- a/src/views/ThemeGallery/index.vue
+++ b/src/views/ThemeGallery/index.vue
@@ -94,14 +94,14 @@
-
+
@@ -158,6 +158,23 @@
-
-
+
+
- 图片
- 1
+ 图片1
- tp
-
+
- 视频
- 1
+ 视频1
- ship
-
+
- 音频
- 1
+ 音频1
- yinp
-
+
上传列表
@@ -41,14 +35,29 @@ export default {
components: { MaterialList },
data() {
return {
- activeIndex: 0,
+ activeIndex: 0 || '0',
isMultiSelected: false,
mulitText: '多选'
}
},
methods: {
handleClick(tab) {
- console.log(tab.index)
+ this.activeIndex = tab.index
+ switch (this.activeIndex) {
+ case '0':
+ this.$refs.MaterialList.tabType = null
+ break
+ case '1':
+ this.$refs.MaterialList.tabType = 0
+ break
+ case '2':
+ this.$refs.MaterialList.tabType = 1
+ break
+ case '3':
+ this.$refs.MaterialList.tabType = 2
+ break
+ }
+ this.$refs.MaterialList.getMaterialList()
},
handleUpload() {
this.$refs.MaterialList.UploadList()
diff --git a/src/views/materialContent/materialList/index.vue b/src/views/materialContent/materialList/index.vue
index cea2da4..018454d 100644
--- a/src/views/materialContent/materialList/index.vue
+++ b/src/views/materialContent/materialList/index.vue
@@ -118,6 +118,10 @@ export default {
isMultiSelected: {
type: Boolean,
required: true
+ },
+ activeIndex: {
+ type: String,
+ required: true
}
},
data() {
@@ -157,7 +161,8 @@ export default {
movingVisible: false,
uploadListData: [ // 上传列表
],
- folderListChecked: -1
+ folderListChecked: -1,
+ tabType: null
}
},
computed: {
@@ -172,10 +177,17 @@ export default {
this.selectedListId = []
}
},
+ activeIndex(newName, oldName) {
+ // console.log(newName)
+ this.tabIndex = newName
+ },
'$route.query.folderTag'(Val) {
console.log(Val)
}
},
+ created() {
+ console.log(localStorage.getItem('materialTabIndex'))
+ },
mounted: function() {
console.log(this.$route.query.folderTag)
this.getMaterialList()
@@ -193,7 +205,8 @@ export default {
params = {
'folder_id': this.currentFolderId,
'material_name': null,
- 'material_type': null,
+ 'material_type': this.tabType,
+ 'material_type_not': null,
'orga_id': this.orga_id
}
} else {
@@ -204,7 +217,7 @@ export default {
params = {
'folder_id': null,
'material_name': null,
- 'material_type': null,
+ 'material_type': this.tabType,
'material_type_not': null,
'orga_id': this.orga_id
}
@@ -583,6 +596,7 @@ export default {