feat: 立即参加-按钮
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
.detailContent {
|
||||
// background-color: yellow;
|
||||
|
||||
.detailBtn {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,41 @@
|
||||
import { View } from "@tarojs/components";
|
||||
import react from "react";
|
||||
import { Button } from "@antmjs/vantui";
|
||||
import { RichText, View } from "@tarojs/components";
|
||||
import react, { useEffect, useState } from "react";
|
||||
import { getTable } from "../../../../utils/index";
|
||||
import "./index.scss";
|
||||
|
||||
const details=()=>{
|
||||
return <View>details</View>
|
||||
}
|
||||
const details = () => {
|
||||
const [dataSource, setdataSource] = useState<any>([]);
|
||||
|
||||
export default details
|
||||
useEffect(() => {
|
||||
let objParams = {
|
||||
tableName: "cityNew",
|
||||
id: "80516fb66370bcf300b8f43c5f4dd52b",
|
||||
okFun: (res) => {
|
||||
console.log("res", res);
|
||||
setdataSource(res?.data ?? []);
|
||||
},
|
||||
};
|
||||
// getTable(objParams)
|
||||
getTable(objParams);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<View className={`detailContent`}>
|
||||
{/* 富文本 */}
|
||||
<View onClick={() => {}}>
|
||||
<View>{dataSource?.[0]?.actTitle}</View>
|
||||
<RichText nodes={dataSource?.[0]?.richText} />
|
||||
</View>
|
||||
|
||||
<View className={`detailBtn`}>
|
||||
{/* style={{width:'375px'}} */}
|
||||
<Button type="primary" block>
|
||||
立即参加
|
||||
</Button>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
export default details;
|
||||
|
||||
@@ -25,7 +25,7 @@ const mountainPeak = () => {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
let objParams2 = {
|
||||
let objParams = {
|
||||
tableName: "cityNew",
|
||||
id: "80516fb66370bcf300b8f43c5f4dd52b",
|
||||
okFun: (res) => {
|
||||
@@ -34,7 +34,7 @@ const mountainPeak = () => {
|
||||
},
|
||||
};
|
||||
// getTable(objParams)
|
||||
getTable(objParams2);
|
||||
getTable(objParams);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user