From 7a68f7e13913f8d4f86962979fd1e79c18f57fb6 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期六, 03 八月 2024 10:44:25 +0800
Subject: [PATCH] update 登录和其他部分信息
---
sub_pages/customer/trade/detail.vue | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/sub_pages/customer/trade/detail.vue b/sub_pages/customer/trade/detail.vue
index 5bf0d9e..5b10de5 100644
--- a/sub_pages/customer/trade/detail.vue
+++ b/sub_pages/customer/trade/detail.vue
@@ -148,7 +148,10 @@
shopnum: 0,
}
},
- onShow() {
+ onShow() {
+ if (this.id) {
+ this.getDetail()
+ }
this.refreshShopNum()
},
onLoad(options) {
@@ -172,7 +175,7 @@
} else {
if (!item.stock || t > item.stock) {
- this.$message.showToast('库存不足无法修改')
+ this.$message.showToast('库存不足无法修改')
return
}
this.addnum(item, (t - item.shopnum))
@@ -223,7 +226,9 @@
},
async refreshShopNum() {
- this.shopnum = await this.$store.dispatch('countShopping');
+ this.shopnum = await this.$store.dispatch('countShopping');
+ this.$store.dispatch('sign_add','shopnum')
+
},
async collectItem(dto) {
if (!this.currentInfo.id) {
--
Gitblit v1.9.3