Bläddra i källkod

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into dev

张延森 5 år sedan
förälder
incheckning
5f3b7f5f2c
2 ändrade filer med 11 tillägg och 9 borttagningar
  1. 9
    4
      src/pages/project/detail/index.js
  2. 2
    5
      src/pages/project/index.js

+ 9
- 4
src/pages/project/detail/index.js Visa fil

@@ -1047,9 +1047,14 @@ export default class Index extends Component {
1047 1047
   }
1048 1048
   pointItemCilck() {
1049 1049
     const { projectDetail } = this.props
1050
-    Taro.navigateTo({
1051
-      url: `/pages/project/detail/highLight?type=${projectDetail.highlightsType}&link=${encodeURIComponent(projectDetail.highlightsLink)}&content=${encodeURIComponent(projectDetail.highlights)}`
1052
-    })
1050
+    if (projectDetail.highlightsLink || projectDetail.highlights) {
1051
+      Taro.navigateTo({
1052
+        url: `/pages/project/detail/highLight?type=${projectDetail.highlightsType}&link=${encodeURIComponent(projectDetail.highlightsLink)}&content=${encodeURIComponent(projectDetail.highlights)}`
1053
+      })
1054
+    } else {
1055
+      return
1056
+    }
1057
+
1053 1058
   }
1054 1059
 
1055 1060
   renderPoints() {
@@ -1519,7 +1524,7 @@ export default class Index extends Component {
1519 1524
                     </View>
1520 1525
                   </View>
1521 1526
                   {/* 项目亮点 */}
1522
-                  {projectDetail.highlightsType && this.renderPoints()}
1527
+                  {projectDetail.highlightsCover && this.renderPoints()}
1523 1528
                   {/* 项目顾问 */}
1524 1529
                   {this.renderConsuler()}
1525 1530
                   {/* 周边 */}

+ 2
- 5
src/pages/project/index.js Visa fil

@@ -130,19 +130,16 @@ export default class Index extends Component {
130 130
         const newArr = [];
131 131
         iconList.forEach(item => {
132 132
           menus.forEach(menu => {
133
-            if (menu.code == item.code) {
133
+            if (menu.iconCode == item.iconCode) {
134 134
               newArr.push(menu);
135 135
             }
136 136
           })
137 137
         })
138 138
         const { userInfo: { person: { personType } } } = this.props
139 139
         this.setState({
140
-          menusList: personType == ROLE_CODE['CONSULTANT'] ? newArr.filter(item => item.code != 'refercustomers') : newArr
140
+          menusList: personType == ROLE_CODE['CONSULTANT'] ? newArr.filter(item => item.iconCode != 'refercustomers') : newArr
141 141
         })
142 142
       }
143
-
144
-
145
-
146 143
     })
147 144
   }
148 145