周立森 před 5 roky
rodič
revize
164586402a

+ 2
- 2
config/dev.js Zobrazit soubor

@@ -9,8 +9,8 @@ module.exports = {
9 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.238:8080"',
13
-    WSS_HOST: '"ws://192.168.0.238:8080"',
12
+    HOST: '"http://192.168.0.218:8080"',
13
+    WSS_HOST: '"ws://192.168.0.218:8080"',
14 14
   },
15 15
   weapp: {},
16 16
   h5: {}

+ 4
- 4
config/prod.js Zobrazit soubor

@@ -3,12 +3,12 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    // HOST: '"http://192.168.0.218:8080"',
7
-    // WSS_HOST: '"ws://192.168.0.218:8080"',
6
+    HOST: '"http://192.168.0.72:8080"',
7
+    WSS_HOST: '"ws://192.168.0.72:8080"',
8 8
     // HOST:  '"https://dev.jinchengjiaye.com"',
9 9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
-    HOST: '"https://lt.pawoma.cn"',
11
-    WSS_HOST: '"wss://lt.pawoma.cn"',
10
+    //   HOST: '"https://lt.pawoma.cn"',
11
+    //   WSS_HOST: '"wss://lt.pawoma.cn"',
12 12
   },
13 13
   weapp: {},
14 14
   h5: {}

+ 1
- 1
project.config.json Zobrazit soubor

@@ -2,7 +2,7 @@
2 2
 	"miniprogramRoot": "dist/",
3 3
 	"projectname": "mini-chengjiao",
4 4
 	"description": "知与行",
