|
@@ -1,7 +1,15 @@
|
1
|
1
|
import Taro, { Component } from '@tarojs/taro'
|
2
|
|
-import { View, RichText, ScrollView } from '@tarojs/components'
|
|
2
|
+import { View, RichText } from '@tarojs/components'
|
|
3
|
+import Statement from '../../components/Statement'
|
|
4
|
+import ContactConsultant from '../../components/ContactConsultant'
|
|
5
|
+
|
|
6
|
+import './index.scss'
|
3
|
7
|
|
4
|
8
|
export default class Protocol extends Component {
|
|
9
|
+ config = {
|
|
10
|
+ navigationBarTitleText: '线上选房协议',
|
|
11
|
+ }
|
|
12
|
+
|
5
|
13
|
state = {
|
6
|
14
|
content: `
|
7
|
15
|
<p>New Year in china is an important festival. Nearly everyone thinks highly of it. No matter where people go and no matter how far they go, they will try their best to go home enjoying family time. And no matter what difficulty or trouble they are experiencing, they will put aside for the period of time. In every house, the main atmosphere is happiness. What do people usually do during the New Year time? They will prepare a big meal together on New Year’s Eve. In the following days, they will visit their relatives. their relatives also will pay a return visit.</p>
|
|
@@ -9,19 +17,21 @@ export default class Protocol extends Component {
|
9
|
17
|
<p>No matter where people go and no matter how far they go, they will try their best to go home enjoying family time. And no matter what difficulty or trouble they are experiencing, they will put aside for the period of time. In every house, the main atmosphere is happiness. </p>
|
10
|
18
|
<p>What do people usually do during the New Year time? They will prepare a big meal together on New Year’s Eve. In the following days, they will visit their relatives. their relatives also will pay a return visit. One of the most important things that they will not forget to do is to worship their ancestors.</p>
|
11
|
19
|
`,
|
|
20
|
+ buildingId: '9f021a59b2a714822894c23ccca8c2db', // must change this
|
12
|
21
|
}
|
13
|
22
|
|
14
|
|
-
|
15
|
23
|
render() {
|
16
|
|
- const { content } = this.state
|
|
24
|
+ const { content, buildingId } = this.state
|
17
|
25
|
|
18
|
26
|
return (
|
19
|
27
|
<View className="protocal-box">
|
20
|
|
- <ScrollView scrollY className="content">
|
|
28
|
+ <View className="content">
|
21
|
29
|
<RichText nodes={content}/>
|
22
|
|
- </ScrollView>
|
23
|
|
- <View></View>
|
24
|
|
- {/* <todo /> */}
|
|
30
|
+ </View>
|
|
31
|
+ <View className="contact">
|
|
32
|
+ <ContactConsultant text="如有问题,请联系置业顾问" buildingId={buildingId}/>
|
|
33
|
+ </View>
|
|
34
|
+ <Statement />
|
25
|
35
|
</View>
|
26
|
36
|
)
|
27
|
37
|
}
|