许静 5 年前
父节点
当前提交
e037e8131d
共有 42 个文件被更改,包括 568 次插入107 次删除
  1. 5
    0
      src/app.js
  2. 二进制
      src/assets/checkin/checkin.png
  3. 二进制
      src/assets/checkin/checkined.png
  4. 二进制
      src/assets/checkin/checkinsuccessfully.png
  5. 二进制
      src/assets/checkin/noentry.png
  6. 1
    0
      src/components/authorize/index.js
  7. 4
    0
      src/constants/api.js
  8. 2
    0
      src/constants/checkin.js
  9. 8
    2
      src/pages/activity/detail/assemble.js
  10. 9
    2
      src/pages/activity/detail/assistance.js
  11. 4
    4
      src/pages/activity/detail/index.js
  12. 4
    4
      src/pages/activity/detail/poster.js
  13. 7
    4
      src/pages/activity/index.js
  14. 1
    1
      src/pages/agent/become/index.js
  15. 7
    2
      src/pages/agent/client/index.js
  16. 7
    4
      src/pages/agent/invitation/index.js
  17. 1
    1
      src/pages/agent/progress/index.js
  18. 7
    4
      src/pages/card/fans/index.js
  19. 2
    2
      src/pages/card/index.js
  20. 8
    5
      src/pages/card/list/index.js
  21. 7
    7
      src/pages/card/poster.js
  22. 1
    0
      src/pages/card/register/index.js
  23. 38
    0
      src/pages/checkin/checkinsuccess/index.js
  24. 46
    0
      src/pages/checkin/checkinsuccess/index.scss
  25. 133
    0
      src/pages/checkin/index.js
  26. 122
    0
      src/pages/checkin/index.scss
  27. 4
    4
      src/pages/news/detail/poster.js
  28. 7
    4
      src/pages/news/index.js
  29. 1
    2
      src/pages/news/index.scss
  30. 1
    1
      src/pages/news/item.js
  31. 13
    10
      src/pages/news/item.scss
  32. 3
    1
      src/pages/person/login/index.js
  33. 23
    5
      src/pages/person/myGuest/editGuest/index.js
  34. 1
    1
      src/pages/person/myGuest/index.js
  35. 1
    1
      src/pages/person/spread/index.js
  36. 7
    4
      src/pages/policy/index.js
  37. 10
    6
      src/pages/project/detail/index.js
  38. 30
    17
      src/pages/project/detail/poster.js
  39. 5
    1
      src/pages/project/item/index.js
  40. 9
    4
      src/pages/project/list/index.js
  41. 7
    4
      src/pages/report/index.js
  42. 22
    0
      src/services/checkin.js

+ 5
- 0
src/app.js 查看文件

@@ -93,6 +93,11 @@ class App extends Component {
93 93
       'pages/signin/index',
94 94
       'pages/card/fans/index',
95 95
       'pages/person/feedback/index',
96
+
97
+      'pages/checkin/index',
98
+      'pages/checkin/checkinsuccess/index',
99
+      // 'pages/checkin/unregistered/index',
100
+  
96 101
     ],
97 102
     window: {
98 103
       backgroundTextStyle: 'light',

二进制
src/assets/checkin/checkin.png 查看文件


二进制
src/assets/checkin/checkined.png 查看文件


二进制
src/assets/checkin/checkinsuccessfully.png 查看文件


二进制
src/assets/checkin/noentry.png 查看文件


+ 1
- 0
src/components/authorize/index.js 查看文件

@@ -26,6 +26,7 @@ export default class Index extends Component {
26 26
         })
27 27
         return
