Skip to content

Commit

Permalink
chore: 小鱼干计划详情页改部分样式和接数据
Browse files Browse the repository at this point in the history
  • Loading branch information
oustr committed Dec 1, 2023
1 parent 8bb6f92 commit 6ef9345
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/pages/plan/plan-details/Cards.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<template>
<div class="card1">
<div class="title">
帮助<text style="color: #1f5eff">{{ props.plan.catName }}</text
帮助<text style="color: #1f5eff">{{
plan.catName ? plan.catName : "全体猫猫"
}}</text
>{{ props.plan.name }}
<img :src="Icons.State_Frame" class="state-frame" />
<view class="state">{{ planStateMap(props.plan.planState) }}</view>
Expand Down Expand Up @@ -69,12 +71,13 @@
>已完成</text
>
</view>
<br />
<text class="card3-details">执行时间:{{ executionDetails.time }}</text>
<br />
<text class="card3-details">执行地点:{{ executionDetails.location }}</text>
<br />
<text class="card3-details">执行人员:{{ executionDetails.executor }}</text>
<text class="card3-details">{{ plan.description }}</text>
<!-- <br />-->
<!-- <text class="card3-details">执行时间:{{ executionDetails.time }}</text>-->
<!-- <br />-->
<!-- <text class="card3-details">执行地点:{{ executionDetails.location }}</text>-->
<!-- <br />-->
<!-- <text class="card3-details">执行人员:{{ executionDetails.executor }}</text>-->
</div>
<template v-if="props.plan.planState === PlanState.StateComplete">
<div class="card4">
Expand Down Expand Up @@ -151,6 +154,7 @@ import { displayTime } from "@/utils/time";
const props = defineProps<{
plan: Plan;
}>();
console.log(props);
const executionDetails = ref<{
time: string;
Expand Down Expand Up @@ -365,17 +369,17 @@ init();
background-color: white;
flex-direction: row;
margin: 4vw;
padding-left: 6vw;
justify-content: space-between;
box-sizing: border-box;
padding-top: 5vw;
padding-bottom: 5vw;
padding-left: 0.8vw;
padding-right: 0.8vw;
.card3-title {
font-size: 4.5vw;
letter-spacing: 0.4vw;
margin-left: 5vw;
//margin-left: 5vw;
font-weight: bold;
}
Expand All @@ -387,14 +391,13 @@ init();
letter-spacing: 0.3vw;
border-radius: 1vw;
padding: 0.5vw 1.7vw;
margin-left: 4vw;
//margin-left: 4vw;
}
.card3-details {
font-size: 3.3vw;
letter-spacing: 0.3vw;
color: grey;
margin-left: 5vw;
}
}
Expand Down

0 comments on commit 6ef9345

Please sign in to comment.