张延森 5 years ago
parent
commit
321ef5e545

+ 4
- 4
config/prod.js View File

3
     NODE_ENV: '"production"'
3
     NODE_ENV: '"production"'
4
   },
4
   },
5
   defineConstants: {
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
     // HOST:  '"https://dev.jinchengjiaye.com"',
8
     // HOST:  '"https://dev.jinchengjiaye.com"',
9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
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
   weapp: {},
13
   weapp: {},
14
   h5: {}
14
   h5: {}

+ 1
- 1
project.config.json View File

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

+ 1
- 0
src/app.js View File

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

BIN
src/assets/play.png View File


+ 2
- 2
src/pages/activity/detail/assistance.js View File

516
             <View className="ass-page">
516
             <View className="ass-page">
517
               <Notice></Notice>
517
               <Notice></Notice>
518
               <View className="detail-banner">
518
               <View className="detail-banner">
519
-                <Image mode="widthFix" src={getThumbnail(detail.img)} className="detail-banner__img"></Image>
519
+                <Image mode="aspectFill" src={getThumbnail(detail.img)} className="detail-banner__img"></Image>
520
 
520
 
521
                 <View className="rest-time">
521
                 <View className="rest-time">
522
                   <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
522
                   <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
617
                 </View>
617
                 </View>
618
                 <View className="assistance-text"><Text className="acitivty-desc">活动说明</Text>-------------------------------------------------------------- </View>
618
                 <View className="assistance-text"><Text className="acitivty-desc">活动说明</Text>-------------------------------------------------------------- </View>
619
                 <View style="padding:0 40rpx">
619
                 <View style="padding:0 40rpx">
620
-                  <Image src={getThumbnail(detail.activityInstructions)} mode="widthFix" style="width:100%;margin-bottom:20px;"></Image>
620
+                  <Image src={getThumbnail(detail.activityInstructions)} mode="aspectFill" style="width:100%;margin-bottom:20px;"></Image>
621
                 </View>
621
                 </View>
622
 
622
 
623
               </ScrollView>
623
               </ScrollView>

+ 4
- 4
src/pages/activity/detail/index.js View File

318
             <View>
318
             <View>
319
               <Notice></Notice>
319
               <Notice></Notice>
320
               <View className="detail-banner">
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
               </View>
322
               </View>
323
               <ScrollView
323
               <ScrollView
324
                 scrollY
324
                 scrollY
369
                 {
369
                 {
370
                   posterShow && (
370
                   posterShow && (
371
                     <Button className='btn poster-btn' onClick={() => { this.togglePosterStatus(true) }}>
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
                       <Text className="txt">海报</Text>
373
                       <Text className="txt">海报</Text>
374
                     </Button>
374
                     </Button>
375
                   )
375
                   )
376
                 }
376
                 }
377
                 <Button className="btn share-btn" open-type="share">
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
                   <Text className="txt">分享</Text>
379
                   <Text className="txt">分享</Text>
380
                 </Button>
380
                 </Button>
381
 
381
 
407
                   <Text className="page-section__title">报名信息</Text>
407
                   <Text className="page-section__title">报名信息</Text>
408
                   <View className='page-content'>
408
                   <View className='page-content'>
409
                     <Input className='inputName' onInput={this.onInputText.bind(this)} type='text' placeholder='请输入姓名' />
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
                       <View className='picker'>
411
                       <View className='picker'>
412
                         <Text>参加人数</Text>
412
                         <Text>参加人数</Text>
413
                         <Text className='content'>{this.state.selectorChecked}</Text>
413
                         <Text className='content'>{this.state.selectorChecked}</Text>

+ 1
- 1
src/pages/activity/detail/index.scss View File

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

+ 1
- 1
src/pages/activity/item/index.scss View File

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

+ 1
- 1
src/pages/agent/become/index.js View File

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

+ 1
- 1
src/pages/agent/index.js View File

87
         {/* 生成海报 */}
87
         {/* 生成海报 */}
88
         {posterVisible && (<Poster data={posterData} toggle={this.toggleMakePosterModal}></Poster>)}
88
         {posterVisible && (<Poster data={posterData} toggle={this.toggleMakePosterModal}></Poster>)}
89
         <View className='page'>
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
           <View className='agent_info'>
91
           <View className='agent_info'>
92
             <Image src={agent.avatarurl} className='agent_avatar'></Image>
92
             <Image src={agent.avatarurl} className='agent_avatar'></Image>
93
             <View className='agent_info-center'>
93
             <View className='agent_info-center'>

+ 2
- 2
src/pages/agent/progress/index.js View File

150
       <View className='client__progress'>
150
       <View className='client__progress'>
151
         <View className='client__infor'>
151
         <View className='client__infor'>
152
           <View className='clieng__name'>{detail.name}</View>
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
           {/* <Image className='client__img' src={headImg}></Image> */}
155
           {/* <Image className='client__img' src={headImg}></Image> */}
156
         </View>
156
         </View>
157
         <View className='progress__infor'>
157
         <View className='progress__infor'>

+ 3
- 3
src/pages/card/index.js View File

432
             <ScrollView scrollY>
432
             <ScrollView scrollY>
433
               <View className='mycard__user__info'>
433
               <View className='mycard__user__info'>
434
                 <View className='mycard__user__imgox'>
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
                   <Image src={picture} mode="aspectFill" className='head__img'></Image>
436
                   <Image src={picture} mode="aspectFill" className='head__img'></Image>
437
                 </View>
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
               </View>
439
               </View>
440
 
440
 
441
               <View className='mycard__user__information'>
441
               <View className='mycard__user__information'>
464
 
464
 
465
                 </View>
465
                 </View>
466
                 <View className='row medal'>
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
                   <Text>金牌置业顾问</Text>
468
                   <Text>金牌置业顾问</Text>
469
                 </View>
469
                 </View>
470
 
470
 

+ 1
- 1
src/pages/im/msgItem/index.js View File

62
       )