28 28
       }else{
29
+        this.props.dispatchUpdateUserInfoNew(this.state.user.id)
29 30
         Taro.reLaunch({
30 31
             url: '/pages/person/index'
31 32
          })

+ 4
- 0
src/constants/api.js 查看文件

@@ -150,6 +150,10 @@ export const API_HELP_DETAIL = resolvePath('helpActivity')
150 150
 export const API_HELP_CREATE = resolvePath('helpInitiateRecord')
151 151
 export const API_HELP_FRIEND = resolvePath('helpRecord')
152 152
 
153
+//签到
154
+export const API_CHECKIN_DETAILS = resolvePath('buildingDynamiceEnlistInfo')
155
+export const API_CHECKIN_ACTIVE = resolvePath('buildingDynamicCheckin')
156
+
153 157
 // 拼团
154 158
 export const API_GROUP_DETAIL = resolvePath('taShareActivity')
155 159
 export const API_GROUP_CREATE = resolvePath('taShareRecord')

+ 2
- 0
src/constants/checkin.js 查看文件

@@ -0,0 +1,2 @@
1
+export const CHECKIN_DETAILS = 'CHECKIN_DETAILS'
2
+export const CHECKIN_ACTIVE = 'CHECKIN_ACTIVE'

+ 8
- 2
src/pages/activity/detail/assemble.js 查看文件

@@ -79,8 +79,14 @@ export default class Detail extends Component {
79 79
   // 初始化页面数据
80 80
   initPageData = () => {
81 81
     if (!this.state.detail.groupActivityId) {
82
-      const id = this.$router.params.id
83
-      const recordId = this.$router.params.recordId
82
+      let id = this.$router.params.id
83
+      let recordId = this.$router.params.recordId
84
+     
85
+      if (!id) {
86
+        const router = Taro.getStorageSync('router')
87
+        id = router.query.id
88
+        recordId = router.query.recordId
89
+      }
84 90
 
85 91
       this.setState({ id, recordId }, () => {
86 92
         this.loadDetail()

+ 9
- 2
src/pages/activity/detail/assistance.js 查看文件

@@ -79,8 +79,14 @@ export default class Detail extends Component {
79 79
   // 初始化页面数据
80 80
   initPageData = () => {
81 81
     if (!this.state.detail.helpActivityId) {
82
-      const id = this.$router.params.id
83
-      const initiateId = this.$router.params.initiateId
82
+      let id = this.$router.params.id
83
+      let initiateId = this.$router.params.initiateId
84
+
85
+      if (!id) {
86
+        const router = Taro.getStorageSync('router')
87
+        id = router.query.id
88
+        initiateId = router.query.initiateId
89
+      }
84 90
 
85 91
       this.setState({ id, initiateId }, () => {
86 92
         this.loadDetail()
@@ -166,6 +172,7 @@ export default class Detail extends Component {
166 172
 
167 173
   // 请求详情
168 174
   loadDetail() {
175
+    debugger
169 176
     const { id, initiateId } = this.state
170 177
     const { userInfo } = this.props
171 178
 

+ 4
- 4
src/pages/activity/detail/index.js 查看文件

@@ -321,7 +321,7 @@ export default class Detail extends Component {
321 321
                   <View className="detail-top">
322 322
                     <View className="detail-top__row">
323 323
                       <Text className="row-label">活动时间:</Text>
324
-                      <Text className="row-content">{dayjs(detail.createDate).format('YYYY-MM-DD hh:mm:ss')}</Text>
324
+                      <Text className="row-content">{dayjs(detail.startDate).format('YYYY-MM-DD HH:mm:ss')}</Text>
325 325
                     </View>
326 326
                     <View className="detail-top__row">
327 327
                       <Text className="row-label">活动地址:</Text>
@@ -329,7 +329,7 @@ export default class Detail extends Component {
329 329
                     </View>
330 330
                     <View className="detail-top__row">
331 331
                       <Text className="row-label">报名截止:</Text>
332
-                      <Text className="row-content">{dayjs(detail.enlistEnd).format('YYYY-MM-DD hh:mm:ss')}</Text>
332
+                      <Text className="row-content">{dayjs(detail.enlistEnd).format('YYYY-MM-DD HH:mm:ss')}</Text>
333 333
                     </View>
334 334
                   </View>
335 335
                   <View className="detail-con">
@@ -365,11 +365,11 @@ export default class Detail extends Component {
365 365
                   <Text className="txt">收藏</Text>
366 366
                 </Button>
367 367
                 {
368
-                  detail.enlisted >= detail.enlistNum ? (<Button disabled='true' className='submit-btn hasSigned'>报名人数已满</Button>) : ( phone ? (
368
+                  parseInt(detail.isEnlist) !=0 && (parseInt(detail.isEnlist) == 2 ? (<Button disabled='true' className='submit-btn hasSigned'>报名人数已满</Button>) : (( phone ? (
369 369
                     <Button disabled={isSign} className={`submit-btn ${isSign ? 'hasSigned' : ''}`} onClick={this.handleSignup}>{isSign ? '已报名' : '立即报名'}</Button>
370 370
                   ) : (
371 371
                   <Button disabled={isSign} className='submit-btn' open-type="getPhoneNumber" onGetphonenumber={this.handleGetPhone}>{isSign ? '已报名' : '立即报名'}</Button>
372
-                  ))
372
+                  ))))
373 373
                 }
374 374
                 {/* {phone ? (
375 375
                   <Button disabled={isSign} className={`submit-btn ${isSign ? 'hasSigned' : ''}`} onClick={this.handleSignup}>{isSign ? '已报名' : '立即报名'}</Button>

+ 4
- 4
src/pages/activity/detail/poster.js 查看文件

@@ -99,17 +99,17 @@ export default class Index extends Component {
99 99
         x: 100,
100 100
         y: 1065,
101 101
         text: '橙蕉',
102
-        fontSize: 28,
103
-        color: 'black',
102
+        fontSize: 34,
103
+        color: 'red',
104 104
         baseLine: 'middle',
105 105
         lineHeight: 48,
106 106
         width: 120,
107 107
         zIndex: 11
108 108
       },
109 109
       {
110
-        x: 240,
110
+        x: 190,
111 111
         y: 1065,
112
-        text: '报名活动',
112
+        text: '热门活动',
113 113
         fontSize: 26,
114 114
         color: '#999',
115 115
         baseLine: 'middle',

+ 7
- 4
src/pages/activity/index.js 查看文件

@@ -19,7 +19,8 @@ export default class Index extends Component {
19 19
     list: [],
20 20
     hasMore: true,
21 21
     isEmpty: false,
22
-    recordId: null
22
+    recordId: null,
23
+    pageIndex:1
23 24
   }
24 25
 
25 26
   componentWillMount() {
@@ -87,7 +88,8 @@ export default class Index extends Component {
87 88
     this.setState({
88 89
       list: _list,
89 90
       isEmpty: total == 0,
90
-      hasMore: _list.length >= total ? false : true
91
+      hasMore: _list.length >= total ? false : true,
92
+      pageIndex:1
91 93
     })
92 94
     rest && rest()
93 95
   }
@@ -95,12 +97,13 @@ export default class Index extends Component {
95 97
   onScrollToLower = async (fn) => {
96 98
     const { list } = this.state;
97 99
     pageIndex++
98
-    const { records, list: list1, total } = await this.loadList(pageIndex);
100
+    const { records, list: list1, total } = await this.loadList(this.state.pageIndex+1);
99 101
     const _list = records || list1 || []
100 102
     const newList = list.concat(_list)
101 103
     this.setState({
102 104
       list: newList,
103
-      hasMore: newList.length >= total ? false : true
105
+      hasMore: newList.length >= total ? false : true,
106
+      pageIndex:this.state.pageIndex+1
104 107
     });
105 108
     fn && fn();
106 109
   }

+ 1
- 1
src/pages/agent/become/index.js 查看文件

@@ -114,7 +114,7 @@ export default class Index extends Component {
114 114
     const { userInfo: { person: { phone } } } = this.props
115 115
     return (
116 116
       <View className='page'>
117
-        <Image src={require('@assets/shop/banner1.jpg')} className='banner' mode='widthFix'></Image>
117
+        <Image src={require('@assets/agent/banner.png')} className='banner' mode='widthFix'></Image>
118 118
         <View className='become_agent'>
119 119
           <View className='agent_type'>
120 120
             <Text className='agent_title'>经纪人类型</Text>

+ 7
- 2
src/pages/agent/client/index.js 查看文件

@@ -12,7 +12,8 @@ export default class Index extends Component {
12 12
 
13 13
   state = {
14 14
     list: [],
15
-    status: ['报备', '到访', '认购', '签约'],//客户状态
15
+    status: ['报备', '到访', '认购', '签约'],//报备客户状态
16
+    recomstatus: ['推荐', '到访', '认购', '签约'],//推荐客户状态
16 17
     verifyStatus:['待审核', '审核同意', '审核不同意'],
17 18
     floorList: '',
18 19
     floor: '',
@@ -108,7 +109,11 @@ export default class Index extends Component {
108 109
                     <Image className='bg' src={item.verifyStatus==2?require('@assets/person/card1.png'):require('@assets/person/card2.png')}></Image>
109 110
                     <View className='client'>
110 111
                       <View className='client__status2'>
111
-                          <Text>{item.verifyStatus==1?status[item.status-1]:verifyStatus[item.verifyStatus]}</Text>
112
+                        {
113
+                          //报备1 ,推荐2
114
+                          item.reportRecommendStatus == 1 ? (<Text>{status[item.status-1]}</Text>) : ( <Text>{item.verifyStatus==1?recomstatus[item.status-1]:verifyStatus[item.verifyStatus]}</Text>)
115
+                        }
116
+                          {/* <Text>{item.verifyStatus==1?status[item.status-1]:verifyStatus[item.verifyStatus]}</Text> */}
112 117
                       </View>
113 118
                       <View className='client__top'>
114 119
                         <View className='client__infor'>

+ 7
- 4
src/pages/agent/invitation/index.js 查看文件

@@ -13,7 +13,8 @@ export default class Index extends Component {
13 13
     list: [],
14 14
     hasMore: true,
15 15
     isEmpty: false,
16
-    recordId:null
16
+    recordId:null,
17
+    pageIndex:1
17 18
   }
18 19
   loadList(pageNumber) {
19 20
     // const {
@@ -28,7 +29,8 @@ export default class Index extends Component {
28 29
     this.setState({
29 30
       list,
30 31
       isEmpty: total == 0,
31
-      hasMore: list.length >= total ? false : true
32
+      hasMore: list.length >= total ? false : true,
33
+      pageIndex:1
32 34
     })
33 35
     rest && rest()
34 36
   }
@@ -37,11 +39,12 @@ export default class Index extends Component {
37 39
     const { list } = this.state;
38 40
     pageIndex++
39 41
     console.log(pageIndex)
40
-    const { records, total } = await this.loadList(pageIndex);
42
+    const { records, total } = await this.loadList(this.state.pageIndex+1);
41 43
     const newList = list.concat(records)
42 44
     this.setState({
43 45
       list: newList,
44
-      hasMore: newList.length >= total ? false : true
46
+      hasMore: newList.length >= total ? false : true,
47
+      pageIndex:this.state.pageIndex+1
45 48
     });
46 49
     fn && fn();
47 50
   }

+ 1
- 1
src/pages/agent/progress/index.js 查看文件

@@ -170,7 +170,7 @@ export default class Index extends Component {
170 170
               }
171 171
             </View>
172 172
             <View className='step__txt'>
173
-              <View className='txt'>报备<View className='tip'></View></View>
173
+              <View className='txt'>{item.reportRecommendStatus == 1 ? '报备' : '推荐'}<View className='tip'></View></View>
174 174
               <View className='txt'>到访<View className='tip'></View></View>
175 175
               <View className='txt'>认购<View className='tip'></View></View>
176 176
               <View className='txt'>签约<View className='tip'></View></View>

+ 7
- 4
src/pages/card/fans/index.js 查看文件

@@ -15,7 +15,8 @@ export default class Index extends Component {
15 15
     list: [],
16 16
     hasMore: true,
17 17
     isEmpty: false,
18
-    recordId:null
18
+    recordId:null,
19
+    pageIndex:1
19 20
   }
20 21
   componentDidMount() {
21 22
     // App.zhuge.track('查看粉丝页面')
@@ -68,7 +69,8 @@ export default class Index extends Component {
68 69
     this.setState({
69 70
       list,
70 71
       isEmpty: total == 0,
71
-      hasMore: list.length >= total ? false : true
72
+      hasMore: list.length >= total ? false : true,
73
+      pageIndex:1
72 74
     })
73 75
     rest && rest()
74 76
   }
@@ -77,11 +79,12 @@ export default class Index extends Component {
77 79
     const { list } = this.state;
78 80
     pageIndex++
79 81
     console.log(pageIndex)
80
-    const { records, total } = await this.loadList(pageIndex);
82
+    const { records, total } = await this.loadList(this.state.pageIndex+1);
81 83
     const newList = list.concat(records)
82 84
     this.setState({
83 85
       list: newList,
84
-      hasMore: newList.length >= total ? false : true
86
+      hasMore: newList.length >= total ? false : true,
87
+      pageIndex:this.state.pageIndex+1
85 88
     });
86 89
     fn && fn();
87 90
   }

+ 2
- 2
src/pages/card/index.js 查看文件

@@ -324,7 +324,7 @@ export default class Index extends Component {
324 324
   handleModalConfirm() {
325 325
     const {
326 326
       cardInfo: { id, projects },
327
-      userInfo: { person: { phone } }
327
+      userInfo: { person: { phone, tel } }
328 328
     } = this.props
329 329
 
330 330
     const buildingId = projects[0]
@@ -332,7 +332,7 @@ export default class Index extends Component {
332 332
     const payload = {
333 333
       realtyConsultant: id, //报备人 置业顾问
334 334
       buildingId,
335
-      phone
335
+      phone: phone || tel
336 336
     }
337 337
     reportClient(payload).then(res => {
338 338
       this.hideModal()

+ 8
- 5
src/pages/card/list/index.js 查看文件

@@ -17,7 +17,8 @@ export default class Index extends Component {
17 17
     list: [],
18 18
     hasMore: true,
19 19
     isEmpty: false,
20
-    recordId: null
20
+    recordId: null,
21
+    pageIndex:1
21 22
   }
22 23
   componentWillMount() {
23 24
     savePoint({
@@ -97,7 +98,8 @@ export default class Index extends Component {
97 98
     this.setState({
98 99
       list,
99 100
       isEmpty: total == 0,
100
-      hasMore: list.length >= total ? false : true
101
+      hasMore: list.length >= total ? false : true,
102
+      pageIndex:1
101 103
     })
102 104
     rest && rest()
103 105
   }
@@ -105,11 +107,12 @@ export default class Index extends Component {
105 107
   onScrollToLower = async (fn) => {
106 108
     const { list } = this.state;
107 109
     pageIndex++
108
-    const { records, total } = await this.loadList(pageIndex);
110
+    const { records, total } = await this.loadList(this.state.pageIndex+1);
109 111
     const newList = list.concat(records)
110 112
     this.setState({
111 113
       list: newList,
112
-      hasMore: newList.length >= total ? false : true
114
+      hasMore: newList.length >= total ? false : true,
115
+      pageIndex:this.state.pageIndex+1
113 116
     });
114 117
     fn && fn();
115 118
   }
@@ -136,7 +139,7 @@ export default class Index extends Component {
136 139
               <View className='item-main' key={item.id} onClick={this.handleConsuItemClick.bind(this, item)}>
137 140
                 <View className="item">
138 141
                   <View className="flex">
139
-                    <Image className="avatar" mode="aspectFill" src={item.avatar || item.photo}></Image>
142
+                  <Image className="avatar" mode="aspectFill" src={item.photo || item.avatar}></Image>
140 143
 
141 144
                     <View className='info'>
142 145
                       <View className='name-info'>

+ 7
- 7
src/pages/card/poster.js 查看文件

@@ -106,7 +106,7 @@ export default class Index extends Component {
106 106
       },
107 107
       {
108 108
         x: 100,
109
-        y: 750,
109
+        y: 755,
110 110
         text: '进入',
111 111
         fontSize: 26,
112 112
         color: '#999',
@@ -116,19 +116,19 @@ export default class Index extends Component {
116 116
         zIndex: 100
117 117
       },
118 118
       {
119
-        x: 160,
120
-        y: 750,
119
+        x: 170,
120
+        y: 755,
121 121
         text: '橙蕉',
122
-        fontSize: 28,
123
-        color: 'black',
122
+        fontSize: 34,
123
+        color: 'red',
124 124
         baseLine: 'middle',
125 125
         lineHeight: 48,
126 126
         width: 120,
127 127
         zIndex: 100
128 128
       },
129 129
       {
130
-        x: 300,
131
-        y: 750,
130
+        x: 260,
131
+        y: 755,
132 132
         text: '查看主页',
133 133
         fontSize: 26,
134 134
         color: '#999',

+ 1
- 0
src/pages/card/register/index.js 查看文件

@@ -22,6 +22,7 @@ export default class Cards extends Component {
22 22
     }
23 23
   }
24 24
   toCardPage(id) {
25
+    this.props.dispatchUpdateUserInfoNew(id)
25 26
     Taro.navigateTo({ url: `/pages/card/index?id=${id}` })
26 27
   }
27 28
   doSubmit(payload) {

+ 38
- 0
src/pages/checkin/checkinsuccess/index.js 查看文件

@@ -0,0 +1,38 @@
1
+import Taro, { Component } from '@tarojs/taro';
2
+import './index.scss'
3
+
4
+
5
+
6
+
7
+export default class checkinsuccess extends Component {
8
+
9
+  toshop () {
10
+    wx.switchTab({
11
+      url: '/pages/shop/index'
12
+    });
13
+  }
14
+
15
+  render () {
16
+
17
+    return (
18
+      <View className="checkin" style="width:100vw;height:100vh;background:rgba(245,245,245,1);" >
19
+        <View style="text-align: center;">
20
+          <Image className="img" src={require('@assets/checkin/checkinsuccessfully.png')}  ></Image>
21
+        </View>
22
+        <View>
23
+          <Text className="text1" style="">+20积分</Text>
24
+          <Text className="text2" style="">恭喜您签到成功!</Text>
25
+        </View>
26
+        <View >
27
+          
28
+          <Text  className="text3" onClick={this.toshop} style="">您已签到成功,快去参加活动吧更多好礼在积分商城等着你> </Text>
29
+        </View>
30
+        {/* </Text>
31
+
32
+        <Text style="position: absolute; font-size:16px;font-weight:400;color:rgba(153,153,153,1);line-height:22px;top:327px;left:81px"> */}
33
+
34
+      </View>
35
+
36
+    );
37
+  }
38
+}

+ 46
- 0
src/pages/checkin/checkinsuccess/index.scss 查看文件

@@ -0,0 +1,46 @@
1
+.checkin {
2
+  width: 100vw;
3
+  height: 100vh;
4
+  background: rgba(245, 245, 245, 1);
5
+
6
+  View {
7
+    .img {
8
+      width: 750px;
9
+      height: 898px
10
+    }
11
+  }
12
+
13
+  .text1 {
14
+    position: absolute;
15
+    font-size: 36px;
16
+    font-weight: 400;
17
+    color: rgba(255, 39, 68, 1);
18
+    line-height: 50px;
19
+    top: 380px;
20
+    left: 308px
21
+  }
22
+
23
+  .text2 {
24
+    position: absolute;
25
+    font-size: 36px;
26
+    font-weight: 400;
27
+    color: rgba(187, 156, 121, 1);
28
+    line-height: 50px;
29
+    top: 438px;
30
+
31
+
32
+    left: 246px
33
+  }
34
+
35
+  .text3 {
36
+    position: absolute;
37
+    font-size: 32px;
38
+    font-weight: 400;
39
+    color: rgba(153, 153, 153, 1);
40
+    line-height: 44px;
41
+    top: 600px;
42
+    left: 162px;
43
+    width: 426px
44
+  }
45
+
46
+}

+ 133
- 0
src/pages/checkin/index.js 查看文件

@@ -0,0 +1,133 @@
1
+import Taro, { Component } from '@tarojs/taro';
2
+import './index.scss'
3
+import { AtDivider, AtList, AtListItem, AtGrid, AtButton } from 'taro-ui'
4
+
5
+import achievePhone from '@components/achievePhone'
6
+import { checkinDetails, checkinActive } from '@services/checkin'
7
+
8
+// import { checkinActive } from '@services/checkin'
9
+
10
+export default class checkin extends Component {
11
+
12
+  state = {
13
+    id:'',
14
+    // ischeck:''
15
+    // isLogin: false,
16
+    // user: {},
17
+    // isAgent: false,//经纪人
18
+    // consultant: false,//置业顾问
19
+    // tourist: false,//普通用户
20
+    data: {},
21
+  }
22
+
23
+  componentWillMount () {
24
+    console.log(this.$router.params,'22222')
25
+
26
+    const { id, type } = this.$router.params
27
+
28
+    console.log(id, type)
29
+    this.getcheckinDetails(id, type)
30
+    // this.getcheckinDetails()
31
+
32
+  }
33
+  // dynamicId
34
+  getcheckinDetails (id, type) {
35
+    console.log('1111')
36
+    // const id = '39a0e51e6fea9cb758abed08dd7fb16b'
37
+    Taro.showLoading()
38
+    checkinDetails(id, type).then(res => {
39
+      Taro.hideLoading()
40
+      this.setState({
41
+        data: res
42
+      })
43
+      console.log('1111', res)
44
+    })
45
+  }
46
+
47
+  checkinActive () {
48
+
49
+    //  alert('签到成功')
50
+    const enlistId = this.state.data.enlist.enlistId
51
+    Taro.showLoading()
52
+    checkinActive(enlistId).then(res => {
53
+      Taro.hideLoading()
54
+      Taro.navigateTo({
55
+        url: '/pages/checkin/checkinsuccess/index'
56
+      })
57
+    }).catch((err) => {
58
+      console.log('签到失败')
59
+      // Taro.navigateTo({
60
+      //   url: '/pages/checkin/checkinsuccess/index'
61
+      // })
62
+    })
63
+
64
+
65
+  }
66
+
67
+  toactivity () {
68
+    Taro.navigateTo({
69
+      // url: '/pages/checkin/checkinsuccess/index'
70
+    })
71
+  }
72
+
73
+  render () {
74
+    const { data, style } = this.props
75
+
76
+
77
+
78
+    return (
79
+      <View className="checkin" style="width:100vw;height:100vh;" >
80
+
81
+        {/* <checkinsuccess></checkinsuccess> */}
82
+        {/* <achievePhone></achievePhone> */}
83
+        <View>
84
+          <Image className="img" src={this.state.data.dynamic.imgUrl}  ></Image>
85
+        </View>
86
+        <View style="margin-bottom:20px"  >
87
+          <View className="text1"> <Text>{this.state.data.dynamic.title}</Text></View>
88
+        </View >
89
+
90
+        {this.state.data.enlist != null && <View>
91
+          <View style="text-align: center;">
92
+            <Text className="line">- - - - - - - - - </Text>
93
+            <Text className="text2">活动报名信息</Text>
94
+            <Text className="line">- - - - - - - - - </Text>
95
+          </View>
96
+
97
+          <View className="text3">
98
+            <View className='at-row'>
99
+              <View className='at-col at-col-3'>用户名:</View>
100
+              <View className='at-col at-col-9'>{this.state.data.person.name || this.state.data.person.nickname}</View>
101
+            </View>
102
+            <View className='at-row'>
103
+              <View className='at-col at-col-3'>手机号:</View>
104
+              <View className='at-col at-col-9'>{this.state.data.person.tel || this.state.data.person.phone}</View>
105
+            </View>
106
+            <View className='at-row'>
107
+              <View className='at-col at-col-3'>参与人数:</View>
108
+              <View className='at-col at-col-9'>{this.state.data.enlist.attendNum}</View>
109
+            </View>
110
+          </View>
111
+
112
+
113
+
114
+          {!this.state.data.person.status && <Image className="checkinImg" src={require('@assets/checkin/checkin.png')} onClick={this.checkinActive}   ></Image>}
115
+          {this.state.data.person.status && <Image className="checkinImg" src={require('@assets/checkin/checkined.png')}></Image>}
116
+        </View>}
117
+        {this.state.data.enlist == null && <View className="unregistered">
118
+          <View>
119
+            <Image className="img1" src={require('@assets/checkin/noentry.png')} ></Image>
120
+          </View>
121
+          <View className="message">
122
+            <Text className="messageText" >您还未报名当前活动,请先前往活动报名页报名成功后再进行扫码签到~ </Text>
123
+
124
+          </View>
125
+
126
+          <AtButton type='primary' className="toactivebutton">立即前往</AtButton>
127
+          {/* <Image src={require('@assets/checkin/checkin.png')}  style="position: absolute; width:110px;height:110px ;bottom:12vh;left:132.5px"  ></Image> */}
128
+        </View>}
129
+      </View>
130
+
131
+    );
132
+  }
133
+}

+ 122
- 0
src/pages/checkin/index.scss 查看文件

@@ -0,0 +1,122 @@
1
+@import "@styles/theme.scss";
2
+@import "~taro-ui/dist/style/components/flex.scss";
3
+@import "~taro-ui/dist/style/components/list.scss";
4
+@import "~taro-ui/dist/style/components/icon.scss";
5
+// @import "~taro-ui/dist/style/components/grid.scss";
6
+
7
+.img {
8
+  width: 750px;
9
+  height: 426px;
10
+  margin-bottom: 40px
11
+}
12
+
13
+.text1 {
14
+  // float: left;
15
+
16
+  font-size: 36px;
17
+  font-family: PingFangSC-Medium, PingFang SC;
18
+  font-weight: 500;
19
+  color: rgba(51, 51, 51, 1);
20
+  line-height: 50px;
21
+  font-weight: bold;
22
+  padding-left: 80px;
23
+  // padding-top: 40px;
24
+  margin-bottom: 40px;
25
+}
26
+
27
+.text2 {
28
+  width: 200px;
29
+  height: 48px;
30
+  font-size: 34px;
31
+  font-family: PingFangSC-Medium, PingFang SC;
32
+  font-weight: 500;
33
+  color: rgba(187, 156, 121, 1);
34
+  line-height: 48px;
35
+  letter-spacing: -0.82px;
36
+  padding: 0 36px;
37
+  margin-bottom: 20px;
38
+}
39
+
40
+.line {
41
+  // width:300px;height:50px;
42
+  // text-align:center;
43
+  // padding-top:30px;
44
+  // border-bottom:2px dashed #000;
45
+
46
+  // border-style:solid;
47
+  width: 200px;
48
+  height: 2px;
49
+  border: 3px solid rgba(0, 0, 0, 0.12);
50
+  border: none;
51
+}
52
+
53
+.text3 {
54
+
55
+  margin-left: 40px;
56
+}
57
+
58
+.at-row {
59
+  margin-top: 20px;
60
+  font-size: 32px;
61
+  font-family: PingFangSC-Regular, PingFang SC;
62
+  font-weight: 400;
63
+  color: rgba(102, 102, 102, 1);
64
+  line-height: 44px;
65
+}
66
+
67
+.unregistered {
68
+  .img1 {
69
+    width: 220px;
70
+    height: 220px;
71
+    margin-left: 264px;
72
+    margin-top: 40px
73
+  }
74
+
75
+  .message {
76
+    width: 660px;
77
+    text-align: center;
78
+    margin-top: 40px;
79
+
80
+    .messageText {
81
+
82
+      position: absolute;
83
+      font-size: 36px;
84
+      font-weight: 400;
85
+      color: rgba(187, 156, 121, 1);
86
+      line-height: 56px;
87
+      width: 660px;
88
+      text-align: center;
89
+      top: 860px;
90
+      left: 46px
91
+    }
92
+  }
93
+
94
+
95
+
96
+}
97
+
98
+.toactivebutton {
99
+  width: 360px;
100
+  height: 100px;
101
+  background: rgba(187, 156, 121, 1);
102
+  border-radius: 12px;
103
+  position: absolute;
104
+  left: 196px;
105
+  top: 1000px;
106
+  font-size: 36px;
107
+  font-family: PingFangSC-Regular, PingFang SC;
108
+  font-weight: 400;
109
+  color: rgba(255, 255, 255, 1);
110
+  line-height: 100px;
111
+  text-align: center;
112
+
113
+}
114
+
115
+.checkinImg {
116
+  position: absolute;
117
+  width: 220px;
118
+  height: 220px;
119
+  bottom: 12vh;
120
+  left: 265px
121
+}
122
+

+ 4
- 4
src/pages/news/detail/poster.js 查看文件

@@ -99,17 +99,17 @@ export default class Index extends Component {
99 99
         x: 100,
100 100
         y: 1065,
101 101
         text: '橙蕉',
102
-        fontSize: 28,
103
-        color: 'black',
102
+        fontSize: 34,
103
+        color: 'red',
104 104
         baseLine: 'middle',
105 105
         lineHeight: 48,
106 106
         width: 120,
107 107
         zIndex: 11
108 108
       },
109 109
       {
110
-        x: 240,
110
+        x: 190,
111 111
         y: 1065,
112
-        text: '报名活动',
112
+        text: '查看资讯',
113 113
         fontSize: 26,
114 114
         color: '#999',
115 115
         baseLine: 'middle',

+ 7
- 4
src/pages/news/index.js 查看文件

@@ -18,7 +18,8 @@ export default class Index extends Component {
18 18
     list: [],
19 19
     hasMore: true,
20 20
     isEmpty: false,
21
-    recordId: null
21
+    recordId: null,
22
+    pageIndex:1
22 23
   }
23 24
 
24 25
   componentWillMount() {
@@ -72,7 +73,8 @@ export default class Index extends Component {
72 73
     this.setState({
73 74
       list,
74 75
       isEmpty: total == 0,
75
-      hasMore: list.length >= total ? false : true
76
+      hasMore: list.length >= total ? false : true,
77
+      pageIndex:1
76 78
     })
77 79
     rest && rest()
78 80
   }
@@ -80,11 +82,12 @@ export default class Index extends Component {
80 82
   onScrollToLower = async (fn) => {
81 83
     const { list } = this.state;
82 84
     pageIndex++
83
-    const { records, total } = await this.loadList(pageIndex);
85
+    const { records, total } = await this.loadList(this.state.pageIndex+1);
84 86
     const newList = list.concat(records)
85 87
     this.setState({
86 88
       list: newList,
87
-      hasMore: newList.length >= total ? false : true
89
+      hasMore: newList.length >= total ? false : true,
90
+      pageIndex:this.state.pageIndex+1
88 91
     });
89 92
     fn && fn();
90 93
   }

+ 1
- 2
src/pages/news/index.scss 查看文件

@@ -1,8 +1,7 @@
1 1
 @import "@styles/theme.scss";
2 2
 
3 3
 .page {
4
-  // background: $page-bg;
5
-  background: #fff;
4
+  background: $page-bg;
6 5
   position: relative;
7 6
 }
8 7
 .list{

+ 1
- 1
src/pages/news/item.js 查看文件

@@ -16,7 +16,7 @@ export default class NewsItem extends Component {
16 16
         <Image className="item-img" mode="aspectFill" src={data.newsImg}></Image>
17 17
         <View className="item-con">
18 18
           <View className="item-con__title">{data.newsName}</View>
19
-          <View className="item-con__date">{dayjs(data.createDate).format('YYYY-MM-DD hh:mm:ss')}发布</View>
19
+          <View className="item-con__date">{dayjs(data.createDate).format('YYYY-MM-DD')}</View>
20 20
         </View>
21 21
       </View>
22 22
     );

+ 13
- 10
src/pages/news/item.scss 查看文件

@@ -1,14 +1,17 @@
1 1
 @import "@styles/theme.scss";
2 2
 .item {
3
-  border-bottom: solid 2px $border-color-light;
3
+  padding: 50px 0;
4
+  border-bottom: solid 1px $border-color-light;
4 5
   display: flex;
5 6
   justify-content: space-between;
6 7
   align-items: center;
8
+	margin:0 30px;
9
+
7 10
   &-img {
8
-    width: 300px;
9
-    height: 160px;
10
-    margin-right: 24px;
11
-    border-radius: 4px;
11
+    width: 400px;
12
+    height: 200px;
13
+    margin-right: 30px;
14
+    border-radius: 10px;
12 15
   }
13 16
 
14 17
   &-con {
@@ -19,14 +22,14 @@
19 22
     height: 200px;
20 23
 
21 24
     &__title {
22
-      font-size: 28px;
23
-			margin-top: 32px;
25
+      font-size: $font-size-title;
26
+			margin-top: 20px;
24 27
     }
25 28
 
26 29
     &__date {
27
-      font-size: 24px;
28
-      color: #999;
29
-			margin-bottom: 32px;
30
+      font-size: $font-size-content;
31
+      color: $text-color-lighter;
32
+			margin-bottom: 20px;
30 33
     }
31 34
   }
32 35
 }

+ 3
- 1
src/pages/person/login/index.js 查看文件

@@ -3,7 +3,8 @@ import { connect } from '@tarojs/redux'
3 3
 import './index.scss'
4 4
 import { getCodeMessage,putRegister} from '@services/getCode'
5 5
 import { Input, Button } from '@tarojs/components'
6
-
6
+import * as actions from '@actions/user'
7
+@connect(state => state.user, { ...actions })
7 8
 export default class Index extends Component {
8 9
   config = {
9 10
     navigationBarTitleText: '个人中心'
@@ -84,6 +85,7 @@ export default class Index extends Component {
84 85
       code:code
85 86
     }
86 87
     putRegister(payload).then(res => {
88
+      this.props.dispatchUpdateUserInfoNew(res.personId)
87 89
         Taro.showLoading({
88 90
           title: '登录中...',
89 91
           duration: 1000

+ 23
- 5
src/pages/person/myGuest/editGuest/index.js 查看文件

@@ -1,6 +1,7 @@
1 1
 import Taro, { Component } from '@tarojs/taro'
2 2
 import { connect } from '@tarojs/redux'
3 3
 import {customerGet,customerEdit} from '@services/report'
4
+import { getItemList } from '@services/item'
4 5
 import './index.scss'
5 6
 
6 7
 export default class editGuest extends Component {
@@ -13,7 +14,8 @@ export default class editGuest extends Component {
13 14
     projectStates: ['报备', '认筹', '签约', '到访', '无效'],
14 15
     projectState:'报备',
15 16
     priceRanges:['0-10000元/㎡','10000-20000元/㎡','20000-30000元/㎡','30000-50000元/㎡','50000-70000元/㎡','70000-100000元/㎡',,'100000元/㎡以上'],
16
-    clickFlag:false
17
+    clickFlag:false,
18
+    floorList:''
17 19
   }
18 20
   config = {
19 21
     navigationBarTitleText: '客户详情',
@@ -25,6 +27,7 @@ export default class editGuest extends Component {
25 27
       customerId:customerId
26 28
     },function(){
27 29
       this.loadGuest(customerId)
30
+      this.loadProject()
28 31
     })
29 32
   }
30 33
 
@@ -106,9 +109,24 @@ export default class editGuest extends Component {
106 109
       url: '/pages/person/myGuest/index'
107 110
     })
108 111
   }
109
-
112
+  loadProject(){
113
+    getItemList().then(res => {
114
+      this.setState({
115
+        floorList: res
116
+      })
117
+    })
118
+  }
119
+  getName(dict, id,data) {
120
+    dict = dict.records || []
121
+    if(data == 'intention'){
122
+      return  (dict.filter(({ intention: target }) => id === target)[0] || {}).buildingName
123
+    }else{
124
+      return  (dict.filter(({ buildingId: target }) => id === target)[0] || {}).buildingName
125
+    }
126
+    
127
+  }
110 128
   render() {
111
-    const {TaCustomer}=this.state
129
+    const {TaCustomer,floorList}=this.state
112 130
     return (
113 131
       <View className='content'>
114 132
           <Image src={TaCustomer.picture} className='head_img'></Image>
@@ -124,7 +142,7 @@ export default class editGuest extends Component {
124 142
           <View className='col_box'>
125 143
               <Text className='star'>*</Text>
126 144
               <Text className='col_name1'>意向项目:</Text>
127
-              <Input disabled className='col_message' value={TaCustomer.intention}/>
145
+              <Input disabled className='col_message' value={TaCustomer.intention ? this.getName(floorList,TaCustomer.intention,'intention') :this.getName(floorList,TaCustomer.buildingId,'buildingId') }/>
128 146
           </View>
129 147
           <View className='col_box'>
130 148
               <Text className='star'>*</Text>
@@ -134,7 +152,7 @@ export default class editGuest extends Component {
134 152
           <View className='col_box'>
135 153
               <Text className='star'>*</Text>
136 154
               <Text className='col_name1'>客户电话:</Text>
137
-              <Input disabled className='col_message' value='18651884578'/>
155
+              <Input disabled className='col_message' value={TaCustomer.phone || TaCustomer.tel}/>
138 156
           </View>
139 157
           <View className='col_box'>
140 158
               <Text className='col_name2'>物业类型:</Text>

+ 1
- 1
src/pages/person/myGuest/index.js 查看文件

@@ -124,7 +124,7 @@ export default class myGuest extends Component {
124 124
                     <View className="col_top_right" onClick={this.goEdit.bind(this,item.customerId)}>编辑</View>
125 125
                   </View>
126 126
                   <View className="col_bottom1">
127
-                      <View className="col_name">备注信息:{item.describe}</View>
127
+                      <View className="col_name">备注信息:{item.describe ? item.describe :'暂无'}</View>
128 128
                   </View>
129 129
                   <View className="col_bottom1">
130 130
                     <View className="col_name">预约到访时间:{dayjs(item.createDate).format('YYYY-MM-DD hh:mm:ss')}</View>

+ 1
- 1
src/pages/person/spread/index.js 查看文件

@@ -31,7 +31,7 @@ export default class Index extends Component {
31 31
       }
32 32
       const { userInfo: { person: { personId, personType, agentCode, avatarurl, nickname } } } = this.props
33 33
       const payload = {
34
-        "scene": personType == ROLE_CODE['CONSULTANT'] ? `id=${personId}&from=card_share&recommender=${personId}` : `id=${personId}&from=card_share&recommender=${personId}&agentCode=${agentCode}`,
34
+        "scene": personType == ROLE_CODE['CONSULTANT'] ? `id=${personId}&from=card_share&recommender=${personId}` : `id=${personId}&from=share&recommender=${personId}&agentCode=${agentCode}`,
35 35
         "page": personType == ROLE_CODE['CONSULTANT'] ? 'pages/card/index' : 'pages/agent/become/index',
36 36
       }
37 37
       getMiniQrcode(payload).then(qrcode => {

+ 7
- 4
src/pages/policy/index.js 查看文件

@@ -18,7 +18,8 @@ export default class Index extends Component {
18 18
     list: [],
19 19
     hasMore: true,
20 20
     isEmpty: false,
21
-    recordId: null
21
+    recordId: null,
22
+    pageIndex:1
22 23
   }
23 24
 
24 25
 
@@ -39,7 +40,8 @@ export default class Index extends Component {
39 40
     this.setState({
40 41
       list,
41 42
       isEmpty: total == 0,
42
-      hasMore: list.length >= total ? false : true
43
+      hasMore: list.length >= total ? false : true,
44
+      pageIndex:1
43 45
     })
44 46
     rest && rest()
45 47
   }
@@ -47,11 +49,12 @@ export default class Index extends Component {
47 49
   onScrollToLower = async (fn) => {
48 50
     const { list } = this.state;
49 51
     pageIndex++
50
-    const { records, total } = await this.loadList(pageIndex);
52
+    const { records, total } = await this.loadList(this.state.pageIndex+1);
51 53
     const policyList = list.concat(records)
52 54
     this.setState({
53 55
       list: policyList,
54
-      hasMore: policyList.length >= total ? false : true
56
+      hasMore: policyList.length >= total ? false : true,
57
+      pageIndex:this.state.pageIndex+1
55 58
     });
56 59
     fn && fn();
57 60
   }

+ 10
- 6
src/pages/project/detail/index.js 查看文件

@@ -310,7 +310,7 @@ export default class Index extends Component {
310 310
           avatarurl: _avatarurl,//访问者头像
311 311
           poster: posters[0].posterImg,
312 312
           price: price,
313
-          buildingRestaurant: buildingRestaurant,
313
+          posterDescription: posters[0].posterDescription,
314 314
           buildingName: posters[0].posterTitle,//标题
315 315
           createDate: createDate,//时间
316 316
           buildingTag: buildingTag,//标签,
@@ -544,7 +544,9 @@ export default class Index extends Component {
544 544
                         </View>
545 545
                         <View className='row'>
546 546
                           <Text className='row-label'>项目参考价格:</Text>
547
-                          <Text className='row-txt'>约{item.price}/m²</Text>
547
+                          {
548
+                            item.price ? <Text className='row-txt'>约{item.price}元/m²</Text> : <Text className='row-txt'>待定</Text>
549
+                          }
548 550
                         </View>
549 551
                         <View className='row'>
550 552
                           <Text className='row-label'>产权:</Text>
@@ -652,7 +654,7 @@ export default class Index extends Component {
652 654
                   consultants.slice(0, 3).map(item => (
653 655
                     <View className="item" key={item.id} onClick={this.handleConsuItemClick.bind(this, item)}>
654 656
                       <View className="flex">
655
-                        <Image className="avatar" mode="aspectFill" src={item.avatar || item.photo}></Image>
657
+                        <Image className="avatar" mode="aspectFill" src={item.photo || item.avatar}></Image>
656 658
                         <View className='name-txt'>
657 659
                           <Text className="name">{item.userName}</Text>
658 660
                           <Text className='txt'>{item.description || ' '}</Text>
@@ -781,18 +783,20 @@ export default class Index extends Component {
781 783
                         <View className='house-type__name'><Text style="color:#FA5431;margin-right:10px">{item.buildingArea}</Text>{item.apartmentName}</View>
782 784
                         <View className='construction__area'>
783 785
                           <Text>建面{item.buildingArea}m²</Text>
784
-                          <Text>套内{item.insideArea}m²</Text>
786
+                          {
787
+                            item.insideArea ? <Text>套内{item.insideArea}m²</Text> : <Text>套内待定</Text>
788
+                          }
785 789
                         </View>
786 790
                       </View>
787 791
                     </View>
788 792
                   ))}
789
-
790 793
                 </View>
791 794
               </ScrollView>
792 795
             </View>
793 796
           )
794 797
         }
795 798
       </Block>
799
+
796 800
     )
797 801
   }
798 802
   renderActivities() {
@@ -812,7 +816,7 @@ export default class Index extends Component {
812 816
                 <View className="house-type__list" style="margin-top:10px">
813 817
                   {
814 818
                     activityList.map(item => (
815
-                      <View className="news-item" key={item.dynamicId} onClick={this.handActivityItemClick.bind(this,item.dynamicId)}>
819
+                      <View className="news-item" key={item.dynamicId} onClick={this.handActivityItemClick.bind(this, item.dynamicId)}>
816 820
                         <Image src={item.imgUrl} className="news-item__pic"></Image>
817 821
                         <View className="news-item__title">{item.title}</View>
818 822
                       </View>

+ 30
- 17
src/pages/project/detail/poster.js 查看文件

@@ -39,7 +39,7 @@ export default class Index extends Component {
39 39
     const texts = [
40 40
       {
41 41
         x: 30,
42
-        y: 820,
42
+        y: 740,
43 43
         text: data.buildingName,
44 44
         fontSize: 36,
45 45
         color: 'black',
@@ -51,8 +51,8 @@ export default class Index extends Component {
51 51
         zIndex: 999
52 52
       },{
53 53
         x: 30,
54
-        y: 890,
55
-        text: data.price,
54
+        y: 820,
55
+        text: data.price ? '约'+data.price+'元/m²' : '待定',
56 56
         fontSize: 36,
57 57
         color: 'red',
58 58
         baseLine: 'middle',
@@ -62,9 +62,22 @@ export default class Index extends Component {
62 62
         width: 560,
63 63
         zIndex: 999
64 64
       },
65
+      ,{
66
+        x: 30,
67
+        y: 890,
68
+        text: data.posterDescription,
69
+        fontSize: 28,
70
+        color: '#999',
71
+        baseLine: 'middle',
72
+        lineNum: 2,
73
+        lineHeight: 48,
74
+        // textAlign: 'center',
75
+        width: 560,
76
+        zIndex: 999
77
+      },
65 78
       {
66 79
         x: 30,
67
-        y: 1010,
80
+        y: 1015,
68 81
         text: '长按识别小程序码',
69 82
         fontSize: 26,
70 83
         color: '#999',
@@ -75,7 +88,7 @@ export default class Index extends Component {
75 88
       },
76 89
       {
77 90
         x: 30,
78
-        y: 1065,
91
+        y: 1070,
79 92
         text: '进入',
80 93
         fontSize: 26,
81 94
         color: '#999',
@@ -86,19 +99,19 @@ export default class Index extends Component {
86 99
       },
87 100
       {
88 101
         x: 100,
89
-        y: 1065,
102
+        y: 1070,
90 103
         text: '橙蕉',
91
-        fontSize: 28,
92
-        color: 'black',
104
+        fontSize: 34,
105
+        color: 'red',
93 106
         baseLine: 'middle',
94 107
         lineHeight: 48,
95 108
         width: 120,
96 109
         zIndex: 11
97 110
       },
98 111
       {
99
-        x: 240,
100
-        y: 1065,
101
-        text: '报名活动',
112
+        x: 190,
113
+        y: 1070,
114
+        text: '项目详情',
102 115
         fontSize: 26,
103 116
         color: '#999',
104 117
         baseLine: 'middle',
@@ -117,9 +130,9 @@ export default class Index extends Component {
117 130
       },
118 131
       {
119 132
         url: data.qrcode,
120
-        width: 160,
121
-        height: 160,
122
-        y: 950,
133
+        width: 150,
134
+        height: 150,
135
+        y: 970,
123 136
         x: 450,
124 137
         zIndex: 999
125 138
       },
@@ -127,7 +140,7 @@ export default class Index extends Component {
127 140
         url: data.avatarurl || require('@assets/default-avatar.png'),
128 141
         width: 130,
129 142
         height: 130,
130
-        y: 630,
143
+        y: 550,
131 144
         x: 20,
132 145
         borderRadius: 130,
133 146
         zIndex: 999
@@ -137,9 +150,9 @@ export default class Index extends Component {
137 150
     const blocks = [
138 151
       {
139 152
         x: 0,
140
-        y: 936,
153
+        y: 966,
141 154
         width: 640,
142
-        height: 200,
155
+        height: 160,
143 156
         backgroundColor: 'rgba(248,248,248,1)',
144 157
         zIndex: 1
145 158
       }

+ 5
- 1
src/pages/project/item/index.js 查看文件

@@ -25,7 +25,11 @@ export default class Index extends Component {
25 25
           <View className={data.marketStatus == '在售' ? 'item__status sale' : data.marketStatus == '售罄' ? 'item__status soldout' : 'item__status waitsale'}>{data.marketStatus}</View>
26 26
           <View className='item__right'>
27 27
             <View className='item__right__title'>{data.name}</View>
28
-            <View className='item__right__price row'><Text className='price__txt'>均价{data.price || 0}</Text></View>
28
+            <View className='item__right__price row'>
29
+              {
30
+                data.price ? <Text className='price__txt'>均价{data.price}元/m²</Text> : <Text className='price__txt'>待定</Text>
31
+              }
32
+            </View>
29 33
           </View>
30 34
 
31 35
           <View className='item__right__region row'><Text className="location-icon iconfont icon-daohangdizhi"></Text>{data.buildingArea}</View>

+ 9
- 4
src/pages/project/list/index.js 查看文件

@@ -21,7 +21,8 @@ export default class Index extends Component {
21 21
     hasMore: true,
22 22
     isEmpty: false,
23 23
     recordId: null,
24
-    filterOpt: {}
24
+    filterOpt: {},
25
+    pageIndex:1
25 26
   }
26 27
 
27 28
   componentWillMount() {
@@ -62,7 +63,8 @@ export default class Index extends Component {
62 63
     this.setState({
63 64
       list,
64 65
       isEmpty: total == 0,
65
-      hasMore: list.length >= total ? false : true
66
+      hasMore: list.length >= total ? false : true,
67
+      pageIndex:1
66 68
     })
67 69
     rest && rest()
68 70
   }
@@ -70,11 +72,14 @@ export default class Index extends Component {
70 72
   onScrollToLower = async (fn) => {
71 73
     const { list } = this.state;
72 74
     pageIndex++
73
-    const { records, total } = await this.loadList(pageIndex);
75
+    const { records, total } = await this.loadList(this.state.pageIndex+1);
74 76
     const newList = list.concat(records)
75 77
     this.setState({
76 78
       list: newList,
77
-      hasMore: newList.length >= total ? false : true
79
+      hasMore: newList.length >= total ? false : true,
80
+      pageIndex:this.state.pageIndex+1
81
+    },()=>{
82
+      console.log('pageIndex:'+this.state.pageIndex)
78 83
     });
79 84
     fn && fn();
80 85
   }

+ 7
- 4
src/pages/report/index.js 查看文件

@@ -17,7 +17,8 @@ export default class Index extends Component {
17 17
     list: [],
18 18
     hasMore: true,
19 19
     isEmpty: false,
20
-    recordId: null
20
+    recordId: null,
21
+    pageIndex:1
21 22
   }
22 23
 
23 24
   loadList(pageNumber) {
@@ -38,7 +39,8 @@ export default class Index extends Component {
38 39
     this.setState({
39 40
       list,
40 41
       isEmpty: total == 0,
41
-      hasMore: list.length >= total ? false : true
42
+      hasMore: list.length >= total ? false : true,
43
+      pageIndex:1
42 44
     })
43 45
     rest && rest()
44 46
   }
@@ -46,11 +48,12 @@ export default class Index extends Component {
46 48
   onScrollToLower = async (fn) => {
47 49
     const { list } = this.state;
48 50
     pageIndex++
49
-    const { records, total } = await this.loadList(pageIndex);
51
+    const { records, total } = await this.loadList(this.state.pageIndex+1);
50 52
     const reportList = list.concat(records)
51 53
     this.setState({
52 54
       list: reportList,
53
-      hasMore: reportList.length >= total ? false : true
55
+      hasMore: reportList.length >= total ? false : true,
56
+      pageIndex:this.state.pageIndex+1
54 57
     });
55 58
     fn && fn();
56 59
   }

+ 22
- 0
src/services/checkin.js 查看文件

@@ -0,0 +1,22 @@
1
+import { fetch } from '@utils/request'
2
+import {
3
+  API_CHECKIN_DETAILS,
4
+  API_CHECKIN_ACTIVE
5
+} from '@constants/api'
6
+
7
+
8
+
9
+/**
10
+ * 获取签到详情
11
+ */
12
+export const checkinDetails = (id, type) => fetch({ url: `${API_CHECKIN_DETAILS}/${id}?type=${type}`, method: 'GET' })
13
+
14
+
15
+
16
+/**
17
+ * 签到
18
+ * @param {*} enlistId 
19
+ */
20
+export const checkinActive = enlistId => fetch({ url: `${API_CHECKIN_ACTIVE}/${enlistId}`, method: 'PUT' })
21
+
22
+// /wx/buildingDynamicCheckin/{enlistId} 扫码活动签到 PUT