许静 5 年前
父节点
当前提交
02c205450f
共有 64 个文件被更改,包括 304 次插入106 次删除
  1. 2
    2
      config/dev.js
  2. 1
    1
      project.config.json
  3. 二进制
      src/assets/icons/amap/active_nums/number1.png
  4. 二进制
      src/assets/icons/amap/active_nums/number10.png
  5. 二进制
      src/assets/icons/amap/active_nums/number11.png
  6. 二进制
      src/assets/icons/amap/active_nums/number12.png
  7. 二进制
      src/assets/icons/amap/active_nums/number13.png
  8. 二进制
      src/assets/icons/amap/active_nums/number14.png
  9. 二进制
      src/assets/icons/amap/active_nums/number15.png
  10. 二进制
      src/assets/icons/amap/active_nums/number16.png
  11. 二进制
      src/assets/icons/amap/active_nums/number17.png
  12. 二进制
      src/assets/icons/amap/active_nums/number18.png
  13. 二进制
      src/assets/icons/amap/active_nums/number19.png
  14. 二进制
      src/assets/icons/amap/active_nums/number2.png
  15. 二进制
      src/assets/icons/amap/active_nums/number20.png
  16. 二进制
      src/assets/icons/amap/active_nums/number21.png
  17. 二进制
      src/assets/icons/amap/active_nums/number22.png
  18. 二进制
      src/assets/icons/amap/active_nums/number23.png
  19. 二进制
      src/assets/icons/amap/active_nums/number24.png
  20. 二进制
      src/assets/icons/amap/active_nums/number25.png
  21. 二进制
      src/assets/icons/amap/active_nums/number3.png
  22. 二进制
      src/assets/icons/amap/active_nums/number4.png
  23. 二进制
      src/assets/icons/amap/active_nums/number5.png
  24. 二进制
      src/assets/icons/amap/active_nums/number6.png
  25. 二进制
      src/assets/icons/amap/active_nums/number7.png
  26. 二进制
      src/assets/icons/amap/active_nums/number8.png
  27. 二进制
      src/assets/icons/amap/active_nums/number9.png
  28. 二进制
      src/assets/icons/amap/nums/number1.png
  29. 二进制
      src/assets/icons/amap/nums/number10.png
  30. 二进制
      src/assets/icons/amap/nums/number11.png
  31. 二进制
      src/assets/icons/amap/nums/number12.png
  32. 二进制
      src/assets/icons/amap/nums/number13.png
  33. 二进制
      src/assets/icons/amap/nums/number14.png
  34. 二进制
      src/assets/icons/amap/nums/number15.png
  35. 二进制
      src/assets/icons/amap/nums/number16.png
  36. 二进制
      src/assets/icons/amap/nums/number17.png
  37. 二进制
      src/assets/icons/amap/nums/number18.png
  38. 二进制
      src/assets/icons/amap/nums/number19.png
  39. 二进制
      src/assets/icons/amap/nums/number2.png
  40. 二进制
      src/assets/icons/amap/nums/number20.png
  41. 二进制
      src/assets/icons/amap/nums/number21.png
  42. 二进制
      src/assets/icons/amap/nums/number22.png
  43. 二进制
      src/assets/icons/amap/nums/number23.png
  44. 二进制
      src/assets/icons/amap/nums/number24.png
  45. 二进制
      src/assets/icons/amap/nums/number25.png
  46. 二进制
      src/assets/icons/amap/nums/number3.png
  47. 二进制
      src/assets/icons/amap/nums/number4.png
  48. 二进制
      src/assets/icons/amap/nums/number5.png
  49. 二进制
      src/assets/icons/amap/nums/number6.png
  50. 二进制
      src/assets/icons/amap/nums/number7.png
  51. 二进制
      src/assets/icons/amap/nums/number8.png
  52. 二进制
      src/assets/icons/amap/nums/number9.png
  53. 二进制
      src/assets/mine/consultant.png
  54. 7
    26
      src/components/amap/PoiAround.js
  55. 105
    0
      src/components/amap/icons.js
  56. 2
    2
      src/pages/person/index.js
  57. 3
    2
      src/pages/person/menus.js
  58. 3
    3
      src/pages/person/personDetail/editDetail/index.js
  59. 8
    1
      src/pages/person/personDetail/editDetail/index.scss
  60. 45
    43
      src/pages/project/album/index.js
  61. 42
    6
      src/pages/project/album/index.scss
  62. 1
    0
      src/pages/project/detail/Around/Tab.js
  63. 48
    18
      src/pages/project/detail/index.js
  64. 37
    2
      src/pages/project/detail/index.scss

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

