dev
This commit is contained in:
parent
039a967d17
commit
ef9d2674fa
|
|
@ -22,7 +22,7 @@ import {loadConfig} from "@/utils/config.ts";
|
|||
import {API} from "@/assets/config/API.ts";
|
||||
|
||||
const imageName = defineModel()
|
||||
const imageUrl = ref<any>()
|
||||
const imageUrl = ref<any>("")
|
||||
const uploadUrl= ref<any>()
|
||||
const getImageUrl = (imageName:any) => {
|
||||
if (!imageName) return
|
||||
|
|
|
|||
|
|
@ -14,11 +14,10 @@ const init = async () => {
|
|||
decryptedText.value = await post(API.Common.Auth.Check);
|
||||
list.value = await post(API.Common.Config.List)
|
||||
list.value.forEach((item: any) => {
|
||||
if (item.k == "logoUrl") {
|
||||
loadConfig().then((res: any) => {
|
||||
imageUrl.value = res.base_url + API.Common.File.GetImage + '/' + item.val
|
||||
})
|
||||
}
|
||||
if (item.k != "logoUrl") return
|
||||
loadConfig().then((res: any) => {
|
||||
imageUrl.value = res.base_url + API.Common.File.GetImage + '/' + item.val
|
||||
})
|
||||
})
|
||||
}
|
||||
onMounted(async () => {
|
||||
|
|
|
|||
|
|
@ -83,14 +83,10 @@ const isZeroInventory = (item: any) => {
|
|||
background-image: url("/static/images/home/1-warn.png");
|
||||
|
||||
}
|
||||
|
||||
.item-right {
|
||||
color: #F69C51;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.item {
|
||||
float: left;
|
||||
width: 48%;
|
||||
|
|
@ -99,7 +95,6 @@ const isZeroInventory = (item: any) => {
|
|||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex: 1 1 calc(50% - 8px); //每行显示2个 item,每个 item 占据 33.33% 减去间距
|
||||
.image {
|
||||
width: 34px;
|
||||
|
|
@ -110,6 +105,7 @@ const isZeroInventory = (item: any) => {
|
|||
|
||||
.item-content {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
|
||||
.item-name {
|
||||
font-weight: 400;
|
||||
|
|
@ -134,9 +130,8 @@ const isZeroInventory = (item: any) => {
|
|||
|
||||
|
||||
.item-right {
|
||||
width: 70px;
|
||||
display: flex;
|
||||
margin-right: 10px;
|
||||
margin-right: 16px;
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
font-size: 28px;
|
||||
|
|
@ -173,4 +168,23 @@ const isZeroInventory = (item: any) => {
|
|||
}
|
||||
|
||||
}
|
||||
.btn{
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
color: #999999;
|
||||
font-style: normal;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
background: #E6A23C;
|
||||
padding-right: 13px;
|
||||
&:after{
|
||||
content: '';
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
width: 1px;
|
||||
height: 12px;
|
||||
background: #999999;
|
||||
margin: 0 8px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue