feat: 字段调整
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
flex-direction: row;
|
||||
height: 200px;
|
||||
background-color: #fafafa;
|
||||
margin-top: 5px;
|
||||
margin-top: 15px;
|
||||
.left {
|
||||
width: 30%;
|
||||
// position: relative;
|
||||
|
||||
@@ -5,6 +5,7 @@ import react, { useState } from "react";
|
||||
import { Image } from "@antmjs/vantui";
|
||||
import "./index.scss";
|
||||
import { Tag } from "@antmjs/vantui";
|
||||
import moment from 'moment'
|
||||
|
||||
const ActiveCard = (props: any) => {
|
||||
const [dataSource, setdataSource] = useState<any>({}); //活动详情
|
||||
@@ -45,20 +46,19 @@ const ActiveCard = (props: any) => {
|
||||
<View className="down">
|
||||
<View className="date">
|
||||
{/* 地址 */}
|
||||
<View className="21">{address}</View>
|
||||
<View className="">{address}</View>
|
||||
{/* 日期 */}
|
||||
<View className="11">{date}</View>
|
||||
<View className="">{moment(date).format('YYYY-MM-DD')}</View>
|
||||
</View>
|
||||
|
||||
<View className="btn">
|
||||
{/* 活动状态 0 待开放 1开放中 2已取消 3进行中 4已结束 5已关闭 */}
|
||||
<Button plain hairline type="primary">
|
||||
{Status === "0" ? "立即报名" : "取消"}
|
||||
{`立即报名`}
|
||||
</Button>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user