余额相关更新
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view style="padding-bottom: 100rpx;">
|
||||
<view class="title flex align-center justify-center">
|
||||
<!-- <view class="title flex align-center justify-center">
|
||||
<view class="title-box">
|
||||
<view class="title-box-title flex align-center justify-between">
|
||||
<view class="title-box-title-l">
|
||||
@@ -45,7 +45,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view v-if="list.length>0" class="itemTitle flex align-center justify-center">
|
||||
<view class="itemTitle-box flex align-center justify-between">
|
||||
<view class="itemTitle-box-l">
|
||||
|
||||
@@ -45,13 +45,21 @@
|
||||
我的追剧
|
||||
</view>
|
||||
</view>
|
||||
<view class="statistics-box-item" @click="goNav('/me/jifen/jifen')">
|
||||
<!-- <view class="statistics-box-item" @click="goNav('/me/jifen/jifen')">
|
||||
<view class="statistics-box-item-top">
|
||||
{{jifen}}
|
||||
</view>
|
||||
<view class="statistics-box-item-btn">
|
||||
我的积分
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="statistics-box-item" @click="goNav('/me/balance/index',{amount: userInfo.amount})">
|
||||
<view class="statistics-box-item-top">
|
||||
{{userInfo.amount || '0.00'}}
|
||||
</view>
|
||||
<view class="statistics-box-item-btn">
|
||||
我的余额
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -270,6 +278,7 @@
|
||||
rate: 0,
|
||||
kmPaySel: '否',
|
||||
isWxIosPay: true, //微信下是否显示支付功能
|
||||
userInfo: null,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -447,6 +456,7 @@
|
||||
this.$Request.getT('/app/moneyDetails/selectUserMoney').then(res => {
|
||||
if (res.code == 0) {
|
||||
this.moneyNum = res.data.money
|
||||
this.userInfo = res.data
|
||||
// this.$Request.getT('/app/invite/selectInviteMoney').then(ret => {
|
||||
// if (ret.code == 0) {
|
||||
// if (ret.data.inviteMoney && ret.data.inviteMoney.money) {
|
||||
@@ -535,10 +545,12 @@
|
||||
// #endif
|
||||
}
|
||||
},
|
||||
goNav(e) {
|
||||
console.log(e)
|
||||
goNav(e,options) {
|
||||
let token = uni.getStorageSync('token')
|
||||
if (token) {
|
||||
if (options&&options.amount) {
|
||||
e = `${e}?amount=${options.amount}`
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: e
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user