个人中心

This commit is contained in:
2020-06-19 18:07:11 +08:00
parent f0244f8077
commit 7e71f97e01
12 changed files with 182 additions and 55 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="mine-help">
<ArticleList :articleList="helpList" :type="type"></ArticleList>
<ArticleList :articleList="helpList"></ArticleList>
</view>
</template>
<script>
@@ -8,14 +8,28 @@ import ArticleList from '@/components/mine/article-list/index'
export default {
data() {
return {
type: '使用帮助',
helpList: [1,1,1,1, 1, 1, 1]
page: 1,
helpList: []
}
},
components: {
ArticleList
},
methods: {},
onLoad() {
this.getUseHelpList();
},
methods: {
getUseHelpList() {
this.$u.api.getUseHelpList({
page: this.page,
tid: 1 // 1:使用帮助列表 2: 售后政策列表
}).then((res)=>{
if (res.errCode == 0) {
this.helpList = res.data.helpList;
}
})
}
},
}
</script>
<style lang="scss" scoped>