1002884655 3 gadus atpakaļ
vecāks
revīzija
52992a660c

+ 2
- 2
config/dev.js Parādīt failu

@@ -3,8 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"development"'
4 4
   },
5 5
   defineConstants: {
6
-    // HOST: '"https://xlk.njyz.tech"',
7
-    HOST: '"http://127.0.0.1:8088"',
6
+    HOST: '"https://xlk.njyz.tech"',
7
+    // HOST: '"http://127.0.0.1:8088"',
8 8
     WSS_HOST: '"wss://xlk.njyz.tech"',
9 9
     OSS_PATH: '"https://zhiyun-image.oss-accelerate.aliyuncs.com/"',
10 10
     OSS_FAST_PATH: '"https://zhiyun-image.oss-accelerate.aliyuncs.com/"',

+ 1
- 1
project.config.json Parādīt failu

@@ -27,7 +27,7 @@
27 27
 			"outputPath": ""
28 28
 		},
29 29
 		"useIsolateContext": true,
30
-		"useCompilerModule": true,
30
+		"useCompilerModule": false,
31 31
 		"userConfirmedUseCompilerModuleSwitch": false
32 32
 	},
33 33
 	"compileType": "miniprogram",

Binārs
src/assets/index-icon17.png Parādīt failu


Binārs
src/assets/index-icon18.jpg Parādīt failu


Binārs
src/assets/index-icon19.jpg Parādīt failu


+ 3
- 0
src/pages/index/buildingInfo/index.config.js Parādīt failu

@@ -0,0 +1,3 @@
1
+export default {
2
+  navigationBarTitleText: '楼盘信息'
3
+}

+ 62
- 0
src/pages/index/buildingInfo/index.jsx Parādīt failu

@@ -0,0 +1,62 @@
1
+import { useState, useEffect } from 'react'
2
+import withLayout from '@/layout'
3
+import { ScrollView } from '@tarojs/components'
4
+import '@/assets/css/iconfont.css'
5
+import './index.scss'
6
+
7
+export default withLayout((props) => {
8
+
9
+  const [InfoList, setInfoList] = useState([
10
+    [
11
+      { name: '项目名称', value: '葛洲坝·南京中国府', key: '' },
12
+      { name: '开发商', value: '暂无', key: '' },
13
+      { name: '均价', value: '待定', key: '' },
14
+      { name: '销售状态', value: '待定', key: '' },
15
+      { name: '开盘日期', value: '2019-08-05', key: '' },
16
+      { name: '楼盘地址', value: '南京建邺区友谊街交汇处南京建邺区友谊街交汇处', key: '' },
17
+    ],
18
+    [
19
+      { name: '装修标准', value: '精装', key: '' },
20
+      { name: '物业公司', value: '葛洲坝物业', key: '' },
21
+      { name: '物业费', value: '2.0元/㎡/月', key: '' },
22
+    ],
23
+    [
24
+      { name: '容积率', value: '2.75', key: '' },
25
+      { name: '供水', value: '民水', key: '' },
26
+      { name: '供电', value: '民电', key: '' },
27
+      { name: '供暖方式', value: '自采暖', key: '' },
28
+      { name: '人车分流', value: '-', key: '' },
29
+      { name: '车位数量', value: '约1000', key: '' },
30
+      { name: '规划户数', value: '300', key: '' },
31
+      { name: '楼栋总数', value: '25', key: '' },
32
+      { name: '绿化率', value: '35.31%', key: '' },
33
+      { name: '项目说明', value: '南京建邺区友谊街交汇处南京建邺区友谊街交汇处', key: '' },
34
+      { name: '备案名', value: '暂无', key: '' },
35
+    ]
36
+  ])
37
+
38
+  return (
39
+    <view className='Page buildingInfo'>
40
+      <ScrollView scrollY>
41
+        <view className='List'>
42
+          {
43
+            InfoList.map((item, index) => (
44
+              <view key={`ListItem-${index}`}>
45
+                {
46
+                  item.map((subItem, subIndex) => (
47
+                    <view className='flex-h' key={`SubListItem-${subIndex}`}>
48
+                      <text>{subItem.name}</text>
49
+                      <view className='flex-item'>
50
+                        <text>{subItem.value}</text>
51
+                      </view>
52
+                    </view>
53
+                  ))
54
+                }
55
+              </view>
56
+            ))
57
+          }
58
+        </view>
59
+      </ScrollView>
60
+    </view>
61
+  )
62
+})

