页面判断优化
This commit is contained in:
parent
7ac4ab3890
commit
68c040aa54
|
|
@ -39,12 +39,15 @@
|
|||
<div class="imgdiv" style="width: 50%;">
|
||||
<div style="height: 100%;width: 100%;">
|
||||
<img style="width: 100%; height: 100%; object-fit: cover;" :src="pictures[0]"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="textdiv" style="display: flex; justify-content: center; align-items: center; height: 100%;width: 50%;">
|
||||
<div style="height: 100%;width: 100%;">
|
||||
<div style="height: 100%;width: 100%;" v-if="pictures.length>1">
|
||||
<img style="width: 100%; height: 100%;" :src="pictures[1]"/>
|
||||
</div>
|
||||
</div>
|
||||
<div style="height: 100%;width: 100%;display: flex;align-items: center;justify-content: center;" v-else>
|
||||
<span style="color: #fff;font-size: 20px;font-weight: bold;">sbd工业园欢迎您!</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -104,7 +107,7 @@ export default {
|
|||
{"picUrl":"http://sgwpdm.ah.sgcc.com.cn/canteen/lnyst/378915229716713472/backStaff/a643fe032af848f3adb91e05a5736330.jpg"}
|
||||
],
|
||||
notice:"sbd食堂欢迎您",
|
||||
pictures:["http://sgwpdm.ah.sgcc.com.cn/canteen/lnyst/378915229716713472/dishes/ce0e4591db7e439a9951e8c48be92d31.png","../assets/images/sp.png"],
|
||||
pictures:["http://sgwpdm.ah.sgcc.com.cn/canteen/lnyst/378915229716713472/dishes/ce0e4591db7e439a9951e8c48be92d31.png"],
|
||||
angle:0
|
||||
};
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue