webViews.jsx 838 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import Taro, { Component } from '@tarojs/taro'
  2. import { WebView } from '@tarojs/components'
  3. class Index extends Component {
  4. onShareAppMessage() {
  5. const { url } = this.$router.params
  6. return {
  7. title: '让买房,更省心',
  8. path: `/pagesMore/center/webViews?url=${url}`,
  9. }
  10. }
  11. onShareTimeline () {
  12. const { url } = this.$router.params
  13. return {
  14. title: '洪楼Plus,专注南昌本地房地产市场,让买房,更省心!',
  15. path: `/pagesMore/center/webViews?url=${url}`,
  16. }
  17. }
  18. constructor (props) {
  19. super(props)
  20. this.state = {
  21. curObj: {},
  22. }
  23. }
  24. componentWillMount () {}
  25. config = {
  26. navigationBarTitleText: '洪楼Plus',
  27. }
  28. render () {
  29. const { url } = this.$router.params
  30. return (
  31. <WebView src={url} />
  32. )
  33. }
  34. }
  35. export default Index