230320a303 1 年之前
父节点
当前提交
2dedc29009
共有 2 个文件被更改,包括 16 次插入1 次删除
  1. 10 1
      src/pagesHouse/indexDtl.jsx
  2. 6 0
      src/pagesHouse/indexDtl.scss

+ 10 - 1
src/pagesHouse/indexDtl.jsx

@@ -284,9 +284,18 @@ class Index extends Component {
         <View className="s" key={tagIndex}>{tag}</View>
       )
     })
+
+    const dictData = Taro.getStorageSync('dictData')
+    const product_type = curObj.product_type ? curObj.product_type.split(',') : []
+    let productTypeName = product_type.map(v => {
+      return arrToObj(dictData.product_type)[v]
+    })
+    productTypeName = productTypeName.length > 0 ? `[${productTypeName.join(',')}]` : ''
     return (
       <View className="dtl-info">
-        <View className="di-title">{curObj.estate_name}</View>
+        <View className="di-title">{curObj.estate_name}
+          <View className="dt-sign">{productTypeName}</View>
+        </View>
         <View className="di-sign">
           <View className="l">¥{curObj.price_range || 'loading'}/㎡</View>
           {

+ 6 - 0
src/pagesHouse/indexDtl.scss

@@ -103,6 +103,12 @@ page {
     color: #333;
     font-weight: bold;
     padding-bottom: 10px;
+    padding-right: 100px;
+    .dt-sign {
+      display: inline-block;
+      font-size: 30px;
+      color: #ff9800;
+    }
   }
   .di-sign {
     margin-right: 100px;