+ 46
- 0
src/pages/index/buildingInfo/index.scss Parādīt failu

@@ -0,0 +1,46 @@
1
+.Page.buildingInfo {
2
+  background: #f8f8f8;
3
+  width: 100%;
4
+  height: 100%;
5
+  > scroll-view {
6
+    width: 100%;
7
+    height: 100%;
8
+    .List {
9
+      position: relative;
10
+      overflow: hidden;
11
+      >view {
12
+        position: relative;
13
+        overflow: hidden;
14
+        background: #fff;
15
+        margin-top: 20px;
16
+        padding: 0 40px;
17
+        &:first-child {
18
+          margin-top: 0;
19
+        }
20
+        >view {
21
+          align-items: center;
22
+          border-top: 2px solid rgba(0, 0, 0, 0.08);
23
+          &:first-child {
24
+            border-top: none;
25
+          }
26
+          >text {
27
+            font-size: 30px;
28
+            color: #999;
29
+            padding: 36px 0;
30
+            min-width: 120px;
31
+            text-align: right;
32
+            margin-right: 80px;
33
+          }
34
+          >view {
35
+            >text {
36
+              display: block;
37
+              font-size: 32px;
38
+              color: #333;
39
+              line-height: 44px;
40
+            }
41
+          }
42
+        }
43
+      }
44
+    }
45
+  }
46
+}

+ 3
- 0
src/pages/index/buildingPictures/index.config.js Parādīt failu

@@ -0,0 +1,3 @@
1
+export default {
2
+  navigationBarTitleText: '相册图片'
3
+}

+ 70
- 0
src/pages/index/buildingPictures/index.jsx Parādīt failu

@@ -0,0 +1,70 @@
1
+import { useState, useEffect } from 'react'
2
+import withLayout from '@/layout'
3
+import { ScrollView, Image } from '@tarojs/components'
4
+import '@/assets/css/iconfont.css'
5
+import './index.scss'
6
+
7
+export default withLayout((props) => {
8
+
9
+  const [IsPull, setPull] = useState(false)
10
+  const [PullTimer, setPullTimer] = useState(null)
11
+  const [NavList, setNavList] = useState([
12
+    { name: '效果图', id: 1 },
13
+    { name: '实景图', id: 2 },
14
+    { name: '户型图', id: 3 },
15
+  ])
16
+  const [CurrentNavId, setCurrentNavId] = useState(1)
17
+  const [PageList, setPageList] = useState([{}, {}, {}, {}, {}, {}])
18
+
19
+  const PageRefresh = () => { // 页面下拉刷新回调
20
+    setPull(true)
21
+  }
22
+
23
+  useEffect(() => { // 下拉刷新触发
24
+    if (IsPull) {
25
+      clearTimeout(PullTimer)
26
+      setPullTimer(setTimeout(() => {
27
+        setPull(false)
28
+      }, 2000))
29
+    }
30
+  }, [IsPull])
31
+
32
+  const CutNav = (id) => {
33
+    return () => {
34
+      setCurrentNavId(id)
35
+    }
36
+  }
37
+
38
+  return (
39
+    <view className='Page buildingPictures flex-v'>
40
+      <view className='Tab flex-h'>
41
+        {
42
+          NavList.map((item, index) => (
43
+            <view className={item.id === CurrentNavId ? 'active flex-item' : 'flex-item'} key={`NavItem-${index}`}>
44
+              <text onClick={CutNav(item.id)}>{item.name}</text>
45
+            </view>
46
+          ))
47
+        }
48
+      </view>
49
+      <view className='flex-item'>
50
+        <view>
51
+          <ScrollView scroll-y refresher-enabled refresher-triggered={IsPull} onrefresherrefresh={PageRefresh} refresher-background='#fff'>
52
+            <view className='List'>
53
+              {
54
+                PageList.map((item, index) => (
55
+                  <view key={`ListItem-${index}`}>
56
+                    <view className='Img'>
57
+                      <Image mode='scaleToFill' className='centerLabel' src={null}></Image>
58
+                    </view>
59
+                    <text>120㎡样板间</text>
60
+                  </view>
61
+                ))
62
+              }
63
+              <text className='Tips'>已经到底了~</text>
64
+            </view>
65
+          </ScrollView>
66
+        </view>
67
+      </view>
68
+    </view>
69
+  )
70
+})

