45 lines
917 B
Vue
45 lines
917 B
Vue
<template>
|
|
<view>
|
|
<!-- 底部tab -->
|
|
<foot-tab :current='4'></foot-tab>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import functionList from '@/components/function-list/function-list.vue';
|
|
// 底部组件
|
|
export default {
|
|
components:{functionList},
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
onShow() {
|
|
// 查询用户信息
|
|
// this.checkInfo();
|
|
},
|
|
onLoad() {
|
|
// 禁止分享
|
|
this.$toolAll.tools.disableShareEv();
|
|
},
|
|
methods: {
|
|
checkInfo(){
|
|
this.$requst.post('/api/user/info').then(res=>{
|
|
// console.log('用户信息:',res);
|
|
if(res.code==0 && res.data.length!=0) {
|
|
this.userInfo = res.data;
|
|
this.orderStatus[0].num = this.userInfo.order_count.waiting;//待付款
|
|
this.orderStatus[1].num = this.userInfo.order_count.paid;//待发货
|
|
this.orderStatus[2].num = this.userInfo.order_count.shipped;//待收货
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style>
|