import '@tarojs/async-await' import Taro, { Component } from '@tarojs/taro' import { Provider } from '@tarojs/redux' import Index from './pages/index' import configStore from './store' import './app.scss' // 如果需要在 h5 环境中开启 React Devtools // 取消以下注释: // if (process.env.NODE_ENV !== 'production' && process.env.TARO_ENV === 'h5') { // require('nerv-devtools') // } const store = configStore() class App extends Component { config = { pages: [ 'pages/index/index', // index页面 'pages/home/home',//首页 'pages/shop/shop',//店铺页面 'pages/goods/goods',// 商品页面 'pages/goodsPublish/goodsPublish',// 商品发布页面 'pages/supplyDemandPublish/supplyDemandPublish',// 供求发布页面 'pages/mySupplyDemand/mySupplyDemand',// 我的供求页面 'pages/allDemanding/allDemanding',// 所有供求页面 'pages/myGoodList/myGoodList',// 我的商品列表页面 'pages/myDemandSupplyEdit/myDemandSupplyEdit',// 我的供求编辑页面 // 'pages/shopDescription/shopDescription', ], window: { backgroundTextStyle: 'light', navigationBarBackgroundColor: '#fff', navigationBarTitleText: 'WeChat', navigationBarTextStyle: 'black' } , } componentDidMount () {} componentDidShow () {} componentDidHide () {} componentCatchError () {} componentDidCatchError () {} // 在 App 类中的 render() 函数没有实际作用 // 请勿修改此函数 render () { return ( ) } } Taro.render(, document.getElementById('app'))