+ 100
- 0
src/pages/index/buildingPictures/index.scss Parādīt failu

@@ -0,0 +1,100 @@
1
+.Page.buildingPictures {
2
+  width: 100%;
3
+  height: 100%;
4
+  >.Tab {
5
+    position: relative;
6
+    overflow: hidden;
7
+    z-index: 2;
8
+    background: #fff;
9
+    box-shadow: 0 0 6px 6px rgba(0, 0, 0, 0.03);
10
+    align-items: center;
11
+    padding: 0 30px;
12
+    >view {
13
+      padding: 22px 0 26px;
14
+      text-align: center;
15
+      font-size: 0;
16
+      position: relative;
17
+      overflow: hidden;
18
+      &.active {
19
+        >text {
20
+          font-size: 34px;
21
+          color: #1A3B83;
22
+          position: relative;
23
+          overflow: visible;
24
+          &::after {
25
+            content: '';
26
+            display: block;
27
+            width: 100%;
28
+            position: absolute;
29
+            left: 0;
30
+            bottom: -26px;
31
+            height: 2px;
32
+            background: #1A3B83;
33
+          }
34
+        }
35
+      }
36
+      >text {
37
+        display: inline-block;
38
+        font-size: 28px;
39
+        color: #666;
40
+        line-height: 40px;
41
+      }
42
+    }
43
+  }
44
+  > .flex-item {
45
+    position: relative;
46
+    overflow: hidden;
47
+    > view {
48
+      width: 100%;
49
+      position: absolute;
50
+      left: 0;
51
+      top: 0;
52
+      bottom: 0;
53
+      overflow: hidden;
54
+      > scroll-view {
55
+        width: 100%;
56
+        height: 100%;
57
+        .List {
58
+          position: relative;
59
+          overflow: hidden;
60
+          padding: 0 30px 0 12px;
61
+          font-size: 0;
62
+          >view {
63
+            display: inline-block;
64
+            vertical-align: middle;
65
+            width: 50%;
66
+            box-sizing: border-box;
67
+            border-left: 18px solid transparent;
68
+            position: relative;
69
+            overflow: hidden;
70
+            margin-top: 18px;
71
+            >.Img {
72
+              width: 100%;
73
+              padding-bottom: 75%;
74
+              position: relative;
75
+              overflow: hidden;
76
+              background: #eee;
77
+              border-radius: 16px;
78
+              >image {
79
+                width: 100%;
80
+                height: 100%;
81
+              }
82
+            }
83
+            >text {
84
+              display: block;
85
+              white-space: nowrap;
86
+              overflow: hidden;
87
+              text-overflow: ellipsis;
88
+              font-size: 28px;
89
+              color: #353535;
90
+              line-height: 40px;
91
+              margin-top: 20px;
92
+              height: 40px;
93
+              text-align: center;
94
+            }
95
+          }
96
+        }
97
+      }
98
+    }
99
+  }
100
+}

+ 3
- 0
src/pages/index/buildingPropertyConsultant/index.config.js Parādīt failu

@@ -0,0 +1,3 @@
1
+export default {
2
+  navigationBarTitleText: '置业顾问'
3
+}

+ 73
- 0
src/pages/index/buildingPropertyConsultant/index.jsx Parādīt failu

