林凡 5 anni fa
parent
commit
0902145d36

+ 7
- 2
config/dev.js Vedi File

@@ -5,13 +5,18 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://47.101.36.130:8085"',//测试
7 7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
8
-    // HOST:  '"https://dev.jinchengjiaye.com"',//测试
9
-    // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
8
+    HOST: '"https://dev.jinchengjiaye.com"',//测试
9
+    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
+<<<<<<< HEAD
12 13
     HOST: '"http://192.168.2.52:8080"',
13 14
     WSS_HOST: '"ws://192.168.2.52:8080"',
14 15
     Version:'V3.5.2.2_1210'
16
+=======
17
+    // HOST: '"http://192.168.2.52:8080"',
18
+    // WSS_HOST: '"ws://192.168.2.52:8080"',
19
+>>>>>>> 7a04f681842a549f9f6b650f1bf35926f30961d7
15 20
   },
16 21
   weapp: {},
17 22
   h5: {}

+ 7
- 0
config/prod.js Vedi File

@@ -5,11 +5,18 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://192.168.0.218:8080"',
7 7
     // WSS_HOST: '"ws://192.168.0.218:8080"',
8
+<<<<<<< HEAD
8 9
     // HOST: '"https://dev.jinchengjiaye.com"',
9 10
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 11
     HOST: '"https://lt.pawoma.cn"',
11 12
     WSS_HOST: '"wss://lt.pawoma.cn"',
12 13
     Version:'V3.5.2.2_1210'
14
+=======
15
+    HOST: '"https://dev.jinchengjiaye.com"',
16
+    WSS_HOST: '"wss://dev.jinchengjiaye.com"',
17
+    // HOST: '"https://lt.pawoma.cn"',
18
+    // WSS_HOST: '"wss://lt.pawoma.cn"',
19
+>>>>>>> 7a04f681842a549f9f6b650f1bf35926f30961d7
13 20
   },
14 21
   weapp: {},
15 22
   h5: {}

+ 26
- 13
src/pages/activity/activity.js Vedi File

@@ -38,19 +38,32 @@ export default class active extends Component {
38 38
       console.log('活动列表')
39 39
     })
40 40
   }
