完成个人中心

This commit is contained in:
2021-11-27 16:49:16 +08:00
parent 6f4b7a7b02
commit 00677377ca
17 changed files with 131 additions and 65 deletions
+1 -3
View File
@@ -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)
}
}
}