import Taro, {Component} from '@tarojs/taro' import Index from './pages/index' import './app.scss'
class App extends Component { config = { pages: [ 'pages/index/index', 'pages/me/index', 'pages/category/index' ], window: { navigationBarBackgroundColor: '#000000', backgroundTextStyle: 'light', navigationBarBackgroundColor: '#fff', navigationBarTitleText: 'application name', navigationBarTextStyle: 'black', navigationStyle: 'default/custom', backgroundTextStyle: 'dark/light', backgroundColorTop: '#ffffff', backgroundColorBottom: '#ffffff', enablePullDownRefresh: true, onReachBottomDistance: 50, pageOrientation: 'auto/portrait/landscape' }, tabBar: { color: '#aabbcc', selectedColor: '#ffffff', backgroundColor: '#000000', borderStyle: 'black/white', list: [ { pagePath: '/pages/index/index', text: 'home', iconPath: '', selectedIconPath: '', } ], postion: 'bottom/top', custom: true/false }, networkTimeout: { request: 60000, connectSocket: 60000, uploadFile: 60000, downloadFile: 60000 }, debug: true, functionalPages: true, subPackages: [ ], workers: '/worker/path/', requiredBackgroundModes: ['sound'], plugins: { }, preloadRule: { }, resizable: true, navigateToMiniProgramAppIdList: [ 'appid001','appid02' ], usingComponents: { }, permission:{ 'scope.userLocation': { desc: '你的位置信息将用于小程序接口的效果展示' } } }
componentWillMount(){ const {path, scene, query, shareTicket, referrerInfo} = this.$router.params const {appId, extraData, sourceServiceId} = referrerInfo }
componentDidMount(){ const {path, scene, query, shareTicket, referrerInfo} = this.$router.params const {appId, extraData, sourceServiceId} = referrerInfo }
componentDidShow(){ const {path, scene, query, shareTicket, referrerInfo} = this.$router.params const {appId, extraData, sourceServiceId} = referrerInfo }
componentDidHide(){ }
componentDidCatchError(String error){ }
componentDidNotFound(Object){ const {path, query, isEntryPage} = Object }
}
|