Commit 5ba69ba7 by YunaiV
parents de9ec950 1d047d8c
...@@ -53,10 +53,18 @@ const data = reactive({ ...@@ -53,10 +53,18 @@ const data = reactive({
/** 查询订单数据 */ /** 查询订单数据 */
const getOrderData = async () => { const getOrderData = async () => {
const orderCount = await TradeStatisticsApi.getOrderCount() const orderCount = await TradeStatisticsApi.getOrderCount()
if (orderCount.undelivered != null) {
data.orderUndelivered.value = orderCount.undelivered data.orderUndelivered.value = orderCount.undelivered
}
if (orderCount.afterSaleApply != null) {
data.orderAfterSaleApply.value = orderCount.afterSaleApply data.orderAfterSaleApply.value = orderCount.afterSaleApply
}
if (orderCount.pickUp != null) {
data.orderWaitePickUp.value = orderCount.pickUp data.orderWaitePickUp.value = orderCount.pickUp
}
if (orderCount.auditingWithdraw != null) {
data.withdrawAuditing.value = orderCount.auditingWithdraw data.withdrawAuditing.value = orderCount.auditingWithdraw
}
} }
/** 查询商品数据 */ /** 查询商品数据 */
...@@ -83,6 +91,13 @@ const handleClick = (routerName: string) => { ...@@ -83,6 +91,13 @@ const handleClick = (routerName: string) => {
router.push({ name: routerName }) router.push({ name: routerName })
} }
/** 激活时 */
onActivated(() => {
getOrderData()
getProductData()
getWalletRechargeData()
})
/** 初始化 **/ /** 初始化 **/
onMounted(() => { onMounted(() => {
getOrderData() getOrderData()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment