7.11(优化页面

This commit is contained in:
Hong
2024-07-11 17:01:53 +08:00
parent 762c31b27c
commit fa53d91491
3 changed files with 35 additions and 18 deletions

View File

@@ -18,7 +18,13 @@ export const mineMenu = [{
id: 5,
name: '我的钱包',
url: '/pages/mine/wallet/wallet'
}, {
},
{
id: 7,
name: '我的佣金',
url: '/pages/welfare/invite/invite_commission'
},
{
id: 6,
name: '我的收藏',
url: '/pagesA/my_favorite/my_favorite'

View File

@@ -33,11 +33,12 @@
<view class="home-income-top-left f-26 c666">
本月预估收益
</view>
<view class="home-income-top-right f-28">
<view class="home-income-top-right f-28" @click="$tab.navigateTo('/pages/welfare/invite/invite_commission')">
我的收益
</view>
<view class="home-income-center flex justify-center align-center">
<view v-if="incomeData.isJoin"><text class="home-income-center-text">+</text>
<view v-if="incomeData.isJoin" @click="$tab.navigateTo('/pages/welfare/invite/invite_commission')">
<text class="home-income-center-text">+</text>
{{incomeData.toDay}}
</view>
<view class="home-income-center-button" v-else @click="$tab.navigateTo('/pagesA/rebate/rebate')">

View File

@@ -4,7 +4,7 @@
empty-view-img="/static/images/app/config/nodata.png" empty-view-text="暂无更多"
:empty-view-img-style="{width: '500rpx', height: '280rpx'}"
:empty-view-title-style="{fontSize: '28rpx', color: '#444', marginTop: '40rpx'}">
<view class="page-header" slot="top">
<view class="page-header">
<view class="page-header-num flex justify-between align-center">
<view>
<view class="page-header-title">累计佣金</view>
@@ -17,13 +17,16 @@
<u-icon name="arrow-right" size="16" color="#fff"></u-icon> -->
</view>
</view>
<view class="page-header-total flex align-center">
<view>
累计获得{{brokerageNum}}
</view>
<view>
提现{{withdrawNum}}
<view class="page-header-total ">
<view style="width: 638rpx;" class="flex justify-between">
<view>
上月实际返佣金额{{brokerageNum}}
</view>
<view>
可提现金额{{withdrawNum}}
</view>
</view>
<view style="width: 638rpx;margin-top: 12rpx;font-size: 18rpx;">本页显示当月返佣收益为预估金额仅供参考 当月实际返佣金额在下月1号~3号更新</view>
</view>
</view>
<view class="list-list">
@@ -47,6 +50,9 @@
</template>
<script>
import {
getMyWalletAPI
} from "@/api/mine/wallet.js"
import {
getBrokerageList,
getInviteInviteTotal,
@@ -65,12 +71,19 @@
};
},
onLoad(options) {
this.brokeragePrice = options.brokeragePrice
// this.brokeragePrice = options.brokeragePrice
},
onShow() {
this.init()
//获取当前佣金
this.userInfo = uni.getStorageSync('userInfo')
//我的账户
getMyWalletAPI().then(res => {
console.log(res.data);
this.brokeragePrice = res.data.brokeragePrice
// this.myWalletData = res.data
})
},
methods: {
init() {
@@ -175,18 +188,15 @@
color: #FFFFFF;
.page-header-total {
width: 100%;
width: 704rpx;
background: rgba(66, 190, 185, 1);
font-size: 26rpx;
font-size: 28rpx;
font-weight: 400;
color: #FFFFFF;
padding: 32rpx 0 32rpx 32rpx;
padding: 24rpx 32rpx;
border-radius: 0 0 8rpx 8rpx;
view {
width: 50%;
}
}
.page-header-num {
padding: 0 32rpx 32rpx 32rpx;