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

首页2

parent 87cb5021
......@@ -22,4 +22,7 @@ export default {
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 @@
<div class="bg-b">
<Icon type="ios-arrow-back" />
</div>
<!-- <div class="bg" v-for="(item,index) in listFavorite" :key="index">
<Icon :type="item.icon" />
<p>{{item.title}}</p>
</div>-->
<div class="bg">
<Icon type="ios-cube" />
<p>电子对账单</p>
......@@ -99,6 +103,7 @@ export default {
data() {
return {
listTask: [],
listFavorite: [],
imgUrl: iconImg,
userData: {},
avatorPath: "",
......@@ -108,6 +113,7 @@ export default {
created() {
this.get();
this.getUserInfoFn();
this.getList();
},
methods: {
getUserInfoFn() {
......@@ -144,6 +150,12 @@ export default {
this.listTask = list;
});
},
getList() {
let conditions = [];
Api.favoriteList({ conditions: conditions }).then((r) => {
this.listFavorite = r.result;
});
},
goPage(u) {
// alert(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