@@ -0,0 +1,73 @@
1
+import { useState, useEffect } from 'react'
2
+import withLayout from '@/layout'
3
+import { ScrollView, Image } from '@tarojs/components'
4
+import '@/assets/css/iconfont.css'
5
+import './index.scss'
6
+
7
+export default withLayout((props) => {
8
+
9
+  const [IsPull, setPull] = useState(false)
10
+  const [PullTimer, setPullTimer] = useState(null)
11
+  const [List, setList] = useState([
12
+    { name: '乖戾', icon: '', time: '11:49' },
13
+    { name: '乖戾', icon: '', time: '11:49' },
14
+    { name: '乖戾', icon: '', time: '11:49' },
15
+    { name: '乖戾', icon: '', time: '11:49' },
16
+    { name: '乖戾', icon: '', time: '11:49' },
17
+    { name: '乖戾', icon: '', time: '11:49' },
18
+  ])
19
+
20
+  const PageRefresh = () => { // 页面下拉刷新回调
21
+    setPull(true)
22
+  }
23
+
24
+  useEffect(() => { // 下拉刷新触发
25
+    if (IsPull) {
26
+      clearTimeout(PullTimer)
27
+      setPullTimer(setTimeout(() => {
28
+        setPull(false)
29
+      }, 2000))
30
+    }
31
+  }, [IsPull])
32
+
33
+  return (
34
+    <view className='Page buildingPropertyConsultant'>
35
+      <ScrollView scroll-y refresher-enabled refresher-triggered={IsPull} onrefresherrefresh={PageRefresh} refresher-background='#fff'>
36
+        <text className='TopTips'>有任何买卖房屋的问题,欢迎随时咨询</text>
37
+        <view className='List'>
38
+          {
39
+            List.map((item, index) => (
40
+              <view key={`ListItem-${index}`}>
41
+
42
+                <view className='flex-h'>
43
+
44
+                  <view className='Icon'>
45
+                    <Image mode='scaleToFill' src={item.icon || null}></Image>
46
+                  </view>
47
+
48
+                  <view className='flex-item'>
49
+                    <view className='Name'>
50
+                      <text>陆毅</text>
51
+                      <Image mode='heightFix' src={require('@/assets/index-icon17.png')}></Image>
52
+                    </view>
53
+                    <text>13045678976</text>
54
+                  </view>
55
+
56
+                  <text className='iconfont icon-liaotian'></text>
57
+                  <text className='iconfont icon-dianhua'></text>
58
+                  
59
+                </view>
60
+
61
+                <view className='Desc'>
62
+                  <text>好评经纪人,熟悉楼盘特色</text>
63
+                </view>
64
+
65
+              </view>
66
+            ))
67
+          }
68
+          <text className='BottomTips'>已经到底了~</text>
69
+        </view>
70
+      </ScrollView>
71
+    </view>
72
+  )
73
+})

+ 109
- 0
src/pages/index/buildingPropertyConsultant/index.scss Parādīt failu

@@ -0,0 +1,109 @@
1
+.Page.buildingPropertyConsultant {
2
+  width: 100%;
3
+  height: 100%;
4
+  > scroll-view {
5
+    width: 100%;
6
+    height: 100%;
7
+    .TopTips {
8
+      display: block;
9
+      padding: 0 30px;
10
+      font-size: 28px;
11
+      color: rgba(0, 0, 0, 0.31);
12
+      line-height: 80px;
13
+      background: #F5F5F5;
14
+    }
15
+    .List {
16
+      position: relative;
17
+      overflow: hidden;
18
+      padding: 0 30px;
19
+      >view {
20
+        position: relative;
21
+        overflow: hidden;
22
+        padding: 20px 0 40px;
23
+        border-bottom: 2px solid rgba(0, 0, 0, 0.08);
24
+        margin-top: 20px;
25
+        &:first-child {
26
+          margin-top: 0;
27
+        }
28
+        >.flex-h {
29
+          align-items: center;
30
+          >.Icon {
31
+            width: 92px;
32
+            height: 92px;
33
+            border-radius: 100%;
34
+            background: #eee;
35
+            position: relative;
36
+            overflow: hidden;
37
+            margin-right: 20px;
38
+            >image {
39
+              width: 100%;
40
+              height: 100%;
41
+            }
42
+          }
43
+          >.flex-item {
44
+            >.Name {
45
+              font-size: 0;
46
+              white-space: nowrap;
47
+              >text {
48
+                display: inline-block;
49
+                vertical-align: middle;
50
+                font-size: 32px;
51
+                color: #333;
52
+                line-height: 44px;
53
+              }
54
+              >image {
55
+                height: 32px;
56
+                margin-left: 20px;
57
+                display: inline-block;
58
+                vertical-align: middle;
59
+              }
60
+            }
61
+            >text {
62
+              display: block;
63
+              font-size: 28px;
64
+              color: rgba(0, 0, 0, 0.44);
65
+              line-height: 40px;
66
+              margin-top: 8px;
67
+            }
68
+          }
69
+          >text {
70
+            font-size: 50px;
71
+            line-height: 80px;
72
+            width: 80px;
73
+            text-align: center;
74
+            border-radius: 100%;
75
+            background: rgba(251, 171, 87, 0.12);
76
+            color: #FBAB57;
77
+            margin-left: 40px;
78
+            &:last-child {
79
+              background: rgba(129, 188, 75, 0.12);
80
+              color: #81BC4B;
81
+            }
82
+          }
83
+        }
84
+        >.Desc {
85
+          position: relative;
86
+          overflow: hidden;
87
+          background: #F9F9F9;
88
+          padding: 24px 20px;
89
+          margin-top: 20px;
90
+          >text {
91
+            display: block;
92
+            font-size: 28px;
93
+            color: rgba(0, 0, 0, 0.36);
94
+            line-height: 40px;
95
+          }
96
+        }
97
+      }
98
+      >.BottomTips {
99
+        display: block;
100
+        text-align: center;
101
+        font-size: 28px;
102
+        color: #999;
103
+        line-height: 40px;
104
+        margin-top: 20px;
105
+        margin-bottom: 40px;
106
+      }
107
+    }
108
+  }
109
+}

