Selaa lähdekoodia

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

张延森 5 vuotta sitten
vanhempi
commit
862c9ebe62
3 muutettua tiedostoa jossa 24 lisäystä ja 24 poistoa
  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 Näytä tiedosto

@@ -5,12 +5,12 @@ 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
-    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 15
   weapp: {},
16 16
   h5: {}

+ 1
- 1
src/pages/activity/detail/assemble.js Näytä tiedosto

@@ -642,7 +642,7 @@ export default class Detail extends Component {
642 642
                         (groupState === GroupInProcess && !isJoin) &&
643 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 646
                         <FormIdCollector>
647 647
                           <Button className={groupState === GroupInProcess && !isJoin ? "set-btn" : "assistance-btn"} onClick={this.startMine}>发起我的拼团</Button>
648 648
                         </FormIdCollector>

+ 19
- 19
src/pages/project/detail/index.js Näytä tiedosto

@@ -48,8 +48,8 @@ export default class Index extends Component {
48 48
     activityList: [],
49 49
     helpList: [],
50 50
     groupList: [],
51
-    statusOpts: ['待', '售罄', '在售'],
52
-    statusBgColors: ['#F6B61D', '#BB9C79', '#CECECE'],
51
+    statusOpts: ['待', '售罄', '在售'],
52
+    statusBgColors: ['#BB9C79', '#CECECE', '#F6B61D'],
53 53
     // circumOpts: [],
54 54
     curTab: 'Transport',
55 55
     recordId: null,
@@ -63,7 +63,7 @@ export default class Index extends Component {
63 63
 
64 64
   componentWillMount() {
65 65
     ready.queue(() => {
66
-    
66
+
67 67
       // 分享场景需要先授权手机, 再授权头像
68 68
       const options = wx.getLaunchOptionsSync()
69 69
       if (sceneInShare(options.scene)) {
@@ -245,10 +245,10 @@ export default class Index extends Component {
245 245
     })
246 246
   }
247 247
 
248
-  toViewAlbum (index){
248
+  toViewAlbum(index) {
249 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 254
   onViewFans() {
@@ -637,21 +637,21 @@ export default class Index extends Component {
637 637
                       console.log(buildingImgUrl, 'buildingImgUrl')
638 638
 
639 639
                       // if (buildingImgUrl != null) {
640
-                      return ( <View key={index + "listimg"}>
640
+                      return (<View key={index + "listimg"}>
641 641
                         {buildingImgUrl != null && (<View
642 642
                           style={{ marginRight: '8px' }}
643
-                          
643
+
644 644
                         >
645 645
 
646 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 648
                             <View style={{ width: '218rpx', display: 'flex', justifyContent: 'center' }} >
649 649
                               <View style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}> {apartmentName}  </View>
650 650
                               <View> ({buildingImgList.length})</View>
651 651
                             </View>
652 652
                           </View>
653 653
                         </View>)}
654
-                        </View>
654
+                      </View>
655 655
                       )
656 656
                       // }
657 657
 
@@ -869,21 +869,21 @@ export default class Index extends Component {
869 869
   }
870 870
   renderActivities() {
871 871
 
872
- 
872
+
873 873
     const { activityList } = this.state
874
-   
874
+
875 875
     return (
876 876
       <Block>
877 877
         {
878 878
           activityList.length > 0 && (
879 879
             <View className="activity" >
880
-           
880
+
881 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 887
               <View
888 888
                 style={{ position: 'relative' }}>
889 889
                 <HelpGroupBanner
@@ -898,7 +898,7 @@ export default class Index extends Component {
898 898
 
899 899
               </View>
900 900
             </View>
901
-      
901
+
902 902
           )
903 903
         }
904 904
       </Block>