Commit 3b28beb6 authored by 仇晓婷's avatar 仇晓婷

首页2

parent 87cb5021
...@@ -22,4 +22,7 @@ export default { ...@@ -22,4 +22,7 @@ export default {
list(params) { list(params) {
return Api.post(`${systemUrl}/newmessage/list`, params); //获取列表信息 return Api.post(`${systemUrl}/newmessage/list`, params); //获取列表信息
}, },
favoriteList(params) {
return Api.post(`${systemUrl}/favorite/list`, params); //获取收藏列表信息
},
} }
\ No newline at end of file
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
<div class="bg-b"> <div class="bg-b">
<Icon type="ios-arrow-back" /> <Icon type="ios-arrow-back" />
</div> </div>
<!-- <div class="bg" v-for="(item,index) in listFavorite" :key="index">
<Icon :type="item.icon" />
<p>{{item.title}}</p>
</div>-->
<div class="bg"> <div class="bg">
<Icon type="ios-cube" /> <Icon type="ios-cube" />
<p>电子对账单</p> <p>电子对账单</p>
...@@ -99,6 +103,7 @@ export default { ...@@ -99,6 +103,7 @@ export default {
data() { data() {
return { return {
listTask: [], listTask: [],
listFavorite: [],
imgUrl: iconImg, imgUrl: iconImg,
userData: {}, userData: {},
avatorPath: "", avatorPath: "",
...@@ -108,6 +113,7 @@ export default { ...@@ -108,6 +113,7 @@ export default {
created() { created() {
this.get(); this.get();
this.getUserInfoFn(); this.getUserInfoFn();
this.getList();
}, },
methods: { methods: {
getUserInfoFn() { getUserInfoFn() {
...@@ -144,6 +150,12 @@ export default { ...@@ -144,6 +150,12 @@ export default {
this.listTask = list; this.listTask = list;
}); });
}, },
getList() {
let conditions = [];
Api.favoriteList({ conditions: conditions }).then((r) => {
this.listFavorite = r.result;
});
},
goPage(u) { goPage(u) {
// alert(u.menuUrl) // alert(u.menuUrl)
this.$router.push(u.menuUrl); this.$router.push(u.menuUrl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment