|
@@ -38,20 +38,20 @@
|
|
|
<auth :auths="['photo/del']">
|
|
|
<div v-if="editing" class="ctrl-bar">
|
|
|
<el-checkbox class="check" :label="item.id"></el-checkbox>
|
|
|
- <i class="el-icon-view" :class="{active: views.includes(item.id)}" @click="setView(item)"></i>
|
|
|
+ <i class="icon-view" :class="{active: views.includes(item.id)}" @click="setView(item)"></i>
|
|
|
</div>
|
|
|
<div v-else class="ctrl-bar-view">
|
|
|
- <el-tooltip effect="dark" content="设为封面" placement="top" :open-delay=".5">
|
|
|
- <i class="el-icon-picture-outline-round" @click="setCover(item)" v-if="mergeType === 'DEFAULT'"></i>
|
|
|
+ <!-- <el-tooltip effect="dark" content="设为封面" placement="top" :open-delay=".5"> -->
|
|
|
+ <span style="color: #fff; font-size: 12px;cursor: pointer;" @click="setCover(item)" v-if="mergeType === 'DEFAULT'">设为封面</span>
|
|
|
<i v-else></i>
|
|
|
- </el-tooltip>
|
|
|
+ <!-- </el-tooltip> -->
|
|
|
<el-tooltip effect="dark" :content="views.includes(item.id) ? '设为不可见' : '设为可见'" placement="top" :open-delay=".5">
|
|
|
- <i class="el-icon-view" :class="{active: views.includes(item.id)}" @click="setViewItem(item)"></i>
|
|
|
+ <i class="icon-view" :class="{active: views.includes(item.id)}" @click="setViewItem(item)"></i>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
</auth>
|
|
|
<el-image
|
|
|
- :src="item.url"
|
|
|
+ :src="item.url + '@base@tag=imgScale&w=400'"
|
|
|
class="img"
|
|
|
fit="contain"
|
|
|
:preview-src-list="list.map(item => item.url)">
|
|
@@ -258,7 +258,8 @@ export default {
|
|
|
}
|
|
|
.ctrl-bar,
|
|
|
.ctrl-bar-view{
|
|
|
- background-color: rgba(0, 0, 0, .45);
|
|
|
+ // background-color: rgba(0, 0, 0, .45);
|
|
|
+ background-image: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0.05));
|
|
|
height: 30px;
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
@@ -280,7 +281,17 @@ export default {
|
|
|
// visibility: visible;
|
|
|
// }
|
|
|
// }
|
|
|
-.el-icon-view,
|
|
|
+.icon-view{
|
|
|
+ width: 23px;
|
|
|
+ height: 16px;
|
|
|
+ display: inline-block;
|
|
|
+ background: url('./eye-disabled.png') no-repeat center;
|
|
|
+ background-size: contain;
|
|
|
+ cursor: pointer;
|
|
|
+ &.active{
|
|
|
+ background-image: url('./eye.png');
|
|
|
+ }
|
|
|
+}
|
|
|
.el-icon-picture-outline-round{
|
|
|
font-size: 14px;
|
|
|
color: #fff;
|