@@ -9,8 +9,8 @@ module.exports = {
9 9
     WSS_HOST: '"wss://dev.jinchengjiaye.com"',
10 10
     // HOST: '"https://lt.pawoma.cn"',
11 11
     // WSS_HOST: '"wss://lt.pawoma.cn"',
12
-    // HOST: '"http://192.168.0.131:8080"',
13
-    // WSS_HOST: '"ws://192.168.0.131:8080"',
12
+    HOST: '"http://192.168.0.218:8080"',
13
+    WSS_HOST: '"ws://192.168.0.218:8080"',
14 14
   },
15 15
   weapp: {},
16 16
   h5: {}

+ 1
- 1
project.config.json 查看文件

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

二进制
src/assets/icons/amap/active_nums/number1.png 查看文件


二进制
src/assets/icons/amap/active_nums/number10.png 查看文件


二进制
src/assets/icons/amap/active_nums/number11.png 查看文件


二进制
src/assets/icons/amap/active_nums/number12.png 查看文件


二进制
src/assets/icons/amap/active_nums/number13.png 查看文件


二进制
src/assets/icons/amap/active_nums/number14.png 查看文件


二进制
src/assets/icons/amap/active_nums/number15.png 查看文件


二进制
src/assets/icons/amap/active_nums/number16.png 查看文件


二进制
src/assets/icons/amap/active_nums/number17.png 查看文件


二进制
src/assets/icons/amap/active_nums/number18.png 查看文件


二进制
src/assets/icons/amap/active_nums/number19.png 查看文件


二进制
src/assets/icons/amap/active_nums/number2.png 查看文件


二进制
src/assets/icons/amap/active_nums/number20.png 查看文件


二进制
src/assets/icons/amap/active_nums/number21.png 查看文件


二进制
src/assets/icons/amap/active_nums/number22.png 查看文件


二进制
src/assets/icons/amap/active_nums/number23.png 查看文件


二进制
src/assets/icons/amap/active_nums/number24.png 查看文件


二进制
src/assets/icons/amap/active_nums/number25.png 查看文件


二进制
src/assets/icons/amap/active_nums/number3.png 查看文件


二进制
src/assets/icons/amap/active_nums/number4.png 查看文件


二进制
src/assets/icons/amap/active_nums/number5.png 查看文件


二进制
src/assets/icons/amap/active_nums/number6.png 查看文件


二进制
src/assets/icons/amap/active_nums/number7.png 查看文件


二进制
src/assets/icons/amap/active_nums/number8.png 查看文件


二进制
src/assets/icons/amap/active_nums/number9.png 查看文件


二进制
src/assets/icons/amap/nums/number1.png 查看文件


二进制
src/assets/icons/amap/nums/number10.png 查看文件


二进制
src/assets/icons/amap/nums/number11.png 查看文件


二进制
src/assets/icons/amap/nums/number12.png 查看文件


二进制
src/assets/icons/amap/nums/number13.png 查看文件


二进制
src/assets/icons/amap/nums/number14.png 查看文件


二进制
src/assets/icons/amap/nums/number15.png 查看文件


二进制
src/assets/icons/amap/nums/number16.png 查看文件


二进制
src/assets/icons/amap/nums/number17.png 查看文件


二进制
src/assets/icons/amap/nums/number18.png 查看文件


二进制
src/assets/icons/amap/nums/number19.png 查看文件


二进制
src/assets/icons/amap/nums/number2.png 查看文件


二进制
src/assets/icons/amap/nums/number20.png 查看文件


二进制
src/assets/icons/amap/nums/number21.png 查看文件


二进制
src/assets/icons/amap/nums/number22.png 查看文件


二进制
src/assets/icons/amap/nums/number23.png 查看文件


二进制
src/assets/icons/amap/nums/number24.png 查看文件


二进制
src/assets/icons/amap/nums/number25.png 查看文件


二进制
src/assets/icons/amap/nums/number3.png 查看文件


二进制
src/assets/icons/amap/nums/number4.png 查看文件


二进制
src/assets/icons/amap/nums/number5.png 查看文件


二进制
src/assets/icons/amap/nums/number6.png 查看文件


二进制
src/assets/icons/amap/nums/number7.png 查看文件


