添加 供求发布, 我的供求,copyright, searchbar component

This commit is contained in:
2018-12-07 17:17:46 +08:00
parent 1b48b7b55a
commit 03f91e217e
20 changed files with 1024 additions and 32 deletions

View File

@@ -51,7 +51,7 @@ class bottomNav extends Component {
const otherData=[
{ name: '首页', url:'pages/home/home'},
{ name: '商品发布', url:'pages/shop/shop'},
{name:'供求发布',url:''},
{ name: '供求发布', url:'pages/supplyDemandPubish/supplyDemandPubish'},
{name:'我的供求',url:''},
{name:'更多',url:''},
]

View File

@@ -0,0 +1,33 @@
import Taro, { Component } from '@tarojs/taro'
import { View, Button, Text } from '@tarojs/components'
import './copyrightComponent.scss'
class CopyrightComponent extends Component {
config = {
navigationBarTitleText: 'copyrightComponent'
}
render() {
return (
<View className='copyrightComponent'>
<View className='copyright-box'>
<View className='title'>
Copyright &copy; 晨丰全屋定制商城 闽ICP备16007300号-2
</View>
</View>
<View className='gap'>
</View>
</View>
)
}
}
export default CopyrightComponent

View File

@@ -0,0 +1,15 @@
.copyright-box{
padding:0 20px;
.title{
text-align: center;
line-height: 100px;
font-size: 25px;
}
}
.gap{
height:150px;
}

View File

@@ -0,0 +1,44 @@
import Taro, { Component } from '@tarojs/taro'
import { View, Button, Text } from '@tarojs/components'
import { AtSearchBar } from 'taro-ui'
import './searchBarComponent.scss'
class searchBarComponent extends Component {
config = {
navigationBarTitleText: 'searchBarComponent'
}
constructor() {
super(...arguments)
this.state = {
value: ''
}
}
onChange(value) {
this.setState({
value: value
})
}
render() {
return (
<View className='searchBarComponent'>
<View className='searchBar-box'>
<AtSearchBar className='search-button'
actionName='搜索'
value={this.state.value}
onChange={this.onChange.bind(this)}
onActionClick={this.onActionClick.bind(this)}
/>
</View>
</View>
)
}
}
export default searchBarComponent

View File

@@ -0,0 +1,10 @@
.searchBarComponent{
.search-button{
.at-search-bar__action {
background-color:#FF9900;
}
}
}