Commit 18524785 authored by zhengke's avatar zhengke

优化首页列表 图

parent 1a7dd09f
...@@ -45,8 +45,8 @@ const userLoginHandler = async ()=>{ ...@@ -45,8 +45,8 @@ const userLoginHandler = async ()=>{
let param = query() let param = query()
let userId = 1 let userId = 1
let ConfigId = 0 let ConfigId = 9117 // 9117
let model = 1 let model = 0
if(param.uid) userId=parseInt(param.uid) if(param.uid) userId=parseInt(param.uid)
if(ConfigId) ConfigIdStore.setConfigId(ConfigId) if(ConfigId) ConfigIdStore.setConfigId(ConfigId)
if(model) modelStore.setModel(model) if(model) modelStore.setModel(model)
...@@ -56,6 +56,16 @@ const userLoginHandler = async ()=>{ ...@@ -56,6 +56,16 @@ const userLoginHandler = async ()=>{
} }
isFinish.value=true isFinish.value=true
if(!ConfigId&&!model) ElMessageBox.confirm(
'当前没有权限进行任何操作,请联系管理员!',
'提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}
)
} }
userLoginHandler() userLoginHandler()
......
...@@ -70,7 +70,8 @@ ...@@ -70,7 +70,8 @@
<div class="MarketIndexListBox"> <div class="MarketIndexListBox">
<div class="MarketIndexList bg-white rounded" @click="goToTemplate(item)"> <div class="MarketIndexList bg-white rounded" @click="goToTemplate(item)">
<div class="MarketIndexList-img"> <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>
<div class="MarketIndexList-text">{{item.Title}}</div> <div class="MarketIndexList-text">{{item.Title}}</div>
</div> </div>
...@@ -302,22 +303,22 @@ ...@@ -302,22 +303,22 @@
box-shadow: 0 5px 6px -3px #0003, 0 9px 12px 1px #00000024, 0 3px 16px 2px #0000001f; box-shadow: 0 5px 6px -3px #0003, 0 9px 12px 1px #00000024, 0 3px 16px 2px #0000001f;
} }
.MarketIndexList-img{ .MarketIndexList-img{
position: relative; /* position: relative; */
width: 100%; width: 100%;
height: 0; height: 252px;
padding-top: 100%; /* padding-top: 100%; */
border-top-left-radius: 6px; border-top-left-radius: 6px;
border-top-right-radius: 6px; border-top-right-radius: 6px;
border-bottom-left-radius: 2px; border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px; border-bottom-right-radius: 2px;
overflow: hidden; overflow: hidden;
/* border-bo: 1px solid #eeee; */
} }
.MarketIndexList-img img{ .MarketIndexList-img img{
position: absolute; /* position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; height: 100%; */
height: 100%;
} }
.MarketIndexList-text{ .MarketIndexList-text{
font-size: 14px; 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