import Taro, { Component } from '@tarojs/taro'
import { WebView } from '@tarojs/components'

class Index extends Component {
  onShareAppMessage() {
    const { url } = this.$router.params
    return {
      title: '让买房，更省心',
      path: `/pagesMore/center/webViews?url=${url}`,
    }
  }
  onShareTimeline () {
    const { url } = this.$router.params
    return {
      title: '洪楼Plus，专注南昌本地房地产市场，让买房，更省心！',
      path: `/pagesMore/center/webViews?url=${url}`,
    }
  }

  constructor (props) {
    super(props)
    this.state = {
      curObj: {},
    }
  }

  componentWillMount () {}

  config = {
    navigationBarTitleText: '洪楼Plus',
  }
  render () {
    const { url } = this.$router.params
    return (
      <WebView src={url} />
    )
  }
}

export default Index
