|
@@ -90,7 +90,7 @@ export default {
|
|
if (response.data.code === 1) {
|
|
if (response.data.code === 1) {
|
|
this.doctorNews = response.data.responseData.records;
|
|
this.doctorNews = response.data.responseData.records;
|
|
this.total = response.data.responseData.total;
|
|
this.total = response.data.responseData.total;
|
|
- console.log(response.data.responseData.records)
|
|
|
|
|
|
+ // console.log(response.data.responseData.records)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//跳转
|
|
//跳转
|
|
@@ -108,6 +108,12 @@ export default {
|
|
this.loadData();
|
|
this.loadData();
|
|
console.log(`当前页: ${val}`);
|
|
console.log(`当前页: ${val}`);
|
|
},
|
|
},
|
|
|
|
+ //获取url斜杠最后的一个字段
|
|
|
|
+ getUrlsub() {
|
|
|
|
+ var urlStr = location.pathname;
|
|
|
|
+ var index = urlStr.lastIndexOf('\/');
|
|
|
|
+ this.aid = urlStr.substring(index + 1, urlStr.length);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|