@witlink/usercenter 1.2.61 → 1.2.62
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/usercenter.es.js +80 -72
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -38927,54 +38927,60 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
38927
38927
|
showModal
|
|
38928
38928
|
});
|
|
38929
38929
|
ref(0);
|
|
38930
|
-
const mobileRules =
|
|
38931
|
-
|
|
38932
|
-
|
|
38933
|
-
|
|
38934
|
-
|
|
38935
|
-
|
|
38936
|
-
|
|
38937
|
-
|
|
38938
|
-
|
|
38939
|
-
|
|
38940
|
-
|
|
38941
|
-
|
|
38942
|
-
|
|
38930
|
+
const mobileRules = computed(() => {
|
|
38931
|
+
return {
|
|
38932
|
+
pwd: [
|
|
38933
|
+
{
|
|
38934
|
+
required: true,
|
|
38935
|
+
message: t2("uc_personal_center.user_pwd4_msg1")
|
|
38936
|
+
}
|
|
38937
|
+
],
|
|
38938
|
+
mobile: [
|
|
38939
|
+
{
|
|
38940
|
+
required: true,
|
|
38941
|
+
message: t2("uc_personal_center.mobile_placeholder")
|
|
38942
|
+
}
|
|
38943
|
+
]
|
|
38944
|
+
};
|
|
38943
38945
|
});
|
|
38944
|
-
const emailRules =
|
|
38945
|
-
|
|
38946
|
-
|
|
38947
|
-
|
|
38948
|
-
|
|
38949
|
-
|
|
38950
|
-
|
|
38951
|
-
|
|
38952
|
-
|
|
38953
|
-
|
|
38954
|
-
|
|
38955
|
-
|
|
38956
|
-
|
|
38957
|
-
|
|
38958
|
-
|
|
38959
|
-
|
|
38960
|
-
|
|
38946
|
+
const emailRules = computed(() => {
|
|
38947
|
+
return {
|
|
38948
|
+
pwd: [
|
|
38949
|
+
{
|
|
38950
|
+
required: true,
|
|
38951
|
+
message: t2("uc_personal_center.user_pwd4_msg1")
|
|
38952
|
+
}
|
|
38953
|
+
],
|
|
38954
|
+
email: [
|
|
38955
|
+
{
|
|
38956
|
+
required: true,
|
|
38957
|
+
validator: function(rule, value) {
|
|
38958
|
+
if (!value) {
|
|
38959
|
+
return Promise.reject(t2("uc_personal_center.email_placeholder"));
|
|
38960
|
+
} else if (!isValidEmail(value)) {
|
|
38961
|
+
return Promise.reject(t2("uc_personal_center.email_validate"));
|
|
38962
|
+
} else {
|
|
38963
|
+
return Promise.resolve();
|
|
38964
|
+
}
|
|
38961
38965
|
}
|
|
38962
38966
|
}
|
|
38963
|
-
|
|
38964
|
-
|
|
38965
|
-
|
|
38966
|
-
|
|
38967
|
-
|
|
38968
|
-
|
|
38969
|
-
|
|
38970
|
-
|
|
38971
|
-
|
|
38972
|
-
|
|
38973
|
-
|
|
38967
|
+
],
|
|
38968
|
+
captcha: [
|
|
38969
|
+
{
|
|
38970
|
+
required: true,
|
|
38971
|
+
trigger: ["blur"],
|
|
38972
|
+
validator: function(rule, value) {
|
|
38973
|
+
if (!value) {
|
|
38974
|
+
return Promise.reject(
|
|
38975
|
+
t2("uc_personal_center.verify_code_placeholder")
|
|
38976
|
+
);
|
|
38977
|
+
} else {
|
|
38978
|
+
return Promise.resolve();
|
|
38979
|
+
}
|
|
38974
38980
|
}
|
|
38975
38981
|
}
|
|
38976
|
-
|
|
38977
|
-
|
|
38982
|
+
]
|
|
38983
|
+
};
|
|
38978
38984
|
});
|
|
38979
38985
|
const sendCheck = (type = "") => {
|
|
38980
38986
|
if (!change.value) {
|
|
@@ -39084,7 +39090,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
39084
39090
|
layout: "vertical",
|
|
39085
39091
|
ref_key: "formRef",
|
|
39086
39092
|
ref: formRef,
|
|
39087
|
-
rules: mobileRules,
|
|
39093
|
+
rules: mobileRules.value,
|
|
39088
39094
|
class: "inline-query-form clear-formctrl-lh rm-form-item-mb",
|
|
39089
39095
|
style: { "height": "198px" }
|
|
39090
39096
|
}, {
|
|
@@ -39125,7 +39131,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
39125
39131
|
params.opType == "3" ? (openBlock(), createBlock(_component_a_form, {
|
|
39126
39132
|
key: 2,
|
|
39127
39133
|
model: form,
|
|
39128
|
-
rules: emailRules,
|
|
39134
|
+
rules: emailRules.value,
|
|
39129
39135
|
ref_key: "formRef",
|
|
39130
39136
|
ref: formRef,
|
|
39131
39137
|
layout: "vertical",
|
|
@@ -40588,34 +40594,36 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
40588
40594
|
newPwd: "",
|
|
40589
40595
|
userPwd1: ""
|
|
40590
40596
|
});
|
|
40591
|
-
const pwdRules =
|
|
40592
|
-
|
|
40593
|
-
|
|
40594
|
-
|
|
40595
|
-
|
|
40596
|
-
|
|
40597
|
-
|
|
40598
|
-
|
|
40599
|
-
|
|
40600
|
-
|
|
40601
|
-
|
|
40602
|
-
|
|
40603
|
-
|
|
40604
|
-
|
|
40605
|
-
|
|
40606
|
-
|
|
40607
|
-
|
|
40608
|
-
|
|
40609
|
-
|
|
40610
|
-
|
|
40611
|
-
|
|
40612
|
-
|
|
40613
|
-
|
|
40614
|
-
|
|
40597
|
+
const pwdRules = computed(() => {
|
|
40598
|
+
return {
|
|
40599
|
+
oldPwd: [
|
|
40600
|
+
{
|
|
40601
|
+
required: true,
|
|
40602
|
+
message: t2("uc_personal_center.user_pwd3_msg1")
|
|
40603
|
+
}
|
|
40604
|
+
],
|
|
40605
|
+
newPwd: [
|
|
40606
|
+
{
|
|
40607
|
+
required: true,
|
|
40608
|
+
message: t2("uc_personal_center.user_pwd1_msg1")
|
|
40609
|
+
}
|
|
40610
|
+
],
|
|
40611
|
+
userPwd1: [
|
|
40612
|
+
{
|
|
40613
|
+
required: true,
|
|
40614
|
+
validator: function(rule, value) {
|
|
40615
|
+
if (!value) {
|
|
40616
|
+
return Promise.reject(t2("uc_personal_center.user_pwd2_msg2"));
|
|
40617
|
+
}
|
|
40618
|
+
if (formState.newPwd === value) {
|
|
40619
|
+
return Promise.resolve();
|
|
40620
|
+
} else {
|
|
40621
|
+
return Promise.reject(t2("uc_personal_center.user_pwd2_msg1"));
|
|
40622
|
+
}
|
|
40615
40623
|
}
|
|
40616
40624
|
}
|
|
40617
|
-
|
|
40618
|
-
|
|
40625
|
+
]
|
|
40626
|
+
};
|
|
40619
40627
|
});
|
|
40620
40628
|
const initData = async () => {
|
|
40621
40629
|
var _a;
|
|
@@ -40903,7 +40911,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
40903
40911
|
ref: formRef,
|
|
40904
40912
|
name: "custom-validation",
|
|
40905
40913
|
model: formState,
|
|
40906
|
-
rules: pwdRules,
|
|
40914
|
+
rules: pwdRules.value,
|
|
40907
40915
|
layout: "vertical"
|
|
40908
40916
|
}, {
|
|
40909
40917
|
default: withCtx(() => [
|