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