|
@@ -15,13 +15,13 @@
|
|
|
<view class="invite">
|
|
|
<view class="invite-code">邀请码:{{invite_code}}</view>
|
|
|
<view class="invite-progress">
|
|
|
- <view class="item active"></view>
|
|
|
- <view class="item active"></view>
|
|
|
- <view class="item active"></view>
|
|
|
- <view class="item"></view>
|
|
|
- <view class="item"></view>
|
|
|
+ <template v-for="index in 5">
|
|
|
+ <view v-if="index <= invite_num" class="item active"></view>
|
|
|
+ <view v-else class="item"></view>
|
|
|
+ </template>
|
|
|
</view>
|
|
|
- <view class="invite-notes">再邀请3人获得代理会员</view>
|
|
|
+ <view class="invite-notes">再邀请{{5 - invite_num}}人获得一个月代理会员</view>
|
|
|
+ <view v-if="vip_expire && Date.parse(vip_expire.replace('-','/')) > new Date()" class="invite-notes">会员到期时间:{{vip_expire | datetimeFilter('YYYY-MM-DD')}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="body">
|
|
@@ -32,14 +32,64 @@
|
|
|
</view>
|
|
|
<view v-if="user_type===2" class="row">
|
|
|
<view class="col">保证金(元):<text>0.00</text><text class="tips">(保证金2000元)</text></view>
|
|
|
- <view class="col"><button class="btn jiaona-btn" @tap="goToDeposit">立即缴纳</button></view>
|
|
|
+ <view class="col"><button class="btn jiaona-btn" @tap="goToDeposit">立即缴纳</button></view>
|
|
|
</view>
|
|
|
<view v-if="user_type===3" class="row">
|
|
|
<view class="col">不可提现金额:<text>0</text></view>
|
|
|
<!-- <view class="col"><button class="btn jiaona-btn">立即缴纳</button></view> -->
|
|
|
</view>
|
|
|
+ <view class="row statistics">
|
|
|
+ <view class="item">
|
|
|
+ <view class="num">{{total_settled_profit}}</view>
|
|
|
+ <view>累计收益(元)</view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="num">0</view>
|
|
|
+ <view>本月到账</view>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <view class="num">{{fans_num}}</view>
|
|
|
+ <view>我的粉丝</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="menu agent-menu">
|
|
|
+ <view class="menu-item">
|
|
|
+ <navigator url="/pages/user/user-profit" open-type="navigate" hover-class="none">
|
|
|
+ <view class="icon">
|
|
|
+ <image class="image" src="../../static/images/user/icon25.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="name">收益</view>
|
|
|
+ </navigator>
|
|
|
+ </view>
|
|
|
+ <view class="menu-item">
|
|
|
+ <navigator url="/" open-type="navigate" hover-class="none">
|
|
|
+ <view class="icon">
|
|
|
+ <image class="image" src="../../static/images/user/icon26.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="name">订单</view>
|
|
|
+ </navigator>
|
|
|
+ </view>
|
|
|
+ <view class="menu-item">
|
|
|
+ <navigator url="/pages/user/invitation-list" open-type="navigate" hover-class="none">
|
|
|
+ <view class="icon">
|
|
|
+ <image class="image" src="../../static/images/user/icon27.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="name">粉丝</view>
|
|
|
+ </navigator>
|
|
|
+ </view>
|
|
|
+ <view class="menu-item">
|
|
|
+ <navigator url="/pages/user/invite" open-type="navigate" hover-class="none">
|
|
|
+
|
|
|
+ <view class="icon">
|
|
|
+ <image class="image" src="../../static/images/user/icon28.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="name">邀请</view>
|
|
|
+ </navigator>
|
|
|
+
|
|
|
+ </view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<navigator url="/pages/user/agent" open-type="navigate" hover-class="none">
|
|
|
<view class="vip-center">
|
|
|
<view class="text">代理会员中心<text class="sub">(特权独享)</text></view>
|
|
@@ -146,7 +196,11 @@
|
|
|
nickname: state => state.user.nickname,
|
|
|
user_type: state => state.user.group_id,
|
|
|
invite_code: state => state.user.invite_code,
|
|
|
+ invite_num: state => state.user.invite_num,
|
|
|
token: state => state.user.token,
|
|
|
+ vip_expire: state => state.user.vip_expire,
|
|
|
+ fans_num: state => state.user.fans_num,
|
|
|
+ total_settled_profit: state => state.user.total_settled_profit
|
|
|
}),
|
|
|
onTabItemTap(e) {
|
|
|
uni.$emit("refresh_userinfo");
|
|
@@ -174,7 +228,7 @@
|
|
|
url: "/pages/user/withdraw"
|
|
|
})
|
|
|
},
|
|
|
- goToDeposit(){
|
|
|
+ goToDeposit() {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/order/deposit'
|
|
|
});
|
|
@@ -374,4 +428,30 @@
|
|
|
height: 60upx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .statistics {
|
|
|
+ border-top: 2upx #EEEEEE solid;
|
|
|
+ padding-top: 20upx;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 28upx;
|
|
|
+
|
|
|
+ .item {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .num {
|
|
|
+ color: #ff5454;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .agent-menu{
|
|
|
+ padding: 15upx 0;
|
|
|
+ .menu-item{
|
|
|
+ flex: 1;
|
|
|
+ text-align: center;
|
|
|
+ .name{
|
|
|
+ margin-top: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|