个人中心
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user