@jctrans-materials/comps-vue3 1.0.42-beta.5 → 1.0.42-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -22418,7 +22418,11 @@ const _sfc_main$d = {
|
|
|
22418
22418
|
"need-complete",
|
|
22419
22419
|
"register-success",
|
|
22420
22420
|
"third-party-click",
|
|
22421
|
-
"register-step-change"
|
|
22421
|
+
"register-step-change",
|
|
22422
|
+
// GIO 埋点:下一步点击 / 验证码发送 / 验证码失效(上抛父组件集中 track)
|
|
22423
|
+
"register-next-step",
|
|
22424
|
+
"verify-code-sent",
|
|
22425
|
+
"verify-code-expired"
|
|
22422
22426
|
],
|
|
22423
22427
|
// =========================================================================
|
|
22424
22428
|
// Computed - 派生状态,根据表单数据和选中城市动态计算
|
|
@@ -22756,6 +22760,7 @@ const _sfc_main$d = {
|
|
|
22756
22760
|
// 1. 根据国家判断校验城市+手机(中国)还是城市+邮箱(海外)
|
|
22757
22761
|
// 2. 校验通过后,快照当前联系方式用于后续"返回"时的智能判断
|
|
22758
22762
|
// 3. 切换到 Step 2,清除所有校验错误提示
|
|
22763
|
+
// 4. 触发 GIO 埋点「下一步点击」
|
|
22759
22764
|
handleNextStep() {
|
|
22760
22765
|
const step1Fields = this.currentCountryIsChina ? ["city", "phone"] : ["city", "email"];
|
|
22761
22766
|
this.$refs.registerFormRef.validateField(step1Fields, (isValid) => {
|
|
@@ -22765,6 +22770,7 @@ const _sfc_main$d = {
|
|
|
22765
22770
|
this.$nextTick(() => {
|
|
22766
22771
|
this.$refs.registerFormRef.clearValidate();
|
|
22767
22772
|
});
|
|
22773
|
+
this.$emit("register-next-step", "normal");
|
|
22768
22774
|
});
|
|
22769
22775
|
},
|
|
22770
22776
|
// ===== [Step 2 → Step 1] 智能返回:已加入公司→取消加入;联系方式变化→重置验证码 =====
|
|
@@ -22928,6 +22934,7 @@ const _sfc_main$d = {
|
|
|
22928
22934
|
}
|
|
22929
22935
|
startTimer();
|
|
22930
22936
|
ElMessage.success(msg);
|
|
22937
|
+
this.$emit("verify-code-sent");
|
|
22931
22938
|
} else {
|
|
22932
22939
|
ElMessage.error(res.data.msg);
|
|
22933
22940
|
}
|
|
@@ -23147,6 +23154,7 @@ const _sfc_main$d = {
|
|
|
23147
23154
|
const preventDefault = () => {
|
|
23148
23155
|
flowControl.isHandled = true;
|
|
23149
23156
|
};
|
|
23157
|
+
this.$emit("verify-code-expired", false);
|
|
23150
23158
|
this.$emit("register-success", {
|
|
23151
23159
|
user: res.data.data.result,
|
|
23152
23160
|
redirectPath,
|
|
@@ -23166,11 +23174,33 @@ const _sfc_main$d = {
|
|
|
23166
23174
|
ElMessage.success(
|
|
23167
23175
|
this.isEn ? "Registration successful, pending review" : "注册成功,请等待审核"
|
|
23168
23176
|
);
|
|
23177
|
+
this.$emit("verify-code-expired", false);
|
|
23169
23178
|
}
|
|
23170
23179
|
} else {
|
|
23171
23180
|
this.loading = false;
|
|
23172
23181
|
ElMessage.error(res.data.msg);
|
|
23182
|
+
const subCode = String(res.data.subCode || "");
|
|
23183
|
+
const msg = String(res.data.msg || "");
|
|
23184
|
+
if (/CODE|VERIFY/i.test(subCode) || /验证码|verification code/i.test(msg)) {
|
|
23185
|
+
this.$emit("verify-code-expired", true);
|
|
23186
|
+
}
|
|
23173
23187
|
}
|
|
23188
|
+
},
|
|
23189
|
+
// ===== GIO 埋点:供父组件在关闭时读取的表单字段快照 =====
|
|
23190
|
+
// 敏感字段(手机/邮箱/验证码)仅上报是否已填写;对象字段扁平化取关键值
|
|
23191
|
+
getGioFormSnapshot() {
|
|
23192
|
+
return {
|
|
23193
|
+
hasPhone: !!this.form.phone,
|
|
23194
|
+
hasEmail: !!this.form.email,
|
|
23195
|
+
hasCode: !!this.form.code,
|
|
23196
|
+
hasName: !!(this.form.nameCn || this.form.nameEn || this.form.firstName || this.form.lastName),
|
|
23197
|
+
cityId: this.form.cityId || this.cityId || "",
|
|
23198
|
+
companyName: this.form.companyName || "",
|
|
23199
|
+
sector: this.form.sector || "",
|
|
23200
|
+
agree: !!this.form.agree,
|
|
23201
|
+
useKq: !!this.form.useKq,
|
|
23202
|
+
isJoinCompany: !!this.hasResistCompany
|
|
23203
|
+
};
|
|
23174
23204
|
}
|
|
23175
23205
|
}
|
|
23176
23206
|
};
|
|
@@ -23628,7 +23658,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23628
23658
|
}, 8, ["model", "rules"])
|
|
23629
23659
|
]);
|
|
23630
23660
|
}
|
|
23631
|
-
const RegisterForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$3], ["__scopeId", "data-v-
|
|
23661
|
+
const RegisterForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$3], ["__scopeId", "data-v-5b66b40c"]]);
|
|
23632
23662
|
const _imports_0$3 = "data:image/webp;base64,UklGRs4CAABXRUJQVlA4WAoAAAAQAAAAJwAAJwAAQUxQSFoBAAABN6KgbRtmp+3Gn/RDEBEEkzTVdowBQKcP3554FoBl23ba5llJyswNJ2VumGWofOY/p8qSit8R/Z8A+a8elYOpw8ta7XyzQK0aYSpXkxxr+l5TIvLMOMTaaw75atjrjVMg6apzYNuvnZH3q2Wxbl7NYR4Ddz6qB+/b4lxd8llHbmrIR018WxYu3QboXfHdMLae0xXZtvhGY+x52WHLcCHeNxRfOfR5Fu/tpdZaJ1mWZeOiA0zFL+w9j/I9NSffY5NUvmeVwTfp8PxNbrn9HRbs2zo8fU3Muq3K6EtK5JFtkzT6ilPmUrji+CvueSh64OULVMJJ0TamEq7JXBx7vAZTCVWXbcNlqBdm4nxFthPmGrPrJj2SvRBXUBdPNcTUvdQTXIu3eoP+gVt1hWlKyLaBQaNs275awvJIwlYeDaBH/f40BXQnkuCVq7HBmr5VI/naaP+iWj1bl98fVlA4IE4BAAAQBwCdASooACgAPi0ShkKhoQ42SgAMAWJZWxKQyHAkNc+PADbI89n6J94A3jAJQK0xA6Tk60mYtNspcySSE/tFIADM///yqf//Kgv//ywQt7g1bu7h+xw3tKfdFW3YSP2h0iF6VIn4CTXLv//vM//94Jv//ee+S0E0m6xnEgxdBDf7ewX/lL4BgZWe2EfgOrK0pMN4Qy5uWqWBS4KWWUfrCz0nMK/H/I4/+XhdD+65pGbyiKvih/6tn//ciDb/uimjajMDV4Q/Xe6/5j9xYKcn08xURQpu0wODf/+3SuKUFZLR0yHKFUmWQGuB/RhP/o3UFQW2JYdAdLNwvjre+S6H5X//i0Kc3jhiy9mLmUsuJ+4/5++fwdGZUbaTBUfk9QB9rjsVLVNwQW2lzccI98O08eePpfHRQKN1FzjT/cMehMc50hgx//o3l7EokAAA";
|
|
23633
23663
|
const _imports_1$2 = "data:image/webp;base64,UklGRhACAABXRUJQVlA4WAoAAAAQAAAAGAAAFwAAQUxQSOcAAAABgINt27HlzZxs1+i945+yudmaXJMm27btmmzbtm094f2+L88RMQHoH0ivGDZ+dTufRGOhwhmw/QIfT5NlyDEEHdz1zdzA5sDmTZ4EKeWJp2may+JdpEray5o7HRnnPYCzy2e43uvNSQvW5CfhcwDY1eKWK4CX3WgRAt0NzG7T6At8vGkUw3FXXX8YGLkf9c+8rLBeOI2gxyD51juA6+5ZuFjaej6YvL3vEsEhxb5nuOicA8KHHlECg1QHMzfnukeCszhGAgY6hBCT+RTuvkMWUWQz7XsGgPs2OUSdS9Uv2N0tWOIT/l4AVlA4IAIBAACwBwCdASoZABgAPjESh0KiIQ39VgAQAYJbACdM5JkB+meFg2gDaAN0l4AD9QPSA/wHuJ/sl6KYX31WXITTIqQjhEf+VVEAAP0cZ9TkuKczs9Y1za4WaelqmDJ+pg5xRI8RGqa0Xf/vA/xc/Jt7352wODrO+GBNH/+k0H/0IZkEP/+9kflw8xfZOvuJnYDve0V1+ez//9tEgIWxjEjRen4x7s8w+Gha3PQxumTkBwxFTp+YlQXvZzWdZW3wRP0nsu895denVK5N8FE8Zg23a9118GTARL99uq+SY4/E8PeGs/GKL4ufe2EdSmq0ixJ9pxRZOAX/4XkoyRtaDa35BrgAAAA=";
|
|
23634
23664
|
const _hoisted_1$c = { class: "login-wx" };
|
|
@@ -26508,13 +26538,21 @@ const _sfc_main$3 = {
|
|
|
26508
26538
|
GoogleInput: GoogleInput$1,
|
|
26509
26539
|
ApplyJoinBtn
|
|
26510
26540
|
},
|
|
26511
|
-
props: {
|
|
26541
|
+
props: {
|
|
26542
|
+
isEn: Boolean,
|
|
26543
|
+
appId: { type: String, default: "ERA" },
|
|
26544
|
+
registerType: { type: String, default: "normal" }
|
|
26545
|
+
},
|
|
26512
26546
|
emits: [
|
|
26513
26547
|
"bind-third-party",
|
|
26514
26548
|
"register",
|
|
26515
26549
|
"register-success",
|
|
26516
26550
|
"need-complete",
|
|
26517
|
-
"register-step-change"
|
|
26551
|
+
"register-step-change",
|
|
26552
|
+
// GIO 埋点 emit
|
|
26553
|
+
"register-next-step",
|
|
26554
|
+
"verify-code-sent",
|
|
26555
|
+
"verify-code-expired"
|
|
26518
26556
|
],
|
|
26519
26557
|
computed: {
|
|
26520
26558
|
// 是否同意用户协议
|
|
@@ -26740,6 +26778,7 @@ const _sfc_main$3 = {
|
|
|
26740
26778
|
this.$nextTick(() => {
|
|
26741
26779
|
this.$refs.registerFormRef.clearValidate();
|
|
26742
26780
|
});
|
|
26781
|
+
this.$emit("register-next-step", this.registerType);
|
|
26743
26782
|
});
|
|
26744
26783
|
},
|
|
26745
26784
|
/**
|
|
@@ -26940,6 +26979,7 @@ const _sfc_main$3 = {
|
|
|
26940
26979
|
}
|
|
26941
26980
|
startTimer();
|
|
26942
26981
|
ElMessage.success(msg);
|
|
26982
|
+
this.$emit("verify-code-sent");
|
|
26943
26983
|
} else {
|
|
26944
26984
|
ElMessage.error(res.data.msg);
|
|
26945
26985
|
}
|
|
@@ -27124,6 +27164,7 @@ const _sfc_main$3 = {
|
|
|
27124
27164
|
const preventDefault = () => {
|
|
27125
27165
|
flowControl.isHandled = true;
|
|
27126
27166
|
};
|
|
27167
|
+
this.$emit("verify-code-expired", false);
|
|
27127
27168
|
this.$emit("register-success", {
|
|
27128
27169
|
user: res.data.data.result,
|
|
27129
27170
|
redirectPath,
|
|
@@ -27143,11 +27184,32 @@ const _sfc_main$3 = {
|
|
|
27143
27184
|
ElMessage.success(
|
|
27144
27185
|
this.isEn ? "Registration successful, pending review" : "注册成功,请等待审核"
|
|
27145
27186
|
);
|
|
27187
|
+
this.$emit("verify-code-expired", false);
|
|
27146
27188
|
}
|
|
27147
27189
|
} else {
|
|
27148
27190
|
this.loading = false;
|
|
27149
27191
|
ElMessage.error(res.data.msg);
|
|
27192
|
+
const subCode = String(res.data.subCode || "");
|
|
27193
|
+
const msg = String(res.data.msg || "");
|
|
27194
|
+
if (/CODE|VERIFY/i.test(subCode) || /验证码|verification code/i.test(msg)) {
|
|
27195
|
+
this.$emit("verify-code-expired", true);
|
|
27196
|
+
}
|
|
27150
27197
|
}
|
|
27198
|
+
},
|
|
27199
|
+
// ===== GIO 埋点:供父组件在关闭时读取的表单字段快照 =====
|
|
27200
|
+
getGioFormSnapshot() {
|
|
27201
|
+
return {
|
|
27202
|
+
hasPhone: !!this.form.phone,
|
|
27203
|
+
hasEmail: !!this.form.email,
|
|
27204
|
+
hasCode: !!this.form.code,
|
|
27205
|
+
hasName: !!(this.form.nameCn || this.form.nameEn || this.form.firstName || this.form.lastName),
|
|
27206
|
+
cityId: this.form.cityId || this.cityId || "",
|
|
27207
|
+
companyName: this.form.companyName || "",
|
|
27208
|
+
sector: this.form.sector || "",
|
|
27209
|
+
agree: !!this.form.agree,
|
|
27210
|
+
useKq: !!this.form.useKq,
|
|
27211
|
+
isJoinCompany: !!this.hasResistCompany
|
|
27212
|
+
};
|
|
27151
27213
|
}
|
|
27152
27214
|
}
|
|
27153
27215
|
};
|
|
@@ -27587,7 +27649,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27587
27649
|
}, 8, ["model", "rules"])
|
|
27588
27650
|
]);
|
|
27589
27651
|
}
|
|
27590
|
-
const ThirdRegisterForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
27652
|
+
const ThirdRegisterForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-6304b6b2"]]);
|
|
27653
|
+
function safeTrack(eventName, attrs) {
|
|
27654
|
+
if (!tracker.isInitialized()) return;
|
|
27655
|
+
const clean = {};
|
|
27656
|
+
if (attrs) {
|
|
27657
|
+
for (const [k, v] of Object.entries(attrs)) {
|
|
27658
|
+
if (v !== null && v !== void 0) clean[k] = v;
|
|
27659
|
+
}
|
|
27660
|
+
}
|
|
27661
|
+
tracker.track(eventName, clean);
|
|
27662
|
+
}
|
|
27663
|
+
const GIO_EVENT_REGISTER_NEXT_STEP = "registerNextStepClick";
|
|
27664
|
+
const GIO_EVENT_LOGIN_DIALOG_CLOSE = "loginDialogClose";
|
|
27591
27665
|
function useLoginForm(options) {
|
|
27592
27666
|
const { isEn, loginType } = options;
|
|
27593
27667
|
const loginFormRef = ref();
|
|
@@ -27852,7 +27926,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
27852
27926
|
showTestThirdBtn: { type: Boolean, default: false },
|
|
27853
27927
|
baseMode: { default: "login" },
|
|
27854
27928
|
appId: { default: "" },
|
|
27855
|
-
test: { type: Boolean, default: false }
|
|
27929
|
+
test: { type: Boolean, default: false },
|
|
27930
|
+
enableTracking: { type: Boolean, default: true }
|
|
27856
27931
|
},
|
|
27857
27932
|
emits: ["update:visible", "update:baseMode", "open", "mode-change", "auth-dialog-close", "login-success", "register-success"],
|
|
27858
27933
|
setup(__props, { emit: __emit }) {
|
|
@@ -27903,6 +27978,37 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
27903
27978
|
const handleRegisterStepChange = (step) => {
|
|
27904
27979
|
registerStep.value = step;
|
|
27905
27980
|
};
|
|
27981
|
+
const registerFormRef = ref(null);
|
|
27982
|
+
const thirdRegisterFormRef = ref(null);
|
|
27983
|
+
const verifyCodeCount = ref(0);
|
|
27984
|
+
const verifyCodeExpired = ref(false);
|
|
27985
|
+
const resolveRegisterType = () => {
|
|
27986
|
+
if (formMode.value === "login") return "login";
|
|
27987
|
+
const t = String(thirdType.value || "").toLowerCase();
|
|
27988
|
+
if (thirdRegisterVisible.value) {
|
|
27989
|
+
if (t === "facebook") return "facebook";
|
|
27990
|
+
if (t === "linkedin") return "linkedin";
|
|
27991
|
+
if (t === "wechat") return "wechat";
|
|
27992
|
+
}
|
|
27993
|
+
if (formMode.value === "register") return "normal";
|
|
27994
|
+
return "normal";
|
|
27995
|
+
};
|
|
27996
|
+
const resolveCloseType = () => {
|
|
27997
|
+
if (_closeReason.value === "login") return "login";
|
|
27998
|
+
if (_closeReason.value === "register") return "register";
|
|
27999
|
+
return "directClose";
|
|
28000
|
+
};
|
|
28001
|
+
const _closeReason = ref("");
|
|
28002
|
+
const handleRegisterNextStep = (registerType) => {
|
|
28003
|
+
if (!props.enableTracking) return;
|
|
28004
|
+
safeTrack(GIO_EVENT_REGISTER_NEXT_STEP, { registerType });
|
|
28005
|
+
};
|
|
28006
|
+
const handleVerifyCodeSent = () => {
|
|
28007
|
+
verifyCodeCount.value += 1;
|
|
28008
|
+
};
|
|
28009
|
+
const handleVerifyCodeExpired = (flag = true) => {
|
|
28010
|
+
verifyCodeExpired.value = flag;
|
|
28011
|
+
};
|
|
27906
28012
|
const resolveAccountType = (type) => {
|
|
27907
28013
|
var _a, _b;
|
|
27908
28014
|
const safeType = String(type || "").toLowerCase();
|
|
@@ -27981,6 +28087,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
27981
28087
|
true
|
|
27982
28088
|
);
|
|
27983
28089
|
}
|
|
28090
|
+
_closeReason.value = "login";
|
|
27984
28091
|
currentVisible.value = false;
|
|
27985
28092
|
executeRedirect(loginData);
|
|
27986
28093
|
}
|
|
@@ -28005,6 +28112,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28005
28112
|
accountType,
|
|
28006
28113
|
mode: "login"
|
|
28007
28114
|
});
|
|
28115
|
+
_closeReason.value = "login";
|
|
28008
28116
|
currentVisible.value = false;
|
|
28009
28117
|
executeRedirect(loginData);
|
|
28010
28118
|
},
|
|
@@ -28091,9 +28199,36 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28091
28199
|
function handleOpen() {
|
|
28092
28200
|
formMode.value = props.baseMode || "login";
|
|
28093
28201
|
_lastEmittedBaseMode.value = formMode.value === "register" ? "register" : "login";
|
|
28202
|
+
verifyCodeCount.value = 0;
|
|
28203
|
+
verifyCodeExpired.value = false;
|
|
28204
|
+
_closeReason.value = "";
|
|
28094
28205
|
emit("open");
|
|
28095
28206
|
}
|
|
28096
28207
|
function handleClose() {
|
|
28208
|
+
var _a, _b, _c, _d;
|
|
28209
|
+
if (props.enableTracking && formMode.value !== "forget-password") {
|
|
28210
|
+
const closeType = resolveCloseType();
|
|
28211
|
+
const registerType = resolveRegisterType();
|
|
28212
|
+
const snapshot = ((_b = (_a = registerFormRef.value) == null ? void 0 : _a.getGioFormSnapshot) == null ? void 0 : _b.call(_a)) || ((_d = (_c = thirdRegisterFormRef.value) == null ? void 0 : _c.getGioFormSnapshot) == null ? void 0 : _d.call(_c)) || null;
|
|
28213
|
+
safeTrack(GIO_EVENT_LOGIN_DIALOG_CLOSE, {
|
|
28214
|
+
closeType,
|
|
28215
|
+
registerType,
|
|
28216
|
+
isJoinCompany: !!(snapshot == null ? void 0 : snapshot.isJoinCompany),
|
|
28217
|
+
verifyCodeCount: verifyCodeCount.value,
|
|
28218
|
+
verifyCodeExpired: verifyCodeExpired.value,
|
|
28219
|
+
...snapshot ? {
|
|
28220
|
+
hasPhone: snapshot.hasPhone,
|
|
28221
|
+
hasEmail: snapshot.hasEmail,
|
|
28222
|
+
hasCode: snapshot.hasCode,
|
|
28223
|
+
hasName: snapshot.hasName,
|
|
28224
|
+
cityId: snapshot.cityId,
|
|
28225
|
+
companyName: snapshot.companyName,
|
|
28226
|
+
sector: snapshot.sector,
|
|
28227
|
+
agree: snapshot.agree,
|
|
28228
|
+
useKq: snapshot.useKq
|
|
28229
|
+
} : {}
|
|
28230
|
+
});
|
|
28231
|
+
}
|
|
28097
28232
|
emit("auth-dialog-close", {
|
|
28098
28233
|
loginType: loginType.value,
|
|
28099
28234
|
formMode: formMode.value
|
|
@@ -28105,6 +28240,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28105
28240
|
resetGioSessionItems();
|
|
28106
28241
|
resetBindRegisterState();
|
|
28107
28242
|
resetThirdPartyState();
|
|
28243
|
+
verifyCodeCount.value = 0;
|
|
28244
|
+
verifyCodeExpired.value = false;
|
|
28245
|
+
_closeReason.value = "";
|
|
28108
28246
|
}
|
|
28109
28247
|
function handleNeedComplete(options = {}) {
|
|
28110
28248
|
const mode2 = (options == null ? void 0 : options.mode) === "register" ? "register" : "login";
|
|
@@ -28134,6 +28272,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28134
28272
|
accountType: resolveAccountTypeByContext(),
|
|
28135
28273
|
mode: "register"
|
|
28136
28274
|
});
|
|
28275
|
+
_closeReason.value = "register";
|
|
28137
28276
|
}
|
|
28138
28277
|
function handleWechatSuccess(payload) {
|
|
28139
28278
|
emit("login-success", {
|
|
@@ -28141,6 +28280,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28141
28280
|
accountType: "WECHAT",
|
|
28142
28281
|
mode: "login"
|
|
28143
28282
|
});
|
|
28283
|
+
_closeReason.value = "login";
|
|
28144
28284
|
}
|
|
28145
28285
|
function handleCompleteSuccess(e) {
|
|
28146
28286
|
var _a;
|
|
@@ -28151,6 +28291,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28151
28291
|
accountType: pendingCompleteEvent.value.accountType,
|
|
28152
28292
|
mode: successMode
|
|
28153
28293
|
});
|
|
28294
|
+
_closeReason.value = successMode === "register" ? "register" : "login";
|
|
28154
28295
|
pendingCompleteEvent.value = null;
|
|
28155
28296
|
}
|
|
28156
28297
|
if (e.redirectPath) {
|
|
@@ -28172,6 +28313,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28172
28313
|
accountType,
|
|
28173
28314
|
mode: "login"
|
|
28174
28315
|
});
|
|
28316
|
+
_closeReason.value = "login";
|
|
28175
28317
|
currentVisible.value = false;
|
|
28176
28318
|
executeRedirect(loginData);
|
|
28177
28319
|
}
|
|
@@ -28480,14 +28622,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28480
28622
|
}, null, 8, ["is-en", "bind-list"])) : createCommentVNode("", true),
|
|
28481
28623
|
unref(thirdRegisterVisible) ? (openBlock(), createBlock(ThirdRegisterForm, {
|
|
28482
28624
|
key: 1,
|
|
28625
|
+
ref_key: "thirdRegisterFormRef",
|
|
28626
|
+
ref: thirdRegisterFormRef,
|
|
28483
28627
|
"is-en": isEn.value,
|
|
28484
28628
|
"app-id": unref(appId),
|
|
28629
|
+
"register-type": resolveRegisterType(),
|
|
28485
28630
|
class: "jc:mt-6",
|
|
28486
28631
|
onBindThirdParty: unref(handleBindThirdParty),
|
|
28487
28632
|
onRegisterSuccess: handleRegisterSuccess,
|
|
28488
28633
|
onNeedComplete: handleRegisterNeedComplete,
|
|
28489
|
-
onRegisterStepChange: handleRegisterStepChange
|
|
28490
|
-
|
|
28634
|
+
onRegisterStepChange: handleRegisterStepChange,
|
|
28635
|
+
onRegisterNextStep: handleRegisterNextStep,
|
|
28636
|
+
onVerifyCodeSent: handleVerifyCodeSent,
|
|
28637
|
+
onVerifyCodeExpired: handleVerifyCodeExpired
|
|
28638
|
+
}, null, 8, ["is-en", "app-id", "register-type", "onBindThirdParty"])) : createCommentVNode("", true)
|
|
28491
28639
|
])) : createCommentVNode("", true),
|
|
28492
28640
|
loginType.value !== "TEST" && loginType.value !== "facebook" && loginType.value !== "linkedin" ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
28493
28641
|
createElementVNode("div", _hoisted_11$1, toDisplayString(isEn.value ? "Sign in with" : "其他登录方式"), 1),
|
|
@@ -28544,12 +28692,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28544
28692
|
}, null, 8, ["is-en"])) : formMode.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
28545
28693
|
createElementVNode("div", _hoisted_14$1, [
|
|
28546
28694
|
createVNode(RegisterForm, {
|
|
28695
|
+
ref_key: "registerFormRef",
|
|
28696
|
+
ref: registerFormRef,
|
|
28547
28697
|
"is-en": isEn.value,
|
|
28548
28698
|
"app-id": unref(appId),
|
|
28549
28699
|
onNeedComplete: handleRegisterNeedComplete,
|
|
28550
28700
|
onRegisterSuccess: handleRegisterSuccess,
|
|
28551
28701
|
onThirdPartyClick: handleThirdClick,
|
|
28552
|
-
onRegisterStepChange: handleRegisterStepChange
|
|
28702
|
+
onRegisterStepChange: handleRegisterStepChange,
|
|
28703
|
+
onRegisterNextStep: handleRegisterNextStep,
|
|
28704
|
+
onVerifyCodeSent: handleVerifyCodeSent,
|
|
28705
|
+
onVerifyCodeExpired: handleVerifyCodeExpired
|
|
28553
28706
|
}, null, 8, ["is-en", "app-id"])
|
|
28554
28707
|
])
|
|
28555
28708
|
])) : formMode.value === "need-complete" ? (openBlock(), createBlock(CompleteInfoForm, {
|
|
@@ -28579,7 +28732,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
28579
28732
|
};
|
|
28580
28733
|
}
|
|
28581
28734
|
});
|
|
28582
|
-
const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
28735
|
+
const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-91d3cd82"]]);
|
|
28583
28736
|
const __vite_glob_0_16 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28584
28737
|
__proto__: null,
|
|
28585
28738
|
default: index$2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jctrans-materials/comps-vue3",
|
|
3
|
-
"version": "1.0.42-beta.
|
|
3
|
+
"version": "1.0.42-beta.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"nanoid": "^5.1.6",
|
|
39
39
|
"qrcode": "^1.5.4",
|
|
40
40
|
"tailwindcss": "4.1.18",
|
|
41
|
-
"@jctrans-materials/shared": "1.0.42-beta.
|
|
41
|
+
"@jctrans-materials/shared": "1.0.42-beta.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@tailwindcss/postcss": "4.1.18",
|