1007395918@qq.com před 5 roky
rodič
revize
73e257ea89

+ 5
- 5
src/onlineSelling/components/HouseGrid/unit.scss Zobrazit soubor

@@ -1,19 +1,19 @@
1 1
 .unit {
2 2
   .head {
3
-    margin-bottom: 20rpx;
4
-    padding: 0 30rpx;
5
-    font-size: 32rpx;
3
+    margin-bottom: 20px;
4
+    padding: 0 30px;
5
+    font-size: 32px;
6 6
     line-height: 1.8em;
7 7
     color: #333;
8 8
     background-color: #F2F2F2;
9 9
 
10 10
     .item {
11 11
       display: inline-block;
12
-      margin-right: 32rpx;
12
+      margin-right: 32px;
13 13
     }
14 14
   }
15 15
 
16 16
   .body {
17
-    padding: 0 30rpx;
17
+    padding: 0 30px 20px 30px;
18 18
   }
19 19
 }

+ 15
- 2
src/onlineSelling/pages/detail/index.js Zobrazit soubor

@@ -93,6 +93,16 @@ export default class Index extends Component {
93 93
     })
94 94
   }
95 95
 
96
+  handlePanoramaClick(panorama) {
97
+    const url = (panorama || {}).panoramaLink
98
+
99
+    if (!url) return;
100
+
101
+    this.navigateTo(`/pages/project/panorama/index?url=${encodeURIComponent(url)}`)
102
+  }
103
+
104
+  
105
+
96 106
 
97 107
   render() {
98 108
     const { grantPhoneVisible, grantAvatarVisible, houseDetail, buildingImgList, popVisiable } = this.state
@@ -118,7 +128,10 @@ export default class Index extends Component {
118 128
         <View className='detail'>
119 129
           <View className='detail-top'>
120 130
             {buildingImgList.length ?
121
-              <Image className="cover-img" mode="aspectFill" src={transferImage(buildingImgList[0].url)}></Image>
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>
122 135
               : <Blank tips="暂无户型信息"></Blank>
123 136
             }
124 137
 
@@ -174,7 +187,7 @@ export default class Index extends Component {
174 187
 
175 188
         </View>
176 189
 
177
-      </Block>
190
+      </Block >
178 191
     );
179 192
   }
180 193
 }

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

@@ -38,10 +38,20 @@
38 38
     height:600px;
39 39
     position: fixed;
40 40
     top: 0;
41
-    text-align: center;
41
+ 
42
+    
42 43
     .cover-img{
43 44
       width:100%;
44 45
       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;
45 55
     }
46 56
     .norecord-img{
47 57
       width:280px;

+ 13
- 12
src/onlineSelling/pages/houseList/index.js Zobrazit soubor

@@ -105,19 +105,8 @@ export default class HouseList extends Component {
105 105
       this.getInfo(id)
106 106
       this.anotherInfo(id)
107 107
     }
108
-
109
-    this.reportClientFn()
110
-    let { qrcodeParams } = this.state
111
-    const consultant = this.$router.params.consultant || qrcodeParams.consultant
112
-    if (consultant) {
113
-      getCardDetail(consultant).then(res => {
114
-        this.setState({
115
-          consultData: res,
116
-          consultShow: true
117
-        })
118
-      })
119
-    }
120 108
   }
109
+
121 110
   getInfo(id) {
122 111
     const { startPrice, endPrice, apartmentId } = this.state
123 112
     const params = {
@@ -147,6 +136,18 @@ export default class HouseList extends Component {
147 136
         tipsList: res || {}
148 137
       })
149 138
     })
139
+    this.reportClientFn()
140
+    let { qrcodeParams } = this.state
141
+    const consultant = this.$router.params.consultant || qrcodeParams.consultant
142
+    console.log(qrcodeParams, "qrcodeParamsqrcodeParamsqrcodeParamsqrcodeParamsqrcodeParamsqrcodeParamsqrcodeParams")
143
+    if (consultant) {
144
+      getCardDetail(consultant).then(res => {
145
+        this.setState({
146
+          consultData: res,
147
+          consultShow: true
148
+        })
149
+      })
150
+    }
150 151
     querySalesInfo(id).then(res => {
151 152
 
152 153
       this.setState({

+ 4
- 1
src/pages/card/index.js Zobrazit soubor

@@ -53,6 +53,8 @@ export default class Index extends Component {
53 53
       // if (sceneInShare(options.scene)) {
54 54
 
55 55
       // 必须授权电话
56
+      const { cardInfo, userInfo: { person: { personId, orgId } } } = this.props
57
+      console.log(person, "cardInfocardInfocardInfocardInfocardInfocardInfocardInfo")
56 58
       if (this.toggleGrantPhone()) {
57 59
         this.toggleGrantAvatar()
58 60
       }
@@ -423,6 +425,7 @@ export default class Index extends Component {
423 425
       const { cardInfo, userInfo: { person } } = this.props
424 426
 
425 427
       if (person.personId != cardInfo.id) {
428
+
426 429
         Taro.setNavigationBarTitle({ title: `${cardInfo.name}为您服务` })
427 430
         reportClient(payload).then(res => {
428 431
           this.setState({ bound: true })
@@ -620,7 +623,7 @@ export default class Index extends Component {
620 623
 
621 624
               {buildingId && (
622 625
                 <View className="pro__info">
623
-                  <View className='project__title'>{isSelf?'项目信息':'为您推荐'}</View>
626
+                  <View className='project__title'>{isSelf ? '项目信息' : '为您推荐'}</View>
624 627
                   <ProjectItem data={projectDetail} onClick={this.toProjectDetail.bind(this)} />
625 628
                 </View>
626 629
               )}