金币明细、红包明细区分

This commit is contained in:
GaoHao
2024-12-11 16:22:14 +08:00
parent ca7c293d0e
commit ae276c6a50
3 changed files with 15 additions and 3 deletions

View File

@@ -155,7 +155,7 @@
//钱包明细 //钱包明细
goqianbao() { goqianbao() {
uni.navigateTo({ uni.navigateTo({
url: '/me/invite/moneyList' url: '/me/invite/moneyList?moneyType=1'
}); });
}, },
list() { list() {

View File

@@ -35,10 +35,18 @@
list: [], list: [],
page: 1, page: 1,
limit: 10, limit: 10,
totalCount: 0 totalCount: 0,
moneyType: null
} }
}, },
onLoad: function(e) { onLoad: function(e) {
console.log(e)
if (e.moneyType) {
this.moneyType = e.moneyType
uni.setNavigationBarTitle({
title: e.moneyType == 1 ? '红包明细' : '金币明细'
});
}
this.getMoney(); this.getMoney();
}, },
@@ -50,7 +58,8 @@
if (token) { if (token) {
let data = { let data = {
page : that.page, page : that.page,
limit : that.limit limit : that.limit,
moneyType : this.moneyType,
} }
this.$Request.getT('app/moneyDetails/queryUserMoneyDetails', data).then(res => { this.$Request.getT('app/moneyDetails/queryUserMoneyDetails', data).then(res => {

View File

@@ -105,6 +105,9 @@
</block> </block>
</view> </view>
</view> </view>
<view class="money-box-btn" @click="goNav('/me/invite/moneyList?moneyType=2')">
金币明细
</view>
<!-- <view class="money-box-btn" @click="goNav('/me/wallet/wallet')"> <!-- <view class="money-box-btn" @click="goNav('/me/wallet/wallet')">
立即充值 立即充值
</view> --> </view> -->