+ 3
- 0
src/pages/index/buildingRules/index.config.js Parādīt failu

@@ -0,0 +1,3 @@
1
+export default {
2
+  navigationBarTitleText: '报备规则'
3
+}

+ 46
- 0
src/pages/index/buildingRules/index.jsx Parādīt failu

@@ -0,0 +1,46 @@
1
+
2
+import withLayout from '@/layout'
3
+import { ScrollView, Image } from '@tarojs/components'
4
+import '@/assets/css/iconfont.css'
5
+import './index.scss'
6
+
7
+export default withLayout(() => {
8
+
9
+  return (
10
+    <view className='Page buildingRules'>
11
+      <ScrollView scroll-y>
12
+        <view className='Content'>
13
+          <Image mode='widthFix' src={require(`@/assets/index-icon18.jpg`)}></Image>
14
+
15
+          <view className='Title'>
16
+            <view>
17
+              <text className='iconfont icon-shoucang'></text>
18
+              <text>报备规则</text>
19
+              <text className='iconfont icon-shoucang'></text>
20
+            </view>
21
+          </view>
22
+
23
+          <view className='Text'>
24
+            <text>南京城际空间站渠道报备客户后,15天内客户到访并确认到访单即客户有效,客户成交相关佣金请咨询驻场管理或所属渠道经理。</text>
25
+            <text>南京城际空间站渠道报备客户后,15天内客户到访并确认到访单即客户有效,客户成交相关佣金请咨询驻场管理或所属渠道经理。</text>
26
+            <text>南京城际空间站渠道报备客户后,15天内客户到访并确认到访单即客户有效,客户成交相关佣金请咨询驻场管理或所属渠道经理。</text>
27
+          </view>
28
+
29
+          <view className='Bottom'>
30
+            <view>
31
+              <view>
32
+                <text className='iconfont icon-shengming'></text>
33
+                <text>免责声明</text>
34
+              </view>
35
+              <view>
36
+                <text>&emsp;&emsp;以上价格仅供参考,具体一房一价的信息以售楼处展示为准。房屋位置交通、医疗、教育、商业等配套信息,来源于第三方不作为要约,仅供参考,双方具体权利义务应以法律规定及买卖合同约定为准。本平台对项目周边文化教育的介绍旨在提供相关信息1 意味着信息发布方对就学安排作出承诺。相关教育资首页信息存在调整的可能,应以政府教育主管部门门及办学颁布的政策规定为准。详情请仔细阅读</text>
37
+                <text className='active'>《新联家使用免责条款》</text>
38
+              </view>
39
+            </view>
40
+          </view>
41
+
42
+        </view>
43
+      </ScrollView>
44
+    </view>
45
+  )
46
+})

+ 92
- 0
src/pages/index/buildingRules/index.scss Parādīt failu

