Commit e7cb8e33 by 匡雅琴

样式调整

1 parent 894478c5

78.7 KB | W: | H:

131 KB | W: | H:

src/assets/material/phone.png
src/assets/material/phone.png
src/assets/material/phone.png
src/assets/material/phone.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -145,7 +145,7 @@
</div>
<img slot="reference" src="@/assets/material/view.png" alt="" />
</el-popover>
<img src="@/assets/material/dele.png" alt="" @click="deleteImg" />
<img class="del-img" src="@/assets/material/dele.png" alt="" @click="deleteImg" />
</h3>
</div>
</div>
......@@ -154,11 +154,11 @@
<div class="avatar-uploader-desc-word">上传照片</div>
<input type="file" style="opacity: 0" accept=".jpg, .jpeg, .png" @change="e => handleImgChange(e)" />
</div>
<div @click="phoneVisible = !phoneVisible" class="view-phone">查看效果></div>
<!-- <div @click="phoneVisible = !phoneVisible" class="view-phone">查看效果></div> -->
</div>
</el-form-item>
</div>
<div class="share-desc-right" v-show="phoneVisible">
<div class="share-desc-right">
<div class="share-desc-right-box">
<img class="share-desc-right-box-phone" src="@/assets/material/phone.png" alt="" />
<div class="content-show">
......@@ -177,7 +177,7 @@
</el-form>
<SelectLabel ref="selectLabel" @tagSelected="handleSelect" :dialogVisible="dialogVisible"></SelectLabel>
<GLFooter class="gl-footer">
<el-button @click="onSave">存草稿</el-button>
<el-button @click="onSave" v-if="this.routeInfo.addOrEdit == 1">存草稿</el-button>
<el-button @click="handleCancel" class="btn-cancle">取消</el-button>
<el-button @click="handleSubmit" type="primary">确定</el-button>
</GLFooter>
......@@ -223,7 +223,7 @@ export default {
// 分享设置显示
descVisible: false,
// 手机显示
phoneVisible: false,
// phoneVisible: false,
businessTypes: [],
materialAddFormRules: {
selectMaterialGroup: [{ required: true, message: '请选择素材组', trigger: 'change' }],
......@@ -244,7 +244,6 @@ export default {
},
mounted() {
this.routeInfo = this.$route.query
console.log(this.routeInfo, 'this.routeInfo');
this.routeInfo.addOrEdit != 1 ? this.getMaterialInfo() : ''
this.title = this.titleObj[this.routeInfo.addOrEdit]
this.materialInsert()
......@@ -710,13 +709,12 @@ export default {
border-radius: 10px;
h3 {
text-align: center;
margin-top: 30%;
margin-left: 2px;
margin-top: 40%;
img {
width: 16px;
height: 16px;
}
:last-child {
.del-img {
padding-left: 12px;
}
}
......@@ -787,7 +785,7 @@ export default {
display: flex;
justify-content: space-between;
&-right-box {
margin-right: 20px;
margin-right: 50px;
width: 290px;
height: 566px;
position: relative;
......@@ -796,13 +794,14 @@ export default {
height: 566px;
}
.content-show {
width: 150px;
height: 52px;
background-color: #fff;
width: 160px;
height: 56px;
padding: 10px 10px;
box-sizing: border-box;
position: absolute;
top: 375px;
left: 79px;
top: 125px;
left: 71px;
display: flex;
justify-content: space-between;
&-img {
......@@ -814,6 +813,7 @@ export default {
}
}
.content-title {
color: #333333;
max-width: 100px;
text-overflow: ellipsis;
overflow: hidden;
......@@ -822,6 +822,8 @@ export default {
margin-bottom: 4px;
}
.content-word {
color: #999999;
line-height: 11px;
max-width: 100px;
font-size: 8px;
overflow: hidden;
......
......@@ -7,7 +7,7 @@
</div>
</div>
<ul>
<li v-for="(item, index) in groupCounter" :key="index" @click="handleGroup(item)">
<li v-for="(item, index) in groupCounter" :class="index === currentIndex ? 'active' : ''" :key="index" @click="handleGroup(item, index)">
<img src="@/assets/material/file.png" alt="" style="vertical-align: middle" />
<div class="group-name">{{ item.materialGroupName }}</div>
<el-popover placement="right" trigger="hover">
......@@ -48,7 +48,8 @@ export default {
materialGroupName: '',
orderValue: '',
isDefault: '' // 默认素材组 0 是 -1 否(进入页面如果素材组数量为0,就会创建默认素材组,默认素材组不可删除)
}
},
currentIndex: null
}
},
mounted() {
......@@ -91,7 +92,8 @@ export default {
})
},
// 点击素材组获取素材
handleGroup(item) {
handleGroup(item, index) {
this.currentIndex = index
var params = {}
params.groupId = item.id
params.pageNum = 1
......@@ -186,11 +188,15 @@ export default {
}
ul {
li {
cursor: pointer;
text-align: left;
padding: 8px 16px 8px 18px;
&:first-child {
padding-top: 16px;
}
&.active {
background-color: #ebeaff;
}
i {
font-size: 16px;
padding-top: 6px;
......@@ -209,11 +215,13 @@ ul {
li {
list-style: none;
position: relative;
vertical-align: middle;
&:nth-child(-n + 2) {
padding-bottom: 10px;
}
&:hover {
color: #5850ff;
background-color: #ebeaff;
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!