周立森 5 年前
父节点
当前提交
164586402a

+ 2
- 2
config/dev.js 查看文件

9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
9
     // WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10
     // HOST: '"https://lt.pawoma.cn"',
10
     // HOST: '"https://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    HOST: '"http://192.168.0.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
   weapp: {},
15
   weapp: {},
16
   h5: {}
16
   h5: {}

+ 4
- 4
config/prod.js 查看文件

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 查看文件

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 查看文件

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 => {

二进制
src/assets/play.png 查看文件


+ 2
- 2
src/pages/activity/detail/assistance.js 查看文件

515
             <View className="ass-page">
515
             <View className="ass-page">
516
               <Notice></Notice>
516
               <Notice></Notice>
517
               <View className="detail-banner">
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
                 <View className="rest-time">
520
                 <View className="rest-time">
521
                   <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
521
                   <Text className="row-label">{actState === ActBeforeStart ? '距活动开始 :' : (actState === ActInProcess ? '活动剩余时间 :' : '')} </Text>
612
                 </View>
612
                 </View>
613
                 <View className="assistance-text"><Text className="acitivty-desc">活动说明</Text>-------------------------------------------------------------- </View>
613
                 <View className="assistance-text"><Text className="acitivty-desc">活动说明</Text>-------------------------------------------------------------- </View>
614
                 <View style="padding:0 40rpx">
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
                 </View>
616
                 </View>
617
 
617
 
618
               </ScrollView>
618
               </ScrollView>

+ 4
- 4
src/pages/activity/detail/index.js 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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

+ 133
- 43
src/pages/project/detail/index.js 查看文件

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 = []
574
 
577
 
575
     const { albumCurrent } = this.state
578
     const { albumCurrent } = this.state
576
 
579
 
577
-  
578
-  
580
+
581
+
579
     return (
582
     return (
580
 
583
 
581
-   
584
+
582
       <Block>
585
       <Block>
583
-        { list.length > 0 &&
586
+        {list.length > 0 &&
584
           (
587
           (
585
             <View className='photos__type'>
588
             <View className='photos__type'>
586
               <View className='photos__type__title'>相册</View>
589
               <View className='photos__type__title'>相册</View>
587
               <ScrollView scrollX>
590
               <ScrollView scrollX>
588
                 <View className='photos__type__content' onClick={this.toViewAlbum}>
591
                 <View className='photos__type__content' onClick={this.toViewAlbum}>
589
-          
592
+
590
                   <View className="around-tab">
593
                   <View className="around-tab">
591
                     {list.map((item, index) => {
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
                       return (
599
                       return (
597
                         <View
600
                         <View
598
-                          style={{ marginRight: '8px' }}                  
601
+                          style={{ marginRight: '8px' }}
599
                         >
602
                         >
600
                           {/* {`${label}(${num})`} */}
603
                           {/* {`${label}(${num})`} */}
601
                           <View>
604
                           <View>
703
             <View className="title">助力活动</View>
706
             <View className="title">助力活动</View>
704
             <View style={{ position: 'relative' }}>
707
             <View style={{ position: 'relative' }}>
705
               <HelpGroupBanner
708
               <HelpGroupBanner
706
-                style={{ height: '130px' }}
709
+                style={{ height: '250rpx' }}
707
                 indicatorDots={false}
710
                 indicatorDots={false}
708
                 list={helpList}
711
                 list={helpList}
709
                 onClick={this.handleHelpClick}>
712
                 onClick={this.handleHelpClick}>
731
       <Block>
734
       <Block>
732
         {groupList.length > 0 &&
735
         {groupList.length > 0 &&
733
           <View className="activity">
736
           <View className="activity">
737
+            {console.log(groupList, '----groupList-----')}
734
             <View className="title">拼团活动</View>
738
             <View className="title">拼团活动</View>
735
             <View
739
             <View
736
               style={{ position: 'relative' }}>
740
               style={{ position: 'relative' }}>
737
               <HelpGroupBanner
741
               <HelpGroupBanner
738
-                style={{ height: '130px' }}
742
+                style={{ height: '250rpx' }}
739
                 indicatorDots={false}
743
                 indicatorDots={false}
740
                 list={groupList}
744
                 list={groupList}
741
                 onClick={this.handleGroupClick}>
745
                 onClick={this.handleGroupClick}>
796
     )
800
     )
797
   }
801
   }
798
   renderActivities () {
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
     const { activityList } = this.state
824
     const { activityList } = this.state
800
     return (
825
     return (
801
       <Block>
826
       <Block>
802
         {
827
         {
803
           activityList.length > 0 && (
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
               </View>
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
             </View>
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
       </Block>
868
       </Block>
857
       </Block>
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
   renderVideo () {
928
   renderVideo () {
929
+    const {videoPlayShow}  = this.state
862
     const { projectDetail } = this.props
930
     const { projectDetail } = this.props
931
+    const { videoImage } = projectDetail
932
+    const imgSrc = videoImage[0].url
933
+
934
+
863
     return (
935
     return (
864
       <View
936
       <View
865
         className="pro__banner"
937
         className="pro__banner"
868
         <Video
940
         <Video
869
           src={projectDetail.videoUrl}
941
           src={projectDetail.videoUrl}
870
           // src='http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400'
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
           // poster='http://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg'
944
           // poster='http://misc.aotu.io/booxood/mobile-video/cover_900x500.jpg'
873
           style={{
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
           show-mute-btn='true'
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
         ></Video>
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
       </View>
976
       </View>
887
     )
977
     )
888
   }
978
   }
918
                     // current
1008
                     // current
919
                     onChange={this.changeCurrent.bind(this)}
1009
                     onChange={this.changeCurrent.bind(this)}
920
                     style={{
1010
                     style={{
921
-                      height: '278px'
1011
+                      height: '600rpx'
922
                     }}
1012
                     }}
923
 
1013
 
924
                   ></Banner>
1014
                   ></Banner>
928
 
1018
 
929
               {btnstate === 1 && projectDetail.videoUrl != null && this.renderVideo()}
1019
               {btnstate === 1 && projectDetail.videoUrl != null && this.renderVideo()}
930
 
1020
 
931
-        
1021
+
932
               {btnstate === 1 && projectDetail.videoUrl != null && (<View className='media-btn'>
1022
               {btnstate === 1 && projectDetail.videoUrl != null && (<View className='media-btn'>
933
                 <View className='video-btn' style={{ background: ' rgba(187, 156, 121, 1)', color: 'rgba(255, 255, 255, 1)' }} >视频</View>
1023
                 <View className='video-btn' style={{ background: ' rgba(187, 156, 121, 1)', color: 'rgba(255, 255, 255, 1)' }} >视频</View>
934
                 <View className='img-btn' onClick={() => this.setState({ btnstate: 0 })}>图片</View>
1024
                 <View className='img-btn' onClick={() => this.setState({ btnstate: 0 })}>图片</View>

+ 20
- 5
src/pages/project/detail/index.scss 查看文件

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 查看文件

47
     vertical: true
47
     vertical: true
48
   }
48
   }
49
 
49
 
50
-  componentWillMount() {
50
+  componentWillMount () {
51
     this.qqmapsdk = new QQMapWX({
51
     this.qqmapsdk = new QQMapWX({
52
       key: 'TIIBZ-ZJG33-52T3L-Y3X4Q-NWKLV-KUB3B'
52
       key: 'TIIBZ-ZJG33-52T3L-Y3X4Q-NWKLV-KUB3B'
53
     })
53
     })
70
     })
70
     })
71
   }
71
   }
72
 
72
 
73
-  componentDidShow() {
73
+  componentDidShow () {
74
     if (this.props.curCity.id) {
74
     if (this.props.curCity.id) {
75
       ready.queue(() => {
75
       ready.queue(() => {
76
         this.loadData()
76
         this.loadData()
78
     }
78
     }
79
   }
79
   }
80
 
80
 
81
-  componentWillUnmount() {
81
+  componentWillUnmount () {
82
     const { recordId } = this.state
82
     const { recordId } = this.state
83
     recordId && updatePoint(recordId)
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
     Taro.getLocation().then(location => {
94
     Taro.getLocation().then(location => {
89
       Taro.setStorageSync('lat', location.latitude)
95
       Taro.setStorageSync('lat', location.latitude)
90
       Taro.setStorageSync('lon', location.longitude)
96
       Taro.setStorageSync('lon', location.longitude)
97
+
98
+
91
       this.qqmapsdk.reverseGeocoder({
99
       this.qqmapsdk.reverseGeocoder({
92
         location,
100
         location,
93
         success: (res) => {
101
         success: (res) => {
95
           let city = res.result.address_component.city
103
           let city = res.result.address_component.city
96
 
104
 
97
           console.log('-----city-->', city)
105
           console.log('-----city-->', city)
106
+          console.log('-----cityList-->', cityList)
107
+
98
 
108
 
99
           let curCity = cityList.filter(item => {
109
           let curCity = cityList.filter(item => {
100
             return item.name == city
110
             return item.name == city
101
           })
111
           })
112
+
113
+
114
+
115
+
102
           Taro.showToast({
116
           Taro.showToast({
103
             title: `当前定位城市:${(curCity[0] || {}).name}`,
117
             title: `当前定位城市:${(curCity[0] || {}).name}`,
104
             icon: 'none',
118
             icon: 'none',
105
           })
119
           })
106
-          this.updateCity(curCity[0] || cityList[0])
120
+
121
+          this.updateCity(curCity[0] || defaultCity[0])
107
         },
122
         },
108
         fail: (error) => {
123
         fail: (error) => {
124
+
125
+
109
           Taro.showToast({
126
           Taro.showToast({
110
             title: `定位城市错误...`,
127
             title: `定位城市错误...`,
111
             icon: 'none',
128
             icon: 'none',
112
           })
129
           })
113
           console.error(err)
130
           console.error(err)
114
-          this.updateCity(cityList[0])
131
+          this.updateCity(defaultCity[0])
115
         },
132
         },
116
       })
133
       })
117
     }).catch(err => {
134
     }).catch(err => {
127
         })
144
         })
128
       }
145
       }
129
       console.error(err)
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
       this.loadData()
155
       this.loadData()
260
     })
156
     })
261
   }
157
   }
262
 
158
 
263
-  loadData() {
159
+  loadData () {
264
     this.loadBannerList()
160
     this.loadBannerList()
265
     this.loadHelpGroupList()
161
     this.loadHelpGroupList()
266
     this.loadNewsList()
162
     this.loadNewsList()
268
     this.loadList()
164
     this.loadList()
269
   }
165
   }
270
 
166
 
271
-  loadOpenScreenBanner() {
167
+  loadOpenScreenBanner () {
272
     const payload = {
168
     const payload = {
273
       // showPosition: 'index'
169
       // showPosition: 'index'
274
     }
170
     }
286
       })
182
       })
287
     })
183
     })
288
   }
184
   }
289
-  loadBannerList() {
185
+  loadBannerList () {
290
     const { curCity } = this.props
186
     const { curCity } = this.props
291
     // 获取首页banner
187
     // 获取首页banner
292
     const payload = {
188
     const payload = {
308
     })
204
     })
309
   }
205
   }
310
 
206
 
311
-  loadHelpGroupList() {
207
+  loadHelpGroupList () {
312
     queryHelpGroup({ cityId: this.props.curCity.id, buildingId: '' }).then(res => {
208
     queryHelpGroup({ cityId: this.props.curCity.id, buildingId: '' }).then(res => {
313
       console.log(res, "res")
209
       console.log(res, "res")
314
       this.setState({
210
       this.setState({
319
   }
215
   }
320
 
216
 
321
 
217
 
322
-  loadNewsList() {
218
+  loadNewsList () {
323
     const { curCity } = this.props
219
     const { curCity } = this.props
324
     const payload = {
220
     const payload = {
325
       pageNumber: 1,
221
       pageNumber: 1,
335
     })
231
     })
336
   }
232
   }
337
 
233
 
338
-  loadActivityList() {
234
+  loadActivityList () {
339
     const { curCity } = this.props
235
     const { curCity } = this.props
340
     const payload = {
236
     const payload = {
341
       pageNumber: 1,
237
       pageNumber: 1,
353
     })
249
     })
354
   }
250
   }
355
 
251
 
356
-  loadList() {
252
+  loadList () {
357
     const { keywords } = this.state
253
     const { keywords } = this.state
358
     const { curCity } = this.props
254
     const { curCity } = this.props
359
 
255
 
405
     }
301
     }
406
   }
302
   }
407
 
303
 
408
-  onViewDetail(item) {
304
+  onViewDetail (item) {
409
     Taro.navigateTo({
305
     Taro.navigateTo({
410
       url: `/pages/project/detail/index?id=${item.buildingId}`
306
       url: `/pages/project/detail/index?id=${item.buildingId}`
411
     })
307
     })
416
     this.redirectTo(item)
312
     this.redirectTo(item)
417
   }
313
   }
418
 
314
 
419
-  redirectTo({ targetId, contentType, buildingId } = {}) {
315
+  redirectTo ({ targetId, contentType, buildingId } = {}) {
420
     switch (contentType) {
316
     switch (contentType) {
421
       // 项目
317
       // 项目
422
       case 'project':
318
       case 'project':
461
     }
357
     }
462
   }
358
   }
463
 
359
 
464
-  handleHelpGroupClick(item) {
360
+  handleHelpGroupClick (item) {
465
     if (item.type == 1) {
361
     if (item.type == 1) {
466
       Taro.navigateTo({
362
       Taro.navigateTo({
467
         url: '/pages/activity/detail/assistance?id=' + item.activityId
363
         url: '/pages/activity/detail/assistance?id=' + item.activityId
473
     }
369
     }
474
   }
370
   }
475
 
371
 
476
-  handleMaskClose() {
372
+  handleMaskClose () {
477
     this.setState({
373
     this.setState({
478
       maskVisible: false
374
       maskVisible: false
479
     })
375
     })
498
     })
394
     })
499
   }
395
   }
500
 
396
 
501
-  handleMaskBannerClick(data) {
397
+  handleMaskBannerClick (data) {
502
     this.redirectTo(data)
398
     this.redirectTo(data)
503
   }
399
   }
504
 
400
 
505
-  handleLocationClick() {
401
+  handleLocationClick () {
506
     Taro.navigateTo({
402
     Taro.navigateTo({
507
       url: `/pages/city/index`
403
       url: `/pages/city/index`
508
     })
404
     })
509
   }
405
   }
510
 
406
 
511
-  handleToHouseList() {
407
+  handleToHouseList () {
512
     Taro.navigateTo({
408
     Taro.navigateTo({
513
       url: '/pages/project/list/index'
409
       url: '/pages/project/list/index'
514
     })
410
     })
515
   }
411
   }
516
 
412
 
517
-  handleProItemClick() {
413
+  handleProItemClick () {
518
     Taro.navigateTo({
414
     Taro.navigateTo({
519
       url: '/pages/project/list/index'
415
       url: '/pages/project/list/index'
520
     })
416
     })
524
   // CHANNEL_AGENT: 'channel agent', // 渠道经纪人
420
   // CHANNEL_AGENT: 'channel agent', // 渠道经纪人
525
   // DRIFT: 'drift', // 游客
421
   // DRIFT: 'drift', // 游客
526
   // CUSTOMER: 'customer' // 客户
422
   // CUSTOMER: 'customer' // 客户
527
-  toRecomonedPage() {
423
+  toRecomonedPage () {
528
     const {
424
     const {
529
       userInfo: { person: { personType } }
425
       userInfo: { person: { personType } }
530
     } = this.props
426
     } = this.props
531
-    if (personType === ROLE_CODE['DRIFT'] ||  !personType) {
427
+    if (personType === ROLE_CODE['DRIFT'] || !personType) {
532
       // 游客或者客户 区别是否有电话
428
       // 游客或者客户 区别是否有电话
533
       Taro.navigateTo({
429
       Taro.navigateTo({
534
         url: `/pages/agent/become/index`
430
         url: `/pages/agent/become/index`
540
       console.log(this.props.curCity.id, "this.props.curCity.id")
436
       console.log(this.props.curCity.id, "this.props.curCity.id")
541
     }
437
     }
542
   }
438
   }
543
-  toMapHouse() {
439
+  toMapHouse () {
544
     Taro.navigateTo({
440
     Taro.navigateTo({
545
       url: `/pages/project/map/index`
441
       url: `/pages/project/map/index`
546
     })
442
     })
547
   }
443
   }
548
 
444
 
549
 
445
 
550
-  renderProjectList() {
446
+  renderProjectList () {
551
     const { proList: { records } } = this.props
447
     const { proList: { records } } = this.props
552
     const { helpGroupList } = this.state
448
     const { helpGroupList } = this.state
553
-    console.log(records,'proList')
449
+    console.log(records, 'proList')
554
     return (
450
     return (
555
       <Block>
451
       <Block>
556
         {
452
         {
580
           )
476
           )
581
         }
477
         }
582
 
478
 
583
-        {console.log(helpGroupList,'helpGroupList')}
479
+        {console.log(helpGroupList, 'helpGroupList')}
584
         {
480
         {
585
           helpGroupList.length > 0 &&
481
           helpGroupList.length > 0 &&
586
           <View
482
           <View
587
             style={{
483
             style={{
588
-              position: 'relative', padding: '20px 20px 0 20px'
484
+              position: 'relative', padding: '20px 15px 0 15px'
589
             }}>
485
             }}>
590
 
486
 
591
             <HelpGroupBanner
487
             <HelpGroupBanner
592
               style={{
488
               style={{
593
                 borderRadius: '6px',
489
                 borderRadius: '6px',
594
-                height: '88px'
490
+                height: '230rpx'
595
               }}
491
               }}
596
               indicatorDots={false}
492
               indicatorDots={false}
597
               list={helpGroupList}
493
               list={helpGroupList}
605
     )
501
     )
606
   }
502
   }
607
 
503
 
608
-  renderMaskBanner() {
504
+  renderMaskBanner () {
609
     const { maskBanner } = this.state
505
     const { maskBanner } = this.state
610
     return (
506
     return (
611
       <View className="mask-banner">
507
       <View className="mask-banner">
612
         <View className="content">
508
         <View className="content">
613
-          {console.log(maskBanner,'maskBanner')}
614
           <Image
509
           <Image
615
             mode="widthFix"
510
             mode="widthFix"
616
             className="img"
511
             className="img"
624
   }
519
   }
625
 
520
 
626
 
521
 
627
-  render() {
522
+  render () {
628
     const { curCity } = this.props
523
     const { curCity } = this.props
629
     const { newsList } = this.state
524
     const { newsList } = this.state
630
     const { userInfo: { person: { personType } } } = this.props
525
     const { userInfo: { person: { personType } } } = this.props
640
               <View className="section section-top" style={{ marginTop: 0, paddingTop: 0 }}>
535
               <View className="section section-top" style={{ marginTop: 0, paddingTop: 0 }}>
641
                 <View
536
                 <View
642
                   style={{
537
                   style={{
643
-                    height: '250px', position: 'relative'
538
+                    height: '600rpx', position: 'relative'
644
                   }}>
539
                   }}>
645
                   {
540
                   {
646
                     this.state.visBanner && (
541
                     this.state.visBanner && (
647
                       <Banner
542
                       <Banner
648
                         style={{
543
                         style={{
649
-                          height: '250px'
544
+                          height: '600rpx'
650
                         }}
545
                         }}
651
                         indicatorDots={true}
546
                         indicatorDots={true}
652
                         list={this.state.bannerList}
547
                         list={this.state.bannerList}
653
                         onClick={this.handleBannerClick}
548
                         onClick={this.handleBannerClick}
654
-                        onChange={()=>(1)}
655
-                        >
656
-                    
549
+                        onChange={() => (1)}
550
+                      >
551
+
657
                       </Banner>
552
                       </Banner>
658
                     )
553
                     )
659
                   }
554
                   }

+ 12
- 8
src/pages/project/index.scss 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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 查看文件

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
 			}