Przeglądaj źródła

修改vr户型样式

230320a303 1 rok temu
rodzic
commit
725a52e3e1

BIN
src/assets/img/icon_vr3.png


+ 19 - 16
src/pagesHouse/produceType.jsx

@@ -95,7 +95,7 @@ class Index extends Component {
     const that = this
     const dictData = Taro.getStorageSync('dictData')
     const hxIcon = require('@img/icon_hx.png')
-    const vrIcon = require('@img/icon_vr.png')
+    const vrIcon = require('@img/icon_vr3.png')
     const { curObj} = this.state
     const ptObj = arrToObj(dictData.product_type)
     const htObj = arrToObj(dictData.house_type)
@@ -131,15 +131,15 @@ class Index extends Component {
                             return (
                               <View className="sht-ops" key={three}>
                                 <View className="sht-area">
-                                  <View className="sa-left" onClick={this.previewImageHandle.bind(this, three.img_url, two.area_list)} >
-                                    <Image className="img" src={three.img_url + '_xs'}/>
-                                    <View className="tips">
+                                  <View className="sa-left" >
+                                    <Image  onClick={this.previewImageHandle.bind(this, three.img_url, two.area_list)} className="img" src={three.img_url + '_xs'}/>
+                                    <View  onClick={this.previewImageHandle.bind(this, three.img_url, two.area_list)} className="tips">
                                       <View className="bg"></View>
                                       <View className="t">查看大图</View>
                                     </View>
                                     {
                                       three.vr_key
-                                      ? <Image className="vr-icon" src={vrIcon}/>
+                                      ? <Image onClick={this.linkVrHandle.bind(this, three)} className="vr-icon" src={vrIcon}/>
                                       : ''
                                     }
                                   </View>
@@ -152,18 +152,21 @@ class Index extends Component {
                                       <View className="k">建面</View>
                                       <View className="v">{three.area}㎡</View>
                                     </View>
-                                    <View className="op">
-                                      <View className="k">户型VR</View>
-                                      <View className="v">
-                                        {
-                                          three.vr_key
-                                          ?
-                                          <View className="scoped-vr-btn">点击查看</View>
-                                          :
-                                          '待收集'
-                                        }
+                                    {
+                                      three.vr_key
+                                      ?
+                                      <View className="op">
+                                        <View className="k2">户型VR</View>
+                                        <View className="v">
+                                          <View className="scoped-vr-btn">VR看房</View>
+                                        </View>
                                       </View>
-                                    </View>
+                                      :
+                                      <View className="op">
+                                        <View className="k">户型VR</View>
+                                        <View className="v">待收集</View>
+                                      </View>
+                                    }
                                   </View>
                                 </View>
                                 {

+ 14 - 4
src/pagesHouse/produceType.scss

@@ -70,7 +70,7 @@
       position: absolute;
       left: 10px;
       top: 10px;
-      width: 40px;
+      width: 72px;
       height: 40px;
     }
     .img {
@@ -117,6 +117,12 @@
         color: $greyColor;
         font-size: 24px;
       }
+      .k2 {
+        width: 90px;
+        color: $greyColor;
+        font-size: 24px;
+        padding-top: 10px;
+      }
       .v {
         flex: 1;
         color: #313131;
@@ -131,7 +137,11 @@
 
 
 .scoped-vr-btn {
-  color: $mainColor;
-  font-weight: bold;
-  text-decoration: underline;
+  background: $mainColor;
+  color: #fff;
+  padding: 6px 20px;
+  text-align: center;
+  font-size: 26px;
+  display: inline-block;
+  border-radius: 10px;
 }

+ 3 - 2
src/pagesMore/center/index.jsx

@@ -129,11 +129,12 @@ class Index extends Component {
             } */}
             {/* <View className="ch-p2">{'洪楼PLUS,让买房更加简单~'}</View> */}
           </View>
-          {
+          {/* {
             curLvObj.val && Number(curLvObj.val) > 1
             ? <Image src={ bgInfoEdit } className="ch-r1" onClick={this.userEditLink.bind(this)}></Image>
             : ''
-          }
+          } */}
+         <Image src={ bgInfoEdit } className="ch-r1" onClick={this.userEditLink.bind(this)}></Image>
         </View>
         {this.renderClass()}
       </View>