个人中心

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