import React, {Component} from 'react' import {NavBar, Icon, ActivityIndicator, Grid} from 'antd-mobile' import {Input} from 'antd' import './index.css' import {productbyprops} from "../../../utils/gql" import {Query} from "react-apollo" import gql from "graphql-tag" const Search = Input.Search class Kind extends Component { constructor(props) { super(props) this.state = {} } render() { let {id, changePageInHome} = this.props return (
} onLeftClick={() => changePageInHome('all', {}, false)} rightContent={[ , ]} >商品分类
console.log(value)} />
{ ({loading, error, data}) => { if (loading) { return (
) } if (error) { return 'error!' } return ( ) } }
) } } export default Kind class KindRender extends Component { constructor(props) { super(props) this.state = {} } render() { let {data, changePageInHome} = this.props return (
{ changePageInHome('detail', {id: kind.id}) }} renderItem={dataItem => (
{dataItem.name}
{dataItem.price}
)} />
) } }