diff --git a/seller/src/views/promotion/coupon/coupon-receive.vue b/seller/src/views/promotion/coupon/coupon-receive.vue index 184bb4b17..e49d857ef 100644 --- a/seller/src/views/promotion/coupon/coupon-receive.vue +++ b/seller/src/views/promotion/coupon/coupon-receive.vue @@ -152,7 +152,7 @@ import { useAppStore } from "@/stores/app"; defineOptions({ name: "coupon-recevie" }); -const props = defineProps({ +defineProps({ promotionStatus: { type: String, default: "", @@ -186,8 +186,7 @@ watch( () => route.query, (query) => { searchForm.couponId = query.couponId; - // 原代码此处判断的 couponId 在 data 中并不存在,恒为 undefined;保持原行为 - if (props.couponId) { + if (query.couponId) { getDataList(); } else { searchFormRef.value?.resetFields(); @@ -226,8 +225,7 @@ function handleSearch() { function changeSelect(e) { selectList.value = e; selectCount.value = e.length; - // 原代码此处判断的 getType 组件并未声明该 prop,恒为 undefined;保持原行为 - if (props.getType === "ACTIVITY") check(); + if (searchForm.getType === "ACTIVITY") check(); } function getDataList() { diff --git a/seller/src/views/promotion/live/addLive.vue b/seller/src/views/promotion/live/addLive.vue index 95f071e6b..859dadf4b 100644 --- a/seller/src/views/promotion/live/addLive.vue +++ b/seller/src/views/promotion/live/addLive.vue @@ -234,7 +234,7 @@ function callBackData(way) { liveGoodsVisible.value = false; spinShow.value = true; addLiveGoods({ - roomId: route.query.roomId, + roomId: route.query.id, liveGoodsId: way.liveGoodsId, goodsId: way.goodsId, }).then((res) => { diff --git a/seller/src/views/shop/shopSetting.vue b/seller/src/views/shop/shopSetting.vue index 13e80c3fd..06ff1acdf 100644 --- a/seller/src/views/shop/shopSetting.vue +++ b/seller/src/views/shop/shopSetting.vue @@ -364,13 +364,14 @@ function handleSubmit() { } //tab切换 -function handleClickType(v) { +function handleClickType(pane) { + const name = pane.paneName; //退款 - if (v == "INFO") { + if (name === "INFO") { getShopInfo(); } //退货 - if (v == "REFUND_GOODS_ADDRESS") { + if (name === "REFUND_GOODS_ADDRESS") { getRefundGoodsAddress(); } }