@@ -0,0 +1,92 @@
1
+.Page.buildingRules {
2
+  width: 100%;
3
+  height: 100%;
4
+  > scroll-view {
5
+    width: 100%;
6
+    height: 100%;
7
+    .Content {
8
+      position: relative;
9
+      overflow: hidden;
10
+      > image {
11
+        width: 100%;
12
+        display: block;
13
+      }
14
+      > .Title {
15
+        font-size: 0;
16
+        white-space: nowrap;
17
+        text-align: center;
18
+        margin-top: 42px;
19
+        position: relative;
20
+        overflow: hidden;
21
+        &::after {
22
+          content: "";
23
+          width: 80%;
24
+          height: 2px;
25
+          display: block;
26
+          position: absolute;
27
+          z-index: 1;
28
+          left: 10%;
29
+          top: 14px;
30
+          background: #333;
31
+        }
32
+        > view {
33
+          display: inline-block;
34
+          font-size: 0;
35
+          white-space: nowrap;
36
+          position: relative;
37
+          z-index: 2;
38
+          background: #fff;
39
+          padding: 0 10px;
40
+          > text {
41
+            display: inline-block;
42
+            vertical-align: middle;
43
+            font-size: 30px;
44
+            color: #333;
45
+            line-height: 1;
46
+            margin-left: 20px;
47
+            &:first-child {
48
+              margin-left: 0;
49
+            }
50
+          }
51
+        }
52
+      }
53
+      > .Text {
54
+        padding: 0 30px;
55
+        position: relative;
56
+        overflow: hidden;
57
+        margin-top: 30px;
58
+        > text {
59
+          display: block;
60
+          font-size: 30px;
61
+          color: #333;
62
+          line-height: 48px;
63
+          text-indent: 2em;
64
+        }
65
+      }
66
+      >.Bottom {
67
+        padding: 0 30px 30px;
68
+        position: relative;
69
+        overflow: hidden;
70
+        margin-top: 100px;
71
+        >view {
72
+          padding: 30px;
73
+          position: relative;
74
+          overflow: hidden;
75
+          background: #F8F8F8;
76
+          border-radius: 8px;
77
+          >view {
78
+            >text {
79
+              font-size: 20px;
80
+              color: #999;
81
+              line-height: 30px;
82
+              letter-spacing: 2px;
83
+              &.active {
84
+                color: #193C83;
85
+              }
86
+            }
87
+          }
88
+        }
89
+      }
90
+    }
91
+  }
92
+}

+ 3
- 0
src/pages/index/buildingTakeLook/index.config.js Parādīt failu

@@ -0,0 +1,3 @@
1
+export default {
2
+  navigationBarTitleText: '一键带看'
3
+}

+ 18
- 0
src/pages/index/buildingTakeLook/index.jsx Parādīt failu

@@ -0,0 +1,18 @@
1
+
2
+import withLayout from '@/layout'
3
+import { ScrollView, Image } from '@tarojs/components'
4
+import '@/assets/css/iconfont.css'
5
+import './index.scss'
6
+
7
+export default withLayout(() => {
8
+
9
+  return (
10
+    <view className='Page buildingTakeLook'>
11
+      <ScrollView scroll-y>
12
+        <view className='Content'>
13
+          
14
+        </view>
15
+      </ScrollView>
16
+    </view>
17
+  )
18
+})

+ 12
- 0
src/pages/index/buildingTakeLook/index.scss Parādīt failu

@@ -0,0 +1,12 @@
1
+.Page.buildingTakeLook {
2
+  width: 100%;
3
+  height: 100%;
4
+  > scroll-view {
5
+    width: 100%;
6
+    height: 100%;
7
+    .Content {
8
+      position: relative;
9
+      overflow: hidden;
10
+    }
11
+  }
12
+}

+ 3
- 0
src/pages/index/buildingViewsRecords/index.config.js Parādīt failu

@@ -0,0 +1,3 @@
1
+export default {
2
+  navigationBarTitleText: '围观记录'
3
+}

+ 55
- 0
src/pages/index/buildingViewsRecords/index.jsx Parādīt failu

