|
|
@@ -17,7 +17,7 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { onMounted, ref, watch } from "vue";
|
|
|
-import { localGet } from "@/utils/index";
|
|
|
+import { localGet, localSet } from "@/utils/index";
|
|
|
import goEnter from "./components/go-enter.vue";
|
|
|
import goFlow from "./components/go-flow.vue";
|
|
|
import goExamine from "./components/go-examine.vue";
|
|
|
@@ -100,6 +100,13 @@ const getUserInfo = async () => {
|
|
|
const res: any = await getMerchantByPhone(param);
|
|
|
storeId.value = res.data.storeId;
|
|
|
if (res && res.code == 200 && res.data) {
|
|
|
+ // 更新缓存中的 storeId
|
|
|
+ geekerUser.userInfo.storeId = res.data.storeId;
|
|
|
+ localSet("geeker-user", geekerUser);
|
|
|
+ // 同时更新 createdId 缓存
|
|
|
+ if (res.data.storeId) {
|
|
|
+ localSet("createdId", res.data.storeId);
|
|
|
+ }
|
|
|
if (res.data.storeId == null) {
|
|
|
isEntry.value = true;
|
|
|
}
|
|
|
@@ -110,8 +117,8 @@ const getUserInfo = async () => {
|
|
|
const resStore: any = await getDetail(param1);
|
|
|
if (resStore && resStore.code == 200 && resStore.data) {
|
|
|
storeApplicationStatus.value = resStore.data.storeApplicationStatus;
|
|
|
- console.log(storeApplicationStatus.value);
|
|
|
if (storeApplicationStatus.value == 0) {
|
|
|
+ //
|
|
|
currentStep.value = 3;
|
|
|
}
|
|
|
if (storeApplicationStatus.value == 2) {
|