|
@@ -164,24 +164,24 @@ class Enterprise extends Component {
|
|
|
<View>
|
|
|
{this.props.type == 0 || this.props.type == 2
|
|
|
? this.state.list.map((v, k) => (
|
|
|
- <View key={k}>
|
|
|
- <AtListItem
|
|
|
- title={v.name}
|
|
|
- arrow="right"
|
|
|
- iconInfo={{ size: 25, color: "#000000", value: "bookmark" }}
|
|
|
- onClick={() => {
|
|
|
- // this.setState({
|
|
|
- // listVisible: true,
|
|
|
- // listValue: v,
|
|
|
- // })
|
|
|
- // this.getByUid(v)
|
|
|
- Taro.eventCenter.trigger("enterprise", v);
|
|
|
- }}
|
|
|
- />
|
|
|
- </View>
|
|
|
- ))
|
|
|
+ <View key={k}>
|
|
|
+ <AtListItem
|
|
|
+ title={v.name}
|
|
|
+ arrow="right"
|
|
|
+ iconInfo={{ size: 25, color: "#000000", value: "bookmark" }}
|
|
|
+ onClick={() => {
|
|
|
+ // this.setState({
|
|
|
+ // listVisible: true,
|
|
|
+ // listValue: v,
|
|
|
+ // })
|
|
|
+ // this.getByUid(v)
|
|
|
+ Taro.eventCenter.trigger("enterprise", v);
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </View>
|
|
|
+ ))
|
|
|
: !this.state.listVisible
|
|
|
- ? this.state.list.map((v, k) => (
|
|
|
+ ? this.state.list.map((v, k) => (
|
|
|
<View key={k}>
|
|
|
<AtListItem
|
|
|
title={v.name}
|
|
@@ -198,7 +198,7 @@ class Enterprise extends Component {
|
|
|
/>
|
|
|
</View>
|
|
|
))
|
|
|
- : ""}
|
|
|
+ : ""}
|
|
|
{this.state.listVisible && this.props.type == 1 ? (
|
|
|
<View>
|
|
|
<AtListItem
|
|
@@ -206,7 +206,7 @@ class Enterprise extends Component {
|
|
|
arrow="right"
|
|
|
iconInfo={{ size: 25, color: "#000000", value: "bookmark" }}
|
|
|
/>
|
|
|
- <View>
|
|
|
+ <View style={{ marginTop: "10px" }}>
|
|
|
{this.state.orderNo.length > 0 ? (
|
|
|
<View>
|
|
|
{this.state.orderNo.map((v, k) => (
|
|
@@ -262,24 +262,24 @@ class Enterprise extends Component {
|
|
|
)}
|
|
|
{this.props.type == 0
|
|
|
? this.state.list.map((v, k) => (
|
|
|
- <View key={k}>
|
|
|
- <AtListItem
|
|
|
- title={v.name}
|
|
|
- arrow="right"
|
|
|
- iconInfo={{ size: 25, color: "#000000", value: "bookmark" }}
|
|
|
- onClick={() => {
|
|
|
- // this.setState({
|
|
|
- // listVisible: true,
|
|
|
- // listValue: v,
|
|
|
- // })
|
|
|
- // this.getByUid(v)
|
|
|
- Taro.eventCenter.trigger("enterprise", v);
|
|
|
- }}
|
|
|
- />
|
|
|
- </View>
|
|
|
- ))
|
|
|
+ <View key={k}>
|
|
|
+ <AtListItem
|
|
|
+ title={v.name}
|
|
|
+ arrow="right"
|
|
|
+ iconInfo={{ size: 25, color: "#000000", value: "bookmark" }}
|
|
|
+ onClick={() => {
|
|
|
+ // this.setState({
|
|
|
+ // listVisible: true,
|
|
|
+ // listValue: v,
|
|
|
+ // })
|
|
|
+ // this.getByUid(v)
|
|
|
+ Taro.eventCenter.trigger("enterprise", v);
|
|
|
+ }}
|
|
|
+ />
|
|
|
+ </View>
|
|
|
+ ))
|
|
|
: !this.state.listVisible
|
|
|
- ? this.state.list.map((v, k) => (
|
|
|
+ ? this.state.list.map((v, k) => (
|
|
|
<View key={k}>
|
|
|
<AtListItem
|
|
|
title={v.name}
|
|
@@ -296,7 +296,7 @@ class Enterprise extends Component {
|
|
|
/>
|
|
|
</View>
|
|
|
))
|
|
|
- : ""}
|
|
|
+ : ""}
|
|
|
<ListBottomStart
|
|
|
state={this.state.listState}
|
|
|
reload={() => {
|