Procházet zdrojové kódy

Merge branch 'v3.5.1' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into v3.5.1

张延森 před 5 roky
rodič
revize
862c9ebe62
3 změnil soubory, kde provedl 24 přidání a 24 odebrání
  1. 4
    4
      config/dev.js
  2. 1
    1
      src/pages/activity/detail/assemble.js
  3. 19
    19
      src/pages/project/detail/index.js

+ 4
- 4
config/dev.js Zobrazit soubor

5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"http://47.101.36.130:8085"',//测试
6
     // HOST: '"http://47.101.36.130:8085"',//测试
7
     // WSS_HOST: '"wss://47.101.36.130:8085"',
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
     // HOST: '"https://lt.pawoma.cn"',
10
     // HOST: '"https://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    HOST: '"http://192.168.0.84:8080"',
13
-    WSS_HOST: '"ws://192.168.0.84:8080"',
12
+    // HOST: '"http://192.168.0.84:8080"',
13
+    // WSS_HOST: '"ws://192.168.0.84:8080"',
14
   },
14
   },
15
   weapp: {},
15
   weapp: {},
16
   h5: {}
16
   h5: {}

+ 1
- 1
src/pages/activity/detail/assemble.js Zobrazit soubor

642
                         (groupState === GroupInProcess && !isJoin) &&
642
                         (groupState === GroupInProcess && !isJoin) &&
643
                         (<View className="assistance-btn"><FormIdCollector><Button className="assistance-btn" onClick={this.joinGroup}>立即参团</Button></FormIdCollector></View>)
643
                         (<View className="assistance-btn"><FormIdCollector><Button className="assistance-btn" onClick={this.joinGroup}>立即参团</Button></FormIdCollector></View>)
644
                       }                      
644
                       }                      
645
-                      <View className={groupState === GroupInProcess && !isJoin ? "set-btn" : "assistance-btn"}>
645
+                      <View className={groupState === GroupInProcess && !isJoin ? "set-btn" : "assistance-btn"} style="border:none">
646
                         <FormIdCollector>
646
                         <FormIdCollector>
647
                           <Button className={groupState === GroupInProcess && !isJoin ? "set-btn" : "assistance-btn"} onClick={this.startMine}>发起我的拼团</Button>
647
                           <Button className={groupState === GroupInProcess && !isJoin ? "set-btn" : "assistance-btn"} onClick={this.startMine}>发起我的拼团</Button>
648
                         </FormIdCollector>
648
                         </FormIdCollector>

+ 19
- 19
src/pages/project/detail/index.js Zobrazit soubor

48
     activityList: [],
48
     activityList: [],
49
     helpList: [],
49
     helpList: [],
50
     groupList: [],
50
     groupList: [],
51
-    statusOpts: ['待', '售罄', '在售'],
52
-    statusBgColors: ['#F6B61D', '#BB9C79', '#CECECE'],
51
+    statusOpts: ['待', '售罄', '在售'],
52
+    statusBgColors: ['#BB9C79', '#CECECE', '#F6B61D'],
53
     // circumOpts: [],
53
     // circumOpts: [],
54
     curTab: 'Transport',
54
     curTab: 'Transport',
55
     recordId: null,
55
     recordId: null,
63
 
63
 
64
   componentWillMount() {
64
   componentWillMount() {
65
     ready.queue(() => {
65
     ready.queue(() => {
66
-    
66
+
67
       // 分享场景需要先授权手机, 再授权头像
67
       // 分享场景需要先授权手机, 再授权头像
68
       const options = wx.getLaunchOptionsSync()
68
       const options = wx.getLaunchOptionsSync()
69
       if (sceneInShare(options.scene)) {
69
       if (sceneInShare(options.scene)) {
245
     })
245
     })
246
   }
246
   }
247
 
247
 
248
-  toViewAlbum (index){
248
+  toViewAlbum(index) {
249
     const { buildingId } = this.state
249
     const { buildingId } = this.state
250
-    console.log('1111111',index)
251
-    this.navigateTo(`/pages/project/album/index?id=${buildingId}&current=${index}` )
250
+    console.log('1111111', index)
251
+    this.navigateTo(`/pages/project/album/index?id=${buildingId}&current=${index}`)
252
   }
252
   }
253
 
253
 
254
   onViewFans() {
254
   onViewFans() {
637
                       console.log(buildingImgUrl, 'buildingImgUrl')
637
                       console.log(buildingImgUrl, 'buildingImgUrl')
638
 
638
 
639
                       // if (buildingImgUrl != null) {
639
                       // if (buildingImgUrl != null) {
640
-                      return ( <View key={index + "listimg"}>
640
+                      return (<View key={index + "listimg"}>
641
                         {buildingImgUrl != null && (<View
641
                         {buildingImgUrl != null && (<View
642
                           style={{ marginRight: '8px' }}
642
                           style={{ marginRight: '8px' }}
643
-                          
643
+
644
                         >
644
                         >
645
 
645
 
646
                           <View>
646
                           <View>
647
-                            <Image className='albumimg' src={getThumbnail(buildingImgList[0].url)} onClick={()=>this.toViewAlbum(index)}></Image>
647
+                            <Image className='albumimg' src={getThumbnail(buildingImgList[0].url)} onClick={() => this.toViewAlbum(index)}></Image>
648
                             <View style={{ width: '218rpx', display: 'flex', justifyContent: 'center' }} >
648
                             <View style={{ width: '218rpx', display: 'flex', justifyContent: 'center' }} >
649
                               <View style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}> {apartmentName}  </View>
649
                               <View style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}> {apartmentName}  </View>
650
                               <View> ({buildingImgList.length})</View>
650
                               <View> ({buildingImgList.length})</View>
651
                             </View>
651
                             </View>
652
                           </View>
652
                           </View>
653
                         </View>)}
653
                         </View>)}
654
-                        </View>
654
+                      </View>
655
                       )
655
                       )
656
                       // }
656
                       // }
657
 
657
 
869
   }
869
   }
870
   renderActivities() {
870
   renderActivities() {
871
 
871
 
872
- 
872
+
873
     const { activityList } = this.state
873
     const { activityList } = this.state
874
-   
874
+
875
     return (
875
     return (
876
       <Block>
876
       <Block>
877
         {
877
         {
878
           activityList.length > 0 && (
878
           activityList.length > 0 && (
879
             <View className="activity" >
879
             <View className="activity" >
880
-           
880
+
881
               <View className="section-head">
881
               <View className="section-head">
882
-                 <Text className="section-head__title" style={{margin: '10rpx 0 40rpx 35rpx'}}>热门活动</Text>
883
-                 <View className="section-head__more"  style={{marginRight: '20rpx'}} onClick={this.handleActivityMoreClick}>
884
-                   更多活动<Text className="iconfont icon-more"></Text>
885
-                 </View>
886
-               </View>
882
+                <Text className="section-head__title" style={{ margin: '10rpx 0 40rpx 35rpx' }}>热门活动</Text>
883
+                <View className="section-head__more" style={{ marginRight: '20rpx' }} onClick={this.handleActivityMoreClick}>
884
+                  更多活动<Text className="iconfont icon-more"></Text>
885
+                </View>
886
+              </View>
887
               <View
887
               <View
888
                 style={{ position: 'relative' }}>
888
                 style={{ position: 'relative' }}>
889
                 <HelpGroupBanner
889
                 <HelpGroupBanner
898
 
898
 
899
               </View>
899
               </View>
900
             </View>
900
             </View>
901
-      
901
+
902
           )
902
           )
903
         }
903
         }
904
       </Block>
904
       </Block>