hsy vor 2 Monaten
Ursprung
Commit
cfe1b36506
1 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. 4 3
      src/views/promotion/goods.vue

+ 4 - 3
src/views/promotion/goods.vue

@@ -188,7 +188,8 @@ const preCheck = async () => {
 //   });
 //   });
 // };
 // };
 const appId = ref(sessionStorage.getItem("appId"));
 const appId = ref(sessionStorage.getItem("appId"));
-const openId = ref("KfZnJNKFaFXWWCagSlX0dT4tNkwsLEwQVlrzpHvo");
+// const openId = ref("KfZnJNKFaFXWWCagSlX0dT4tNkwsLEwQVlrzpHvo");
+const openId = ref("");
 const getWeChatAuth = async () => {
 const getWeChatAuth = async () => {
   const { appId, errMsg, paymentSettingId } = await preCheck();
   const { appId, errMsg, paymentSettingId } = await preCheck();
   if (errMsg) {
   if (errMsg) {
@@ -246,9 +247,9 @@ const init = async () => {
   }
   }
   const paymentSettingId = sessionStorage.getItem("paymentSettingId");
   const paymentSettingId = sessionStorage.getItem("paymentSettingId");
   if (!code || !paymentSettingId) {
   if (!code || !paymentSettingId) {
-    // return getWeChatAuth();
+    return getWeChatAuth();
   }
   }
-  // getOpenId()
+  getOpenId()
   // wxConfig();
   // wxConfig();
 };
 };
 onMounted(() => init());
 onMounted(() => init());