|
|
@@ -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,
|