移动端dashbord调整

This commit is contained in:
zzy
2023-04-21 16:54:59 +08:00
parent 3eb07382ae
commit cd4544afb8
20 changed files with 499 additions and 157 deletions
+6 -25
View File
@@ -1,7 +1,6 @@
<template>
<div class="bigbox" @click="handleclick(props.data)">
<Aimage :src="props.data.logolinks" :number="props.data.number"/>
<div class="list">
<div class="list-content">
<div class="top">
@@ -18,7 +17,6 @@
<span>{{ item.name }}</span>
<el-icon class="icon1" v-if="item.icon">
<Check v-if="item.icon == 1" />
<!-- <Filter v-if="item.icon==2" /> -->
<img v-if="item.icon == 2" src="@/assets/1x/1x/source9.png" class="icon">
</el-icon>
</h5>
@@ -122,7 +120,7 @@ const code22 = ref('')
// }
// })
onUpdated(() => {
onMounted(() => {
var obj = {
25: proxy.$t('home.DealInitiated'),
30: proxy.$t('home.PublicOfferClosed'),
@@ -136,10 +134,8 @@ onUpdated(() => {
80: proxy.$t('home.Suspended'),
90: proxy.$t('home.Cancelled'),
}
console.log('&&&&', props.data.status)
// console.log('&&&&', props.data.status)
const stron = props.data.status
if (isValidKey(stron, obj)) {
code22.value = obj[stron];
// console.log('kkkk',stron,obj[stron])
@@ -155,6 +151,7 @@ onUpdated(() => {
return { ...item, icon: 0 }
}
})
// 以下函数解决ts中括号语法obj[stron]读取对象属性的报错
function isValidKey(
key: string | number | symbol,
@@ -164,28 +161,12 @@ onUpdated(() => {
}
})
const cardDetail = (e: any) => {
e.stopPropagation();
expand.value = !expand.value;
}
// const fontstyle = computed((status)=>{
// if(status == 80 ){
// return {'color':'red'}
// }
// if(status == 90){
// return {'color':'red'}
// }
// })
// function fontstyle(status:any){
// console.log(status);
// if(status == 80 ){
// return {'color':'red'}
// }
// if(status == 90){
// return {'color':'red'}
// }
// }
//路由传参
const handleclick = (item: any) => {
localStorage.setItem('ipoID', item.ipoID)
@@ -206,7 +187,7 @@ const handleclick = (item: any) => {
width: 270px;
// height: 360px;
// height: fit-content;
height: fit-content;
// min-height: 350px;
margin-top: 30px;
margin-left: 20px;