完成个人中心
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="buddha-activity">
|
||||
<van-nav-bar left-arrow v-if="$route.meta.showNavBar" :title="$route.meta.title" @click-left="$router.back()" :style="{backgroundColor: $route.meta.navBarBackgroundColor}" />
|
||||
<div div class="process-container">
|
||||
<div class="process-container">
|
||||
<scroll-view :height="height - 50" ref="scrollView">
|
||||
<buddha-process v-for="(p, i) in list" :key="i" :data="p" :show-goods-btn="!query.goods_id"></buddha-process>
|
||||
<div v-if="total === list.length && list.length > 3" class="no-more">没有更多了</div>
|
||||
@@ -32,13 +32,11 @@ export default {
|
||||
methods: {
|
||||
async getDynamicData(){
|
||||
const res = await getDynamicData(this.page, this.query.goods_id, this.size)
|
||||
console.log(res)
|
||||
this.total = res.total;
|
||||
this.list = res.results;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.scrollView.refresh();
|
||||
})
|
||||
console.log(res)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user