1007395918@qq.com 5 年前
父节点
当前提交
966c413454

+ 1
- 1
src/onlineSelling/components/HouseGrid/Room.js 查看文件

19
       {status == '1' && <View className="room" onClick={handleClick}>
19
       {status == '1' && <View className="room" onClick={handleClick}>
20
         <View className="warn">{roomName || ''}</View>
20
         <View className="warn">{roomName || ''}</View>
21
         <View className="warn">{personNum || ''}</View>
21
         <View className="warn">{personNum || ''}</View>
22
-        <View className="info" style="white-space:nowrap;">{wanY}万元</View>
22
+        <View className="info" >{wanY}万元</View>
23
         <View className="info">{apartmentName || ''}</View>
23
         <View className="info">{apartmentName || ''}</View>
24
       </View>}
24
       </View>}
25
 
25
 

+ 2
- 0
src/onlineSelling/components/HouseGrid/room.scss 查看文件

4
   padding: 20px 10px;
4
   padding: 20px 10px;
5
   font-size: 28px;
5
   font-size: 28px;
6
   line-height: 1.4em;
6
   line-height: 1.4em;
7
+  height: 192px;
7
   overflow: hidden;
8
   overflow: hidden;
8
 
9
 
9
   .info {
10
   .info {
10
     color: #333;
11
     color: #333;
12
+    white-space:nowrap;
11
   }
13
   }
12
 
14
 
13
   .warn {
15
   .warn {

+ 24
- 10
src/onlineSelling/pages/detail/index.js 查看文件

93
     })
93
     })
94
   }
94
   }
95
 
95
 
96
-  handlePanoramaClick(panorama) {
97
-    const url = (panorama || {}).panoramaLink
96
+  handlePanoramaClick(panoramaLink) {
97
+    console.log(panoramaLink, "panoramapanoramapanoramapanoramapanoramapanoramapanoramapanoramapanorama")
98
 
98
 
99
-    if (!url) return;
99
+    if (!panoramaLink) return;
100
 
100
 
101
-    this.navigateTo(`/pages/project/panorama/index?url=${encodeURIComponent(url)}`)
101
+    Taro.navigateTo({ url: `/pages/project/panorama/index?url=${encodeURIComponent(panoramaLink)}` })
102
+
103
+  }
104
+
105
+  goToPanorama(panoramaLink) {
106
+
107
+
108
+    if (!panoramaLink) return;
109
+
110
+    this.navigateTo(`/pages/project/panorama/index?url=${encodeURIComponent(panoramaLink)}`)
111
+  }
112
+
113
+  handlePanoramaClick(panoramaLink) {
114
+    this.goToPanorama(panoramaLink)
115
+  }
116
+  navigateTo(url) {
117
+    Taro.navigateTo({ url: url })
102
   }
118
   }
103
 
119
 
104
-  
105
 
120
 
106
 
121
 
107
   render() {
122
   render() {
128
         <View className='detail'>
143
         <View className='detail'>
129
           <View className='detail-top'>
144
           <View className='detail-top'>
130
             {buildingImgList.length ?
145
             {buildingImgList.length ?
131
-              <Block>
132
-                <Image className="cover-img" mode="aspectFill" src={transferImage(buildingImgList[0].url)}></Image>
133
-                {/* <Image className="vr-img"   onClick={this.handlePanoramaClick.bind(this)} src={require('@/assets/vr.png')}></Image> */}
134
-              </Block>
146
+              <Image className="cover-img" mode="aspectFill" src={transferImage(buildingImgList[0].url)} />
135
               : <Blank tips="暂无户型信息"></Blank>
147
               : <Blank tips="暂无户型信息"></Blank>
136
             }
148
             }
137
-
138
           </View>
149
           </View>
150
+          {buildingImgList.length && buildingImgList[0].type == '1' &&
151
+            <Image className="vr-img" onClick={() => this.handlePanoramaClick(buildingImgList[0].panoramaLink)} src={require('@/assets/vr.png')} />
152
+          }
139
           <ScrollView
153
           <ScrollView
140
             enableBackToTop
154
             enableBackToTop
141
             className="wrap"
155
             className="wrap"

+ 10
- 10
src/onlineSelling/pages/detail/index.scss 查看文件

28
   }
28
   }
29
 
29
 
30
 }
30
 }
31
+.vr-img{
32
+  position: fixed;
33
+  top: 452px;
34
+  left: 327px;
35
+  width:96px;
36
+  height:88px;
37
+}
31
 .detail {
38
 .detail {
32
   position: relative;
39
   position: relative;
33
   width: 100%;
40
   width: 100%;
43
     .cover-img{
50
     .cover-img{
44
       width:100%;
51
       width:100%;
45
       height:100%;
52
       height:100%;
46
-      position: fixed;
47
-      top: 0;
48
-    }
49
-    .vr-img{
50
-      position: fixed;
51
-      top: 452px;
52
-      left: 327px;
53
-      width:96px;
54
-      height:88px;
55
     }
53
     }
54
+    
56
     .norecord-img{
55
     .norecord-img{
57
       width:280px;
56
       width:280px;
58
       height:220px;
57
       height:220px;
65
   }
64
   }
66
  
65
  
67
   .wrap {
66
   .wrap {
68
-    padding-top: 570px;
67
+    margin-top: 570px;
69
     background: transparent;
68
     background: transparent;
70
     position: relative;
69
     position: relative;
70
+
71
   }
71
   }
72
 
72
 
73
   &__main {
73
   &__main {