62
       )
63
     }
63
     }
64
     if (row.messageType === 'image') {
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
     return (<View className="item__content-txt">{row.message}</View>)
68
     return (<View className="item__content-txt">{row.message}</View>)

+ 1
- 1
src/pages/news/item.js View File

14
     const { data } = this.props
14
     const { data } = this.props
15
     return (
15
     return (
16
       <View className="item" key={data.newsId} onClick={this.handleClick}>
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
         <View className="item-con">
18
         <View className="item-con">
19
           <View className="item-con__title">{data.newsName}</View>
19
           <View className="item-con__title">{data.newsName}</View>
20
           <View className="item-con__date">于{dayjs(data.createDate).format('YYYY-MM-DD  HH:mm:ss')}发布</View>
20
           <View className="item-con__date">于{dayjs(data.createDate).format('YYYY-MM-DD  HH:mm:ss')}发布</View>

+ 5
- 5
src/pages/news/item.scss View File

4
   display: flex;
4
   display: flex;
5
   justify-content: space-between;
5
   justify-content: space-between;
6
   align-items: center;
6
   align-items: center;
7
-	margin:0 30px;
7
+	// margin:0 30px;
8
 
8
 
9
   &-img {
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
   &-con {
15
   &-con {
16
-    width: 100%;
16
+    width:450px;
17
     display: flex;
17
     display: flex;
18
     flex-direction: column;
18
     flex-direction: column;
19
     justify-content: space-between;
19
     justify-content: space-between;

+ 11
- 10
src/pages/person/index.js View File

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

+ 6
- 1
src/pages/person/menus.js View File

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

+ 3
- 1
src/pages/project/banner/index.js View File

21
  
21
  
22
     const current = event.detail.current
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
   }
32
   }
33
   render () {
33
   render () {
34
     const { list, style, indicatorDots, current } = this.props
34
     const { list, style, indicatorDots, current } = this.props
35
+
36
+    console.log('banner',list)
35
     return (
37
     return (
36
       <View className='home-banner' style={style}>
38
       <View className='home-banner' style={style}>
37
         <Swiper
39
         <Swiper

+ 124
- 34
src/pages/project/detail/index.js View File

1
 import Taro, { Component } from '@tarojs/taro';
1
 import Taro, { Component } from '@tarojs/taro';
2
-import { View, Video } from '@tarojs/components'
2
+import { View, Video, SwiperItem, Swiper } from '@tarojs/components'
3
 import './index.scss'
3
 import './index.scss'
4
 import Banner from '../banner'
4
 import Banner from '../banner'
5
 import HelpGroupBanner from '../swiper'
5
 import HelpGroupBanner from '../swiper'
55
     current: 1,
55
     current: 1,
56
     btnstate: 1,// 1显示视频 0显示图片
56
     btnstate: 1,// 1显示视频 0显示图片
57
     albumCurrent: 0,
57
     albumCurrent: 0,
58
+    videoPlayShow: 'flex',
58
   }
59
   }
59
 
60
 
60
   componentWillMount() {
61
   componentWillMount() {
61
     // const { id = '78c3dd489791dc1d29472fa344b08c45' } = this.$router.params
62
     // const { id = '78c3dd489791dc1d29472fa344b08c45' } = this.$router.params
63
+
62
     ready.queue(() => {
64
     ready.queue(() => {
63
       const router = Taro.getStorageSync('router')
65
       const router = Taro.getStorageSync('router')
64
       const id = this.$router.params.id || router.query.id
66
       const id = this.$router.params.id || router.query.id
97
 
99
 
98
   loadHelpGroupList() {
100
   loadHelpGroupList() {
99
     const { buildingId } = this.state
101
     const { buildingId } = this.state
102
+
100
     queryHelpGroup({ buildingId: buildingId }).then(res => {
103
     queryHelpGroup({ buildingId: buildingId }).then(res => {
101
       console.log(res, "buildingId")
104
       console.log(res, "buildingId")
102
       const helpList = []
105
       const helpList = []
708
             <View className="title">助力活动</View>
711
             <View className="title">助力活动</View>
709
             <View style={{ position: 'relative' }}>
712
             <View style={{ position: 'relative' }}>
710
               <HelpGroupBanner
713
               <HelpGroupBanner
711
-                style={{ height: '130px' }}
714
+                style={{ height: '250rpx' }}
712
                 indicatorDots={false}
715
                 indicatorDots={false}
713
                 list={helpList}
716
                 list={helpList}
714
                 onClick={this.handleHelpClick}>
717
                 onClick={this.handleHelpClick}>
736
       <Block>
739
       <Block>
737
         {groupList.length > 0 &&
740
         {groupList.length > 0 &&
738
           <View className="activity">
741
           <View className="activity">
742
+            {console.log(groupList, '----groupList-----')}
739
             <View className="title">拼团活动</View>
743
             <View className="title">拼团活动</View>
740
             <View
744
             <View
741
               style={{ position: 'relative' }}>
745
               style={{ position: 'relative' }}>
742
               <HelpGroupBanner
746
               <HelpGroupBanner
743
-                style={{ height: '130px' }}
747
+                style={{ height: '250rpx' }}
744
                 indicatorDots={false}
748
                 indicatorDots={false}
745
                 list={groupList}
749
                 list={groupList}
746
                 onClick={this.handleGroupClick}>
750
                 onClick={this.handleGroupClick}>
800
 
804
 
801
     )
805
     )
802
   }
806
   }
803
-  renderActivities() {
807
+  renderActivities () {
808
+    // renderGroup () {
809
+    //   const { groupList } = this.state
810
+    //   return (
811
+    //     <Block>
812
+    //       {groupList.length > 0 &&
813
+    //         <View className="activity">
814
+    //           <View className="title">拼团活动</View>
815
+    //           <View
816
+    //             style={{ position: 'relative' }}>
817
+    //             <HelpGroupBanner
818
+    //               style={{ height: '250rpx' }}
819
+    //               indicatorDots={false}
820
+    //               list={groupList}
821
+    //               onClick={this.handleGroupClick}>
822
+    //             </HelpGroupBanner>
823
+    //           </View>
824
+    //         </View>
825
+    //       }
826
+    //     </Block>
827
+    //   )
828
+    // }
804
     const { activityList } = this.state
829
     const { activityList } = this.state
805
     return (
830
     return (
806
       <Block>
831
       <Block>
807
         {
832
         {
808
           activityList.length > 0 && (
833
           activityList.length > 0 && (
809
-            <View className="house-type">
810
-              <View className="section-head">
811
-                <Text className="section-head__title">热门活动</Text>
812
-                <View className="section-head__more" onClick={this.handleActivityMoreClick}>
813
-                  更多活动<Text className="iconfont icon-more"></Text>
814
-                </View>
834
+            <View className="activity">
835
+              {console.log(activityList, '----activityList-----')}
836
+              <View className="title">热门活动</View>
837
+              <View
838
+                style={{ position: 'relative' }}>
839
+                <HelpGroupBanner
840
+                  style={{ height: '250rpx' }}
841
+                  activityStyle={{ height: '334rpx' }}
842
+                  indicatorDots={false}
843
+                  list={activityList}
844
+                  type='activity'
845
+                // onClick={this.handleGroupClick}
846
+                >
847
+                </HelpGroupBanner>
848
+
815
               </View>
849
               </View>
816
-              <ScrollView scrollX>
817
-                <View className="house-type__list" style="margin-top:10px">
818
-                  {
819
-                    activityList.map(item => (
820
-                      <View className="news-item" key={item.dynamicId} onClick={this.handActivityItemClick.bind(this, item.dynamicId)}>
821
-                        <Image mode="aspectFill" src={getThumbnail(item.imgUrl)} className="news-item__pic"></Image>
822
-                        <View className="news-item__title">{item.title}</View>
823
-                      </View>
824
-                    ))
825
-                  }
826
-                </View>
827
-              </ScrollView>
828
             </View>
850
             </View>
851
+            // <View className="house-type">
852
+            //   <View className="section-head">
853
+            //     <Text className="section-head__title">热门活动</Text>
854
+            //     <View className="section-head__more" onClick={this.handleActivityMoreClick}>
855
+            //       更多活动<Text className="iconfont icon-more"></Text>
856
+            //     </View>
857
+            //   </View>
858
+            //   <ScrollView scrollX>
859
+            //     <View className="house-type__list" style="margin-top:10px">
860
+            //       {
861
+            //         activityList.map(item => (
862
+            //           <View className="news-item" key={item.dynamicId} onClick={this.handActivityItemClick.bind(this, item.dynamicId)}>
863
+            //             <Image mode="widthFix" src={getThumbnail(item.imgUrl)} className="news-item__pic"></Image>
864
+            //             <View className="news-item__title">{item.title}</View>
865
+            //           </View>
866
+            //         ))
867
+            //       }
868
+            //     </View>
869
+            //   </ScrollView>
870
+            // </View>
829
           )
871
           )
830
         }
872
         }
831
       </Block>
873
       </Block>
862
       </Block>
904
       </Block>
863
     )
905
     )
864
   }
906
   }
907
+  plagVideo () {
908
+    let videoContext = wx.createVideoContext('myVideo')
909
+    console.log()
910
+    // this.setState({
911
+    //   videoPlayShow: 'none'
912
+    // })
913
+    videoContext.play()
914
+  }
865
 
915
 
866
-  renderVideo() {
916
+  onPlay () {
917
+    
918
+    console.log()
919
+    this.setState({
920
+      videoPlayShow: 'none'
921
+    })
922
+   
923
+  }
924
+
925
+  onPause () {
926
+   
927
+    this.setState({
928
+      videoPlayShow: 'flex'
929
+    })
930
+  
931
+  }
932
+
933
+  renderVideo () {
934
+    const {videoPlayShow}  = this.state
867
     const { projectDetail } = this.props
935
     const { projectDetail } = this.props
936
+    const { videoImage } = projectDetail
937
+    const imgSrc = videoImage[0].url
938
+
939
+
868
     return (
940
     return (
869
       <View
941
       <View
870
         className="pro__banner"
942
         className="pro__banner"
873
         <Video
945
         <Video
874
           src={projectDetail.videoUrl}
946
           src={projectDetail.videoUrl}
875
           // src='http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400'
947
           // src='http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400'
876
-          poster={getThumbnail(projectDetail.videoImage)}
948
+          poster={getThumbnail(imgSrc)}
877
           // poster='http://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg'
949
           // poster='http://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg'
878
           style={{
950
           style={{
879
-            height: '278rpx',
880
-            width: '375rpx'
951
+            height: '600rpx',
952
+            width: '750rpx'
881
           }}
953
           }}
882
-          controls={true}
883
-          autoplay={false}
884
-
885
-          initialTime='0'
886
-          id='video'
887
-          loop={false}
888
-          muted={false}
954
+          id='myVideo'
955
+          controls={false}
956
+          // autoplay={false}
957
+
958
+          // initialTime='0'
959
+         
960
+          // loop={false}
961
+          // muted={false}
889
           show-mute-btn='true'
962
           show-mute-btn='true'
963
+          onPlay={this.onPlay}
964
+          show-center-play-btn='false'
965
+          onPause= {this.onPause}
966
+          // show-center-play-btn= 'f'
890
         ></Video>
967
         ></Video>
968
+        <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow  }}>
969
+          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>
970
+        </Button>
971
+
972
+        {/* <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow }}>
973
+          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>style={{ display: posterShow }}
974
+        </Button>
975
+
976
+        <Button className='pro__banner-btn' onClick={this.plagVideo} style={{ display: videoPlayShow }}>
977
+          <Image src={require('@assets/play.png')} mode='scaleToFill' className='pro__banner-btn-img'></Image>
978
+        </Button> */}
979
+
980
+      
891
       </View>
981
       </View>
892
     )
982
     )
893
   }
983
   }
923
                     // current
1013
                     // current
924
                     onChange={this.changeCurrent.bind(this)}
1014
                     onChange={this.changeCurrent.bind(this)}
925
                     style={{
1015
                     style={{
926
-                      height: '278px'
1016
+                      height: '600rpx'
927
                     }}
1017
                     }}
928
 
1018
 
929
                   ></Banner>
1019
                   ></Banner>

+ 20
- 5
src/pages/project/detail/index.scss View File

48
 
48
 
49
 
49
 
50
   .wrap {
50
   .wrap {
51
-    padding-top: 556px;
51
+    padding-top: 580px;
52
     background: transparent;
52
     background: transparent;
53
   }
53
   }
54
 
54
 
116
     width: 320px;
116
     width: 320px;
117
     float: left;
117
     float: left;
118
     margin-bottom: 30px;
118
     margin-bottom: 30px;
119
-    margin-right: 20px;
119
+    margin-right: 36px;
120
 
120
 
121
     &__pic {
121
     &__pic {
122
-      width: 320px;
123
-      height: 240px;
122
+      width: 336px;
123
+      height: 268px;
124
       border-radius: 10px;
124
       border-radius: 10px;
125
       background-color: #eee;
125
       background-color: #eee;
126
     }
126
     }
793
     right: 5%;
793
     right: 5%;
794
     bottom: 30px;
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
 .house-type {
814
 .house-type {
800
   position: relative;
815
   position: relative;
801
   width: 100%;
816
   width: 100%;
802
-  padding: 40px;
817
+  padding: 30px;
803
   background: #fff;
818
   background: #fff;
804
   margin: 20px 0;
819
   margin: 20px 0;
805
 
820
 

+ 57
- 162
src/pages/project/index.js View File

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

+ 12
- 8
src/pages/project/index.scss View File

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

+ 2
- 2
src/pages/project/item/index.scss View File

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

+ 20
- 11
src/pages/project/swiper/index.js View File

1
 import Taro, { Component } from '@tarojs/taro'
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
 // import { cdn } from '@constants/api'
3
 // import { cdn } from '@constants/api'
4
 import './index.scss'
4
 import './index.scss'
5
 import emptyImg from '@assets/empty.png'
5
 import emptyImg from '@assets/empty.png'
12
     style: {
12
     style: {
13
       height: '200px'
13
       height: '200px'
14
     },
14
     },
15
+    type:'',
16
+    // activityStyle: {
17
+    //   height: '200px'
18
+    // },
15
     onClick: function () { }
19
     onClick: function () { }
16
   }
20
   }
17
 
21
 
19
     this.props.onClick(item)
23
     this.props.onClick(item)
20
   }
24
   }
21
   render () {
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
     return (
29
     return (
24
-      <View className='home-banner' style={style}>
25
-        {console.log(this.props, '---list---')}
30
+      <View className='home-banner' style={styles}>
31
+
26
         <Swiper
32
         <Swiper
27
           className='home-banner__swiper'
33
           className='home-banner__swiper'
28
           circular
34
           circular
36
               key={index}
42
               key={index}
37
               onClick={this.onBannerClick.bind(this, item)}
43
               onClick={this.onBannerClick.bind(this, item)}
38
               className='home-banner__swiper-item'
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
             </SwiperItem>
55
             </SwiperItem>
47
           ))}
56
           ))}
48
         </Swiper>
57
         </Swiper>

+ 33
- 3
src/pages/project/swiper/index.scss View File

1
+@import "@styles/mixins.scss";
1
 @import "@styles/theme.scss";
2
 @import "@styles/theme.scss";
2
 .home-banner {
3
 .home-banner {
3
   width: 100%;
4
   width: 100%;
4
   overflow: hidden;
5
   overflow: hidden;
5
-  height: 250px;
6
+  height: 400px;
6
 }
7
 }
7
 
8
 
8
 .home-banner__swiper {
9
 .home-banner__swiper {
9
   // NOTE RN 的 Swiper 需要有高度,否则会报错
10
   // NOTE RN 的 Swiper 需要有高度,否则会报错
11
+  // @extend .flex;
12
+  // align-items: flex-start;
10
   height: 100%;
13
   height: 100%;
11
   &-item {
14
   &-item {
15
+    width: 100%;
12
     display: flex;
16
     display: flex;
13
     flex-direction: row;
17
     flex-direction: row;
14
     justify-content: center;
18
     justify-content: center;
15
 
19
 
16
     &-img {
20
     &-img {
17
-      width: 100%;
18
-      height: 100%!important;
21
+      width: 750px;
22
+      // height: 100%!important;
19
       overflow: hidden;
23
       overflow: hidden;
20
       border-radius: 0;
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 View File

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

+ 1
- 1
src/pages/shop/record/index.js View File

65
           records.length === 0 ? <EmptyPage text="暂无兑换记录哦~" /> : (
65
           records.length === 0 ? <EmptyPage text="暂无兑换记录哦~" /> : (
66
             records.map(item => (
66
             records.map(item => (
67
               <View className="list-item" key={item.recId} onClick={this.onViewDetail.bind(this, item)}>
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
 								<View className="top">
69
 								<View className="top">
70
 									<View className="title-time">兑换时间:{dayjs(item.createDate).format('YYYY-MM-DD HH:mm:ss')}</View>
70
 									<View className="title-time">兑换时间:{dayjs(item.createDate).format('YYYY-MM-DD HH:mm:ss')}</View>
71
 									<View className="title-state">{item.status==0?"未领取":"已领取"}</View>
71
 									<View className="title-state">{item.status==0?"未领取":"已领取"}</View>

+ 2
- 2
src/pages/shop/record/index.scss View File

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