许静 5 лет назад
Родитель
Сommit
37098868f3

+ 1
- 1
src/pages/activity/detail/assemble.js Просмотреть файл

@@ -630,7 +630,7 @@ export default class Detail extends Component {
630 630
                   {
631 631
                     !isStarter && actState === ActInProcess && groupState != GroupInProcess &&
632 632
 
633
-                    <View className={groupState === GroupInProcess ? "set-btn" : "assistance-btn"}>
633
+                    <View className={groupState === GroupInProcess ? "set-btn" : "assistance-btn"} style="border:none">
634 634
                       <FormIdCollector>
635 635
                         <Button className={groupState === GroupInProcess ? "set-btn" : "assistance-btn"} onClick={this.startMine}>发起我的拼团</Button>
636 636
                       </FormIdCollector>

+ 13
- 5
src/pages/activity/detail/assistance.js Просмотреть файл

@@ -66,7 +66,7 @@ export default class Detail extends Component {
66 66
     handleHelpBtn: true, // 立即助力好友
67 67
     pointRecordId: undefined, // 埋点ID
68 68
   }
69
-  
69
+
70 70
   componentWillMount() {
71 71
     ready.queue(() => {
72 72
       // 必须先授权电话
@@ -84,7 +84,7 @@ export default class Detail extends Component {
84 84
   componentDidShow() {
85 85
     this.startTicker()
86 86
   }
87
-  
87
+
88 88
   componentDidHide() {
89 89
     this.stopTicker()
90 90
   }
@@ -159,7 +159,7 @@ export default class Detail extends Component {
159 159
   // 打开关闭海报面板
160 160
   togglePosterVisible = () => {
161 161
     const { posterVisible, posters, actionSheetVisible } = this.state
162
-    
162
+
163 163
     if (!posters || !posters.length) {
164 164
       Taro.showToast({
165 165
         title: '未设置海报模板',
@@ -500,7 +500,7 @@ export default class Detail extends Component {
500 500
     return (
501 501
       <View>
502 502
         {/* 生成海报 */}
503
-        { posterVisible && !ltTicker.processing &&
503
+        {posterVisible && !ltTicker.processing &&
504 504
           (
505 505
             <Poster configs={posterConfigs} onCancel={this.togglePosterVisible} onFinish={this.togglePosterVisible}></Poster>
506 506
           )
@@ -606,7 +606,7 @@ export default class Detail extends Component {
606 606
                           (helpState === HelpInProcess && !isJoin) &&
607 607
                           (<View className="assistance-btn"><FormIdCollector><Button className="assistance-btn" onClick={this.handleHelp}>立即助力好友</Button></FormIdCollector></View>)
608 608
                         }
609
-                        <View className={(helpState === HelpInProcess && !isJoin) ? "set-btn" : "assistance-btn"}>
609
+                        <View className={(helpState === HelpInProcess && !isJoin) ? "set-btn" : "assistance-btn"} style="border:none">
610 610
                           <FormIdCollector>
611 611
                             <Button className={(helpState === HelpInProcess && !isJoin) ? "set-btn" : "assistance-btn"} onClick={this.startMine}>发起我的助力</Button>
612 612
                           </FormIdCollector>
@@ -614,6 +614,14 @@ export default class Detail extends Component {
614 614
                       </View>
615 615
                     )
616 616
                   }
617
+                  <View className="btn-box" style="padding:25px 0;">
618
+
619
+                    <View className="set-btn" style="border:none">
620
+                      <FormIdCollector>
621
+                        <Button className= "set-btn" onClick={this.startMine}>发起我的助力</Button>
622
+                      </FormIdCollector>
623
+                    </View>
624
+                  </View>
617 625
                 </View>
618 626
                 <View className="assistance-text"><Text className="acitivty-desc">活动说明</Text>-------------------------------------------------------------- </View>
619 627
                 <View style="padding:0 40rpx">

+ 1
- 1
src/pages/activity/item/index.scss Просмотреть файл

@@ -39,7 +39,7 @@
39 39
   .success-num{
40 40
     position: absolute;
41 41
     right:0;
42
-    top:282px;
42
+    top:340px;
43 43
     color: #fff;
44 44
     display: flex;
45 45
     height: 48px;

+ 5
- 4
src/pages/agent/recommend/index.js Просмотреть файл

@@ -275,11 +275,12 @@ export default class Index extends Component {
275 275
         Taro.showToast({
276 276
           title: '提交成功'
277 277
         })
278
+        setTimeout(() => {
279
+          Taro.navigateTo({ url: '/pages/agent/client/index' })//测试用
280
+        }, 700)
281
+        this.clearInputEvent()
278 282
       }
279
-      this.clearInputEvent()
280
-      setTimeout(() => {
281
-        Taro.navigateTo({ url: '/pages/agent/client/index' })//测试用
282
-      }, 700)
283
+
283 284
     })
284 285
   }
285 286
   // 性别

+ 60
- 55
src/pages/project/detail/index.js Просмотреть файл

@@ -58,7 +58,7 @@ export default class Index extends Component {
58 58
     videoPlayShow: 'flex',
59 59
   }
60 60
 
61
-  componentWillMount () {
61
+  componentWillMount() {
62 62
     // const { id = '78c3dd489791dc1d29472fa344b08c45' } = this.$router.params
63 63
 
64 64
     ready.queue(() => {
@@ -92,12 +92,17 @@ export default class Index extends Component {
92 92
     })
93 93
   }
94 94
 
95
-  componentWillUnmount () {
95
+  componentWillUnmount() {
96 96
     const { recordId } = this.state
97 97
     recordId && updatePoint(recordId)
98 98
   }
99
+  componentDidMount() {
100
+    const options = wx.getLaunchOptionsSync()
101
+    console.log(options, "-------------options---------")
102
+    // if()
103
+  }
99 104
 
100
-  loadHelpGroupList () {
105
+  loadHelpGroupList() {
101 106
     const { buildingId } = this.state
102 107
 
103 108
     queryHelpGroup({ buildingId: buildingId }).then(res => {
@@ -119,7 +124,7 @@ export default class Index extends Component {
119 124
     )
120 125
   }
121 126
 
122
-  loadDetail () {
127
+  loadDetail() {
123 128
     const { buildingId } = this.state
124 129
     const { dispatchProjectDetail } = this.props
125 130
     this.setState({
@@ -147,7 +152,7 @@ export default class Index extends Component {
147 152
     })
148 153
   }
149 154
 
150
-  loadActivityData () {
155
+  loadActivityData() {
151 156
     const { buildingId } = this.state
152 157
     const payload = { pageSize: 999, pageNumber: 1, buildingId }
153 158
     queryActivityList(payload).then(res => {
@@ -157,7 +162,7 @@ export default class Index extends Component {
157 162
     })
158 163
   }
159 164
 
160
-  loadNewsData () {
165
+  loadNewsData() {
161 166
     const { buildingId } = this.state
162 167
     const payload = { pageSize: 2, pageNumber: 1, buildingId }
163 168
     queryNewsList(payload).then(res => {
@@ -167,11 +172,11 @@ export default class Index extends Component {
167 172
     })
168 173
   }
169 174
 
170
-  navigateTo (url) {
175
+  navigateTo(url) {
171 176
     Taro.navigateTo({ url: url })
172 177
   }
173 178
   // 海报预览图
174
-  previewImage (arr) {
179
+  previewImage(arr) {
175 180
     // console.log('arr:' + arr)
176 181
     if (arr[0].length > 1) {
177 182
       Taro.previewImage({
@@ -198,7 +203,7 @@ export default class Index extends Component {
198 203
     })
199 204
   }
200 205
 
201
-  openMap () {
206
+  openMap() {
202 207
     const {
203 208
       buildingName,
204 209
       address,
@@ -225,12 +230,12 @@ export default class Index extends Component {
225 230
     })
226 231
   }
227 232
 
228
-  toViewAlbum () {
233
+  toViewAlbum() {
229 234
     const { buildingId } = this.state
230 235
     this.navigateTo(`/pages/project/album/index?id=${buildingId}`)
231 236
   }
232 237
 
233
-  onViewFans () {
238
+  onViewFans() {
234 239
     const { buildingId } = this.state
235 240
     this.navigateTo('/pages/card/fans/index?type=item&id=' + buildingId)
236 241
   }
@@ -259,7 +264,7 @@ export default class Index extends Component {
259 264
     }
260 265
   }
261 266
 
262
-  getPhoneNumber (e, item) {
267
+  getPhoneNumber(e, item) {
263 268
     getUserPhone(e, (phoneNumber) => {
264 269
       const { userInfo: { person: { personId, nickname, name } } } = this.props
265 270
       Taro.navigateTo({
@@ -268,7 +273,7 @@ export default class Index extends Component {
268 273
     })
269 274
   }
270 275
 
271
-  getPosterData () {
276
+  getPosterData() {
272 277
     return new Promise(resolve => {
273 278
       const { posterData } = this.state
274 279
       if (posterData.qrcode) {
@@ -339,14 +344,14 @@ export default class Index extends Component {
339 344
     })
340 345
   }
341 346
 
342
-  handleTelClick (item, e) {
347
+  handleTelClick(item, e) {
343 348
     e.stopPropagation()
344 349
     Taro.makePhoneCall({
345 350
       phoneNumber: item.phone
346 351
     })
347 352
   }
348 353
 
349
-  handleChatClick (item, e) {
354
+  handleChatClick(item, e) {
350 355
     e.stopPropagation()
351 356
     const { userInfo: { person: { personId, nickname, name } } } = this.props
352 357
     Taro.navigateTo({
@@ -354,24 +359,24 @@ export default class Index extends Component {
354 359
     })
355 360
   }
356 361
 
357
-  handleConsuItemClick (item) {
362
+  handleConsuItemClick(item) {
358 363
     Taro.navigateTo({
359 364
       url: `/pages/card/index?id=${item.id}`
360 365
     })
361 366
   }
362 367
 
363
-  handleMoreClick () {
368
+  handleMoreClick() {
364 369
     // App.zhuge.track('查看置业顾问列表')
365 370
     Taro.navigateTo({
366 371
       url: `/pages/card/list/index?buildingId=${this.state.buildingId}`
367 372
     })
368 373
   }
369 374
 
370
-  handleStopPropagation (e) {
375
+  handleStopPropagation(e) {
371 376
     e.stopPropagation()
372 377
   }
373 378
 
374
-  toRecomonedPage () {
379
+  toRecomonedPage() {
375 380
     const {
376 381
       userInfo: { person: { personType } }
377 382
     } = this.props
@@ -387,50 +392,50 @@ export default class Index extends Component {
387 392
     }
388 393
   }
389 394
 
390
-  toHome () {
395
+  toHome() {
391 396
     Taro.switchTab({
392 397
       url: `/pages/project/index`
393 398
     })
394 399
   }
395 400
 
396
-  HandleCircumTabClick (id) {
401
+  HandleCircumTabClick(id) {
397 402
     this.setState({
398 403
       curTab: id
399 404
     })
400 405
   }
401 406
 
402
-  handleNewsMoreClick () {
407
+  handleNewsMoreClick() {
403 408
     Taro.navigateTo({
404 409
       url: `/pages/news/index?buildingId=` + this.state.buildingId
405 410
     })
406 411
   }
407 412
 
408
-  handNewsItemClick (id) {
413
+  handNewsItemClick(id) {
409 414
     Taro.navigateTo({
410 415
       url: '/pages/news/detail/index?id=' + id
411 416
     })
412 417
   }
413 418
 
414
-  handleActivityMoreClick () {
419
+  handleActivityMoreClick() {
415 420
     Taro.navigateTo({
416 421
       url: `/pages/activity/index?buildingId=` + this.state.buildingId
417 422
     })
418 423
   }
419 424
 
420
-  handActivityItemClick (item) {
425
+  handActivityItemClick(item) {
421 426
     Taro.navigateTo({
422 427
       url: '/pages/activity/detail/index?id=' + item.dynamicId
423 428
     })
424 429
   }
425 430
 
426
-  handlePreviewHxImage (current, urls) {
431
+  handlePreviewHxImage(current, urls) {
427 432
     Taro.previewImage({
428 433
       current,
429 434
       urls
430 435
     })
431 436
   }
432 437
 
433
-  handleFavor () {
438
+  handleFavor() {
434 439
     const { buildingId, isSaved } = this.state
435 440
     if (isSaved) {
436 441
       cancelFavorProject(buildingId).then(res => {
@@ -460,18 +465,18 @@ export default class Index extends Component {
460 465
       console.log('活动项目收藏')
461 466
     })
462 467
   }
463
-  handleToolsClick () {
468
+  handleToolsClick() {
464 469
     Taro.navigateTo({
465 470
       url: `/pages/toolKit/index`
466 471
     })
467 472
   }
468
-  moreFloor () {
473
+  moreFloor() {
469 474
     Taro.navigateTo({
470 475
       url: `/pages/project/floor/index`
471 476
     })
472 477
   }
473 478
 
474
-  renderBottomMenu () {
479
+  renderBottomMenu() {
475 480
     const { userInfo: { person: { personType } } } = this.props
476 481
     const { posterShow } = this.state
477 482
     return (
@@ -506,14 +511,14 @@ export default class Index extends Component {
506 511
     )
507 512
   }
508 513
 
509
-  previewHouseImage (current, urls) {
514
+  previewHouseImage(current, urls) {
510 515
     Taro.previewImage({
511 516
       current,
512 517
       urls
513 518
     })
514 519
   }
515 520
 
516
-  renderBuildingProjectTypeList () {
521
+  renderBuildingProjectTypeList() {
517 522
     const { statusOpts } = this.state
518 523
     const { projectDetail: { buildingProjectType = [], status, marketStatus } } = this.props
519 524
     return (
@@ -573,7 +578,7 @@ export default class Index extends Component {
573 578
   }
574 579
 
575 580
 
576
-  renderPhotoAlbum () {
581
+  renderPhotoAlbum() {
577 582
     const { projectDetail: { buildingApartment } } = this.props
578 583
     const list = buildingApartment.filter(item => item.apartmentType === 'photo')
579 584
     // const imgList = list.reduce((prev, cur) => {
@@ -605,15 +610,15 @@ export default class Index extends Component {
605 610
                       console.log(buildingImgUrl, 'buildingImgUrl')
606 611
 
607 612
                       // if (buildingImgUrl != null) {
608
-                      return (<View>
613
+                      return (<View key={index + "listimg"}>
609 614
                         {buildingImgUrl != null && (<View
610 615
                           style={{ marginRight: '8px' }}
611 616
                         >
612 617
 
613 618
                           <View>
614 619
                             <Image className='albumimg' src={getThumbnail(buildingImgList[0].url)} ></Image>
615
-                            <View style={{ width: '218rpx', display: 'flex',justifyContent:'center'  }} >
616
-                              <View style={{  overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}> {apartmentName}  </View>
620
+                            <View style={{ width: '218rpx', display: 'flex', justifyContent: 'center' }} >
621
+                              <View style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}> {apartmentName}  </View>
617 622
                               <View> ({buildingImgList.length})</View>
618 623
                             </View>
619 624
                           </View>
@@ -632,7 +637,7 @@ export default class Index extends Component {
632 637
       </Block>
633 638
     )
634 639
   }
635
-  rendercircum () {
640
+  rendercircum() {
636 641
     const building = {
637 642
       ...this.props.projectDetail
638 643
     }
@@ -649,7 +654,7 @@ export default class Index extends Component {
649 654
     )
650 655
   }
651 656
 
652
-  renderConsuler () {
657
+  renderConsuler() {
653 658
     const { userInfo: { person: { phone } } } = this.props
654 659
     const { projectDetail: { consultants = [] } } = this.props
655 660
     return (
@@ -722,7 +727,7 @@ export default class Index extends Component {
722 727
     )
723 728
   }
724 729
 
725
-  renderStatement () {
730
+  renderStatement() {
726 731
     return (
727 732
       <View className='statement'>
728 733
         免责条款:以上价格仅供参考,具体一房一价的信息以售楼处展示为准。本网显示房屋位置、交通、医疗、教育、商业等配套信息,来源于第三方网络数据,不作为要约,仅供参考,双方具体权利义务应以法律规定及买卖合同约定为准。<br></br>本平台对项目周边文化教育的介绍旨在提供相关信息,并不意味着信息发布方对就学安排作出承诺。相关教育资源就学信息存在调整的可能,应以政府教育主管部门及办学颁布的政策规定为准。
@@ -731,7 +736,7 @@ export default class Index extends Component {
731 736
   }
732 737
 
733 738
 
734
-  renderHelp () {
739
+  renderHelp() {
735 740
     const { helpList } = this.state
736 741
     return (
737 742
       <Block>
@@ -752,17 +757,17 @@ export default class Index extends Component {
752 757
     )
753 758
   }
754 759
 
755
-  handleHelpClick (item) {
760
+  handleHelpClick(item) {
756 761
     Taro.navigateTo({
757 762
       url: '/pages/activity/detail/assistance?id=' + item.activityId
758 763
     })
759 764
   }
760
-  handleGroupClick (item) {
765
+  handleGroupClick(item) {
761 766
     Taro.navigateTo({
762 767
       url: '/pages/activity/detail/assemble?id=' + item.activityId
763 768
     })
764 769
   }
765
-  renderGroup () {
770
+  renderGroup() {
766 771
     const { groupList } = this.state
767 772
     return (
768 773
       <Block>
@@ -785,7 +790,7 @@ export default class Index extends Component {
785 790
     )
786 791
   }
787 792
 
788
-  renderHouseTypeList () {
793
+  renderHouseTypeList() {
789 794
     const { statusOpts } = this.state
790 795
     const { projectDetail: { buildingApartment } } = this.props
791 796
     const list = buildingApartment.filter(item => item.apartmentType === 'apart')
@@ -834,7 +839,7 @@ export default class Index extends Component {
834 839
 
835 840
     )
836 841
   }
837
-  renderActivities () {
842
+  renderActivities() {
838 843
     // renderGroup () {
839 844
     //   const { groupList } = this.state
840 845
     //   return (
@@ -903,7 +908,7 @@ export default class Index extends Component {
903 908
       </Block>
904 909
     )
905 910
   }
906
-  renderNews () {
911
+  renderNews() {
907 912
     const { newsList } = this.state
908 913
     return (
909 914
       <Block>
@@ -935,7 +940,7 @@ export default class Index extends Component {
935 940
     )
936 941
   }
937 942
   // 开始播放
938
-  plagVideo () {
943
+  plagVideo() {
939 944
     let videoContext = wx.createVideoContext('myVideo')
940 945
     console.log()
941 946
     // this.setState({
@@ -958,7 +963,7 @@ export default class Index extends Component {
958 963
   // }
959 964
 
960 965
 
961
-  renderVideo () {
966
+  renderVideo() {
962 967
     const { videoPlayShow } = this.state
963 968
     const { projectDetail } = this.props
964 969
     const { videoImage } = projectDetail
@@ -980,12 +985,12 @@ export default class Index extends Component {
980 985
           }}
981 986
           id='myVideo'
982 987
           controls={true}
983
-        // autoplay={false}
984
-        // initialTime='0'
985
-        // loop={true}
986
-        // muted={false}
988
+          // autoplay={false}
989
+          // initialTime='0'
990
+          // loop={true}
991
+          // muted={false}
987 992
 
988
-        show-mute-btn='true'
993
+          show-mute-btn='true'
989 994
         // onPlay={this.onPlay}
990 995
         // show-center-play-btn='false'
991 996
         // onPause= {this.onPause}
@@ -1007,13 +1012,13 @@ export default class Index extends Component {
1007 1012
     )
1008 1013
   }
1009 1014
 
1010
-  changeCurrent (current) {
1015
+  changeCurrent(current) {
1011 1016
     this.setState({
1012 1017
       current: current + 1
1013 1018
     })
1014 1019
   }
1015 1020
 
1016
-  render () {
1021
+  render() {
1017 1022
     const { posterStatus, posterData, loaded, btnstate } = this.state
1018 1023
     const { projectDetail } = this.props
1019 1024
     const { uvList = {} } = projectDetail

+ 2
- 0
src/pages/shop/index.scss Просмотреть файл

@@ -199,6 +199,8 @@
199 199
       line-height: 60px;
200 200
       font-weight: bold;
201 201
       padding: 0 20px;
202
+      max-width: 320px;
203
+      @include text-ellipsis;
202 204
     }
203 205
 
204 206
     &__des {