@@ -0,0 +1,55 @@
1
+import { useState, useEffect } from 'react'
2
+import withLayout from '@/layout'
3
+import { ScrollView, Image } from '@tarojs/components'
4
+import '@/assets/css/iconfont.css'
5
+import './index.scss'
6
+
7
+export default withLayout((props) => {
8
+
9
+  const [IsPull, setPull] = useState(false)
10
+  const [PullTimer, setPullTimer] = useState(null)
11
+  const [List, setList] = useState([
12
+    { name: '乖戾', icon: '', time: '11:49' },
13
+    { name: '乖戾', icon: '', time: '11:49' },
14
+    { name: '乖戾', icon: '', time: '11:49' },
15
+    { name: '乖戾', icon: '', time: '11:49' },
16
+    { name: '乖戾', icon: '', time: '11:49' },
17
+    { name: '乖戾', icon: '', time: '11:49' },
18
+  ])
19
+
20
+  const PageRefresh = () => { // 页面下拉刷新回调
21
+    setPull(true)
22
+  }
23
+
24
+  useEffect(() => { // 下拉刷新触发
25
+    if (IsPull) {
26
+      clearTimeout(PullTimer)
27
+      setPullTimer(setTimeout(() => {
28
+        setPull(false)
29
+      }, 2000))
30
+    }
31
+  }, [IsPull])
32
+
33
+  return (
34
+    <view className='Page buildingViewsRecords'>
35
+      <ScrollView scroll-y refresher-enabled refresher-triggered={IsPull} onrefresherrefresh={PageRefresh} refresher-background='#fff'>
36
+        <view className='List'>
37
+          {
38
+            List.map((item, index) => (
39
+              <view className='flex-h' key={`ListItem-${index}`}>
40
+                <view className='Icon'>
41
+                  <Image mode='scaleToFill' src={item.icon || null}></Image>
42
+                </view>
43
+                <view className='flex-item'>
44
+                  <text>{item.name}</text>
45
+                </view>
46
+                <text>{item.time}</text>
47
+              </view>
48
+            ))
49
+          }
50
+          <text className='Tips'>仅展示最近50条围观纪录</text>
51
+        </view>
52
+      </ScrollView>
53
+    </view>
54
+  )
55
+})

+ 54
- 0
src/pages/index/buildingViewsRecords/index.scss Parādīt failu

@@ -0,0 +1,54 @@
1
+.Page.buildingViewsRecords {
2
+  width: 100%;
3
+  height: 100%;
4
+  > scroll-view {
5
+    width: 100%;
6
+    height: 100%;
7
+    .List {
8
+      position: relative;
9
+      overflow: hidden;
10
+      padding: 0 30px;
11
+      >view {
12
+        position: relative;
13
+        overflow: hidden;
14
+        padding: 28px 0;
15
+        border-bottom: 2px solid rgba(0, 0, 0, 0.08);
16
+        align-items: center;
17
+        >.Icon {
18
+          width: 124px;
19
+          height: 124px;
20
+          position: relative;
21
+          overflow: hidden;
22
+          border-radius: 100%;
23
+          background: #eee;
24
+          margin-right: 20px;
25
+          >image {
26
+            width: 100%;
27
+            height: 100%;
28
+          }
29
+        }
30
+        >.flex-item {
31
+          >text {
32
+            display: block;
33
+            font-size: 32px;
34
+            white-space: nowrap;
35
+            color: #333;
36
+          }
37
+        }
38
+        >text {
39
+          font-size: 24px;
40
+          color: #999;
41
+        }
42
+      }
43
+      >.Tips {
44
+        display: block;
45
+        text-align: center;
46
+        font-size: 24px;
47
+        color: #999;
48
+        line-height: 34px;
49
+        margin-top: 40px;
50
+        margin-bottom: 40px;
51
+      }
52
+    }
53
+  }
54
+}

+ 30
- 0
src/routes.js Parādīt failu

@@ -67,6 +67,36 @@ const routes = [
67 67
     pkg: 'main',
68 68
     type: 'building',
69 69
   },
70
+  {
71
+    name: '楼盘信息',
72
+    page: 'pages/index/buildingInfo/index',
73
+    pkg: 'main',
74
+    type: 'building',
75
+  },
76
+  {
77
+    name: '围观记录',
78
+    page: 'pages/index/buildingViewsRecords/index',
79
+    pkg: 'main',
80
+    type: 'building',
81
+  },
82
+  {
83
+    name: '置业顾问',
84
+    page: 'pages/index/buildingPropertyConsultant/index',
85
+    pkg: 'main',
86
+    type: 'building',
87
+  },
88
+  {
89
+    name: '相册图片',
90
+    page: 'pages/index/buildingPictures/index',
91
+    pkg: 'main',
92
+    type: 'building',
93
+  },
94
+  {
95
+    name: '报备规则',
96
+    page: 'pages/index/buildingRules/index',
97
+    pkg: 'main',
98
+    type: 'building',
99
+  },
70 100
   {
71 101
     name: '品牌列表',
72 102
     page: 'pages/index/brandList/index',