|
|
@@ -1,12 +1,61 @@
|
|
|
<script>
|
|
|
+import tokenpocketBnb from "@/common/wallet/tokenpocket-wallet/tokenpocket-bnb";
|
|
|
+import {getTotalMoney} from "@/api/money";
|
|
|
+import {getTeamList} from "@/api/member";
|
|
|
+
|
|
|
export default {
|
|
|
name: "my-index",
|
|
|
+ props:{
|
|
|
+ address:{
|
|
|
+ default:''
|
|
|
+ }
|
|
|
+ },
|
|
|
components: {},
|
|
|
+ watch:{
|
|
|
+ 'address':function () {
|
|
|
+ this.getIconNum()
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
- return {};
|
|
|
+ return {
|
|
|
+ coinNum:'',
|
|
|
+ pledgeTotal:'',
|
|
|
+ revenueTotal:'',
|
|
|
+ list:[],
|
|
|
+ page:1,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.getIconNum()
|
|
|
+ this.getTotalMoney()
|
|
|
+ this.getTeamList()
|
|
|
},
|
|
|
- mounted() {},
|
|
|
methods: {
|
|
|
+ getTeamList(){
|
|
|
+ getTeamList({'page':this.page}).then(res=>{
|
|
|
+ if(res.code===1){
|
|
|
+ ++this.page
|
|
|
+ this.list.push(res.data.items)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getTotalMoney(){
|
|
|
+ getTotalMoney().then(res=>{
|
|
|
+ if (res.code===1){
|
|
|
+ this.pledgeTotal=res.data.pledgeTotal
|
|
|
+ this.revenueTotal=res.data.revenueTotal
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ async getIconNum(){
|
|
|
+ if(this.address===''){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.coinNum= await tokenpocketBnb.getTokenBalance(this.address,0)
|
|
|
+ console.log(this.coinNum,"icon-num----------------------")
|
|
|
+
|
|
|
+ },
|
|
|
goUrl() {
|
|
|
uni.navigateTo({
|
|
|
url: 'pages/my/inner-page/all_profit'
|
|
|
@@ -22,39 +71,39 @@ export default {
|
|
|
<div class="h-80 b-rad-20 bg-one flex-1 flex-direction-column align-items-center flex-justify-center mr-20">
|
|
|
<div class="fs-28 fc-f">余额</div>
|
|
|
<div class="fs-30 fc-f fw-b">
|
|
|
- 3
|
|
|
+ {{coinNum}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="h-80 b-rad-20 bg-two flex-1 flex-direction-column align-items-center flex-justify-center mr-20">
|
|
|
<div class="fs-28 fc-f">贡献</div>
|
|
|
<div class="fs-30 fc-f fw-b">
|
|
|
- 3
|
|
|
+ {{pledgeTotal}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div @click="goUrl" class="h-80 b-rad-20 bg-one flex-1 flex-direction-column align-items-center flex-justify-center">
|
|
|
<div class="fs-28 fc-f">总收益</div>
|
|
|
<div class="fs-30 fc-f fw-b">
|
|
|
- 3
|
|
|
+ {{revenueTotal}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="fs-34 fw-b mb-20">
|
|
|
我的团队
|
|
|
</div>
|
|
|
- <div class="bgc-f p-10 box-sizing-border b-rad-20">
|
|
|
+ <div class="bgc-f p-10 box-sizing-border b-rad-20" v-for="item in list">
|
|
|
<div class="pb-10 border-bottom-e5e5e5 fs-28 mb-20">
|
|
|
- sdfddd
|
|
|
+ {{item.address}}
|
|
|
</div>
|
|
|
<div class="align-items-start flex-justify-space pb-10">
|
|
|
<div class="flex-1 left-box">
|
|
|
- <div class="fs-28 mb-4">注册时间:2023/02/01</div>
|
|
|
- <div class="fs-28 mb-4">团队人数:50</div>
|
|
|
- <div class="fs-28">直推人数:22</div>
|
|
|
- </div>
|
|
|
- <div class="flex-1 pl-20 box-sizing-border">
|
|
|
- <div class="fs-28 mb-4">自身业绩:10000</div>
|
|
|
- <div class="fs-28">团队业绩:10000</div>
|
|
|
+ <div class="fs-28 mb-4">注册时间: {{item.created_date}}</div>
|
|
|
+ <div class="fs-28 mb-4">团队人数:{{item.clanNum}}</div>
|
|
|
+ <div class="fs-28">直推人数:{{item.recomNum}}</div>
|
|
|
</div>
|
|
|
+<!-- <div class="flex-1 pl-20 box-sizing-border">-->
|
|
|
+<!-- <div class="fs-28 mb-4">自身业绩:10000</div>-->
|
|
|
+<!-- <div class="fs-28">团队业绩:10000</div>-->
|
|
|
+<!-- </div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div>
|