41
-  componentWillMount() {
42
-    if (Taro.getApp().props.projectIndex) {
43
-      this.setState({
44
-        current: 1
45
-      })
46
-    }
47
-    else {
48
-      this.setState({
49
-        current: 0
50
-      })
51
-    }
52
-  }
53
-
41
+  // componentWillMount() {
42
+  //   console.log(Taro.getApp().props, "Taro.getApp()")
43
+  //   if (Taro.getApp().props.projectIndex) {
44
+  //     this.setState({
45
+  //       current: 1
46
+  //     })
47
+  //   }
48
+  //   else {
49
+  //     this.setState({
50
+  //       current: 0
51
+  //     })
52
+  //   }
53
+  // }
54
+  // componentDidShow() {
55
+  //   if (Taro.getApp().props.projectIndex == 1) {
56
+  //     this.setState({
57
+  //       current: 1
58
+  //     })
59
+  //     Taro.getApp().props.projectIndex = 2
60
+  //   }
61
+  //   else {
62
+  //     this.setState({
63
+  //       current: 0
64
+  //     })
65
+  //   }
66
+  // }
54 67
   componentWillUnmount() {
55 68
     const { recordId } = this.state
56 69
     recordId && updatePoint(recordId)

+ 4
- 4
src/pages/person/accessRecord.js Vedi File

@@ -127,7 +127,7 @@ export default class Person extends Component {
127 127
               moreRecord.map(item => (
128 128
                 <View className="activity-item">
129 129
                   <View className="name">{item.activityName || ' '}</View>
130
-                  <View className="time">{`${dayjs(item.createDate).format('YYYY-MM-DD HH:mm:ss')}`}</View>
130
+                  <View className="time">{`${dayjs(item.visitTime).format('YYYY-MM-DD HH:mm:ss')}`}</View>
131 131
                 </View>
132 132
               ))
133 133
             }
@@ -157,9 +157,9 @@ export default class Person extends Component {
157 157
               recordList.map(item => (
158 158
                 <View className='item' key={item + 'more'}>
159 159
                   {item.myCustomer == 1 && <View className="tag">我的客户</View>}
160
-                  <Image className="touxiang" src={require('@assets/default-avatar.png')}></Image>
160
+                  <Image className="touxiang" src={item.avatarurl || require('@assets/default-avatar.png')}></Image>
161 161
                   <View className="info-top">
162
-                    <View className="name">{item.userName || ' '}</View>
162
+                    <View className="name">{item.userName || item.nickname || ' '}</View>
163 163
                     <View style="display: flex;align-items: center;" onClick={this.handleChatClick.bind(this, item)}><Image className="goutong-icon" src={require('@assets/person/zixun.png')}></Image><Text className="goutong">在线沟通</Text></View>
164 164
                   </View>
165 165
                   <View className="activity-name" onClick={this.showActivityList.bind(this, item)}>
@@ -167,7 +167,7 @@ export default class Person extends Component {
167 167
                   </View>
168 168
                   <Text className="right-icon"></Text>
169 169
                   <View className="activity-time">
170
-                    {`${dayjs(item.createDate).format('YYYY-MM-DD HH:mm:ss')}`}
170
+                    {`${dayjs(item.visitTime).format('YYYY-MM-DD HH:mm:ss')}`}
171 171
                   </View>
172 172
                 </View>
173 173
               ))

+ 4
- 4
src/pages/project/detail/index.scss Vedi File

@@ -612,12 +612,12 @@
612 612
 
613 613
       .top__txt {
614 614
         font-size: 26px;
615
-        width: 30%;
615
+        width: 27%;
616 616
         color: rgba(0, 0, 0, 0.37);
617 617
       }
618 618
 
619 619
       .bottom__img {
620
-        width: 70%;
620
+        width: 73%;
621 621
         display: flex;
622 622
         align-items: center;
623 623
         margin-left: 5px;
@@ -634,7 +634,7 @@
634 634
             width: 52px;
635 635
             height: 52px;
636 636
             margin-left: -10px;
637
-            border-radius: 50%;
637
+            border-radius: 200%;
638 638
             box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.14);
639 639
             border: 2px solid rgba(255, 255, 255, 1);
640 640
           }
@@ -674,7 +674,7 @@
674 674
       .avatar {
675 675
         width: 70px;
676 676
         height: 70px;
677
-        border-radius: 50%;
677
+        border-radius: 200%;
678 678
         margin-right: 30px;
679 679
       }
680 680
 

+ 31
- 2
src/pages/project/h5Page.js Vedi File

@@ -34,12 +34,15 @@ export default class Index extends Component {
34 34
     const firstShare = this.$router.params.firstShare || router.query.firstShare || ""
35 35
     const consultant = this.$router.params.consultant || router.query.consultant || ""
36 36
     const sharePersonId = this.$router.params.sharePersonId || router.query.sharePersonId || ""
37
+    const { pageInfo } = this.state
38
+    const targetId = pageInfo.drainageId || this.$router.params.id || router.query.id || ""
37 39
     savePoint({
38 40
       event: 'detail',
39 41
       eventType: 'h5',
40 42
       propertyName: 'h5活动',
41 43
       consultantId: consultant,
42 44
       sharePersonId: sharePersonId,
45
+      targetId: targetId,
43 46
       data: '{"firstShare":"' + firstShare + '"}'
44 47
     }).then(res => {
45 48
       this.setState({
@@ -72,14 +75,17 @@ export default class Index extends Component {
72 75
 
73 76
   currentPageAndParams() {
74 77
     const { userInfo: { person } } = this.props
78
+    const router = Taro.getStorageSync('router')
79
+
75 80
     const consultant = person.personType == ROLE_CODE['CONSULTANT'] ? person.userId : ""
76 81
     const firstShare = this.$router.params.firstShare || person.personId
82
+    const id = this.$router.params.id || router.query.id || ""
77 83
 
78 84
     let queryParams = [
79 85
       `sharePersonId=${person.personId}`,
80 86
       `consultant=${consultant}`,
81 87
       `firstShare=${firstShare}`,
82
-      `id=${this.$router.params.id}`
88
+      `id=${id}`
83 89
     ]
84 90
 
85 91
 
@@ -94,6 +100,7 @@ export default class Index extends Component {
94 100
     ready.queue(() => {
95 101
 
96 102
       if (this.$router.params.scene) {
103
+
97 104
         getQrCodeParams(this.$router.params.scene).then((_, codeParams) => {
98 105
           this.setState({
99 106
             codeParams: codeParams || ''
@@ -101,6 +108,7 @@ export default class Index extends Component {
101 108
           console.log(res, "解析二维码返回值")
102 109
         })
103 110
       }
111
+<<<<<<< HEAD
104 112
       // h5id 、第一个分享人ID、置业顾问ID、分享人ID
105 113
       getHFiveDetail(this.$router.params.id).then(res => {
106 114
         if(res.status==1){
@@ -118,6 +126,19 @@ export default class Index extends Component {
118 126
             })
119 127
           })
120 128
         }
129
+=======
130
+      console.log(this.$router, "this.$router")
131
+      const router = Taro.getStorageSync('router')
132
+      console.log(router, "router")
133
+      const hFiveId = this.$router.params.id || router.query.id || ""
134
+      console.log(hFiveId, "hFiveId")
135
+      // h5id 、第一个分享人ID、置业顾问ID、分享人ID 
136
+      getHFiveDetail(hFiveId).then(res => {
137
+        // debugger
138
+        this.setState({
139
+          pageInfo: res
140
+        })
141
+>>>>>>> 7a04f681842a549f9f6b650f1bf35926f30961d7
121 142
       })
122 143
       const { userInfo: { person: { avatarurl, phone } } } = this.props
123 144
       console.log(this.props, "this.propsthis.propsthis.props")
@@ -126,6 +147,7 @@ export default class Index extends Component {
126 147
         this.setState({
127 148
           avatarVisible: false,
128 149
         })
150
+        console.log(phone, "phone#########")
129 151
         // 头像手机号都有
130 152
         if (phone) {
131 153
 
@@ -155,6 +177,7 @@ export default class Index extends Component {
155 177
       avatarVisible: false,
156 178
       phoneVisible: true,
157 179
     })
180
+
158 181
     console.log("授权头像成功!")
159 182
   }
160 183
   // 授权用户信息
@@ -169,9 +192,15 @@ export default class Index extends Component {
169 192
         const payload = Object.assign(res, { sessionKey })
170 193
         // 用户信息保存至服务器
171 194
         dispatchUpdateUserInfo(payload).then(res => {
172
-          console.log('获取用户信息成功')
173 195
           this.onAvatarSuccess();
196
+          console.log('获取用户信息成功')
174 197
           Taro.hideLoading()
198
+          const { userInfo: { person: { phone } } } = this.props
199
+          if (phone) {
200
+            this.setState({
201
+              phoneVisible: false,
202
+            })
203
+          }
175 204
         })
176 205
       },
177 206
       fail: (err) => {

+ 23
- 26
src/pages/project/index.js Vedi File

@@ -153,7 +153,7 @@ export default class Index extends Component {
153 153
     this.loadBannerList()
154 154
     this.loadHelpGroupList()
155 155
     this.loadNewsList()
156
-    this.loadActivityList()
156
+    // this.loadActivityList()
157 157
     this.loadList()
158 158
 
159 159
   }
@@ -191,7 +191,6 @@ export default class Index extends Component {
191 191
   }
192 192
   loadBannerList() {
193 193
     const { curCity } = this.props
194
-    console.log(this.props, 'this.props')
195 194
     // 获取首页banner
196 195
     const payload = {
197 196
       showPosition: 'index'
@@ -214,7 +213,6 @@ export default class Index extends Component {
214 213
 
215 214
   loadHelpGroupList() {
216 215
     queryHelpGroup({ cityId: this.props.curCity.id, buildingId: '' }).then(res => {
217
-      console.log(res, "res")
218 216
       this.setState({
219 217
         helpGroupList: res || []
220 218
       })
@@ -239,30 +237,31 @@ export default class Index extends Component {
239 237
     })
240 238
   }
241 239
 
242
-  loadActivityList() {
243
-    const { curCity } = this.props
244
-    const payload = {
245
-      pageNumber: 1,
246
-      pageSize: 1
247
-    }
248
-    if (curCity.id) {
249
-      payload.cityId = curCity.id
250
-    }
251
-    queryActivityList(payload).then(res => {
252
-      this.setState({
253
-        activityList: res.list || []
254
-      }, () => {
255
-        console.log(this.state.activityList)
256
-      })
257
-    })
258
-  }
240
+  // loadActivityList() {
241
+  //   const { curCity } = this.props
242
+  //   const payload = {
243
+  //     pageNumber: 1,
244
+  //     pageSize: 1
245
+  //   }
246
+  //   if (curCity.id) {
247
+  //     payload.cityId = curCity.id
248
+  //   }
249
+  //   queryActivityList(payload).then(res => {
250
+  //     this.setState({
251
+  //       activityList: res.list || []
252
+  //     }, () => {
253
+  //       console.log(this.state.activityList)
254
+  //     })
255
+  //   })
256
+  // }
259 257
 
260 258
   loadList() {
261 259
     const { keywords } = this.state
262 260
     const { curCity } = this.props
263 261
 
264 262
     const payload = {
265
-      name: keywords
263
+      name: keywords,
264
+      pageSize: 999
266 265
     }
267 266
     if (curCity.id) {
268 267
       payload.cityId = curCity.id
@@ -318,9 +317,8 @@ export default class Index extends Component {
318 317
   }
319 318
 
320 319
   handleBannerClick = (item) => {
321
-    if (item.contentType != "nothing") {
320
+    if (item.contentType && item.contentType != "nothing") {
322 321
       this.redirectTo(item)
323
-      console.log(item.targetId, "item.targetId")
324 322
     } else {
325 323
       console.log(item, "item")
326 324
     }
@@ -415,9 +413,8 @@ export default class Index extends Component {
415 413
   }
416 414
 
417 415
   handleMaskBannerClick(data) {
418
-    console.log(data, "data")
419
-    this.redirectTo(data)
420 416
 
417
+    this.redirectTo(data)
421 418
 
422 419
   }
423 420
 
@@ -651,7 +648,7 @@ export default class Index extends Component {
651 648
                         {
652 649
                           newsList.map((list, inx) => {
653 650
                             return (
654
-                              <SwiperItem key={`img-${inx}`}>
651
+                              <SwiperItem key={`news-${inx}`}>
655 652
                                 <View className="notice-text" onClick={this.handleNoticeClick.bind(this, list)}>
656 653
                                   {list.newsName}
657 654
                                 </View>