周立森 il y a 5 ans
Parent
révision
838c55ab8c

+ 1
- 0
src/pages/person/customerAnalysis/myCustomer.js Voir le fichier

@@ -444,6 +444,7 @@ export default class myCustomer extends Taro.Component {
444 444
     return (
445 445
       <View>
446 446
         {followVisible && this.renderFollowBox()}
447
+        {console.log(this.props)}
447 448
         {baseVisible && this.renderBaseBox()}
448 449
         <View className="user_con">
449 450
           <Image className="bg" src={getThumbnail('https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/images/shop/background.jpg')} ></Image>

+ 25
- 25
src/pages/project/detail/index.js Voir le fichier

@@ -375,7 +375,7 @@ export default class Index extends Component {
375 375
     const {
376 376
       userInfo: { person: { personType } }
377 377
     } = this.props
378
-    if (personType === ROLE_CODE['DRIFT'] ) {
378
+    if (personType === ROLE_CODE['DRIFT']) {
379 379
       // 游客或者客户 区别是否有电话|| personType === ROLE_CODE['CUSTOMER']
380 380
       Taro.navigateTo({
381 381
         url: `/pages/agent/become/index`
@@ -417,9 +417,9 @@ export default class Index extends Component {
417 417
     })
418 418
   }
419 419
 
420
-  handActivityItemClick (id) {
420
+  handActivityItemClick (item) {
421 421
     Taro.navigateTo({
422
-      url: '/pages/activity/detail/index?id=' + id
422
+      url: '/pages/activity/detail/index?id=' +item.dynamicId
423 423
     })
424 424
   }
425 425
 
@@ -599,27 +599,27 @@ export default class Index extends Component {
599 599
                   <View className="around-tab">
600 600
                     {list.map((item, index) => {
601 601
                       const { apartmentName } = item
602
-                      const buildingImgList = item.buildingImgList 
602
+                      const buildingImgList = item.buildingImgList
603 603
                       const buildingImgUrl = buildingImgList.length > 0 ? buildingImgList[0].url : null
604 604
 
605 605
                       console.log(buildingImgUrl, 'buildingImgUrl')
606 606
 
607 607
                       // if (buildingImgUrl != null) {
608
-                        return (<View>
609
-                         {buildingImgUrl != null&& (<View
610
-                            style={{ marginRight: '8px' }}
611
-                          >
612
-
613
-                            <View>
614
-                              <Image className='albumimg' src={getThumbnail(buildingImgList[0].url)} ></Image>
615
-                              <View style={{ textAlign: 'center', width: '218rpx', display: 'flex' }}>
616
-                                <View style={{ textAlign: 'center', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}> {apartmentName}  </View>
617
-
618
-                                <View  style={{  textAlign: 'center' }}>({buildingImgList.length})</View>
619
-                              </View>
608
+                      return (<View>
609
+                        {buildingImgUrl != null && (<View
610
+                          style={{ marginRight: '8px' }}
611
+                        >
612
+
613
+                          <View>
614
+                            <Image className='albumimg' src={getThumbnail(buildingImgList[0].url)} ></Image>
615
+                            <View style={{ textAlign: 'center', width: '218rpx', display: 'flex' }}>
616
+                              <View style={{ textAlign: 'center', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}> {apartmentName}  </View>
617
+
618
+                              <View style={{ textAlign: 'center' }}>({buildingImgList.length})</View>
620 619
                             </View>
621
-                          </View>)}</View>
622
-                        )
620
+                          </View>
621
+                        </View>)}</View>
622
+                      )
623 623
                       // }
624 624
 
625 625
                     })
@@ -790,7 +790,7 @@ export default class Index extends Component {
790 790
                       {
791 791
                         item && (
792 792
                           <View className='house__img-info'>
793
-                            {console.log(list,'-------')}
793
+                            {console.log(list, '-------')}
794 794
                             <Image className='house__img' src={getThumbnail(item.buildingImgList[0].url)} mode="widthFix" onClick={this.handlePreviewHxImage.bind(this, item.buildingImgList[0].url, imgUrls)}></Image>
795 795
                             <View className='house-type__state'>{statusOpts[item.marketStatus - 1]}</View>
796 796
                           </View>
@@ -816,7 +816,7 @@ export default class Index extends Component {
816 816
 
817 817
     )
818 818
   }
819
-  renderActivities() {
819
+  renderActivities () {
820 820
     // renderGroup () {
821 821
     //   const { groupList } = this.state
822 822
     //   return (
@@ -843,7 +843,7 @@ export default class Index extends Component {
843 843
       <Block>
844 844
         {
845 845
           activityList.length > 0 && (
846
-            <View className="activity">
846
+            <View className="activity" onClick={this.handleActivityMoreClick}>
847 847
               {console.log(activityList, '----activityList-----')}
848 848
               <View className="title">热门活动</View>
849 849
               <View
@@ -854,7 +854,7 @@ export default class Index extends Component {
854 854
                   indicatorDots={false}
855 855
                   list={activityList}
856 856
                   type='activity'
857
-                // onClick={this.handleGroupClick}
857
+                  onClick={this.handActivityItemClick}
858 858
                 >
859 859
                 </HelpGroupBanner>
860 860
 
@@ -917,7 +917,7 @@ export default class Index extends Component {
917 917
     )
918 918
   }
919 919
   // 开始播放
920
-  plagVideo() {
920
+  plagVideo () {
921 921
     let videoContext = wx.createVideoContext('myVideo')
922 922
     console.log()
923 923
     // this.setState({
@@ -961,10 +961,10 @@ export default class Index extends Component {
961 961
             width: '750rpx'
962 962
           }}
963 963
           id='myVideo'
964
-          // controls={false}
964
+          controls={true}
965 965
           // autoplay={false}
966 966
           // initialTime='0'
967
-          loop={true}
967
+          // loop={true}
968 968
           // muted={false}
969 969
 
970 970
           show-mute-btn='true'

+ 3
- 2
src/pages/project/index.js Voir le fichier

@@ -425,11 +425,12 @@ export default class Index extends Component {
425 425
   renderProjectList () {
426 426
     const { proList: { records } } = this.props
427 427
     const { helpGroupList } = this.state
428
+    const list = records.filter(item => item.isMain === 1)
428 429
     console.log(records, 'proList')
429 430
     return (
430 431
       <Block>
431 432
         {
432
-          records.length > 0 && (
433
+          list.length > 0 && (
433 434
             < View className="houses" >
434 435
               <View className="section-head">
435 436
                 <View style="display:flex;align-items:center">
@@ -443,7 +444,7 @@ export default class Index extends Component {
443 444
                 </View>
444 445
               </View>
445 446
               <View className="section-content">
446
-                {records.map(item => (
447
+                {list.map(item => (
447 448
                   <FormIdCollector key={item.buildingId}>
448 449
                     <ProjectItem
449 450
                       onClick={this.onViewDetail.bind(this, item)}