@witlink/usercenter 1.2.60 → 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 +82 -73
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
- package/version.md +3 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -38287,7 +38287,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
38287
38287
|
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
38288
38288
|
createVNode(_component_a_descriptions, {
|
|
38289
38289
|
bordered: "",
|
|
38290
|
-
class: "descriptions-detail"
|
|
38290
|
+
class: "descriptions-detail",
|
|
38291
|
+
style: { "height": "calc(100% - 57px)", "overflow-y": "auto" }
|
|
38291
38292
|
}, {
|
|
38292
38293
|
default: withCtx(() => [
|
|
38293
38294
|
createVNode(_component_a_descriptions_item, { span: 3 }, {
|
|
@@ -38926,54 +38927,60 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
38926
38927
|
showModal
|
|
38927
38928
|
});
|
|
38928
38929
|
ref(0);
|
|
38929
|
-
const mobileRules =
|
|
38930
|
-
|
|
38931
|
-
|
|
38932
|
-
|
|
38933
|
-
|
|
38934
|
-
|
|
38935
|
-
|
|
38936
|
-
|
|
38937
|
-
|
|
38938
|
-
|
|
38939
|
-
|
|
38940
|
-
|
|
38941
|
-
|
|
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
|
+
};
|
|
38942
38945
|
});
|
|
38943
|
-
const emailRules =
|
|
38944
|
-
|
|
38945
|
-
|
|
38946
|
-
|
|
38947
|
-
|
|
38948
|
-
|
|
38949
|
-
|
|
38950
|
-
|
|
38951
|
-
|
|
38952
|
-
|
|
38953
|
-
|
|
38954
|
-
|
|
38955
|
-
|
|
38956
|
-
|
|
38957
|
-
|
|
38958
|
-
|
|
38959
|
-
|
|
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
|
+
}
|
|
38960
38965
|
}
|
|
38961
38966
|
}
|
|
38962
|
-
|
|
38963
|
-
|
|
38964
|
-
|
|
38965
|
-
|
|
38966
|
-
|
|
38967
|
-
|
|
38968
|
-
|
|
38969
|
-
|
|
38970
|
-
|
|
38971
|
-
|
|
38972
|
-
|
|
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
|
+
}
|
|
38973
38980
|
}
|
|
38974
38981
|
}
|
|
38975
|
-
|
|
38976
|
-
|
|
38982
|
+
]
|
|
38983
|
+
};
|
|
38977
38984
|
});
|
|
38978
38985
|
const sendCheck = (type = "") => {
|
|
38979
38986
|
if (!change.value) {
|
|
@@ -39083,7 +39090,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
39083
39090
|
layout: "vertical",
|
|
39084
39091
|
ref_key: "formRef",
|
|
39085
39092
|
ref: formRef,
|
|
39086
|
-
rules: mobileRules,
|
|
39093
|
+
rules: mobileRules.value,
|
|
39087
39094
|
class: "inline-query-form clear-formctrl-lh rm-form-item-mb",
|
|
39088
39095
|
style: { "height": "198px" }
|
|
39089
39096
|
}, {
|
|
@@ -39124,7 +39131,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
39124
39131
|
params.opType == "3" ? (openBlock(), createBlock(_component_a_form, {
|
|
39125
39132
|
key: 2,
|
|
39126
39133
|
model: form,
|
|
39127
|
-
rules: emailRules,
|
|
39134
|
+
rules: emailRules.value,
|
|
39128
39135
|
ref_key: "formRef",
|
|
39129
39136
|
ref: formRef,
|
|
39130
39137
|
layout: "vertical",
|
|
@@ -40587,34 +40594,36 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
40587
40594
|
newPwd: "",
|
|
40588
40595
|
userPwd1: ""
|
|
40589
40596
|
});
|
|
40590
|
-
const pwdRules =
|
|
40591
|
-
|
|
40592
|
-
|
|
40593
|
-
|
|
40594
|
-
|
|
40595
|
-
|
|
40596
|
-
|
|
40597
|
-
|
|
40598
|
-
|
|
40599
|
-
|
|
40600
|
-
|
|
40601
|
-
|
|
40602
|
-
|
|
40603
|
-
|
|
40604
|
-
|
|
40605
|
-
|
|
40606
|
-
|
|
40607
|
-
|
|
40608
|
-
|
|
40609
|
-
|
|
40610
|
-
|
|
40611
|
-
|
|
40612
|
-
|
|
40613
|
-
|
|
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
|
+
}
|
|
40614
40623
|
}
|
|
40615
40624
|
}
|
|
40616
|
-
|
|
40617
|
-
|
|
40625
|
+
]
|
|
40626
|
+
};
|
|
40618
40627
|
});
|
|
40619
40628
|
const initData = async () => {
|
|
40620
40629
|
var _a;
|
|
@@ -40902,7 +40911,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
40902
40911
|
ref: formRef,
|
|
40903
40912
|
name: "custom-validation",
|
|
40904
40913
|
model: formState,
|
|
40905
|
-
rules: pwdRules,
|
|
40914
|
+
rules: pwdRules.value,
|
|
40906
40915
|
layout: "vertical"
|
|
40907
40916
|
}, {
|
|
40908
40917
|
default: withCtx(() => [
|