5
-	"appid": "wxda1f84b79b3edeb3",
5
+	"appid": "wxd9ee3a9480a4e544",
6 6
 	"setting": {
7 7
 		"urlCheck": false,
8 8
 		"es6": false,

+ 1
- 0
src/app.js Zobrazit soubor

@@ -162,6 +162,7 @@ class App extends Component {
162 162
       this.getRouterParams().then(router => {
163 163
         Taro.setStorageSync('router', router)
164 164
         console.info('router2:', router)
165
+        console.info('-----------')
165 166
         const { query: payload } = router
166 167
         // login
167 168
         login(payload, res => {

binární
src/assets/play.png Zobrazit soubor


+ 2
- 2
src/pages/activity/detail/assistance.js Zobrazit soubor

@@ -515,7 +515,7 @@ export default class Detail extends Component {
515 515
             <View className="ass-page">
516 516
               <Notice></Notice>
517 517
               <View className="detail-banner">
518
-                <Image mode="widthFix" src={getThumbnail(detail.img)} className="detail-banner__img"></Image>
518
+                <Image mode="aspectFill" src={getThumbnail(detail.img)} className="detail-banner__img"></Image>
519 519
 
520 520
                 <View className="rest-time">
521 521
                   <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
@@ -612,7 +612,7 @@ export default class Detail extends Component {
612 612
                 </View>
613 613
                 <View className="assistance-text"><Text className="acitivty-desc">活动说明</Text>-------------------------------------------------------------- </View>
614 614
                 <View style="padding:0 40rpx">
615
-                  <Image src={getThumbnail(detail.activityInstructions)} mode="widthFix" style="width:100%;margin-bottom:20px;"></Image>
615
+                  <Image src={getThumbnail(detail.activityInstructions)} mode="aspectFill" style="width:100%;margin-bottom:20px;"></Image>
616 616
                 </View>
617 617
 
618 618
               </ScrollView>

+ 4
- 4
src/pages/activity/detail/index.js Zobrazit soubor

@@ -318,7 +318,7 @@ export default class Detail extends Component {
318 318
             <View>
319 319
               <Notice></Notice>
320 320
               <View className="detail-banner">
321
-                <Image mode="widthFix" src={getThumbnail(detail.imgUrl)} className="detail-banner__img"></Image>
321
+                <Image mode="aspectFill" src={getThumbnail(detail.imgUrl)} className="detail-banner__img"></Image>
322 322
               </View>
323 323
               <ScrollView
324 324
                 scrollY
@@ -369,13 +369,13 @@ export default class Detail extends Component {
369 369
                 {
370 370
                   posterShow && (
371 371
                     <Button className='btn poster-btn' onClick={() => { this.togglePosterStatus(true) }}>
372
-                      <Image mode="widthFix" src={require('@assets/tupian_3@3x.png')} className="btn-icon"></Image>
372
+                      <Image mode="aspectFill" src={require('@assets/tupian_3@3x.png')} className="btn-icon"></Image>
373 373
                       <Text className="txt">海报</Text>
374 374
                     </Button>
375 375
                   )
376 376
                 }
377 377
                 <Button className="btn share-btn" open-type="share">
378
-                  <Image mode="widthFix" src={require('@assets/fasong@3x.png')} className="btn-icon"></Image>
378
+                  <Image mode="aspectFill" src={require('@assets/fasong@3x.png')} className="btn-icon"></Image>
379 379
                   <Text className="txt">分享</Text>
380 380
                 </Button>
381 381
 
@@ -407,7 +407,7 @@ export default class Detail extends Component {
407 407
                   <Text className="page-section__title">报名信息</Text>
408 408
                   <View className='page-content'>
409 409
                     <Input className='inputName' onInput={this.onInputText.bind(this)} type='text' placeholder='请输入姓名' />
410
-                    <Picker mode='selector' range={this.state.selector} onChange={this.onChange}>
410
+                    <Picker mode='aspectFill' range={this.state.selector} onChange={this.onChange}>
411 411
                       <View className='picker'>
412 412
                         <Text>参加人数</Text>
413 413
                         <Text className='content'>{this.state.selectorChecked}</Text>

+ 1
- 1
src/pages/activity/detail/index.scss Zobrazit soubor

@@ -23,7 +23,7 @@
23 23
 .detail-banner {
24 24
   position: relative;
25 25
   overflow: hidden;
26
-  height: 624px;
26
+  height: 600px;
27 27
   width: 100%;
28 28
 
29 29
   &__img {

+ 1
- 1
src/pages/activity/item/index.scss Zobrazit soubor

@@ -71,7 +71,7 @@
71 71
   }
72 72
   .pic {
73 73
     width: 100%;
74
-    height:332px;
74
+    height:388px;
75 75
     display: block;
76 76
   }
77 77
 

+ 1
- 1
src/pages/agent/become/index.js Zobrazit soubor

@@ -122,7 +122,7 @@ export default class Index extends Component {
122 122
     const { userInfo: { person: { phone } } } = this.props
123 123
     return (
124 124
       <View className='page'>
125
-        <Image src={bannerImg} className='banner' mode='widthFix'></Image>
125
+        <Image src={bannerImg} className='banner' mode='aspectFill'></Image>
126 126
         <View className='become_agent'>
127 127
           {/* <View className='agent_type'>
128 128
             <Text className='agent_title'>经纪人类型</Text>

+ 1
- 1
src/pages/agent/index.js Zobrazit soubor

@@ -87,7 +87,7 @@ export default class Index extends Component {
87 87
         {/* 生成海报 */}
88 88
         {posterVisible && (<Poster data={posterData} toggle={this.toggleMakePosterModal}></Poster>)}
89 89
         <View className='page'>
90
-          <Image src={topImg} className='top_img' mode='widthFix'></Image>
90
+          <Image src={topImg} className='top_img' mode='aspectFill'></Image>
91 91
           <View className='agent_info'>
92 92
             <Image src={agent.avatarurl} className='agent_avatar'></Image>
93 93
             <View className='agent_info-center'>

+ 2
- 2
src/pages/agent/progress/index.js Zobrazit soubor

@@ -150,8 +150,8 @@ export default class Index extends Component {
150 150
       <View className='client__progress'>
151 151
         <View className='client__infor'>
152 152
           <View className='clieng__name'>{detail.name}</View>
153
-          <View className='clieng__build'><Image mode="widthFix" className='build__img' src={buildImg}></Image>意向楼盘:{detail.intention || '暂无'}</View>
154
-          <View className='clieng__phone'><Image mode="widthFix" className='phone__img' src={phoneImg}></Image>{detail.phone || '暂无'}</View>
153
+          <View className='clieng__build'><Image mode="aspectFill" className='build__img' src={buildImg}></Image>意向楼盘:{detail.intention || '暂无'}</View>
154
+          <View className='clieng__phone'><Image mode="aspectFill" className='phone__img' src={phoneImg}></Image>{detail.phone || '暂无'}</View>
155 155
           {/* <Image className='client__img' src={headImg}></Image> */}
156 156
         </View>
157 157
         <View className='progress__infor'>

+ 3
- 3
src/pages/card/index.js Zobrazit soubor

@@ -432,10 +432,10 @@ export default class Index extends Component {
432 432
             <ScrollView scrollY>
433 433
               <View className='mycard__user__info'>
434 434
                 <View className='mycard__user__imgox'>
435
-                  <Image className='mycard__user__img' src={picture} mode="widthFix"></Image>
435
+                  <Image className='mycard__user__img' src={picture} mode="aspectFill"></Image>
436 436
                   <Image src={picture} mode="aspectFill" className='head__img'></Image>
437 437
                 </View>
438
-                <Image src={require('@assets/person/top.png')} className='top-img' mode="widthFix"></Image>
438
+                <Image src={require('@assets/person/top.png')} className='top-img' mode="aspectFill"></Image>
439 439
               </View>
440 440
 
441 441
               <View className='mycard__user__information'>
@@ -464,7 +464,7 @@ export default class Index extends Component {
464 464
 
465 465
                 </View>
466 466
                 <View className='row medal'>
467
-                  <Image mode="widthFix" className="img" src={require('@assets/person/jinpai.png')}></Image>
467
+                  <Image mode="aspectFill" className="img" src={require('@assets/person/jinpai.png')}></Image>
468 468
                   <Text>金牌置业顾问</Text>
469 469
                 </View>
470 470
 

+ 1
- 1
src/pages/im/msgItem/index.js Zobrazit soubor

@@ -62,7 +62,7 @@ export default class MsgItem extends Component {
62 62
       )
63 63
     }
64 64
     if (row.messageType === 'image') {
65
-      return (<Image className="item__content-img" mode="widthFix" src={row.message} onClick={this.onPreviewImg.bind(this, row)} />)
65
+      return (<Image className="item__content-img" mode="aspectFill" src={row.message} onClick={this.onPreviewImg.bind(this, row)} />)
66 66
     }
67 67
 
68 68
     return (<View className="item__content-txt">{row.message}</View>)

+ 1
- 1
src/pages/news/item.js Zobrazit soubor

@@ -14,7 +14,7 @@ export default class NewsItem extends Component {
14 14
     const { data } = this.props
15 15
     return (
16 16
       <View className="item" key={data.newsId} onClick={this.handleClick}>
17
-        <Image className="item-img" mode="aspectFill" src={getThumbnail(data.newsImg)}></Image>
17
+        <Image className="item-img"  src={getThumbnail(data.newsImg)}></Image>
18 18
         <View className="item-con">
19 19
           <View className="item-con__title">{data.newsName}</View>
20 20
           <View className="item-con__date">于{dayjs(data.createDate).format('YYYY-MM-DD  HH:mm:ss')}发布</View>

+ 5
- 5
src/pages/news/item.scss Zobrazit soubor

@@ -4,16 +4,16 @@
4 4
   display: flex;
5 5
   justify-content: space-between;
6 6
   align-items: center;
7
-	margin:0 30px;
7
+	// margin:0 30px;
8 8
 
9 9
   &-img {
10
-    width: 350px;
11
-    height: 160px;
12
-    margin-right: 30px;
10
+    width:220px;
11
+height:176px;
12
+    // margin-right: 60px;
13 13
   }
14 14
 
15 15
   &-con {
16
-    width: 100%;
16
+    width:450px;
17 17
     display: flex;
18 18
     flex-direction: column;
19 19
     justify-content: space-between;

+ 11
- 10
src/pages/person/index.js Zobrazit soubor

@@ -5,7 +5,7 @@ import { ROLE_CODE } from '@constants/user'
5 5
 import { queryUserInfo, doUserSignin } from '@services/user'
6 6
 import { connect } from '@tarojs/redux'
7 7
 import Notice from '@components/Notice'
8
-import { getCodeMessage, putRegisterConsultant} from '@services/getCode'
8
+import { getCodeMessage, putRegisterConsultant } from '@services/getCode'
9 9
 import * as actions from '@actions/user'
10 10
 import Authorize from '@components/authorize'
11 11
 
@@ -90,8 +90,8 @@ export default class Person extends Component {
90 90
       }
91 91
     }
92 92
     else {
93
-   
94
-    
93
+
94
+
95 95
       putRegisterConsultant().then(res => {
96 96
         // console.log("匹配成功,请退出小程序重新登录即可")
97 97
         Taro.showToast({
@@ -100,7 +100,8 @@ export default class Person extends Component {
100 100
       }).catch(err => {
101 101
         console.error(err)
102 102
         Taro.showToast({
103
-          title: "匹配失败,请联系相关管理人员"
103
+          title: "匹配失败,请联系相关管理人员",
104
+          icon: "none"
104 105
         })
105 106
       })
106 107
     }
@@ -157,7 +158,7 @@ export default class Person extends Component {
157 158
       <View className="person">
158 159
         <Notice></Notice>
159 160
         <View className="info">
160
-          <Image className="bg" src={require('@assets/mine/background.png')} mode='widthFix'></Image>
161
+          <Image className="bg" src={require('@assets/mine/background.png')} mode='aspectFill'></Image>
161 162
           <View className="content">
162 163
             <View className="info-block">
163 164
               <View className="avatar" onClick={this.goPersonDetail}>
@@ -169,14 +170,14 @@ export default class Person extends Component {
169 170
                 <View className="info-text__name">{user.name ? user.name : user.nickname}</View>
170 171
                 <View className="info-text__intro">积分 {user.points || 0}</View>
171 172
               </View>
172
-              {
173
+              {/* {
173 174
                 user.personType != 'customer' && (
174 175
                   <Navigator url={`/pages/person/spread/index`} className="tuiguang">
175 176
                     <Image style="width:40px;height:36px" src={require('@assets/mine/tuiguangma.png')} ></Image>
176 177
                     <View className="info-text__intro" style="margin:4px 0 0 4px">推广码</View>
177 178
                   </Navigator>
178 179
                 )
179
-              }
180
+              } */}
180 181
             </View>
181 182
             {/* <View
182 183
               className={`sign__btn ${user.havaSigned && 'signed'}`}
@@ -195,16 +196,16 @@ export default class Person extends Component {
195 196
         <View>
196 197
           {
197 198
             menus.map((group, ginx) => {
198
-           
199
+
199 200
               return (
200 201
                 <Block key={`grp-${ginx}`}>
201 202
                   {
202 203
                     group.map((menu, inx) => {
203 204
                       return (
204
-                        <View onClick={() => this.redirectTo(menu.url)} className="menu-item-con" key={`menu-${inx}`}>
205
+                        <View onClick={() => this.redirectTo(menu.url)} style={{ color: menu.style }} className="menu-item-con" key={`menu-${inx}`}>
205 206
                           <Image className="left-icon" src={menu.icon} ></Image>
206 207
                           <View className="menu-maintext">
207
-                            <Text className="menu-name">{menu.name}</Text>
208
+                            <Text className="menu-name" style={ menu.style }>{menu.name}</Text>
208 209
                             <Text className="right-icon"></Text>
209 210
                           </View>
210 211
                         </View>

+ 6
- 1
src/pages/person/menus.js Zobrazit soubor

@@ -38,13 +38,15 @@ const menus = [
38 38
       icon: icons.homepage,
39 39
       extends: undefined,
40 40
       userTypes: [CONSULTANT],
41
+      style: '',
41 42
     },
42 43
     {
43 44
       name: '盘客工具',
44 45
       url: '/pages/person/customerAnalysis/index',
45 46
       icon: icons.homepage,
46 47
       extends: undefined,
47
-      userTypes: [CUSTOMER, CONSULTANT, ESTATE_AGENT, CHANNEL_AGENT],
48
+      userTypes: [ CONSULTANT],
49
+      style: '',
48 50
     },
49 51
     // {
50 52
     //   name: '成为经纪人',
@@ -59,6 +61,7 @@ const menus = [
59 61
       icon: icons.recommend,
60 62
       extends: undefined,
61 63
       userTypes: [CUSTOMER,ESTATE_AGENT, CHANNEL_AGENT],
64
+      style: '',
62 65
     },
63 66
     // {
64 67
     //   name: '发展经纪人',
@@ -149,12 +152,14 @@ const menus = [
149 152
       icon: icons.development,
150 153
       extends: undefined,
151 154
       userTypes: [CUSTOMER,ESTATE_AGENT],
155
+      style: {color:'#888888'},
152 156
     },
153 157
     {
154 158
       name: '成为置业顾问',
155 159
       url: '',
156 160
       icon: icons.consultant,
157 161
       extends: undefined,
162
+      style: {color:'#888888'},
158 163
       userTypes: [CUSTOMER,ESTATE_AGENT],
159 164
     },
160 165
 

+ 3
- 1
src/pages/project/banner/index.js Zobrazit soubor

@@ -21,7 +21,7 @@ export default class SwiperBanner extends Component {
21 21
  
22 22
     const current = event.detail.current
23 23
    
24
-    this.props.onChange(current)
24
+    this.props.onChange|| this.props.onChange(current)
25 25
   
26 26
    
27 27
   
@@ -32,6 +32,8 @@ export default class SwiperBanner extends Component {
32 32
   }
33 33
   render () {
34 34
     const { list, style, indicatorDots, current } = this.props
35
+
36
+    console.log('banner',list)
35 37
     return (
36 38
       <View className='home-banner' style={style}>
37 39
         <Swiper

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

@@ -1,5 +1,5 @@
1 1
 import Taro, { Component } from '@tarojs/taro';
2
-import { View, Video } from '@tarojs/components'
2
+import { View, Video, SwiperItem, Swiper } from '@tarojs/components'
3 3
 import './index.scss'
4 4
 import Banner from '../banner'
5 5
 import HelpGroupBanner from '../swiper'
@@ -55,10 +55,12 @@ export default class Index extends Component {
55 55
     current: 1,
56 56
     btnstate: 1,// 1显示视频 0显示图片
57 57
     albumCurrent: 0,
58
+    videoPlayShow: 'flex',
58 59
   }
59 60
 
60 61
   componentWillMount () {
61 62
     // const { id = '78c3dd489791dc1d29472fa344b08c45' } = this.$router.params
63
+
62 64
     ready.queue(() => {
63 65
       const router = Taro.getStorageSync('router')
64 66
       const id = this.$router.params.id || router.query.id
@@ -97,6 +99,7 @@ export default class Index extends Component {
97 99
 
98 100
   loadHelpGroupList () {
99 101
     const { buildingId } = this.state
102
+
100 103
     queryHelpGroup({ buildingId: buildingId }).then(res => {
101 104
       console.log(res, "buildingId")
102 105
       const helpList = []
@@ -574,28 +577,28 @@ export default class Index extends Component {
574 577
 
575 578
     const { albumCurrent } = this.state
576 579
 
577
-  
578
-  
580
+
581
+
579 582
     return (
580 583
 
581
-   
584
+
582 585
       <Block>
583
-        { list.length > 0 &&
586
+        {list.length > 0 &&
584 587
           (
585 588
             <View className='photos__type'>
586 589
               <View className='photos__type__title'>相册</View>
587 590
               <ScrollView scrollX>
588 591
                 <View className='photos__type__content' onClick={this.toViewAlbum}>
589
-          
592
+
590 593
                   <View className="around-tab">
591 594
                     {list.map((item, index) => {
592
-                      const { apartmentName} = item || {}
593
-                      const  buildingImgList = item.buildingImgList
594
-                     
595
-                    
595
+                      const { apartmentName } = item || {}
596
+                      const buildingImgList = item.buildingImgList
597
+
598
+
596 599
                       return (
597 600
                         <View
598
-                          style={{ marginRight: '8px' }}                  
601
+                          style={{ marginRight: '8px' }}
599 602
                         >
600 603
                           {/* {`${label}(${num})`} */}
601 604
                           <View>
@@ -703,7 +706,7 @@ export default class Index extends Component {
703 706
             <View className="title">助力活动</View>
704 707
             <View style={{ position: 'relative' }}>
705 708
               <HelpGroupBanner
706
-                style={{ height: '130px' }}
709
+                style={{ height: '250rpx' }}
707 710
                 indicatorDots={false}
708 711
                 list={helpList}
709 712
                 onClick={this.handleHelpClick}>
@@ -731,11 +734,12 @@ export default class Index extends Component {
731 734
       <Block>
732 735
         {groupList.length > 0 &&
733 736
           <View className="activity">
737
+            {console.log(groupList, '----groupList-----')}
734 738
             <View className="title">拼团活动</View>
735 739
             <View
736 740
               style={{ position: 'relative' }}>
737 741
               <HelpGroupBanner
738
-                style={{ height: '130px' }}
742
+                style={{ height: '250rpx' }}
739 743
                 indicatorDots={false}
740 744
                 list={groupList}
741 745
                 onClick={this.handleGroupClick}>
@@ -796,31 +800,69 @@ export default class Index extends Component {
796 800
     )
797 801
   }
798 802
   renderActivities () {
803
+    // renderGroup () {
804
+    //   const { groupList } = this.state
805
+    //   return (
806
+    //     <Block>
807
+    //       {groupList.length > 0 &&
808
+    //         <View className="activity">
809
+    //           <View className="title">拼团活动</View>
810
+    //           <View
811
+    //             style={{ position: 'relative' }}>
812
+    //             <HelpGroupBanner
813
+    //               style={{ height: '250rpx' }}
814
+    //               indicatorDots={false}
815
+    //               list={groupList}
816
+    //               onClick={this.handleGroupClick}>
817
+    //             </HelpGroupBanner>
818
+    //           </View>
819
+    //         </View>
820
+    //       }
821
+    //     </Block>
822
+    //   )
823
+    // }
799 824
     const { activityList } = this.state
800 825
     return (
801 826
       <Block>
802 827
         {
803 828
           activityList.length > 0 && (
804
-            <View className="house-type">
805
-              <View className="section-head">
806
-                <Text className="section-head__title">热门活动</Text>
807
-                <View className="section-head__more" onClick={this.handleActivityMoreClick}>
808
-                  更多活动<Text className="iconfont icon-more"></Text>
809
-                </View>
829
+            <View className="activity">
830
+              {console.log(activityList, '----activityList-----')}
831
+              <View className="title">热门活动</View>
832
+              <View
833
+                style={{ position: 'relative' }}>
834
+                <HelpGroupBanner
835
+                  style={{ height: '250rpx' }}
836
+                  activityStyle={{ height: '334rpx' }}
837
+                  indicatorDots={false}
838
+                  list={activityList}
839
+                  type='activity'
840
+                // onClick={this.handleGroupClick}
841
+                >
842
+                </HelpGroupBanner>
843
+
810 844
               </View>
811
-              <ScrollView scrollX>
812
-                <View className="house-type__list" style="margin-top:10px">
813
-                  {
814
-                    activityList.map(item => (
815
-                      <View className="news-item" key={item.dynamicId} onClick={this.handActivityItemClick.bind(this, item.dynamicId)}>
816
-                        <Image mode="aspectFill" src={getThumbnail(item.imgUrl)} className="news-item__pic"></Image>
817
-                        <View className="news-item__title">{item.title}</View>
818
-                      </View>
819
-                    ))
820
-                  }
821
-                </View>
822
-              </ScrollView>
823 845
             </View>
846
+            // <View className="house-type">
847
+            //   <View className="section-head">
848
+            //     <Text className="section-head__title">热门活动</Text>
849
+            //     <View className="section-head__more" onClick={this.handleActivityMoreClick}>
850
+            //       更多活动<Text className="iconfont icon-more"></Text>
851
+            //     </View>
852
+            //   </View>
853
+            //   <ScrollView scrollX>
854
+            //     <View className="house-type__list" style="margin-top:10px">
855
+            //       {
856
+            //         activityList.map(item => (
857
+            //           <View className="news-item" key={item.dynamicId} onClick={this.handActivityItemClick.bind(this, item.dynamicId)}>
858
+            //             <Image mode="widthFix" src={getThumbnail(item.imgUrl)} className="news-item__pic"></Image>
859
+            //             <View className="news-item__title">{item.title}</View>
860
+            //           </View>
861
+            //         ))
862
+            //       }
863
+            //     </View>
864
+            //   </ScrollView>
865
+            // </View>
824 866
           )
825 867
         }
826 868
       </Block>
@@ -857,9 +899,39 @@ export default class Index extends Component {
857 899
       </Block>
858 900
     )
859 901
   }
902
+  plagVideo () {
903
+    let videoContext = wx.createVideoContext('myVideo')
904
+    console.log()
905
+    // this.setState({
906
+    //   videoPlayShow: 'none'
907
+    // })
908
+    videoContext.play()
909
+  }
910
+
911
+  onPlay () {
912
+    
913
+    console.log()
914
+    this.setState({
915
+      videoPlayShow: 'none'
916
+    })
917
+   
918
+  }
919
+
920
+  onPause () {
921
+   
922
+    this.setState({
923
+      videoPlayShow: 'flex'
924
+    })
925
+  
926
+  }
860 927
 
861 928
   renderVideo () {
929
+    const {videoPlayShow}  = this.state
862 930
     const { projectDetail } = this.props
931
+    const { videoImage } = projectDetail
932
+    const imgSrc = videoImage[0].url
933
+
934
+
863 935
     return (
864 936
       <View
865 937
         className="pro__banner"
@@ -868,21 +940,39 @@ export default class Index extends Component {
868 940
         <Video
869 941
           src={projectDetail.videoUrl}
870 942
           // src='http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400'
871
-          poster={getThumbnail(projectDetail.videoImage)}
943
+          poster={getThumbnail(imgSrc)}
872 944
           // poster='http://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg'
873 945
           style={{
874
-            height: '278rpx',
875
-            width: '375rpx'
946
+            height: '600rpx',
947
+            width: '750rpx'
876 948
           }}
877
-          controls={true}
878
-          autoplay={false}
879
-        
880
-          initialTime='0'
881
-          id='video'
882
-          loop={false}
883
-          muted={false}
949
+          id='myVideo'
950
+          controls={false}
951
+          // autoplay={false}
952
+
953
+          // initialTime='0'
954
+         
955
+          // loop={false}
956
+          // muted={false}
884 957
           show-mute-btn='true'
958
+          onPlay={this.onPlay}
959
+          show-center-play-btn='false'
960
+          onPause= {this.onPause}
961
+          // show-center-play-btn= 'f'
885 962
         ></Video>
963
+        <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow  }}>
964
+          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>
965
+        </Button>
966
+
967
+        {/* <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow }}>
968
+          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>style={{ display: posterShow }}
969
+        </Button>
970
+
971
+        <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow }}>
972
+          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>
973
+        </Button> */}
974
+
975
+      
886 976
       </View>
887 977
     )
888 978
   }
@@ -918,7 +1008,7 @@ export default class Index extends Component {
918 1008
                     // current
919 1009
                     onChange={this.changeCurrent.bind(this)}
920 1010
                     style={{
921
-                      height: '278px'
1011
+                      height: '600rpx'
922 1012
                     }}
923 1013
 
924 1014
                   ></Banner>
@@ -928,7 +1018,7 @@ export default class Index extends Component {
928 1018
 
929 1019
               {btnstate === 1 && projectDetail.videoUrl != null && this.renderVideo()}
930 1020
 
931
-        
1021
+
932 1022
               {btnstate === 1 && projectDetail.videoUrl != null && (<View className='media-btn'>
933 1023
                 <View className='video-btn' style={{ background: ' rgba(187, 156, 121, 1)', color: 'rgba(255, 255, 255, 1)' }} >视频</View>
934 1024
                 <View className='img-btn' onClick={() => this.setState({ btnstate: 0 })}>图片</View>

+ 20
- 5
src/pages/project/detail/index.scss Zobrazit soubor

@@ -48,7 +48,7 @@
48 48
 
49 49
 
50 50
   .wrap {
51
-    padding-top: 556px;
51
+    padding-top: 580px;
52 52
     background: transparent;
53 53
   }
54 54
 
@@ -116,11 +116,11 @@
116 116
     width: 320px;
117 117
     float: left;
118 118
     margin-bottom: 30px;
119
-    margin-right: 20px;
119
+    margin-right: 36px;
120 120
 
121 121
     &__pic {
122
-      width: 320px;
123
-      height: 240px;
122
+      width: 336px;
123
+      height: 268px;
124 124
       border-radius: 10px;
125 125
       background-color: #eee;
126 126
     }
@@ -793,13 +793,28 @@
793 793
     right: 5%;
794 794
     bottom: 30px;
795 795
   }
796
+
797
+  &-btn {
798
+    width: 110px;
799
+    height: 78px;
800
+    position: absolute;
801
+    top: 242px;
802
+    left: 320px;
803
+    padding: 0;
804
+    background: none;
805
+    &-img{
806
+      width: 110px;
807
+      height: 78px;
808
+    }
809
+  }
810
+
796 811
 }
797 812
 
798 813
 // 户型
799 814
 .house-type {
800 815
   position: relative;
801 816
   width: 100%;
802
-  padding: 40px;
817
+  padding: 30px;
803 818
   background: #fff;
804 819
   margin: 20px 0;
805 820
 

+ 57
- 162
src/pages/project/index.js Zobrazit soubor

@@ -47,7 +47,7 @@ export default class Index extends Component {
47 47
     vertical: true
48 48
   }
49 49
 
50
-  componentWillMount() {
50
+  componentWillMount () {
51 51
     this.qqmapsdk = new QQMapWX({
52 52
       key: 'TIIBZ-ZJG33-52T3L-Y3X4Q-NWKLV-KUB3B'
53 53
     })
@@ -70,7 +70,7 @@ export default class Index extends Component {
70 70
     })
71 71
   }
72 72
 
73
-  componentDidShow() {
73
+  componentDidShow () {
74 74
     if (this.props.curCity.id) {
75 75
       ready.queue(() => {
76 76
         this.loadData()
@@ -78,16 +78,24 @@ export default class Index extends Component {
78 78
     }
79 79
   }
80 80
 
81
-  componentWillUnmount() {
81
+  componentWillUnmount () {
82 82
     const { recordId } = this.state
83 83
     recordId && updatePoint(recordId)
84 84
   }
85 85
 
86
-  getLocation() {
87
-    const { cityList } = this.props
86
+  getLocation () {
87
+    const { cityList, userInfo: { person: { org } } } = this.props
88
+    let defaultCity = cityList.filter(item => {
89
+      return item.id == org.defaultCityId
90
+    })
91
+
92
+
93
+    console.log('-----defaultCity-->', defaultCity)
88 94
     Taro.getLocation().then(location => {
89 95
       Taro.setStorageSync('lat', location.latitude)
90 96
       Taro.setStorageSync('lon', location.longitude)
97
+
98
+
91 99
       this.qqmapsdk.reverseGeocoder({
92 100
         location,
93 101
         success: (res) => {
@@ -95,23 +103,32 @@ export default class Index extends Component {
95 103
           let city = res.result.address_component.city
96 104
 
97 105
           console.log('-----city-->', city)
106
+          console.log('-----cityList-->', cityList)
107
+
98 108
 
99 109
           let curCity = cityList.filter(item => {
100 110
             return item.name == city
101 111
           })
112
+
113
+
114
+
115
+
102 116
           Taro.showToast({
103 117
             title: `当前定位城市:${(curCity[0] || {}).name}`,
104 118
             icon: 'none',
105 119
           })
106
-          this.updateCity(curCity[0] || cityList[0])
120
+
121
+          this.updateCity(curCity[0] || defaultCity[0])
107 122
         },
108 123
         fail: (error) => {
124
+
125
+
109 126
           Taro.showToast({
110 127
             title: `定位城市错误...`,
111 128
             icon: 'none',
112 129
           })
113 130
           console.error(err)
114
-          this.updateCity(cityList[0])
131
+          this.updateCity(defaultCity[0])
115 132
         },
116 133
       })
117 134
     }).catch(err => {
@@ -127,140 +144,19 @@ export default class Index extends Component {
127 144
         })
128 145
       }
129 146
       console.error(err)
130
-      this.updateCity(cityList[0])
147
+      this.updateCity(defaultCity[0])
131 148
     })
132 149
   }
133 150
 
134
-  updateCity(payload) {
135
-    const NanJing = {
136
-      citycode: "025",
137
-      id: 320100,
138
-      initial: "N",
139
-      lat: "32.041544",
140
-      leveltype: 2,
141
-      lng: "118.767413",
142
-      name: "南京市",
143
-      parentid: 320000,
144
-      pinyin: "Nanjing",
145
-      shortname: "南京",
146
-      status: 1,
147
-      zipcode: "320100"
148
-    }
149
-
150
-    const GuiYang = {
151
-      citycode: "0851",
152
-      id: 520100,
153
-      initial: "G",
154
-      lat: "26.578343",
155
-      leveltype: 2,
156
-      lng: "106.713478",
157
-      name: "贵阳市",
158
-      parentid: 520000,
159
-      pinyin: "Nanjing",
160
-      shortname: "贵阳",
161
-      status: 1,
162
-      zipcode: "520100"
163
-    }
164
-    const LiuZhou = {
165
-      citycode: "0772",
166
-      id: 450200,
167
-      initial: "L",
168
-      lat: "24.314617",
169
-      leveltype: 2,
170
-      lng: "109.411703",
171
-      name: "柳州市",
172
-      parentid: 450000,
173
-      pinyin: "Liuzhou",
174
-      shortname: "柳州",
175
-      status: "1",
176
-      zipcode: "545001",
177
-    }
178
-    const KunMing = {
179
-      citycode: "0871",
180
-      id: 530100,
181
-      initial: "K",
182
-      lat: "25.040609",
183
-      leveltype: 2,
184
-      lng: "102.712251",
185
-      name: "昆明市",
186
-      parentid: 530000,
187
-      pinyin: "Kunming",
188
-      shortname: "昆明",
189
-      status: "1",
190
-      zipcode: "650500",
191
-    }
192
-    const HuZhou = {
193
-      citycode: "0572",
194
-      id: 330500,
195
-      initial: "H",
196
-      lat: "30.867198",
197
-      leveltype: 2,
198
-      lng: "120.102398",
199
-      name: "湖州市",
200
-      parentid: 330000,
201
-      pinyin: "Huzhou",
202
-      shortname: "湖州",
203
-      status: "1",
204
-      zipcode: "313000",
205
-    }
206
-
207
-
208
-    const appId = accountInfo.miniProgram.appId;
209
-    let params;
210
-
211
-    switch (appId) {
212
-      // 知与行
213
-      case 'wxd6f47a9bb3052175':
214
-        params = NanJing;
215
-        break;
216
-      // 橙蕉
217
-      case 'wxe3b1e683853800b5':
218
-        params = GuiYang;
219
-        break;
220
-      // 香颂
221
-      case 'wx09cd665abf378db7':
222
-        params = LiuZhou;
223
-        break;
224
-      // 诚通公园里
225
-      case 'wx7c72475f7f354d17':
226
-        params = HuZhou;
227
-        break;
228
-      // 北京城建
229
-      case 'wx766cfc5d8429c927':
230
-        params = NanJing;
231
-        break;
232
-      // 云南昊居
233
-      case 'wx03aca9d7d9b0b7f1':
234
-        params = KunMing;
235
-        break;
236
-      // 奥园金基
237
-      case 'wx7183d7d918a426d3':
238
-        params = NanJing;
239
-        break;
240
-      // 南京楼市
241
-      case 'wxb2175cd2ead31a60':
242
-        params = NanJing;
243
-        break;
244
-      // 融创
245
-      case 'wxe9e01aa4a3568f52':
246
-        params = NanJing;
247
-        break;
248
-      // 尾房宝
249
-      case 'wx755faa4b3ec76cd3':
250
-        params = NanJing;
251
-        break;
151
+  updateCity (payload) {
252 152
 
253
-      default:
254
-        params = payload;
255
-        break;
256
-    }
257 153
 
258
-    this.props.dispatchCitySelected(params).then(res => {
154
+    this.props.dispatchCitySelected(payload).then(res => {
259 155
       this.loadData()
260 156
     })
261 157
   }
262 158
 
263
-  loadData() {
159
+  loadData () {
264 160
     this.loadBannerList()
265 161
     this.loadHelpGroupList()
266 162
     this.loadNewsList()
@@ -268,7 +164,7 @@ export default class Index extends Component {
268 164
     this.loadList()
269 165
   }
270 166
 
271
-  loadOpenScreenBanner() {
167
+  loadOpenScreenBanner () {
272 168
     const payload = {
273 169
       // showPosition: 'index'
274 170
     }
@@ -286,7 +182,7 @@ export default class Index extends Component {
286 182
       })
287 183
     })
288 184
   }
289
-  loadBannerList() {
185
+  loadBannerList () {
290 186
     const { curCity } = this.props
291 187
     // 获取首页banner
292 188
     const payload = {
@@ -308,7 +204,7 @@ export default class Index extends Component {
308 204
     })
309 205
   }
310 206
 
311
-  loadHelpGroupList() {
207
+  loadHelpGroupList () {
312 208
     queryHelpGroup({ cityId: this.props.curCity.id, buildingId: '' }).then(res => {
313 209
       console.log(res, "res")
314 210
       this.setState({
@@ -319,7 +215,7 @@ export default class Index extends Component {
319 215
   }
320 216
 
321 217
 
322
-  loadNewsList() {
218
+  loadNewsList () {
323 219
     const { curCity } = this.props
324 220
     const payload = {
325 221
       pageNumber: 1,
@@ -335,7 +231,7 @@ export default class Index extends Component {
335 231
     })
336 232
   }
337 233
 
338
-  loadActivityList() {
234
+  loadActivityList () {
339 235
     const { curCity } = this.props
340 236
     const payload = {
341 237
       pageNumber: 1,
@@ -353,7 +249,7 @@ export default class Index extends Component {
353 249
     })
354 250
   }
355 251
 
356
-  loadList() {
252
+  loadList () {
357 253
     const { keywords } = this.state
358 254
     const { curCity } = this.props
359 255
 
@@ -405,7 +301,7 @@ export default class Index extends Component {
405 301
     }
406 302
   }
407 303
 
408
-  onViewDetail(item) {
304
+  onViewDetail (item) {
409 305
     Taro.navigateTo({
410 306
       url: `/pages/project/detail/index?id=${item.buildingId}`
411 307
     })
@@ -416,7 +312,7 @@ export default class Index extends Component {
416 312
     this.redirectTo(item)
417 313
   }
418 314
 
419
-  redirectTo({ targetId, contentType, buildingId } = {}) {
315
+  redirectTo ({ targetId, contentType, buildingId } = {}) {
420 316
     switch (contentType) {
421 317
       // 项目
422 318
       case 'project':
@@ -461,7 +357,7 @@ export default class Index extends Component {
461 357
     }
462 358
   }
463 359
 
464
-  handleHelpGroupClick(item) {
360
+  handleHelpGroupClick (item) {
465 361
     if (item.type == 1) {
466 362
       Taro.navigateTo({
467 363
         url: '/pages/activity/detail/assistance?id=' + item.activityId
@@ -473,7 +369,7 @@ export default class Index extends Component {
473 369
     }
474 370
   }
475 371
 
476
-  handleMaskClose() {
372
+  handleMaskClose () {
477 373
     this.setState({
478 374
       maskVisible: false
479 375
     })
@@ -498,23 +394,23 @@ export default class Index extends Component {
498 394
     })
499 395
   }
500 396
 
501
-  handleMaskBannerClick(data) {
397
+  handleMaskBannerClick (data) {
502 398
     this.redirectTo(data)
503 399
   }
504 400
 
505
-  handleLocationClick() {
401
+  handleLocationClick () {
506 402
     Taro.navigateTo({
507 403
       url: `/pages/city/index`
508 404
     })
509 405
   }
510 406
 
511
-  handleToHouseList() {
407
+  handleToHouseList () {
512 408
     Taro.navigateTo({
513 409
       url: '/pages/project/list/index'
514 410
     })
515 411
   }
516 412
 
517
-  handleProItemClick() {
413
+  handleProItemClick () {
518 414
     Taro.navigateTo({
519 415
       url: '/pages/project/list/index'
520 416
     })
@@ -524,11 +420,11 @@ export default class Index extends Component {
524 420
   // CHANNEL_AGENT: 'channel agent', // 渠道经纪人
525 421
   // DRIFT: 'drift', // 游客
526 422
   // CUSTOMER: 'customer' // 客户
527
-  toRecomonedPage() {
423
+  toRecomonedPage () {
528 424
     const {
529 425
       userInfo: { person: { personType } }
530 426
     } = this.props
531
-    if (personType === ROLE_CODE['DRIFT'] ||  !personType) {
427
+    if (personType === ROLE_CODE['DRIFT'] || !personType) {
532 428
       // 游客或者客户 区别是否有电话
533 429
       Taro.navigateTo({
534 430
         url: `/pages/agent/become/index`
@@ -540,17 +436,17 @@ export default class Index extends Component {
540 436
       console.log(this.props.curCity.id, "this.props.curCity.id")
541 437
     }
542 438
   }
543
-  toMapHouse() {
439
+  toMapHouse () {
544 440
     Taro.navigateTo({
545 441
       url: `/pages/project/map/index`
546 442
     })
547 443
   }
548 444
 
549 445
 
550
-  renderProjectList() {
446
+  renderProjectList () {
551 447
     const { proList: { records } } = this.props
552 448
     const { helpGroupList } = this.state
553
-    console.log(records,'proList')
449
+    console.log(records, 'proList')
554 450
     return (
555 451
       <Block>
556 452
         {
@@ -580,18 +476,18 @@ export default class Index extends Component {
580 476
           )
581 477
         }
582 478
 
583
-        {console.log(helpGroupList,'helpGroupList')}
479
+        {console.log(helpGroupList, 'helpGroupList')}
584 480
         {
585 481
           helpGroupList.length > 0 &&
586 482
           <View
587 483
             style={{
588
-              position: 'relative', padding: '20px 20px 0 20px'
484
+              position: 'relative', padding: '20px 15px 0 15px'
589 485
             }}>
590 486
 
591 487
             <HelpGroupBanner
592 488
               style={{
593 489
                 borderRadius: '6px',
594
-                height: '88px'
490
+                height: '230rpx'
595 491
               }}
596 492
               indicatorDots={false}
597 493
               list={helpGroupList}
@@ -605,12 +501,11 @@ export default class Index extends Component {
605 501
     )
606 502
   }
607 503
 
608
-  renderMaskBanner() {
504
+  renderMaskBanner () {
609 505
     const { maskBanner } = this.state
610 506
     return (
611 507
       <View className="mask-banner">
612 508
         <View className="content">
613
-          {console.log(maskBanner,'maskBanner')}
614 509
           <Image
615 510
             mode="widthFix"
616 511
             className="img"
@@ -624,7 +519,7 @@ export default class Index extends Component {
624 519
   }
625 520
 
626 521
 
627
-  render() {
522
+  render () {
628 523
     const { curCity } = this.props
629 524
     const { newsList } = this.state
630 525
     const { userInfo: { person: { personType } } } = this.props
@@ -640,20 +535,20 @@ export default class Index extends Component {
640 535
               <View className="section section-top" style={{ marginTop: 0, paddingTop: 0 }}>
641 536
                 <View
642 537
                   style={{
643
-                    height: '250px', position: 'relative'
538
+                    height: '600rpx', position: 'relative'
644 539
                   }}>
645 540
                   {
646 541
                     this.state.visBanner && (
647 542
                       <Banner
648 543
                         style={{
649
-                          height: '250px'
544
+                          height: '600rpx'
650 545
                         }}
651 546
                         indicatorDots={true}
652 547
                         list={this.state.bannerList}
653 548
                         onClick={this.handleBannerClick}
654
-                        onChange={()=>(1)}
655
-                        >
656
-                    
549
+                        onChange={() => (1)}
550
+                      >
551
+
657 552
                       </Banner>
658 553
                     )
659 554
                   }

+ 12
- 8
src/pages/project/index.scss Zobrazit soubor

@@ -79,7 +79,7 @@
79 79
 
80 80
 .section {
81 81
   background: white;
82
-  padding: 20px 35px;
82
+  padding: 30px;
83 83
 
84 84
   &-head {
85 85
     @extend .flex;
@@ -140,7 +140,7 @@
140 140
 
141 141
 .sectionn-customer {
142 142
   margin-top: 0;
143
-
143
+  
144 144
   .section-content {
145 145
     display: flex;
146 146
     justify-content: space-between;
@@ -148,15 +148,19 @@
148 148
     background:rgba(248,240,237,1);
149 149
     box-shadow:0px 2px 4px 0px rgba(187,156,121,0.22);
150 150
     border-radius:12px;
151
-    padding: 0px 20px;
151
+    width:690px;
152
+height:172px;
153
+    // padding: 0px 20px;
152 154
 
153 155
     .section-content_img{
154
-      width: 204px;
155
-      height: 132px;
156
+      width: 124px;
157
+      height: 138px;
158
+      margin-right: 20px;
156 159
     }
157 160
     .logo_img{
158
-      width:108px;
159
-      height:88px;
161
+      width:130px;
162
+      height:106px;
163
+      margin-left: 20px;
160 164
     }
161 165
     &_title {
162 166
       display: flex;
@@ -386,7 +390,7 @@
386 390
 .houses {
387 391
   box-shadow:0px 2px 12px 2px rgba(29,29,29,0.09);
388 392
   background: white;
389
-  padding: 30px 40px 20px 40px;
393
+  padding: 30px 30px 20px 30px;
390 394
   // .section-content{
391 395
   //   .item:last-of-type{
392 396
   //     border:none;

+ 2
- 2
src/pages/project/item/index.scss Zobrazit soubor

@@ -15,8 +15,8 @@
15 15
     position: relative;
16 16
     .item__img {
17 17
       width: 100%;
18
-      height: 332px;
19
-      border-radius: 20px;
18
+      height:388px;
19
+      border-radius: 12px;
20 20
     }
21 21
     .item__status{
22 22
       position: absolute;

+ 20
- 11
src/pages/project/swiper/index.js Zobrazit soubor

@@ -1,5 +1,5 @@
1 1
 import Taro, { Component } from '@tarojs/taro'
2
-import { View, Swiper, SwiperItem, Image } from '@tarojs/components'
2
+import { View, Swiper, SwiperItem, Image, Block } from '@tarojs/components'
3 3
 // import { cdn } from '@constants/api'
4 4
 import './index.scss'
5 5
 import emptyImg from '@assets/empty.png'
@@ -12,6 +12,10 @@ export default class SwiperBanner extends Component {
12 12
     style: {
13 13
       height: '200px'
14 14
     },
15
+    type:'',
16
+    // activityStyle: {
17
+    //   height: '200px'
18
+    // },
15 19
     onClick: function () { }
16 20
   }
17 21
 
@@ -19,10 +23,12 @@ export default class SwiperBanner extends Component {
19 23
     this.props.onClick(item)
20 24
   }
21 25
   render () {
22
-    const { list, style, indicatorDots, current } = this.props
26
+    const { list, style, indicatorDots, current, activityStyle,type } = this.props
27
+
28
+    const styles = activityStyle ? activityStyle : style
23 29
     return (
24
-      <View className='home-banner' style={style}>
25
-        {console.log(this.props, '---list---')}
30
+      <View className='home-banner' style={styles}>
31
+
26 32
         <Swiper
27 33
           className='home-banner__swiper'
28 34
           circular
@@ -36,13 +42,16 @@ export default class SwiperBanner extends Component {
36 42
               key={index}
37 43
               onClick={this.onBannerClick.bind(this, item)}
38 44
               className='home-banner__swiper-item'
39
-            >  {console.log(item, '---item1111---')}
40
-              <Image
41
-                mode="aspectFill"
42
-                style={style}
43
-                className='home-banner__swiper-item-img'
44
-                src={getThumbnail(item.bannerListImg || item.image || item.url || item.img || emptyImg)}
45
-              />
45
+            >
46
+              <View style={{ display: 'block' }}>
47
+                <Image
48
+                  mode="aspectFill"
49
+                  style={style}
50
+                  className='home-banner__swiper-item-img'
51
+                  src={getThumbnail(item.bannerListImg || item.image || item.url || item.img || item.imgUrl || emptyImg)}
52
+                />
53
+                {type=='activity' && <View className='home-banner__swiper-item__title'> {item.title}</View>}
54
+              </View>
46 55
             </SwiperItem>
47 56
           ))}
48 57
         </Swiper>

+ 33
- 3
src/pages/project/swiper/index.scss Zobrazit soubor

@@ -1,23 +1,53 @@
1
+@import "@styles/mixins.scss";
1 2
 @import "@styles/theme.scss";
2 3
 .home-banner {
3 4
   width: 100%;
4 5
   overflow: hidden;
5
-  height: 250px;
6
+  height: 400px;
6 7
 }
7 8
 
8 9
 .home-banner__swiper {
9 10
   // NOTE RN 的 Swiper 需要有高度,否则会报错
11
+  // @extend .flex;
12
+  // align-items: flex-start;
10 13
   height: 100%;
11 14
   &-item {
15
+    width: 100%;
12 16
     display: flex;
13 17
     flex-direction: row;
14 18
     justify-content: center;
15 19
 
16 20
     &-img {
17
-      width: 100%;
18
-      height: 100%!important;
21
+      width: 750px;
22
+      // height: 100%!important;
19 23
       overflow: hidden;
20 24
       border-radius: 0;
21 25
     }
26
+    &__title {
27
+            margin:20px 30px 0;
28
+            font-size:28px;
29
+font-family:PingFangSC-Regular,PingFang SC;
30
+font-weight:400;
31
+color:rgba(0,0,0,1);
32
+line-height:30px;
33
+          }
34
+
22 35
   }
23 36
 }
37
+// &-item {
38
+//     width: 320px;
39
+//     float: left;
40
+//     margin-bottom: 30px;
41
+//     margin-right: 20px;
42
+
43
+//     &__pic {
44
+//       width: 320px;
45
+//       height: 256px;
46
+//       border-radius: 10px;
47
+//       background-color: #eee;
48
+//     }
49
+
50
+//     &__title {
51
+//       margin-top: 20px;
52
+//       font-size: $font-size-title;
53
+//     }

+ 7
- 6
src/pages/shop/index.scss Zobrazit soubor

@@ -28,19 +28,20 @@
28 28
 .user_box{
29 29
   height: 300px;
30 30
   background-color:$primary-color; 
31
-  padding: 20px;
31
+  padding: 20px 40px;
32 32
   .user_con{
33 33
   padding:20px 40px;
34 34
   background-color: #fff;
35 35
   border-radius: 12px;
36 36
   position: relative;
37
-  height: 260px;
37
+  height: 254px;
38 38
   .bg{
39 39
     position: absolute;
40 40
     top:0;
41 41
     left:0;
42
-    width: 100%;
43
-    height: 100%;
42
+
43
+    width: 670px;
44
+    height: 254px;
44 45
     border-radius: 12px;
45 46
 
46 47
   }
@@ -176,8 +177,8 @@
176 177
     border-radius:12px;
177 178
 
178 179
     &__img {
179
-      width: 100%;
180
-      height: 320px;
180
+      width:336px;
181
+      height:336px;
181 182
       border-radius: 12px 12px 0 0;
182 183
     }
183 184
     // &__exchange {

+ 1
- 1
src/pages/shop/record/index.js Zobrazit soubor

@@ -65,7 +65,7 @@ export default class Index extends Component {
65 65
           records.length === 0 ? <EmptyPage text="暂无兑换记录哦~" /> : (
66 66
             records.map(item => (
67 67
               <View className="list-item" key={item.recId} onClick={this.onViewDetail.bind(this, item)}>
68
-								<Image className="cardBg"  src={item.status==0?require('@assets/person/card2.png'):require('@assets/person/card1.png')}/>
68
+								<Image className="cardBg" mode="aspectFill"  src={item.status==0?require('@assets/person/card2.png'):require('@assets/person/card1.png')}/>
69 69
 								<View className="top">
70 70
 									<View className="title-time">兑换时间:{dayjs(item.createDate).format('YYYY-MM-DD HH:mm:ss')}</View>
71 71
 									<View className="title-state">{item.status==0?"未领取":"已领取"}</View>

+ 2
- 2
src/pages/shop/record/index.scss Zobrazit soubor

@@ -48,8 +48,8 @@
48 48
 			left: 0;
49 49
 			display:flex;
50 50
 			.botttom_img{
51
-				width:174px;
52
-				height:127px;
51
+				width:200px;
52
+				height:200px;
53 53
 				border-radius:7px;
54 54
 				margin-left: 27px;
55 55
 			}