style: 活动卡片样式

This commit is contained in:
eric
2022-11-19 21:33:29 +08:00
parent fa7f66eac3
commit 4f0a73864c
26 changed files with 347 additions and 70 deletions

View File

@@ -0,0 +1,36 @@
.activeCard {
display: flex;
flex-direction: row;
height: 200px;
background-color: #fafafa;
margin-top: 20px;
.left {
width: 30%;
// background-color: aqua;
}
.middle {
display: flex;
flex-direction: column;
// align-items: center;
justify-content: space-between;
flex: 1;
// background-color: greenyellow;
padding-left: 20px;
padding-right: 10px;
padding-top: 10px;
.down{
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
// background-color: red;
.date{
display: flex;
flex-direction: column;
}
}
}
.right {
width: 20%;
}
}

View File

@@ -0,0 +1,59 @@
import { Button, Tabbar, TabbarItem } from "@antmjs/vantui";
import { View, Text } from "@tarojs/components";
import Taro from "@tarojs/taro";
import react from "react";
import { Image } from "@antmjs/vantui";
import "./index.scss";
import { Tag } from "@antmjs/vantui";
const ActiveCard = () => {
return (
<View className="activeCard">
<View className="left">
<Image
width="100%"
height="100px"
fit="cover"
src="cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images/v4-460px-Climb-a-Mountain-Step-9.jpg"
/>
</View>
<View className="middle">
<View className="title">
<Tag round={true} type="warning" style={{ marginRight: "5px" }}>
</Tag>
<Text></Text>
</View>
<View className="down">
<View className="date">
<View className="21"></View>
<View className="11">20221117</View>
</View>
<View className="btn">
{" "}
<Button plain hairline type="primary">
</Button>
</View>
</View>
</View>
{/* <View className="right">
<View className="tag">标签</View>
<View className="image">头像</View>
<View className="btn">按钮</View>
</View> */}
{/* <Image
round
width="100px"
height="100px"
src="https://img.yzcdn.cn/vant/cat.jpeg"
/> */}
</View>
);
};
export default ActiveCard;