hsy преди 2 месеца
родител
ревизия
cfe1b36506
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  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());