Ver Fonte

fix(groupPackageManagement):修复节假日列表接口路径错误

- 修改 `/coupon/getHolidayList` 为 `/couponPlatform/getHolidayList`- 注释掉新建团购页面中冗余的用户信息获取逻辑
congxuesong há 1 mês atrás
pai
commit
bd1f2f3c8c

+ 1 - 1
src/api/modules/groupPackageManagement.ts

@@ -154,7 +154,7 @@ export const updateStoreCommissionRate = (params: { id: string; commissionRate:
 
 // 节假日列表
 export const getHolidayList = (params: any) => {
-  return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/coupon/getHolidayList`, params);
+  return http.get<StoreUser.ResStoreUserList>(PORT_NONE + `/couponPlatform/getHolidayList`, params);
 };
 
 // 节假日列表

+ 21 - 19
src/views/groupPackageManagement/newGroup.vue

@@ -997,29 +997,31 @@ watch(
 onMounted(async () => {
   id.value = (route.query.id as string) || "";
   type.value = (route.query.type as string) || "";
-  let param = {
-    // phone: localGet("iphone")
-    phone: "18641153170"
-  };
-  const resP: any = await getUserByPhone(param);
-  if (resP.data && resP.data.storeId) {
-    localSet("createdId", resP.data.storeId);
-    const resD: any = await getDetail({
-      id: localGet("createdId")
-    });
-    if (resD.data && resD.data.commissionRate) {
-      localSet("commissionRate", resD.data.commissionRate);
-    }
-    if (resD.data && resD.data.businessSection) {
-      localSet("businessSection", resD.data.businessSection);
-    }
-  } else {
-    ElMessage.warning("请完成商家入驻后再进行新建团购");
-  }
+  // 不要删除-开始
+  // let param = {
+  //   // phone: localGet("iphone")
+  //   phone: "18641153170"
+  // };
+  // const resP: any = await getUserByPhone(param);
+  // if (resP.data && resP.data.storeId) {
+  //   localSet("createdId", resP.data.storeId);
+  //   const resD: any = await getDetail({
+  //     id: localGet("createdId")
+  //   });
+  //   if (resD.data && resD.data.commissionRate) {
+  //     localSet("commissionRate", resD.data.commissionRate);
+  //   }
+  //   if (resD.data && resD.data.businessSection) {
+  //     localSet("businessSection", resD.data.businessSection);
+  //   }
+  // } else {
+  //   ElMessage.warning("请完成商家入驻后再进行新建团购");
+  // }
   // if (!getGroupCombination()) {
   //   ElMessage.warning("请完成商家入驻后重新登录再进行新建团购");
   //   return;
   // }
+  // 不要删除-结束
   let params = {
     year: new Date().getFullYear(),
     page: 1,