|
@@ -6,7 +6,7 @@
|
|
|
<text class="username">{{ userName }}的钱包</text>
|
|
|
<text>
|
|
|
<text>我的资产(</text>
|
|
|
- <text v-if="isAssetVisible" class="asset">{{ purse.asset }}</text>
|
|
|
+ <text v-if="isAssetVisible" class="asset">{{ purse.walletDTO.asset || '0.00' }}</text>
|
|
|
<text v-else class="asset">**</text>
|
|
|
<text>元)</text>
|
|
|
<text @click="toggleAssetVisibility" class="eye-icon">👁️</text>
|
|
@@ -20,19 +20,19 @@
|
|
|
<view class="wallet-summary">
|
|
|
<view class="summary-item">
|
|
|
<view>总收益</view>
|
|
|
- <view>{{ totalIncome }}</view>
|
|
|
+ <view>{{ purse.walletDTO.totalEarnings || '0' }}</view>
|
|
|
</view>
|
|
|
<view class="summary-item">
|
|
|
<view>今日收益</view>
|
|
|
- <view>{{ todayIncome }}</view>
|
|
|
+ <view>{{ purse.walletDTO.todayEarnings || '0'}}</view>
|
|
|
</view>
|
|
|
<view class="summary-item">
|
|
|
<view>昨日收益</view>
|
|
|
- <view>{{ yesterdayIncome }}</view>
|
|
|
+ <view>{{ purse.walletDTO.yesterdayEarnings || '0' }}</view>
|
|
|
</view>
|
|
|
<view class="summary-item">
|
|
|
<view>可提现</view>
|
|
|
- <view>{{ withdrawable }}</view>
|
|
|
+ <view>{{purse.walletDTO.withdraw || '0' }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="withdraw-button">
|
|
@@ -57,27 +57,27 @@
|
|
|
<view class="column">
|
|
|
<view class="row">
|
|
|
<view class="label">已确认订单数(笔)</view>
|
|
|
- <view class="value">100</view>
|
|
|
+ <view class="value">{{ purse.orderDTO.verifyNum || '0'}}</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">待确认订单数(笔)</view>
|
|
|
- <view class="value">80</view>
|
|
|
+ <view class="value">{{ purse.orderDTO.awaitNum || '0'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="separator"></view>
|
|
|
<view class="column">
|
|
|
<view class="row">
|
|
|
<view class="label">已确认收益(元)</view>
|
|
|
- <view class="value">20</view>
|
|
|
+ <view class="value">{{ purse.orderDTO.verifyAmount || '0'}}</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">待确认收益(元)</view>
|
|
|
- <view class="value">5</view>
|
|
|
+ <view class="value">{{ purse.orderDTO.awaitAmount || '0'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<!-- 我的团队 -->
|
|
|
<view class="container">
|
|
|
<view class="title">
|
|
@@ -88,22 +88,22 @@
|
|
|
<view class="column">
|
|
|
<view class="row">
|
|
|
<view class="label">已推广订单数(笔)</view>
|
|
|
- <view class="value">100</view>
|
|
|
+ <view class="value">{{ purse.merchantTeamDTO.popularizeNum || '0'}}</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">待确认订单数(笔)</view>
|
|
|
- <view class="value">80</view>
|
|
|
+ <view class="value">{{ purse.merchantTeamDTO.awaitNum || '0'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="separator"></view>
|
|
|
<view class="column">
|
|
|
<view class="row">
|
|
|
<view class="label">已确认收益(元)</view>
|
|
|
- <view class="value">20</view>
|
|
|
+ <view class="value">{{ purse.merchantTeamDTO.popularizeAmount || '0'}}</view>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="label">待确认收益(元)</view>
|
|
|
- <view class="value">5</view>
|
|
|
+ <view class="value">{{ purse.merchantTeamDTO.awaitAmount || '0'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -113,42 +113,37 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-
|
|
|
import {
|
|
|
getMerchantPures
|
|
|
} from '@/api/merchant/merchantAuth';
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- userName: 'User123',
|
|
|
+ userName: '',
|
|
|
isAssetVisible: true,
|
|
|
- asset: '1000',
|
|
|
- totalIncome: '5000',
|
|
|
- todayIncome: '100',
|
|
|
- yesterdayIncome: '200',
|
|
|
- withdrawable: '3000',
|
|
|
- purse:{}
|
|
|
+ purse: {}
|
|
|
};
|
|
|
},
|
|
|
- onShow(){
|
|
|
- console.log(this.$store.state.data.merchantInfo,"this.$store.state.data")
|
|
|
+ onShow() {
|
|
|
+ console.log(this.$store.state.data.merchantInfo.legalRepresentativeName, "this.$store.state.data")
|
|
|
+ this.userName = this.$store.state.data.merchantInfo.legalRepresentativeName
|
|
|
this.request()
|
|
|
},
|
|
|
methods: {
|
|
|
toggleAssetVisibility() {
|
|
|
this.isAssetVisible = !this.isAssetVisible;
|
|
|
},
|
|
|
- toDetail(){
|
|
|
+ toDetail() {
|
|
|
uni.navigateTo({
|
|
|
- url:'/pageMerchant/mineModule/myPurse/detail'
|
|
|
+ url: '/pageMerchant/mineModule/myPurse/detail'
|
|
|
})
|
|
|
},
|
|
|
- async request(){
|
|
|
- const res = await getMerchantPures(this.$store.state.data.merchantInfo.merchant.id)
|
|
|
- this.purse = resd.data
|
|
|
- console.log(res)
|
|
|
+ async request() {
|
|
|
+ const res = await getMerchantPures(this.$store.state.data.merchantInfo.merchant.id)
|
|
|
+ this.purse = resd.data
|
|
|
+ console.log(res)
|
|
|
}
|
|
|
}
|
|
|
}
|