This commit is contained in:
aihe 2024-05-09 00:05:09 +08:00
parent d66a8c6f69
commit 219088a4a0

View File

@ -35,7 +35,7 @@
<view style="flex: 1;text-align: center;">
<view class="clr-wht font-32 font-weight">
<text class="font-26">¥</text>
<tex>2888.80</tex>
<tex>{{staticInfo.commStat.estMoney}}</tex>
</view>
<view class="pt-20 clr-wht font-26" style="opacity: 0.8;">计提预估</view>
</view>
@ -45,7 +45,7 @@
<view style="flex: 1;text-align: center;">
<view class="clr-wht font-32 font-weight">
<text class="font-26">¥</text>
<tex>128888.00</tex>
<tex>{{staticInfo.commStat.waitPay}}</tex>
</view>
<view class="pt-20 clr-wht font-26" style="opacity: 0.8;">待回款</view>
</view>
@ -121,6 +121,8 @@
<script>
import { USERKEY } from "@/store/actionKey"
import { dealBtnMap } from "@/common/enum"
import * as apiService from "@/common/api"
export default {
computed: {
userInfo() {
@ -128,12 +130,13 @@
}
},
props: {
// hasLeftWin: {
// type: Boolean
// }
},
data() {
return {
staticInfo: {
commStat: {},
orderStat: {},
},
saomiao: true,
mainBtnlist: [
{ title: '服务客户', icon: this.getCdnUrl(`mine/kehu.png`), url: '' },
@ -146,11 +149,20 @@
},
onShareAppMessage() {
return {
// title: '',
// path: 'TODO'
}
},
onLoad() {
this.initData()
},
methods: {
async initData(){
this.getAppHomeStatData()
},
async getAppHomeStatData(){
let res = await apiService.getAppHomeStatData()
this.staticInfo = res.data
},
async handleUnlogin() {
await this.$store.dispatch(USERKEY.LOGOUT)
this.goto(`login/login`, 2)