瀏覽代碼

feat: login sdk v1.0.5

zhangyuhan 8 月之前
父節點
當前提交
5633ab5999

+ 6 - 6
src/web/staticres/common-module/login-js/jy-login-mini.mjs

@@ -374,7 +374,7 @@ function hr(i, ...n) {
 function zy() {
   const i = {
     auto: !1,
-    type: "login-code"
+    type: "login-pass"
   };
   try {
     const n = document.currentScript, r = new URLSearchParams(n.src.split("?")[1]);
@@ -395,10 +395,10 @@ class Jy {
     ze(this, "options");
     ze(this, "version");
     ze(this, "hooks");
-    this.name = "login", this.version = "1.0.4", this.hooks = {}, this.options = Object.assign(
+    this.name = "login", this.version = "1.0.5", this.hooks = {}, this.options = Object.assign(
       {
         auto: !1,
-        type: "login-code"
+        type: "login-pass"
       },
       Ky,
       n
@@ -7988,7 +7988,7 @@ class Vb {
         preloadDialogImage: !1,
         // 自动打开弹窗
         autoOpen: !1,
-        type: "login-code",
+        type: "login-pass",
         // 立即获取二维码并自动监听微信扫码登录
         preloadWeChatImage: !1
       },
@@ -8005,7 +8005,7 @@ class Vb {
    * 根据 type 打开弹窗并通知
    * @param type - 类型
    */
-  open(n = "login-code") {
+  open(n = "login-pass") {
     Cr(n), Pb(), this.emit("open", n);
   }
   /**
@@ -8572,7 +8572,7 @@ var nx = function() {
   return r("div", { staticClass: "login-auth--form" }, [r("div", { staticClass: "login-auth--switch-tab-content" }, [r(Ar, { ref: "loginCodeFormNode", attrs: { schema: s.loginCodeFormSchema.fields }, on: { submit: s.loginCodeForm.doSubmit }, model: { value: s.loginCodeFormState, callback: function(u) {
     s.loginCodeFormState = u;
   }, expression: "loginCodeFormState" } }), n._m(0), r("button", { staticClass: "login-auth--submit-button", attrs: { name: "verify_submit", disabled: !s.loginCodeForm.canSubmit.value }, on: { click: s.loginCodeForm.doSubmit } }, [n._v(" 立即注册 ")]), r("div", { staticClass: "toggle-login-container flex flex-row items-center justify-center", on: { click: function(u) {
-    return s.doChangeTabActive("login-code");
+    return s.doChangeTabActive("login-pass");
   } } }, [r("i", { staticClass: "img-icon icon-blue-back" }), r("span", [n._v("登录")])])], 1)]);
 }, rx = [function() {
   var i = this, n = i._self._c;

文件差異過大導致無法顯示
+ 0 - 0
src/web/staticres/common-module/login-js/jy-login-mini.umd.js


+ 6 - 6
src/web/staticres/common-module/login-js/jy-login.mjs

@@ -373,7 +373,7 @@ function yi(e, ...t) {
 function _1() {
   const e = {
     auto: !1,
-    type: "login-code"
+    type: "login-pass"
   };
   try {
     const t = document.currentScript, n = new URLSearchParams(t.src.split("?")[1]);
@@ -394,10 +394,10 @@ class w1 {
     mt(this, "options");
     mt(this, "version");
     mt(this, "hooks");
-    this.name = "login", this.version = "1.0.4", this.hooks = {}, this.options = Object.assign(
+    this.name = "login", this.version = "1.0.5", this.hooks = {}, this.options = Object.assign(
       {
         auto: !1,
-        type: "login-code"
+        type: "login-pass"
       },
       y1,
       t
@@ -11426,7 +11426,7 @@ class J$ {
         preloadDialogImage: !1,
         // 自动打开弹窗
         autoOpen: !1,
-        type: "login-code",
+        type: "login-pass",
         // 立即获取二维码并自动监听微信扫码登录
         preloadWeChatImage: !1
       },
@@ -11443,7 +11443,7 @@ class J$ {
    * 根据 type 打开弹窗并通知
    * @param type - 类型
    */
-  open(t = "login-code") {
+  open(t = "login-pass") {
     Hi(t), P$(), this.emit("open", t);
   }
   /**
@@ -12010,7 +12010,7 @@ var nT = function() {
   return n("div", { staticClass: "login-auth--form" }, [n("div", { staticClass: "login-auth--switch-tab-content" }, [n(Wi, { ref: "loginCodeFormNode", attrs: { schema: o.loginCodeFormSchema.fields }, on: { submit: o.loginCodeForm.doSubmit }, model: { value: o.loginCodeFormState, callback: function(a) {
     o.loginCodeFormState = a;
   }, expression: "loginCodeFormState" } }), t._m(0), n("button", { staticClass: "login-auth--submit-button", attrs: { name: "verify_submit", disabled: !o.loginCodeForm.canSubmit.value }, on: { click: o.loginCodeForm.doSubmit } }, [t._v(" 立即注册 ")]), n("div", { staticClass: "toggle-login-container flex flex-row items-center justify-center", on: { click: function(a) {
-    return o.doChangeTabActive("login-code");
+    return o.doChangeTabActive("login-pass");
   } } }, [n("i", { staticClass: "img-icon icon-blue-back" }), n("span", [t._v("登录")])])], 1)]);
 }, rT = [function() {
   var e = this, t = e._self._c;

文件差異過大導致無法顯示
+ 0 - 0
src/web/staticres/common-module/login-js/jy-login.umd.js


部分文件因文件數量過多而無法顯示