mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-13 04:18:55 +08:00
fix(seller): 修复三处历史遗留的恒假条件
- coupon-receive: 路由监听中 couponId 判断取错了来源(实际应判断 query.couponId), 导致优惠券列表页切换时永不刷新;changeSelect 中 getType 判断改为读表单值 searchForm.getType - addLive: 添加直播商品时 roomId 取 route.query.roomId 恒为 undefined,改为页面实际参数 route.query.id - shopSetting: tab 切换回调 v == "INFO" 恒为 false(Element Plus 传 pane 对象), 改为读 pane.paneName,基本信息/退货地址 tab 的数据重载恢复正常
This commit is contained in:
@@ -152,7 +152,7 @@ import { useAppStore } from "@/stores/app";
|
|||||||
|
|
||||||
defineOptions({ name: "coupon-recevie" });
|
defineOptions({ name: "coupon-recevie" });
|
||||||
|
|
||||||
const props = defineProps({
|
defineProps({
|
||||||
promotionStatus: {
|
promotionStatus: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
@@ -186,8 +186,7 @@ watch(
|
|||||||
() => route.query,
|
() => route.query,
|
||||||
(query) => {
|
(query) => {
|
||||||
searchForm.couponId = query.couponId;
|
searchForm.couponId = query.couponId;
|
||||||
// 原代码此处判断的 couponId 在 data 中并不存在,恒为 undefined;保持原行为
|
if (query.couponId) {
|
||||||
if (props.couponId) {
|
|
||||||
getDataList();
|
getDataList();
|
||||||
} else {
|
} else {
|
||||||
searchFormRef.value?.resetFields();
|
searchFormRef.value?.resetFields();
|
||||||
@@ -226,8 +225,7 @@ function handleSearch() {
|
|||||||
function changeSelect(e) {
|
function changeSelect(e) {
|
||||||
selectList.value = e;
|
selectList.value = e;
|
||||||
selectCount.value = e.length;
|
selectCount.value = e.length;
|
||||||
// 原代码此处判断的 getType 组件并未声明该 prop,恒为 undefined;保持原行为
|
if (searchForm.getType === "ACTIVITY") check();
|
||||||
if (props.getType === "ACTIVITY") check();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDataList() {
|
function getDataList() {
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ function callBackData(way) {
|
|||||||
liveGoodsVisible.value = false;
|
liveGoodsVisible.value = false;
|
||||||
spinShow.value = true;
|
spinShow.value = true;
|
||||||
addLiveGoods({
|
addLiveGoods({
|
||||||
roomId: route.query.roomId,
|
roomId: route.query.id,
|
||||||
liveGoodsId: way.liveGoodsId,
|
liveGoodsId: way.liveGoodsId,
|
||||||
goodsId: way.goodsId,
|
goodsId: way.goodsId,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|||||||
@@ -364,13 +364,14 @@ function handleSubmit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//tab切换
|
//tab切换
|
||||||
function handleClickType(v) {
|
function handleClickType(pane) {
|
||||||
|
const name = pane.paneName;
|
||||||
//退款
|
//退款
|
||||||
if (v == "INFO") {
|
if (name === "INFO") {
|
||||||
getShopInfo();
|
getShopInfo();
|
||||||
}
|
}
|
||||||
//退货
|
//退货
|
||||||
if (v == "REFUND_GOODS_ADDRESS") {
|
if (name === "REFUND_GOODS_ADDRESS") {
|
||||||
getRefundGoodsAddress();
|
getRefundGoodsAddress();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user