提交 bbe5ca9c authored 作者: 何守志's avatar 何守志

heshouzhi

上级 701f6b0b
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
"lowdb": "^1.0.0", "lowdb": "^1.0.0",
"prop-types": "^15.6.1", "prop-types": "^15.6.1",
"react": "^16.2.0", "react": "^16.2.0",
"react-async-wrapper": "^0.1.4",
"react-dom": "^16.2.0", "react-dom": "^16.2.0",
"react-weui": "^1.1.3", "react-weui": "^1.1.3",
"urijs": "^1.19.1", "urijs": "^1.19.1",
......
...@@ -15,22 +15,22 @@ class MyTopCard extends React.Component{ ...@@ -15,22 +15,22 @@ class MyTopCard extends React.Component{
<Card full> <Card full>
<Card.Header <Card.Header
title={ title={
<div style={{fontSize:"0.85rem"}}> <div style={{fontSize:"0.9rem"}}>
<span style={ {paddingRight:"0.75rem",color:'#38c5b8',fontWeight:"600"}}>总证数</span> <span style={ {paddingRight:"0.75rem",color:'#38c5b8',fontWeight:"600"}}>总证数</span>
<span >0</span> <span >0</span>
</div> </div>
} }
style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}} style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}}
/> />
<Card.Body style={{padding:"0 1.5rem",fontSize:"0.7rem"}}> <Card.Body style={{padding:"0 1.5rem",fontSize:"0.8rem"}}>
<Flex style={{padding:"1rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{marginRight:"0.75rem"}}> <Flex.Item style={{marginRight:"0.75rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>已签约证数</div> <div>已签约证数</div>
<div>0</div> <div>0</div>
</Flex> </Flex>
</Flex.Item> </Flex.Item>
<Flex.Item style={{marginLeft:"0.75rem"}}> <Flex.Item style={{marginLeft:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>证均成本</div> <div>证均成本</div>
<div>0</div> <div>0</div>
...@@ -38,14 +38,14 @@ class MyTopCard extends React.Component{ ...@@ -38,14 +38,14 @@ class MyTopCard extends React.Component{
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding:"1rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{marginRight:"0.75rem"}}> <Flex.Item style={{marginRight:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>安置房套数</div> <div>安置房套数</div>
<div>0</div> <div>0</div>
</Flex> </Flex>
</Flex.Item> </Flex.Item>
<Flex.Item style={{marginLeft:"0.75rem"}}> <Flex.Item style={{marginLeft:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>面积成本</div> <div>面积成本</div>
<div>0</div> <div>0</div>
...@@ -53,14 +53,14 @@ class MyTopCard extends React.Component{ ...@@ -53,14 +53,14 @@ class MyTopCard extends React.Component{
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding:"1rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{marginRight:"0.75rem"}}> <Flex.Item style={{marginRight:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>产权调换比例</div> <div>产权调换比例</div>
<div>0</div> <div>0</div>
</Flex> </Flex>
</Flex.Item> </Flex.Item>
<Flex.Item style={{marginLeft:"0.75rem"}}> <Flex.Item style={{marginLeft:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>货币补偿比例</div> <div>货币补偿比例</div>
<div>0</div> <div>0</div>
...@@ -80,7 +80,7 @@ class MyTopCard extends React.Component{ ...@@ -80,7 +80,7 @@ class MyTopCard extends React.Component{
<Card full> <Card full>
<Card.Header <Card.Header
title={ title={
<div style={{fontSize:"0.85rem"}}> <div style={{fontSize:"0.9rem"}}>
<span style={ {paddingRight:"0.75rem",color:'#38c5b8',fontWeight:"600"}}>总证数</span> <span style={ {paddingRight:"0.75rem",color:'#38c5b8',fontWeight:"600"}}>总证数</span>
<span >{SummaryData[0].xiangMuZongHuShu}</span> <span >{SummaryData[0].xiangMuZongHuShu}</span>
</div> </div>
...@@ -88,14 +88,14 @@ class MyTopCard extends React.Component{ ...@@ -88,14 +88,14 @@ class MyTopCard extends React.Component{
style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}} style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}}
/> />
<Card.Body style={{padding:"0 1.5rem",fontSize:"0.7rem"}}> <Card.Body style={{padding:"0 1.5rem",fontSize:"0.7rem"}}>
<Flex style={{padding:"1rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{marginRight:"0.75rem"}}> <Flex.Item style={{marginRight:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>已签约证数</div> <div>已签约证数</div>
<div>{SummaryData[0].yiQianYueHuShu}</div> <div>{SummaryData[0].yiQianYueHuShu}</div>
</Flex> </Flex>
</Flex.Item> </Flex.Item>
<Flex.Item style={{marginLeft:"0.75rem"}}> <Flex.Item style={{marginLeft:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>证均成本</div> <div>证均成本</div>
<div>{SummaryData[0].zhengJunChengBen}</div> <div>{SummaryData[0].zhengJunChengBen}</div>
...@@ -103,14 +103,14 @@ class MyTopCard extends React.Component{ ...@@ -103,14 +103,14 @@ class MyTopCard extends React.Component{
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding:"1rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{marginRight:"0.75rem"}}> <Flex.Item style={{marginRight:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>安置房套数</div> <div>安置房套数</div>
<div>{SummaryData.anZhiFangTaoShu}</div> <div>{SummaryData.anZhiFangTaoShu}</div>
</Flex> </Flex>
</Flex.Item> </Flex.Item>
<Flex.Item style={{marginLeft:"0.75rem"}}> <Flex.Item style={{marginLeft:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>面积成本</div> <div>面积成本</div>
<div>{SummaryData.mianJiChengBen}</div> <div>{SummaryData.mianJiChengBen}</div>
...@@ -118,14 +118,14 @@ class MyTopCard extends React.Component{ ...@@ -118,14 +118,14 @@ class MyTopCard extends React.Component{
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding:"1rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{marginRight:"0.75rem"}}> <Flex.Item style={{marginRight:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>产权调换比例</div> <div>产权调换比例</div>
<div>{SummaryData.chanQuanDiaoHuanBiLi}</div> <div>{SummaryData.chanQuanDiaoHuanBiLi}</div>
</Flex> </Flex>
</Flex.Item> </Flex.Item>
<Flex.Item style={{marginLeft:"0.75rem"}}> <Flex.Item style={{marginLeft:"0.8rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>货币补偿比例</div> <div>货币补偿比例</div>
<div>{SummaryData.huoBiBuChangBiLi}</div> <div>{SummaryData.huoBiBuChangBiLi}</div>
......
...@@ -54,8 +54,8 @@ class CardOne extends React.Component{ ...@@ -54,8 +54,8 @@ class CardOne extends React.Component{
} }
style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}} style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}}
/> />
<Card.Body style={{padding:"0 1.5rem",fontSize:"0.7rem"}}> <Card.Body style={{padding:"0 1.5rem",fontSize:"0.8rem"}}>
<Flex style={{padding:"1rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{marginRight:"0.75rem"}}> <Flex.Item style={{marginRight:"0.75rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>签约数</div> <div>签约数</div>
...@@ -70,7 +70,7 @@ class CardOne extends React.Component{ ...@@ -70,7 +70,7 @@ class CardOne extends React.Component{
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding:"1rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{marginRight:"0.75rem"}}> <Flex.Item style={{marginRight:"0.75rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>货币(证)</div> <div>货币(证)</div>
...@@ -98,8 +98,8 @@ class CardOne extends React.Component{ ...@@ -98,8 +98,8 @@ class CardOne extends React.Component{
} }
style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}} style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}}
/> />
<Card.Body style={{padding:"0 1.5rem",fontSize:"0.7rem"}}> <Card.Body style={{padding:"0 1.5rem",fontSize:"0.8rem"}}>
<Flex style={{padding:"1rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{marginRight:"0.75rem"}}> <Flex.Item style={{marginRight:"0.75rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>签约数</div> <div>签约数</div>
...@@ -114,7 +114,7 @@ class CardOne extends React.Component{ ...@@ -114,7 +114,7 @@ class CardOne extends React.Component{
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding:"1rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{marginRight:"0.75rem"}}> <Flex.Item style={{marginRight:"0.75rem"}}>
<Flex style={{justifyContent:"space-between"}}> <Flex style={{justifyContent:"space-between"}}>
<div>货币(证)</div> <div>货币(证)</div>
...@@ -148,8 +148,8 @@ class CardTwo extends React.Component{ ...@@ -148,8 +148,8 @@ class CardTwo extends React.Component{
} }
style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}} style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}}
/> />
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.7rem"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem"}}>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>翻协议次数</div> <div>翻协议次数</div>
...@@ -164,7 +164,7 @@ class CardTwo extends React.Component{ ...@@ -164,7 +164,7 @@ class CardTwo extends React.Component{
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>行政撤销次数</div> <div>行政撤销次数</div>
...@@ -193,8 +193,8 @@ class CardTwo extends React.Component{ ...@@ -193,8 +193,8 @@ class CardTwo extends React.Component{
} }
style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}} style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}}
/> />
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.7rem"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem"}}>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>行政撤销次数</div> <div>行政撤销次数</div>
...@@ -227,8 +227,8 @@ class CardThree extends React.Component{ ...@@ -227,8 +227,8 @@ class CardThree extends React.Component{
} }
style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}} style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}}
/> />
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.7rem"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem"}}>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>未锁定证数</div> <div>未锁定证数</div>
...@@ -242,7 +242,7 @@ class CardThree extends React.Component{ ...@@ -242,7 +242,7 @@ class CardThree extends React.Component{
</Flex> </Flex>
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>已锁定比例</div> <div>已锁定比例</div>
...@@ -256,7 +256,7 @@ class CardThree extends React.Component{ ...@@ -256,7 +256,7 @@ class CardThree extends React.Component{
</Flex> </Flex>
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>累计解锁次数</div> <div>累计解锁次数</div>
...@@ -279,8 +279,8 @@ class CardThree extends React.Component{ ...@@ -279,8 +279,8 @@ class CardThree extends React.Component{
} }
style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}} style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}}
/> />
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.7rem"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem"}}>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>未锁定证数</div> <div>未锁定证数</div>
...@@ -294,7 +294,7 @@ class CardThree extends React.Component{ ...@@ -294,7 +294,7 @@ class CardThree extends React.Component{
</Flex> </Flex>
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>已锁定比例</div> <div>已锁定比例</div>
...@@ -308,7 +308,7 @@ class CardThree extends React.Component{ ...@@ -308,7 +308,7 @@ class CardThree extends React.Component{
</Flex> </Flex>
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>累计解锁次数</div> <div>累计解锁次数</div>
...@@ -329,8 +329,6 @@ class CardThree extends React.Component{ ...@@ -329,8 +329,6 @@ class CardThree extends React.Component{
class CardFour extends React.Component{ class CardFour extends React.Component{
render(){ render(){
return( return(
<div> <div>
<Card.Header <Card.Header
...@@ -355,7 +353,7 @@ class CardFive extends React.Component{ ...@@ -355,7 +353,7 @@ class CardFive extends React.Component{
} }
style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}} style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}}
/> />
<Card.Body style={{padding:"0 1.5rem",fontSize:"0.7rem"}}> <Card.Body style={{padding:"0 1.5rem",fontSize:"0.8rem"}}>
<Flex style={{padding:"0.4rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{flex:"2"}}> <Flex.Item style={{flex:"2"}}>
序号 序号
...@@ -381,7 +379,7 @@ class CardFiveBody extends React.Component{ ...@@ -381,7 +379,7 @@ class CardFiveBody extends React.Component{
if(data===null) { if(data===null) {
return ( return (
<div> <div>
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.6rem", minHeight: "0"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem", minHeight: "0"}}>
<Flex style={{padding: "0.4rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{flex: "2"}}> <Flex.Item style={{flex: "2"}}>
01 01
...@@ -395,7 +393,7 @@ class CardFiveBody extends React.Component{ ...@@ -395,7 +393,7 @@ class CardFiveBody extends React.Component{
</Flex> </Flex>
</Card.Body> </Card.Body>
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.6rem", minHeight: "0"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem", minHeight: "0"}}>
<Flex style={{padding: "0.4rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{flex: "2"}}> <Flex.Item style={{flex: "2"}}>
02 02
...@@ -415,7 +413,7 @@ class CardFiveBody extends React.Component{ ...@@ -415,7 +413,7 @@ class CardFiveBody extends React.Component{
}else{ }else{
return ( return (
<div> <div>
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.6rem", minHeight: "0"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem", minHeight: "0"}}>
<Flex style={{padding: "0.4rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{flex: "2"}}> <Flex.Item style={{flex: "2"}}>
01 01
...@@ -429,7 +427,7 @@ class CardFiveBody extends React.Component{ ...@@ -429,7 +427,7 @@ class CardFiveBody extends React.Component{
</Flex> </Flex>
</Card.Body> </Card.Body>
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.6rem", minHeight: "0"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem", minHeight: "0"}}>
<Flex style={{padding: "0.4rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{flex: "2"}}> <Flex.Item style={{flex: "2"}}>
02 02
...@@ -460,7 +458,7 @@ class CardSix extends React.Component{ ...@@ -460,7 +458,7 @@ class CardSix extends React.Component{
} }
style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}} style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}}
/> />
<Card.Body style={{padding:"0 1.5rem",fontSize:"0.7rem"}}> <Card.Body style={{padding:"0 1.5rem",fontSize:"0.8rem"}}>
<Flex style={{padding:"0.4rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{flex:"2"}}> <Flex.Item style={{flex:"2"}}>
序号 序号
...@@ -486,7 +484,7 @@ class CardSixBody extends React.Component{ ...@@ -486,7 +484,7 @@ class CardSixBody extends React.Component{
if(data===null) { if(data===null) {
return ( return (
<div> <div>
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.6rem", minHeight: "0"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem", minHeight: "0"}}>
<Flex style={{padding: "0.4rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{flex: "2"}}> <Flex.Item style={{flex: "2"}}>
01 01
...@@ -517,7 +515,7 @@ class CardSixBody extends React.Component{ ...@@ -517,7 +515,7 @@ class CardSixBody extends React.Component{
}else{ }else{
return ( return (
<div> <div>
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.6rem", minHeight: "0"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem", minHeight: "0"}}>
<Flex style={{padding: "0.4rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{flex: "2"}}> <Flex.Item style={{flex: "2"}}>
01 01
...@@ -559,7 +557,7 @@ class CardSeven extends React.Component{ ...@@ -559,7 +557,7 @@ class CardSeven extends React.Component{
} }
style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}} style={ {padding:"1.2rem 1.3rem",color:'#38c5b8'}}
/> />
<Card.Body style={{padding:"0 1.5rem",fontSize:"0.7rem"}}> <Card.Body style={{padding:"0 1.5rem",fontSize:"0.8rem"}}>
<Flex style={{padding:"0.4rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{flex:"2"}}> <Flex.Item style={{flex:"2"}}>
序号 序号
...@@ -585,7 +583,7 @@ class CardSevenBody extends React.Component{ ...@@ -585,7 +583,7 @@ class CardSevenBody extends React.Component{
if(data===null) { if(data===null) {
return ( return (
<div> <div>
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.6rem", minHeight: "0"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem", minHeight: "0"}}>
<Flex style={{padding: "0.4rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{flex: "2"}}> <Flex.Item style={{flex: "2"}}>
01 01
...@@ -616,7 +614,7 @@ class CardSevenBody extends React.Component{ ...@@ -616,7 +614,7 @@ class CardSevenBody extends React.Component{
}else{ }else{
return ( return (
<div> <div>
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.6rem", minHeight: "0"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem", minHeight: "0"}}>
<Flex style={{padding: "0.4rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{flex: "2"}}> <Flex.Item style={{flex: "2"}}>
01 01
...@@ -660,8 +658,8 @@ class CardEight extends React.Component{ ...@@ -660,8 +658,8 @@ class CardEight extends React.Component{
} }
style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}} style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}}
/> />
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.7rem"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem"}}>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>房源总套数</div> <div>房源总套数</div>
...@@ -675,7 +673,7 @@ class CardEight extends React.Component{ ...@@ -675,7 +673,7 @@ class CardEight extends React.Component{
</Flex> </Flex>
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>未使用套数</div> <div>未使用套数</div>
...@@ -702,8 +700,8 @@ class CardEight extends React.Component{ ...@@ -702,8 +700,8 @@ class CardEight extends React.Component{
} }
style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}} style={{padding: "1.2rem 1.3rem", color: '#38c5b8'}}
/> />
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.7rem"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem"}}>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>房源总套数</div> <div>房源总套数</div>
...@@ -717,7 +715,7 @@ class CardEight extends React.Component{ ...@@ -717,7 +715,7 @@ class CardEight extends React.Component{
</Flex> </Flex>
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<Flex style={{padding: "1rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
<Flex.Item style={{marginRight: "0.75rem"}}> <Flex.Item style={{marginRight: "0.75rem"}}>
<Flex style={{justifyContent: "space-between"}}> <Flex style={{justifyContent: "space-between"}}>
<div>未使用套数</div> <div>未使用套数</div>
...@@ -743,7 +741,7 @@ class CardNine extends React.Component{ ...@@ -743,7 +741,7 @@ class CardNine extends React.Component{
render(){ render(){
return( return(
<div> <div>
<Card.Body style={{padding:"0 1.5rem",fontSize:"0.7rem"}}> <Card.Body style={{padding:"0 1.5rem",fontSize:"0.8rem"}}>
<Flex style={{padding:"0.4rem 0"}}> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item style={{flex:"3"}}> <Flex.Item style={{flex:"3"}}>
小区名称 小区名称
...@@ -775,7 +773,7 @@ class CardNineBody extends React.Component{ ...@@ -775,7 +773,7 @@ class CardNineBody extends React.Component{
if(data===null) { if(data===null) {
return ( return (
<div> <div>
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.6rem", minHeight: "0"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem", minHeight: "0"}}>
<Flex style={{padding: "0.4rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
</Flex> </Flex>
...@@ -787,7 +785,7 @@ class CardNineBody extends React.Component{ ...@@ -787,7 +785,7 @@ class CardNineBody extends React.Component{
}else{ }else{
return ( return (
<div> <div>
<Card.Body style={{padding: "0 1.5rem", fontSize: "0.6rem", minHeight: "0"}}> <Card.Body style={{padding: "0 1.5rem", fontSize: "0.8rem", minHeight: "0"}}>
{data.map((item,index) => { {data.map((item,index) => {
return( return(
<Flex style={{padding: "0.4rem 0"}}> <Flex style={{padding: "0.4rem 0"}}>
......
...@@ -31,7 +31,7 @@ class MyBodyCard extends React.Component{ ...@@ -31,7 +31,7 @@ class MyBodyCard extends React.Component{
<div key={index}> <div key={index}>
<Card full onClick={()=>this.pushRoute(item)}> <Card full onClick={()=>this.pushRoute(item)}>
<Card.Header <Card.Header
style={ {padding:"0",color:'#38c5b8',fontSize:"0.85rem"}} style={ {padding:"0",color:'#38c5b8',fontSize:"0.9rem"}}
title={ title={
<div style={ {padding:"1.2rem 1.3rem",color:'#38c5b8',width:"100%"}}> <div style={ {padding:"1.2rem 1.3rem",color:'#38c5b8',width:"100%"}}>
<Flex style={{justifyContent:"space-between",alignItems:"flex-start"}}> <Flex style={{justifyContent:"space-between",alignItems:"flex-start"}}>
...@@ -52,29 +52,29 @@ class MyBodyCard extends React.Component{ ...@@ -52,29 +52,29 @@ class MyBodyCard extends React.Component{
} }
/> />
<Card.Body> <Card.Body>
<Flex> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item><Badge className={styles.mybadgetwo} style={{background:"none"}} text={ <Flex.Item><Badge className={styles.mybadgetwo} style={{background:"none"}} text={
<div style={{color:"#333"}}> <div style={{color:"#333",fontSize:"0.8rem"}}>
<span style={ {paddingRight:"15px"}}>已签约总数</span> <span style={ {paddingRight:"15px"}}>已签约总数</span>
<span >{item.yiQianYueHuShu}</span> <span >{item.yiQianYueHuShu}</span>
</div> </div>
}/></Flex.Item> }/></Flex.Item>
<Flex.Item><Badge style={{background:"none"}} text={ <Flex.Item><Badge style={{background:"none"}} text={
<div style={{color:"#333"}}> <div style={{color:"#333",fontSize:"0.8rem"}}>
<span style={ {paddingRight:"0.75rem"}}>签约比例</span> <span style={ {paddingRight:"0.75rem"}}>签约比例</span>
<span >{item.qianYueHuShuBiLi}</span> <span >{item.qianYueHuShuBiLi}</span>
</div> </div>
}/></Flex.Item> }/></Flex.Item>
</Flex> </Flex>
<Flex> <Flex style={{padding:"0.4rem 0"}}>
<Flex.Item><Badge style={{background:"none"}} text={ <Flex.Item><Badge style={{background:"none"}} text={
<div style={{color:"#333"}}> <div style={{color:"#333",fontSize:"0.8rem"}}>
<span style={ {paddingRight:"0.75rem"}}>产权调换比例</span> <span style={ {paddingRight:"0.75rem"}}>产权调换比例</span>
<span >{item.chanQuanDiaoHuanBiLi}</span> <span >{item.chanQuanDiaoHuanBiLi}</span>
</div> </div>
}/></Flex.Item> }/></Flex.Item>
<Flex.Item><Badge style={{background:"none"}} text={ <Flex.Item><Badge style={{background:"none"}} text={
<div style={{color:"#333"}}> <div style={{color:"#333",fontSize:"0.8rem"}}>
<span style={ {paddingRight:"0.75rem"}}>货币补偿比例</span> <span style={ {paddingRight:"0.75rem"}}>货币补偿比例</span>
<span >{item.huoBiBuChangBiLi}</span> <span >{item.huoBiBuChangBiLi}</span>
</div> </div>
......
...@@ -7,7 +7,8 @@ console.log('index.js'); ...@@ -7,7 +7,8 @@ console.log('index.js');
const app = dva({ const app = dva({
history: createBrowserHistory({ history: createBrowserHistory({
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
basename: 'bm-wx', //basename: 'bm-wx',
basename: '/',
}), }),
}); });
......
import { getData } from '../../utils/DataTemplate'; import { getData } from '../../utils/DataTemplate';
import {setToken} from "../../utils/auth";
import {login} from "../../services/login";
export default { export default {
namespace: 'home', namespace: 'home',
...@@ -15,33 +17,18 @@ export default { ...@@ -15,33 +17,18 @@ export default {
effects: { effects: {
*getSummaryData({ payload }, { take, put, call, select }) { *getSummaryData({ payload }, { take, put, call, select }) {
// const payloads = { userName:'admin',password:'admin', type: 'userName', authType: 'password' }; const payloads = { userName:'admin',password:'admin', type: 'userName', authType: 'password' };
// try{ try{
// const result = yield call(login, payloads); const result = yield call(login, payloads);
// console.info(result); console.info(result);
// const { tokenId } = result; const { tokenId } = result;
// yield call(setToken, tokenId);// 这里的yield ,跟C#中的await一样 yield call(setToken, tokenId);// 这里的yield ,跟C#中的await一样
// } }
// catch (erroer) { catch (erroer) {
// console.info(erroer); console.info(erroer);
// } }
//
//
// const { pNumber } = payload;
// const coordinate = {
// containerType: 'module',
// containerName: 'QueryJiDiModule',
// datasourceName: 'QueryDistrictName',
// };
// try {
// const resultss = yield call(getData, coordinate, { pst: 0, psz: 10 ,params:{pNumber:pNumber}});
// console.info('查询的结果');
// console.info(resultss);
// yield put({ type: 'setSummaryData',payload:{resultss} });
// }catch (erroer){
// console.info(erroer);
// }
// 这是以后放到服务器时候用的代码,因为现在要测试,所以要先注释
const { pNumber } = payload; const { pNumber } = payload;
const coordinate = { const coordinate = {
containerType: 'module', containerType: 'module',
...@@ -56,6 +43,21 @@ export default { ...@@ -56,6 +43,21 @@ export default {
}catch (erroer){ }catch (erroer){
console.info(erroer); console.info(erroer);
} }
// 这是以后放到服务器时候用的代码,因为现在要测试,所以要先注释
// const { pNumber } = payload;
// const coordinate = {
// containerType: 'module',
// containerName: 'QueryJiDiModule',
// datasourceName: 'QueryDistrictName',
// };
// try {
// const resultss = yield call(getData, coordinate, { pst: 0, psz: 10 ,params:{pNumber:pNumber}});
// console.info('查询的结果');
// console.info(resultss);
// yield put({ type: 'setSummaryData',payload:{resultss} });
// }catch (erroer){
// console.info(erroer);
// }
}, },
*getSummary({ payload }, { take, put, call, select }) { *getSummary({ payload }, { take, put, call, select }) {
......
import React from 'react'; import React from 'react';
import { Router, Route, Switch } from 'dva/router'; import { Router, IndexRoute, Route, Switch } from 'dva/router';
import dynamic from 'dva/dynamic'; import dynamic from 'dva/dynamic';
import MiddleSelectPage from "./routes/MiddleSelectPage"; import MiddleSelectPage from "./routes/MiddleSelectPage";
//import SearchPage from "./routes/Home/SearchPage"; //import SearchPage from "./routes/Home/SearchPage";
...@@ -17,9 +17,11 @@ function RouterConfig({ history, app }) { ...@@ -17,9 +17,11 @@ function RouterConfig({ history, app }) {
app, app,
component: () => import('./routes/Home/SearchPage'), component: () => import('./routes/Home/SearchPage'),
}) ; }) ;
return ( return (
<Router history={history}> <Router history={history}>
<Switch> <Switch>
<IndexRoute component={HomePage}/>
<Route path="/" exact component={MiddleSelectPage} /> <Route path="/" exact component={MiddleSelectPage} />
<Route path="/Home" component={HomePage} /> <Route path="/Home" component={HomePage} />
<Route path="/Login" component={IndexPage} /> <Route path="/Login" component={IndexPage} />
......
...@@ -14,8 +14,8 @@ import MyBodyCard from "../../components/CardViewTwo"; ...@@ -14,8 +14,8 @@ import MyBodyCard from "../../components/CardViewTwo";
class HomePage extends React.Component{ class HomePage extends React.Component{
componentWillMount() { componentWillMount() {
const { dispatch } = this.props; const { dispatch } = this.props;
dispatch({ type: 'home/getSummary',payload: { pNumber:'浦东新区' }});
dispatch({ type: 'home/getSummaryData',payload: { pNumber:'浦东新区' }}); dispatch({ type: 'home/getSummaryData',payload: { pNumber:'浦东新区' }});
// dispatch({ type: 'home/getSummary',payload: { pNumber:'浦东新区' }});
} }
onChange=(value)=>{ onChange=(value)=>{
console.info("改变了"); console.info("改变了");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论