二进制
src/assets/icons/amap/nums/number8.png 查看文件


二进制
src/assets/icons/amap/nums/number9.png 查看文件


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


+ 7
- 26
src/components/amap/PoiAround.js 查看文件

@@ -1,7 +1,6 @@
1 1
 import Taro, { Component } from '@tarojs/taro'
2 2
 import { Map } from '@tarojs/components'
3
-
4
-const makerIcon = require('@assets/icons/blank.png')
3
+import icons from './icons'
5 4
 
6 5
 export default class PoiAround extends Component {
7 6
 
@@ -19,34 +18,16 @@ export default class PoiAround extends Component {
19 18
   render() {
20 19
     const { current } = this.state
21 20
     const markers =  (this.props.markers || []).map((marker, index) => {
21
+      const icon = icons[index].normal
22
+      const activeIcon = icons[index].active
22 23
 
23 24
       return {
24 25
         id: marker.id,
25 26
         latitude: marker.latitude,
26 27
         longitude: marker.longitude,
27
-        iconPath: makerIcon,
28
-        width: 30,
29
-        height: 30,
30
-        alpha: 0.7,
31
-        // title: index + 1,
32
-        // label: {
33
-        //   content: index + 1,
34
-        //   // borderRadius: 1000,
35
-        //   color: '#fff',
36
-        //   bgColor: '#f00',
37
-        //   textAlign: 'center',
38
-        // },
39
-        callout: {
40
-          content: index + 1 > 9 ? `${index + 1}` : `0${index + 1}`,
41
-          borderRadius: 30,
42
-          borderWidth: 2,
43
-          borderColor: '#BB9C79',
44
-          padding: 5,
45
-          color: current === marker.id ? '#fff' : '#BB9C79',
46
-          bgColor: current === marker.id ? '#BB9C79' : '#fff',
47
-          textAlign: 'center',
48
-          display: 'ALWAYS',
49
-        },
28
+        iconPath: current === marker.id ? activeIcon : icon,
29
+        width: 56,
30
+        height: 56,
50 31
       }
51 32
     })
52 33
 
@@ -57,7 +38,7 @@ export default class PoiAround extends Component {
57 38
         markers={markers}
58 39
         longitude={this.props.longitude}
59 40
         latitude={this.props.latitude}
60
-        onCalloutTap={this.handleTap}
41
+        onMarkerTap={this.handleTap}
61 42
         style={this.props.style}
62 43
       />
63 44
     )

+ 105
- 0
src/components/amap/icons.js 查看文件

@@ -0,0 +1,105 @@
1
+
2
+const icons = [
3
+  {
4
+    normal: require('@assets/icons/amap/nums/number1.png'),
5
+    active: require('@assets/icons/amap/active_nums/number1.png'),
6
+  },
7
+  {
8
+    normal: require('@assets/icons/amap/nums/number2.png'),
9
+    active: require('@assets/icons/amap/active_nums/number2.png'),
10
+  },
11
+  {
12
+    normal: require('@assets/icons/amap/nums/number3.png'),
13
+    active: require('@assets/icons/amap/active_nums/number3.png'),
14
+  },
15
+  {
16
+    normal: require('@assets/icons/amap/nums/number4.png'),
17
+    active: require('@assets/icons/amap/active_nums/number4.png'),
18
+  },
19
+  {
20
+    normal: require('@assets/icons/amap/nums/number5.png'),
21
+    active: require('@assets/icons/amap/active_nums/number5.png'),
22
+  },
23
+  {
24
+    normal: require('@assets/icons/amap/nums/number6.png'),
25
+    active: require('@assets/icons/amap/active_nums/number6.png'),
26
+  },
27
+  {
28
+    normal: require('@assets/icons/amap/nums/number7.png'),
29
+    active: require('@assets/icons/amap/active_nums/number7.png'),
30
+  },
31
+  {
32
+    normal: require('@assets/icons/amap/nums/number8.png'),
33
+    active: require('@assets/icons/amap/active_nums/number8.png'),
34
+  },
35
+  {
36
+    normal: require('@assets/icons/amap/nums/number9.png'),
37
+    active: require('@assets/icons/amap/active_nums/number9.png'),
38
+  },
39
+  {
40
+    normal: require('@assets/icons/amap/nums/number10.png'),
41
+    active: require('@assets/icons/amap/active_nums/number10.png'),
42
+  },
43
+  {
44
+    normal: require('@assets/icons/amap/nums/number11.png'),
45
+    active: require('@assets/icons/amap/active_nums/number11.png'),
46
+  },
47
+  {
48
+    normal: require('@assets/icons/amap/nums/number12.png'),
49
+    active: require('@assets/icons/amap/active_nums/number12.png'),
50
+  },
51
+  {
52
+    normal: require('@assets/icons/amap/nums/number13.png'),
53
+    active: require('@assets/icons/amap/active_nums/number13.png'),
54
+  },
55
+  {
56
+    normal: require('@assets/icons/amap/nums/number14.png'),
57
+    active: require('@assets/icons/amap/active_nums/number14.png'),
58
+  },
59
+  {
60
+    normal: require('@assets/icons/amap/nums/number15.png'),
61
+    active: require('@assets/icons/amap/active_nums/number15.png'),
62
+  },
63
+  {
64
+    normal: require('@assets/icons/amap/nums/number16.png'),
65
+    active: require('@assets/icons/amap/active_nums/number16.png'),
66
+  },
67
+  {
68
+    normal: require('@assets/icons/amap/nums/number17.png'),
69
+    active: require('@assets/icons/amap/active_nums/number17.png'),
70
+  },
71
+  {
72
+    normal: require('@assets/icons/amap/nums/number18.png'),
73
+    active: require('@assets/icons/amap/active_nums/number18.png'),
74
+  },
75
+  {
76
+    normal: require('@assets/icons/amap/nums/number19.png'),
77
+    active: require('@assets/icons/amap/active_nums/number19.png'),
78
+  },
79
+  {
80
+    normal: require('@assets/icons/amap/nums/number20.png'),
81
+    active: require('@assets/icons/amap/active_nums/number20.png'),
82
+  },
83
+  {
84
+    normal: require('@assets/icons/amap/nums/number21.png'),
85
+    active: require('@assets/icons/amap/active_nums/number21.png'),
86
+  },
87
+  {
88
+    normal: require('@assets/icons/amap/nums/number22.png'),
89
+    active: require('@assets/icons/amap/active_nums/number22.png'),
90
+  },
91
+  {
92
+    normal: require('@assets/icons/amap/nums/number23.png'),
93
+    active: require('@assets/icons/amap/active_nums/number23.png'),
94
+  },
95
+  {
96
+    normal: require('@assets/icons/amap/nums/number24.png'),
97
+    active: require('@assets/icons/amap/active_nums/number24.png'),
98
+  },
99
+  {
100
+    normal: require('@assets/icons/amap/nums/number25.png'),
101
+    active: require('@assets/icons/amap/active_nums/number25.png'),
102
+  },
103
+]
104
+
105
+export default icons;

+ 2
- 2
src/pages/person/index.js 查看文件

@@ -94,9 +94,9 @@ export default class Person extends Component {
94 94
       case ROLE_CODE['CONSULTANT']:
95 95
         return [{ consultant: true }, '置业顾问']
96 96
       case ROLE_CODE['ESTATE_AGENT']:
97
-        return [{ isAgent: true }, '独立经纪人']
97
+        return [{ isAgent: true }, '专业经纪人']
98 98
       case ROLE_CODE['CHANNEL_AGENT']:
99
-        return [{ isAgent: true }, '渠道经纪人']
99
+        return [{ isAgent: true }, '专业经纪人']
100 100
       default:
101 101
         return [{ tourist: true }, '普通用户']
102 102
     }

+ 3
- 2
src/pages/person/menus.js 查看文件

@@ -14,6 +14,7 @@ const icons = {
14 14
   encyclopedia: require('@assets/mine/encyclopedia.png'),
15 15
   feedback: require('@assets/mine/feedback.png'),
16 16
   client: require('@assets/mine/client.png'),
17
+  consultant: require('@assets/mine/consultant.png'),
17 18
 }
18 19
 
19 20
 const DRIFT = ROLE_CODE['DRIFT']
@@ -145,14 +146,14 @@ const menus = [
145 146
     {
146 147
       name: '成为专业经纪人',
147 148
       url: '/pages/agent/become/index',
148
-      icon: icons.feedback,
149
+      icon: icons.development,
149 150
       extends: undefined,
150 151
       userTypes: [CUSTOMER],
151 152
     },
152 153
     {
153 154
       name: '成为置业顾问',
154 155
       url: '',
155
-      icon: icons.feedback,
156
+      icon: icons.consultant,
156 157
       extends: undefined,
157 158
       userTypes: [CUSTOMER],
158 159
     },

+ 3
- 3
src/pages/person/personDetail/editDetail/index.js 查看文件

@@ -170,16 +170,16 @@ export default class editDetail extends Component {
170 170
       <View className='list'>
171 171
         <View className='col_box'>
172 172
           <View className='edit edit-name'>用户名</View>
173
-          <Input type='text' value={user.name ? user.name : user.nickname} onInput={this.BindInfo.bind(this)} data-id='name' />
173
+          <Input type='text' className='edit' value={user.name ? user.name : user.nickname} onInput={this.BindInfo.bind(this)} data-id='name' />
174 174
         </View>
175 175
         <View className='col_box'>
176 176
           <View className='edit edit-phone'>电话号码</View>
177
-          <Input type='text' value={user.tel ? user.tel : user.phone} data-id='phone' onInput={this.BindInfo.bind(this)} />
177
+          <Input type='text' className='edit' value={user.tel ? user.tel : user.phone} data-id='phone' onInput={this.BindInfo.bind(this)} />
178 178
         </View>
179 179
         {
180 180
           isAgent && (<View className='col_box'>
181 181
             <View className='edit edit-phone'>经纪人类型</View>
182
-            <Picker mode='selector' className='selector' range={this.state.selector} onChange={this.onChange}>
182
+            <Picker mode='selector' className='edit' className='selector' range={this.state.selector} onChange={this.onChange}>
183 183
               <View className='picker'>
184 184
                 {this.state.selectorChecked}
185 185
               </View>

+ 8
- 1
src/pages/person/personDetail/editDetail/index.scss 查看文件

@@ -6,11 +6,18 @@
6 6
     width: 680px;
7 7
     margin: 0 auto;
8 8
     justify-content: space-between;
9
-    font-size: 28px;
9
+    font-size:32px;
10
+    line-height:44px;
10 11
     border-bottom: 1px solid #dbd7d7;
11 12
     .edit{
12 13
       margin-top: 40px;
14
+      margin-bottom: 32px;
13 15
     }
16
+    // edit-name
17
+
18
+    // edit-phone
19
+
20
+    // edit-name
14 21
     Input,.selector{
15 22
       height: 80px;
16 23
       line-height: 80px;

+ 45
- 43
src/pages/project/album/index.js 查看文件

@@ -8,6 +8,9 @@ import { getThumbnail } from '@utils/tools'
8 8
 
9 9
 
10 10
 @connect(state => state.project, { ...actions })
11
+
12
+
13
+
11 14
 export default class Index extends Component {
12 15
 
13 16
   config = {
@@ -15,11 +18,12 @@ export default class Index extends Component {
15 18
   }
16 19
 
17 20
   state = {
18
-    recordId: null
21
+    recordId: null,
22
+    current: 0,
19 23
   }
20 24
 
21 25
 
22
-  componentWillMount() {
26
+  componentWillMount () {
23 27
     const { id = '369b7d7e5bc6e6b91f2e8f5e775035e2' } = this.$router.params
24 28
     const { projectDetail: { buildingId }, dispatchProjectDetail } = this.props
25 29
 
@@ -39,64 +43,62 @@ export default class Index extends Component {
39 43
       console.log('相册信息')
40 44
     })
41 45
   }
42
-  componentWillUnmount() {
46
+  componentWillUnmount () {
43 47
     const { recordId } = this.state
44 48
     recordId && updatePoint(recordId)
45 49
   }
46 50
   // 图片预览
47
-  previewImage(cur, urls) {
51
+  previewImage (cur, urls) {
48 52
     wx.previewImage({
49 53
       current: cur, // 当前显示图片的http链接   
50 54
       urls: urls // 需要预览的图片http链接列表   
51 55
     })
52 56
   }
53 57
 
54
-  render() {
55
-    const { projectDetail: { buildingImg = [], buildingApartment = [], mapImg, poster } } = this.props
56
-    const liveImgs = buildingImg.map(img => img.url)
57
-    let hxImgs = buildingApartment.filter(item => item.apartmentType === 'apart')
58
-    hxImgs = hxImgs.reduce((prev, cur) => {
59
-      prev = prev.concat(cur.buildingImgList)
60
-      return prev
61
-    }, [])
62
-    let _hxImgUrls = hxImgs.map(img => img.url)
63
-
64
-    let photosImgs = buildingApartment.filter(item => item.apartmentType === 'photo')
65
-    photosImgs = photosImgs.reduce((prev, cur) => {
66
-      prev = prev.concat(cur.buildingImgList)
67
-      return prev
68
-    }, [])
69
-    let _photosImgs = photosImgs.map(img => img.url)
58
+  render () {
59
+    const { projectDetail: { buildingApartment } } = this.props
60
+    const list = buildingApartment.filter(item => item.apartmentType === 'photo')
61
+    const { current } = this.state
62
+    const imgList = list[current].buildingImgList
63
+    let _photosImgs = imgList.map(img => img.url)
64
+
70 65
 
71 66
     return (
72 67
       <View className='photos'>
73
-        <ScrollView>
74
-          <View className='photos__item'>
75
-            <View className='photos__title'>效果图</View>
76
-            {photosImgs.map((item, index) => (
77
-              <Image className='photos__item-img' src={getThumbnail(item.url)} mode="aspectFill" key={item.imgId} onClick={this.previewImage.bind(this, item.url, _photosImgs)}></Image>
78
-            ))}
79
-          </View>
80
-
81
-          <View className='photos__item'>
82
-            <View className='photos__item-title'>实景图</View>
83
-            {liveImgs.map((item, index) => (
84
-              <Image className='photos__item-img' src={getThumbnail(item)} mode="aspectFill" key={index} onClick={this.previewImage.bind(this, item, liveImgs)}></Image>
85
-            ))}
86
-          </View>
68
+        <ScrollView scrollX>
69
+          <View className='photos__type__content'>
70
+            {console.log(list, '2225555555')}
71
+            <View className="around-tab">
72
+              {list.map((item, index) => {
73
+                const { apartmentName } = item || {}
74
+                const buildingImgList = item.buildingImgList
87 75
 
88
-          <View className='photos__item'>
89
-            <View className='photos__item-title'>户型图</View>
90
-            {hxImgs.map((item, index) => (
91
-              <Image className='photos__item-img' src={getThumbnail(item.url)} mode="aspectFill" key={item.imgId} onClick={this.previewImage.bind(this, item.url, _hxImgUrls)}></Image>
92
-            ))}
93
-          </View>
76
+                console.log(imgList, '22333333222')
77
+                return (
78
+                  <View
79
+                    style={{ width: '100px' }}
80
+                    key={current}
81
+                    className={`around-tab__item ${current === index ? 'active' : ''}`}
82
+                    onClick={() => this.setState({ current: index })}
83
+                  >
94 84
 
95
-          <View className='photos__item'>
96
-            <View className='photos__item-title'>地图</View>
97
-            <Image className='photos__item-img' src={getThumbnail(mapImg)} mode="aspectFill" onClick={this.previewImage.bind(this, mapImg, [mapImg])}></Image>
85
+                    <View>
86
+                      <View style={{ width: '100px', textAlign: 'center' }}>  {`${apartmentName}(${buildingImgList.length})`} </View>
87
+                    </View>
88
+                  </View>
89
+                )
90
+              })}
91
+            </View>
98 92
           </View>
99 93
         </ScrollView>
94
+        <View className='photos__item'>
95
+          {imgList.map((item, index) => {
96
+            console.log(item, '299999933333222')
97
+            return (
98
+              <Image className='photos__item-img' src={getThumbnail(item.url)} mode='widthFix' onClick={this.previewImage.bind(this, item.url, _photosImgs)}></Image>
99
+            )
100
+          })}
101
+        </View>
100 102
       </View>
101 103
     );
102 104
   }

+ 42
- 6
src/pages/project/album/index.scss 查看文件

@@ -2,8 +2,8 @@
2 2
   position: relative;
3 3
   background: #ffffff;
4 4
   width: 100%;
5
-  padding: 50px;
6
-  padding:30px 40px;
5
+  padding: 30px;
6
+  padding: 30px 20px;
7 7
 
8 8
   &__item {
9 9
     position: relative;
@@ -16,10 +16,46 @@
16 16
     }
17 17
 
18 18
     &-img {
19
-      width: 200px;
20
-      height: 150px;
21
-      margin-right: 10px;
22
-      margin-bottom: 10px;
19
+      width: 336px;
20
+      height: 252px;
21
+      background: rgba(216, 216, 216, 1);
22
+      border-radius: 12px;
23
+
24
+      margin: 9px;
25
+      margin-bottom: 9px;
26
+    }
27
+  }
28
+}
29
+
30
+.around-tab {
31
+  display: flex;
32
+  flex-wrap: nowrap;
33
+  align-items: center;
34
+  overflow-x: scroll;
35
+  scroll-behavior: smooth;
36
+  padding: 24px 0;
37
+
38
+  &::-webkit-scrollbar {
39
+    width: 0;
40
+    height: 0;
41
+    color: transparent;
42
+  }
43
+
44
+  &__item {
45
+    flex: 1 0 auto;
46
+
47
+    font-size: 32px;
48
+    color: #666;
49
+    line-height: 44px;
50
+    padding: 4px 0;
51
+
52
+    &.active {
53
+      color: #BB9C79;
54
+      border-bottom: 1px solid #C8B299;
55
+    }
56
+
57
+    &+& {
58
+      margin-left: 64px;
23 59
     }
24 60
   }
25 61
 }

+ 1
- 0
src/pages/project/detail/Around/Tab.js 查看文件

@@ -16,6 +16,7 @@ export default function Tab(props) {
16 16
     <View className="around-tab">
17 17
       {tabList.map((item, index) => {
18 18
         const { key, label, num } = item || {}
19
+        console.log(item,'123456')
19 20
         return (
20 21
           <View
21 22
             key={key}

+ 48
- 18
src/pages/project/detail/index.js 查看文件

@@ -55,6 +55,7 @@ export default class Index extends Component {
55 55
     posterShow: 'none',
56 56
     current: 1,
57 57
     btnstate: 1,// 1显示视频 0显示图片
58
+    albumCurrent: 0,
58 59
   }
59 60
 
60 61
   componentWillMount () {
@@ -489,7 +490,7 @@ export default class Index extends Component {
489 490
     })
490 491
   }
491 492
 
492
-  renderBottomMenu() {
493
+  renderBottomMenu () {
493 494
     const { userInfo: { person: { personType } } } = this.props
494 495
     const { posterShow } = this.state
495 496
     return (
@@ -592,17 +593,53 @@ export default class Index extends Component {
592 593
       prev = prev.concat(cur.buildingImgList)
593 594
       return prev
594 595
     }, [])
596
+
597
+    const { albumCurrent } = this.state
598
+
599
+  
600
+    // console.log(this.props, '2222222222222')
595 601
     return (
602
+
603
+      //   <View className="around-tab">
604
+      //   {tabList.map((item, index) => {
605
+      //     const { key, label, num } = item || {}
606
+      //     return (
607
+      //       <View
608
+      //         key={key}
609
+      //         className={`around-tab__item ${current === index ? 'active' : ''}`}
610
+      //         onClick={handleClick(index)}
611
+      //       >
612
+      //         {`${label}(${num})`}
613
+      //       </View>
614
+      //     )
615
+      //   })}
616
+      // </View>    imgList.length > 0 &&
596 617
       <Block>
597
-        {
598
-          imgList.length > 0 && (
618
+        { list.length > 0 &&
619
+          (
599 620
             <View className='photos__type'>
600 621
               <View className='photos__type__title'>相册</View>
601 622
               <ScrollView scrollX>
602
-                <View className='photos__type__content'>
603
-                  <View className='photos__type__list'>11
604
-                    {/* <Image className='photos__img' src={getThumbnail(imgList[0].url)} mode="widthFix" onClick={this.toViewAlbum}></Image>
605
-                    <View className='photos__img__len'>共{imgList.length}张</View> */}
623
+                <View className='photos__type__content' onClick={this.toViewAlbum}>
624
+                {console.log(list, '2222222222222')}
625
+                  <View className="around-tab">
626
+                    {list.map((item, index) => {
627
+                      const { apartmentName} = item || {}
628
+                      const  buildingImgList = item.buildingImgList
629
+                     
630
+                      console.log(buildingImgList, '22333333222')
631
+                      return (
632
+                        <View
633
+                          style={{ marginRight: '8px' }}                  
634
+                        >
635
+                          {/* {`${label}(${num})`} */}
636
+                          <View>
637
+                            <Image className='albumimg' src={getThumbnail(buildingImgList[0].url)} ></Image>
638
+                            <View style={{ textAlign: 'center' }}>  {`${apartmentName}(${buildingImgList.length})`} </View>
639
+                          </View>
640
+                        </View>
641
+                      )
642
+                    })}
606 643
                   </View>
607 644
                 </View>
608 645
               </ScrollView>
@@ -858,13 +895,11 @@ export default class Index extends Component {
858 895
   }
859 896
 
860 897
   renderVideo () {
861
-    console.log('-------props------', this.props)
862 898
     const { projectDetail } = this.props
863 899
     return (
864 900
       <View
865 901
         className="pro__banner"
866 902
       >
867
-        { console.log('-------projectDetail.videoUrl------', projectDetail.videoUrl)}
868 903
         <Video
869 904
           src={projectDetail.videoUrl}
870 905
           // src='http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400'
@@ -881,7 +916,6 @@ export default class Index extends Component {
881 916
   }
882 917
 
883 918
   changeCurrent (current) {
884
-    // console.log('value:', current)
885 919
     this.setState({
886 920
       current: current + 1
887 921
     })
@@ -896,10 +930,6 @@ export default class Index extends Component {
896 930
     const { total = 0, records = [] } = uvList
897 931
     const openDate = projectDetail.openingDate ? dayjs(projectDetail.openingDate).locale('zh-cn').format('YYYY年M月D日') : '暂无'
898 932
 
899
-    // if (projectDetail.videoUrl != null){
900
-    //   setState({ btnstate: 1 }
901
-    // },
902
-
903 933
     return (
904 934
       <Block>
905 935
         {
@@ -924,17 +954,17 @@ export default class Index extends Component {
924 954
                 </View>
925 955
               )}
926 956
 
927
-              {btnstate === 1 && projectDetail.videoUrl != null &&  this.renderVideo()}
957
+              {btnstate === 1 && projectDetail.videoUrl != null && this.renderVideo()}
928 958
 
929
-              }
959
+        
930 960
               {btnstate === 1 && projectDetail.videoUrl != null && (<View className='media-btn'>
931
-                <View className='video-btn'  style={{ background: ' rgba(187, 156, 121, 1)', color: 'rgba(255, 255, 255, 1)' }} >视频</View>
961
+                <View className='video-btn' style={{ background: ' rgba(187, 156, 121, 1)', color: 'rgba(255, 255, 255, 1)' }} >视频</View>
932 962
                 <View className='img-btn' onClick={() => this.setState({ btnstate: 0 })}>图片</View>
933 963
               </View>)}
934 964
 
935 965
               {btnstate === 0 && projectDetail.videoUrl != null && (<View className='media-btn'>
936 966
                 <View className='video-btn' onClick={() => this.setState({ btnstate: 1 })} >视频</View>
937
-                <View className='img-btn'  style={{ background: ' rgba(187, 156, 121, 1)', color: 'rgba(255, 255, 255, 1)' }}>图片</View>
967
+                <View className='img-btn' style={{ background: ' rgba(187, 156, 121, 1)', color: 'rgba(255, 255, 255, 1)' }}>图片</View>
938 968
               </View>)}
939 969
 
940 970
 

+ 37
- 2
src/pages/project/detail/index.scss 查看文件

@@ -29,12 +29,13 @@
29 29
     color: rgba(53, 53, 53, 1);
30 30
     display: flex;
31 31
     position: fixed;
32
+
32 33
     .video-btn {
33 34
       width: 92px;
34 35
       height: 64px;
35 36
       border-radius: 12px 0px 0px 12px;
36
-  
37
-    
37
+
38
+
38 39
     }
39 40
 
40 41
     .img-btn {
@@ -998,4 +999,38 @@
998 999
   100% {
999 1000
     transform: scale(1.1);
1000 1001
   }
1002
+}
1003
+
1004
+.around-tab {
1005
+  display: flex;
1006
+  flex-wrap: nowrap;
1007
+  align-items: center;
1008
+  overflow-x: scroll;
1009
+  scroll-behavior: smooth;
1010
+  padding: 24px 0;
1011
+
1012
+  &__item {
1013
+    flex: 1 0 auto;
1014
+
1015
+    font-size: 32px;
1016
+    color: #666;
1017
+    line-height: 44px;
1018
+    padding: 4px 0;
1019
+
1020
+    &.active {
1021
+      color: #BB9C79;
1022
+      border-bottom: 1px solid #C8B299;
1023
+    }
1024
+
1025
+    &+& {
1026
+      margin-left: 64px;
1027
+    }
1028
+  }
1029
+}
1030
+
1031
+.albumimg {
1032
+  width: 218px;
1033
+  height: 164px;
1034
+  background: rgba(216, 216, 216, 1);
1035
+  border-radius: 12px;
1001 1036
 }