@@ -34,7 +34,8 @@ var topicPage = new Vue({
}
},
created: function () {
- this.pageType = getUrlParam("type") ? getUrlParam("type")*1 : 0;
+ var paramsArr = window.location.pathname.split(".")[0].split("-");
+ this.pageType = paramsArr.length>=1 ? paramsArr[1] : '';
// 获取列表数据
this.getFloorDatas();
this.GetPageTopicBanner();