|
@@ -4,19 +4,22 @@ import './index.scss'
|
4
|
4
|
import { getItemList } from '@/services/item'
|
5
|
5
|
import ready from '@/utils/ready'
|
6
|
6
|
import { connect } from '@tarojs/redux'
|
|
7
|
+import { share as shareSavePoint } from '@/utils/shareSavePoint'
|
7
|
8
|
|
8
|
9
|
@connect(
|
9
|
10
|
state => ({ ...state.user, ...state.city })
|
10
|
11
|
)
|
11
|
12
|
export default class Index extends Component {
|
12
|
13
|
config = {
|
13
|
|
- navigationBarTitleText: '地产'
|
|
14
|
+ navigationBarTitleText: '雅居乐地产'
|
14
|
15
|
}
|
15
|
16
|
state = {
|
16
|
17
|
PageList: [{}, {}, {}, {}, {}],
|
17
|
18
|
filterOpt: {},
|
18
|
19
|
pageIndex: 1,
|
19
|
|
- Org: null
|
|
20
|
+ Org: null,
|
|
21
|
+ ShareTitle: '雅居乐地产',
|
|
22
|
+ ShareImg: null
|
20
|
23
|
}
|
21
|
24
|
componentWillMount () {
|
22
|
25
|
ready.queue(async () => {
|
|
@@ -29,6 +32,22 @@ export default class Index extends Component {
|
29
|
32
|
})
|
30
|
33
|
})
|
31
|
34
|
}
|
|
35
|
+ // 转发
|
|
36
|
+ onShareAppMessage = () => {
|
|
37
|
+ // shareSavePoint({
|
|
38
|
+ // event: 'share',
|
|
39
|
+ // eventType: 'main',
|
|
40
|
+ // propertyName: '地产分享',
|
|
41
|
+ // sharePersonId: personId,
|
|
42
|
+ // targetId: 'dichan',
|
|
43
|
+ // data: '{}'
|
|
44
|
+ // }, 'main')
|
|
45
|
+ return {
|
|
46
|
+ title: this.state.ShareTitle,//分享内容
|
|
47
|
+ path: `/pages/dichan/index`,//分享地址
|
|
48
|
+ imageUrl: null,
|
|
49
|
+ }
|
|
50
|
+ }
|
32
|
51
|
loadList (page = 0, pageSize = 10) {
|
33
|
52
|
const { curCity } = this.props
|
34
|
53
|
const { filterOpt } = this.state
|