Browse Source

修复测评机构排行榜、入驻品牌机构点击进入的问题

guo00guo 4 năm trước cách đây
mục cha
commit
5bfb82cb4f

+ 1 - 1
src/pages/DetailPage/NewAgencyDetail.vue

@@ -107,7 +107,7 @@
       //加载数据
       //加载数据
       getAuthInfo() {
       getAuthInfo() {
         this.showLoading()
         this.showLoading()
-        getAgencyAuthInfoCommon(this.user.userVO.id, this.getAuthInfoSuccess, this.getAuthInfoFail)
+        getAgencyAuthInfoCommon(this.userId, this.getAuthInfoSuccess, this.getAuthInfoFail)
       },
       },
       getAuthInfoSuccess(res) {
       getAuthInfoSuccess(res) {
         this.hideLoading()
         this.hideLoading()

+ 7 - 6
src/pages/Homepage/HotAgency.vue

@@ -45,12 +45,13 @@
                 name: 'AgencyList',
                 name: 'AgencyList',
             });
             });
         },
         },
-        goToDetail(userId) {
+      goToDetail(userId) {
-            this.$router.push({
+        this.$router.push({
-                name: 'NewAgencyDetail',
+          name: 'NewAgencyDetail',
-                params: {id: userId, type: 0}
+          path:'/agency/detail',
-            })
+          query: {id: userId, type: 0}
-        },
+        })
+      },
     }
     }
   }
   }
 </script>
 </script>

+ 3 - 2
src/pages/HomepageSearch/AgencyResidentList.vue

@@ -179,10 +179,11 @@
         this.activePage = index;
         this.activePage = index;
         this.handleSearchData();
         this.handleSearchData();
       },
       },
-      goToDetail(id) {
+      goToDetail(userId) {
         this.$router.push({
         this.$router.push({
           name: 'NewAgencyDetail',
           name: 'NewAgencyDetail',
-          params: {id: id, type: 1}
+          path:'/agency/detail',
+          query: {id: userId, type: 1}
         })
         })
       },
       },
       showLoading() {
       showLoading() {