hsy 2 months ago
parent
commit
cfe1b36506
1 changed files with 4 additions and 3 deletions
  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 openId = ref("KfZnJNKFaFXWWCagSlX0dT4tNkwsLEwQVlrzpHvo");
+// const openId = ref("KfZnJNKFaFXWWCagSlX0dT4tNkwsLEwQVlrzpHvo");
+const openId = ref("");
 const getWeChatAuth = async () => {
   const { appId, errMsg, paymentSettingId } = await preCheck();
   if (errMsg) {
@@ -246,9 +247,9 @@ const init = async () => {
   }
   const paymentSettingId = sessionStorage.getItem("paymentSettingId");
   if (!code || !paymentSettingId) {
-    // return getWeChatAuth();
+    return getWeChatAuth();
   }
-  // getOpenId()
+  getOpenId()
   // wxConfig();
 };
 onMounted(() => init());