|
@@ -1,6 +1,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import tokenpocketBnb from "@/common/wallet/tokenpocket-wallet/tokenpocket-bnb";
|
|
import tokenpocketBnb from "@/common/wallet/tokenpocket-wallet/tokenpocket-bnb";
|
|
|
import {getTotalMoney} from "@/api/money";
|
|
import {getTotalMoney} from "@/api/money";
|
|
|
|
|
+import {getDividendList} from "@/api/pledge";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "home-index",
|
|
name: "home-index",
|
|
@@ -21,13 +22,23 @@ export default {
|
|
|
pledgeTotal:'',
|
|
pledgeTotal:'',
|
|
|
revenueTotal:'',
|
|
revenueTotal:'',
|
|
|
price:'',
|
|
price:'',
|
|
|
|
|
+ page:1,
|
|
|
|
|
+ list:[]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.getIconNum()
|
|
this.getIconNum()
|
|
|
this.getTotalMoney()
|
|
this.getTotalMoney()
|
|
|
|
|
+ this.getDividendList()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ getDividendList(){
|
|
|
|
|
+ getDividendList({'page':this.page}).then(res=>{
|
|
|
|
|
+ if(res.code===1){
|
|
|
|
|
+ this.list.push(...res.data.items)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getTotalMoney(){
|
|
getTotalMoney(){
|
|
|
getTotalMoney().then(res=>{
|
|
getTotalMoney().then(res=>{
|
|
|
if (res.code===1){
|
|
if (res.code===1){
|