Commit 18524785 authored by zhengke's avatar zhengke

优化首页列表 图

parent 1a7dd09f
......@@ -45,8 +45,8 @@ const userLoginHandler = async ()=>{
let param = query()
let userId = 1
let ConfigId = 0
let model = 1
let ConfigId = 9117 // 9117
let model = 0
if(param.uid) userId=parseInt(param.uid)
if(ConfigId) ConfigIdStore.setConfigId(ConfigId)
if(model) modelStore.setModel(model)
......@@ -56,6 +56,16 @@ const userLoginHandler = async ()=>{
}
isFinish.value=true
if(!ConfigId&&!model) ElMessageBox.confirm(
'当前没有权限进行任何操作,请联系管理员!',
'提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}
)
}
userLoginHandler()
......
......@@ -70,7 +70,8 @@
<div class="MarketIndexListBox">
<div class="MarketIndexList bg-white rounded" @click="goToTemplate(item)">
<div class="MarketIndexList-img">
<img :src="item.CoverImg" style="width:100%;height:100%" />
<el-image style="width: 100%;height: 100%" :src="item.CoverImg" fit="cover" />
<!-- <img :src="item.CoverImg" style="height:100%"/> -->
</div>
<div class="MarketIndexList-text">{{item.Title}}</div>
</div>
......@@ -302,22 +303,22 @@
box-shadow: 0 5px 6px -3px #0003, 0 9px 12px 1px #00000024, 0 3px 16px 2px #0000001f;
}
.MarketIndexList-img{
position: relative;
/* position: relative; */
width: 100%;
height: 0;
padding-top: 100%;
height: 252px;
/* padding-top: 100%; */
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
overflow: hidden;
/* border-bo: 1px solid #eeee; */
}
.MarketIndexList-img img{
position: absolute;
/* position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
height: 100%; */
}
.MarketIndexList-text{
font-size: 14px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment