@maketribe/ms-app 3.2.17 → 3.2.19
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/cjs/components/business/resource-manager/resource-manager.vue.js +17 -9
- package/dist/cjs/components/business/resource-manager/resource-manager.vue.js.map +1 -1
- package/dist/cjs/components/business/verify-dialog/verify-dialog-api.js +1 -1
- package/dist/cjs/components/business/verify-dialog/verify-dialog-api.js.map +1 -1
- package/dist/cjs/components/business/verify-dialog/verify-panel.js +22 -27
- package/dist/cjs/components/business/verify-dialog/verify-panel.js.map +1 -1
- package/dist/cjs/installer.js +4 -4
- package/dist/cjs/layouts/components/bar/index.js +4 -4
- package/dist/cjs/layouts/components/menu/menu-item.js +5 -5
- package/dist/cjs/layouts/components/simple-page-layout/index.vue.js +53 -0
- package/dist/cjs/layouts/components/simple-page-layout/index.vue.js.map +1 -0
- package/dist/cjs/layouts/components/simple-page-layout/index.vue2.js +4 -0
- package/dist/cjs/layouts/components/simple-page-layout/index.vue2.js.map +1 -0
- package/dist/cjs/layouts/components/simple-page-layout/team-image.vue.js +1506 -0
- package/dist/cjs/layouts/components/simple-page-layout/team-image.vue.js.map +1 -0
- package/dist/cjs/layouts/container/default.js +3 -3
- package/dist/cjs/message-impl/DialogerImpl.js +2 -4
- package/dist/cjs/message-impl/DialogerImpl.js.map +1 -1
- package/dist/cjs/modules/cms/components/part-tree/index.vue.js +2 -2
- package/dist/cjs/modules/cms/dataviews/cms-ad-contents/CmsAdContentsForm.js +1 -1
- package/dist/cjs/modules/cms/dataviews/cms-articles/CmsArticlesForm.js +1 -1
- package/dist/cjs/modules/cms/dataviews/cms-articles/cms-article-atlas/CmsArticleAtlasForm.js +1 -1
- package/dist/cjs/modules/cms/dataviews/cms-parts/CmsContentManPartForm.js +1 -0
- package/dist/cjs/modules/cms/dataviews/cms-parts/CmsContentManPartForm.js.map +1 -1
- package/dist/cjs/modules/cms/dataviews/cms-parts/CmsPartForm.js.map +1 -1
- package/dist/cjs/modules/cms/pages/cms-ad/index.vue2.js +1 -1
- package/dist/cjs/modules/cms/pages/cms-contents/article-edit-add-page.vue2.js +8 -6
- package/dist/cjs/modules/cms/pages/cms-contents/article-edit-add-page.vue2.js.map +1 -1
- package/dist/cjs/modules/cms/pages/cms-contents/components/article-atlas.vue.js +1 -4
- package/dist/cjs/modules/cms/pages/cms-contents/components/article-atlas.vue.js.map +1 -1
- package/dist/cjs/modules/cms/pages/cms-contents/components/article-list.vue.js +4 -4
- package/dist/cjs/modules/cms/pages/cms-contents/components/part-info.vue.js +1 -4
- package/dist/cjs/modules/cms/pages/cms-contents/components/part-info.vue.js.map +1 -1
- package/dist/cjs/modules/cms/pages/cms-contents/index.vue2.js +4 -4
- package/dist/cjs/modules/cms/pages/cms-resource/index.vue2.js +4 -4
- package/dist/cjs/modules/ms/components/material-list/material-list-options.js +1 -1
- package/dist/cjs/modules/ms/components/material-list/material-list.js +1 -1
- package/dist/cjs/modules/ms/components/material-select/material-select-api.js +1 -1
- package/dist/cjs/modules/ms/dataviews/ms-member/components/MemberRolesColumn.js +1 -4
- package/dist/cjs/modules/ms/dataviews/ms-member/components/MemberRolesColumn.js.map +1 -1
- package/dist/cjs/modules/ms/pages/icons/index.vue2.js +1 -4
- package/dist/cjs/modules/ms/pages/icons/index.vue2.js.map +1 -1
- package/dist/cjs/modules/ms/pages/local-log/index.vue2.js +1 -1
- package/dist/cjs/modules/ms/pages/ms-material/index.vue2.js +4 -4
- package/dist/cjs/modules/ms/pages/ms-menu/index.vue2.js +2 -2
- package/dist/cjs/modules/ms/pages/ms-role/components/aside.vue.js +4 -4
- package/dist/cjs/modules/ms/pages/ms-role/components/role-permission-config/role-permission-config-options.js +1 -1
- package/dist/cjs/modules/ms/pages/ms-role/index.vue2.js +4 -4
- package/dist/cjs/page/index/dv/default/edit.vue2.js +1 -1
- package/dist/cjs/page/index/dv/default/single/list/dialog.vue2.js +4 -4
- package/dist/cjs/page/index/dv/default/single/list/normal.vue2.js +4 -4
- package/dist/cjs/page/index/dv/default/single/table-tree/dialog.vue2.js +2 -2
- package/dist/cjs/page/index/dv/default/single/table-tree/normal.vue2.js +2 -2
- package/dist/cjs/page/index/dv/default/single/tree/dialog.vue2.js +4 -4
- package/dist/cjs/page/index/dv/default/table.vue2.js +1 -1
- package/dist/cjs/page/login/index.vue2.js +116 -127
- package/dist/cjs/page/login/index.vue2.js.map +1 -1
- package/dist/cjs/page/signup/index.vue2.js +104 -108
- package/dist/cjs/page/signup/index.vue2.js.map +1 -1
- package/dist/esm/components/business/resource-manager/resource-manager.vue.js +18 -10
- package/dist/esm/components/business/resource-manager/resource-manager.vue.js.map +1 -1
- package/dist/esm/components/business/verify-dialog/verify-dialog-api.js +1 -1
- package/dist/esm/components/business/verify-dialog/verify-dialog-api.js.map +1 -1
- package/dist/esm/components/business/verify-dialog/verify-panel.js +23 -28
- package/dist/esm/components/business/verify-dialog/verify-panel.js.map +1 -1
- package/dist/esm/installer.js +4 -4
- package/dist/esm/layouts/components/bar/index.js +4 -4
- package/dist/esm/layouts/components/menu/menu-item.js +5 -5
- package/dist/esm/layouts/components/simple-page-layout/index.vue.js +54 -0
- package/dist/esm/layouts/components/simple-page-layout/index.vue.js.map +1 -0
- package/dist/esm/layouts/components/simple-page-layout/index.vue2.js +5 -0
- package/dist/esm/layouts/components/simple-page-layout/index.vue2.js.map +1 -0
- package/dist/esm/layouts/components/simple-page-layout/team-image.vue.js +1507 -0
- package/dist/esm/layouts/components/simple-page-layout/team-image.vue.js.map +1 -0
- package/dist/esm/layouts/container/default.js +3 -3
- package/dist/esm/message-impl/DialogerImpl.js +2 -4
- package/dist/esm/message-impl/DialogerImpl.js.map +1 -1
- package/dist/esm/modules/cms/components/part-tree/index.vue.js +2 -2
- package/dist/esm/modules/cms/dataviews/cms-ad-contents/CmsAdContentsForm.js +1 -1
- package/dist/esm/modules/cms/dataviews/cms-articles/CmsArticlesForm.js +1 -1
- package/dist/esm/modules/cms/dataviews/cms-articles/cms-article-atlas/CmsArticleAtlasForm.js +1 -1
- package/dist/esm/modules/cms/dataviews/cms-parts/CmsContentManPartForm.js +2 -1
- package/dist/esm/modules/cms/dataviews/cms-parts/CmsContentManPartForm.js.map +1 -1
- package/dist/esm/modules/cms/dataviews/cms-parts/CmsPartForm.js.map +1 -1
- package/dist/esm/modules/cms/pages/cms-ad/index.vue2.js +1 -1
- package/dist/esm/modules/cms/pages/cms-contents/article-edit-add-page.vue2.js +8 -6
- package/dist/esm/modules/cms/pages/cms-contents/article-edit-add-page.vue2.js.map +1 -1
- package/dist/esm/modules/cms/pages/cms-contents/components/article-atlas.vue.js +1 -4
- package/dist/esm/modules/cms/pages/cms-contents/components/article-atlas.vue.js.map +1 -1
- package/dist/esm/modules/cms/pages/cms-contents/components/article-list.vue.js +4 -4
- package/dist/esm/modules/cms/pages/cms-contents/components/part-info.vue.js +1 -4
- package/dist/esm/modules/cms/pages/cms-contents/components/part-info.vue.js.map +1 -1
- package/dist/esm/modules/cms/pages/cms-contents/index.vue2.js +4 -4
- package/dist/esm/modules/cms/pages/cms-resource/index.vue2.js +4 -4
- package/dist/esm/modules/ms/components/material-list/material-list-options.js +1 -1
- package/dist/esm/modules/ms/components/material-list/material-list.js +1 -1
- package/dist/esm/modules/ms/components/material-select/material-select-api.js +1 -1
- package/dist/esm/modules/ms/dataviews/ms-member/components/MemberRolesColumn.js +1 -4
- package/dist/esm/modules/ms/dataviews/ms-member/components/MemberRolesColumn.js.map +1 -1
- package/dist/esm/modules/ms/pages/icons/index.vue2.js +1 -4
- package/dist/esm/modules/ms/pages/icons/index.vue2.js.map +1 -1
- package/dist/esm/modules/ms/pages/local-log/index.vue2.js +1 -1
- package/dist/esm/modules/ms/pages/ms-material/index.vue2.js +4 -4
- package/dist/esm/modules/ms/pages/ms-menu/index.vue2.js +2 -2
- package/dist/esm/modules/ms/pages/ms-role/components/aside.vue.js +4 -4
- package/dist/esm/modules/ms/pages/ms-role/components/role-permission-config/role-permission-config-options.js +1 -1
- package/dist/esm/modules/ms/pages/ms-role/index.vue2.js +4 -4
- package/dist/esm/page/index/dv/default/edit.vue2.js +1 -1
- package/dist/esm/page/index/dv/default/single/list/dialog.vue2.js +4 -4
- package/dist/esm/page/index/dv/default/single/list/normal.vue2.js +4 -4
- package/dist/esm/page/index/dv/default/single/table-tree/dialog.vue2.js +2 -2
- package/dist/esm/page/index/dv/default/single/table-tree/normal.vue2.js +2 -2
- package/dist/esm/page/index/dv/default/single/tree/dialog.vue2.js +4 -4
- package/dist/esm/page/index/dv/default/table.vue2.js +1 -1
- package/dist/esm/page/login/index.vue2.js +117 -128
- package/dist/esm/page/login/index.vue2.js.map +1 -1
- package/dist/esm/page/signup/index.vue2.js +105 -109
- package/dist/esm/page/signup/index.vue2.js.map +1 -1
- package/dist/style/index.css +2 -2
- package/dist/style/layouts/default/index.css +1 -1
- package/dist/style/layouts/default/simple-page-layout.css +1 -0
- package/dist/style/layouts/index.css +1 -1
- package/dist/style/modules/cms/index.css +1 -1
- package/dist/style/modules/cms/resource-manager.css +1 -1
- package/dist/style/page/index.css +1 -1
- package/dist/style/page/login.css +1 -1
- package/dist/style/src/layouts/default/index.scss +1 -0
- package/dist/style/src/layouts/default/simple-page-layout.scss +132 -0
- package/dist/style/src/modules/cms/resource-manager.scss +0 -6
- package/dist/style/src/page/login.scss +60 -86
- package/dist/types/layouts/components/simple-page-layout/index.vue.d.ts +11 -0
- package/dist/types/layouts/components/simple-page-layout/team-image.vue.d.ts +2 -0
- package/package.json +3 -3
|
@@ -36,24 +36,16 @@ require("../../components/data-model/data-table-pagination/index.js");
|
|
|
36
36
|
const index = require("../../components/business/verify-dialog/index.js");
|
|
37
37
|
require("../../components/business/resource-list/index.js");
|
|
38
38
|
require("../../components/business/resource-manager/index.js");
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
key: 0,
|
|
50
|
-
class: "form-title"
|
|
51
|
-
};
|
|
52
|
-
const _hoisted_8 = { class: "notify" };
|
|
53
|
-
const _hoisted_9 = {
|
|
54
|
-
key: 1,
|
|
55
|
-
class: "form-title"
|
|
56
|
-
};
|
|
39
|
+
const index_vue_vue_type_script_setup_true_lang = require("../../layouts/components/simple-page-layout/index.vue.js");
|
|
40
|
+
const _hoisted_1 = { class: "login-form-wrap" };
|
|
41
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "login-form-title" }, " 账号登录 ", -1);
|
|
42
|
+
const _hoisted_3 = { class: "login-form-item" };
|
|
43
|
+
const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
44
|
+
const _hoisted_5 = { class: "notify" };
|
|
45
|
+
const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("div", { class: "login-form-title" }, "账号重置", -1);
|
|
46
|
+
const _hoisted_7 = { class: "login-form-item" };
|
|
47
|
+
const _hoisted_8 = { class: "login-form-item" };
|
|
48
|
+
const _hoisted_9 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
57
49
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
58
50
|
...{
|
|
59
51
|
mkRoute: {
|
|
@@ -128,131 +120,128 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
128
120
|
}
|
|
129
121
|
};
|
|
130
122
|
return (_ctx, _cache) => {
|
|
123
|
+
const _component_MKSvgIcon = vue.resolveComponent("MKSvgIcon");
|
|
131
124
|
const _component_el_link = vue.resolveComponent("el-link");
|
|
132
125
|
const _component_ElInput = vue.resolveComponent("ElInput");
|
|
133
126
|
const _component_ElButton = vue.resolveComponent("ElButton");
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
vue.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
])
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
127
|
+
return vue.openBlock(), vue.createBlock(index_vue_vue_type_script_setup_true_lang, { class: "login-wrap" }, {
|
|
128
|
+
default: vue.withCtx(() => [
|
|
129
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
130
|
+
!forgotPassword.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
131
|
+
_hoisted_2,
|
|
132
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
133
|
+
_hoisted_4,
|
|
134
|
+
vue.createElementVNode("span", _hoisted_5, [
|
|
135
|
+
vue.createTextVNode(" 没有账号? "),
|
|
136
|
+
vue.createVNode(_component_el_link, {
|
|
137
|
+
underline: false,
|
|
138
|
+
type: "primary",
|
|
139
|
+
onClick: _cache[0] || (_cache[0] = ($event) => vue.unref(router).push("/signup"))
|
|
140
|
+
}, {
|
|
141
|
+
default: vue.withCtx(() => [
|
|
142
|
+
vue.createTextVNode(" 申请账号 "),
|
|
143
|
+
vue.createVNode(_component_MKSvgIcon, {
|
|
144
|
+
iconClass: "ArrowRightBold",
|
|
145
|
+
style: { "margin-left": "5px" }
|
|
146
|
+
})
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
})
|
|
150
|
+
])
|
|
151
|
+
])
|
|
152
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
153
|
+
_hoisted_6,
|
|
154
|
+
vue.createElementVNode("div", _hoisted_7, " 新密码将会在重置后送至 " + vue.toDisplayString(loginFormData.account) + " 绑定的邮箱!请查收! ", 1)
|
|
155
|
+
], 64)),
|
|
156
|
+
vue.createVNode(vue.unref(elementPlus.ElForm), {
|
|
157
|
+
model: loginFormData,
|
|
158
|
+
rules,
|
|
159
|
+
size: "large",
|
|
160
|
+
ref_key: "formEl",
|
|
161
|
+
ref: formEl,
|
|
162
|
+
onSubmit: _cache[4] || (_cache[4] = vue.withModifiers(() => {
|
|
163
|
+
}, ["prevent"]))
|
|
164
|
+
}, {
|
|
165
|
+
default: vue.withCtx(() => [
|
|
166
|
+
vue.createVNode(vue.unref(elementPlus.ElFormItem), { prop: "account" }, {
|
|
167
|
+
default: vue.withCtx(() => [
|
|
168
|
+
vue.createVNode(_component_ElInput, {
|
|
169
|
+
modelValue: loginFormData.account,
|
|
170
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => loginFormData.account = $event),
|
|
171
|
+
placeholder: "帐号",
|
|
172
|
+
onKeyup: vue.withKeys(vue.withModifiers(sendAction, ["prevent"]), ["enter", "native"])
|
|
173
|
+
}, null, 8, ["modelValue", "onKeyup"])
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}),
|
|
177
|
+
!forgotPassword.value ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElFormItem), {
|
|
178
|
+
key: 0,
|
|
179
|
+
prop: "password",
|
|
180
|
+
style: { "margin-top": "30px" }
|
|
166
181
|
}, {
|
|
167
182
|
default: vue.withCtx(() => [
|
|
168
|
-
vue.createVNode(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
183
|
+
vue.createVNode(_component_ElInput, {
|
|
184
|
+
modelValue: loginFormData.password,
|
|
185
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => loginFormData.password = $event),
|
|
186
|
+
type: "password",
|
|
187
|
+
placeholder: "密码",
|
|
188
|
+
onKeyup: vue.withKeys(vue.withModifiers(sendAction, ["prevent"]), ["enter", "native"])
|
|
189
|
+
}, null, 8, ["modelValue", "onKeyup"])
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
})) : vue.createCommentVNode("", true),
|
|
193
|
+
vue.createElementVNode("div", _hoisted_8, [
|
|
194
|
+
_hoisted_9,
|
|
195
|
+
vue.createVNode(_component_el_link, {
|
|
196
|
+
underline: false,
|
|
197
|
+
type: "primary",
|
|
198
|
+
onClick: _cache[3] || (_cache[3] = ($event) => forgotPassword.value = !forgotPassword.value)
|
|
199
|
+
}, {
|
|
200
|
+
default: vue.withCtx(() => [
|
|
201
|
+
vue.createTextVNode(vue.toDisplayString(forgotPassword.value ? "返回登陆" : "忘记密码") + " ", 1),
|
|
202
|
+
vue.createVNode(_component_MKSvgIcon, {
|
|
203
|
+
iconClass: "ArrowRightBold",
|
|
204
|
+
style: { "margin-left": "2px" }
|
|
205
|
+
})
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
})
|
|
209
|
+
]),
|
|
210
|
+
vue.createVNode(vue.unref(elementPlus.ElFormItem), null, {
|
|
211
|
+
default: vue.withCtx(() => [
|
|
212
|
+
!forgotPassword.value ? (vue.openBlock(), vue.createBlock(_component_ElButton, {
|
|
180
213
|
key: 0,
|
|
181
|
-
|
|
214
|
+
type: "primary",
|
|
215
|
+
style: { "width": "100%" },
|
|
216
|
+
loading: loading.value,
|
|
217
|
+
onClick: sendAction
|
|
182
218
|
}, {
|
|
183
219
|
default: vue.withCtx(() => [
|
|
184
|
-
vue.
|
|
185
|
-
modelValue: loginFormData.password,
|
|
186
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => loginFormData.password = $event),
|
|
187
|
-
type: "password",
|
|
188
|
-
placeholder: "密码",
|
|
189
|
-
onKeyup: vue.withKeys(vue.withModifiers(sendAction, ["prevent"]), ["enter", "native"])
|
|
190
|
-
}, null, 8, ["modelValue", "onKeyup"])
|
|
220
|
+
vue.createTextVNode(" 登陆 ")
|
|
191
221
|
]),
|
|
192
222
|
_: 1
|
|
193
|
-
})) : vue.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
vue.createVNode(_component_ElButton, {
|
|
201
|
-
link: "",
|
|
202
|
-
class: "operaBtn",
|
|
203
|
-
onClick: _cache[3] || (_cache[3] = ($event) => forgotPassword.value = !forgotPassword.value)
|
|
204
|
-
}, {
|
|
205
|
-
default: vue.withCtx(() => [
|
|
206
|
-
vue.createTextVNode(vue.toDisplayString(forgotPassword.value ? "返回登陆" : "忘记密码?"), 1)
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
})
|
|
210
|
-
]),
|
|
211
|
-
_: 1
|
|
212
|
-
})
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
})
|
|
216
|
-
]),
|
|
217
|
-
_: 1
|
|
218
|
-
}),
|
|
219
|
-
vue.createVNode(vue.unref(elementPlus.ElFormItem), null, {
|
|
223
|
+
}, 8, ["loading"])) : (vue.openBlock(), vue.createBlock(_component_ElButton, {
|
|
224
|
+
key: 1,
|
|
225
|
+
type: "primary",
|
|
226
|
+
style: { "width": "100%" },
|
|
227
|
+
loading: loading.value,
|
|
228
|
+
onClick: sendAction
|
|
229
|
+
}, {
|
|
220
230
|
default: vue.withCtx(() => [
|
|
221
|
-
|
|
222
|
-
key: 0,
|
|
223
|
-
type: "primary",
|
|
224
|
-
style: { "width": "100%" },
|
|
225
|
-
loading: loading.value,
|
|
226
|
-
onClick: sendAction
|
|
227
|
-
}, {
|
|
228
|
-
default: vue.withCtx(() => [
|
|
229
|
-
vue.createTextVNode(" 登陆 ")
|
|
230
|
-
]),
|
|
231
|
-
_: 1
|
|
232
|
-
}, 8, ["loading"])) : (vue.openBlock(), vue.createBlock(_component_ElButton, {
|
|
233
|
-
key: 1,
|
|
234
|
-
type: "primary",
|
|
235
|
-
style: { "width": "100%" },
|
|
236
|
-
loading: loading.value,
|
|
237
|
-
onClick: sendAction
|
|
238
|
-
}, {
|
|
239
|
-
default: vue.withCtx(() => [
|
|
240
|
-
vue.createTextVNode(" 重置 ")
|
|
241
|
-
]),
|
|
242
|
-
_: 1
|
|
243
|
-
}, 8, ["loading"]))
|
|
231
|
+
vue.createTextVNode(" 重置 ")
|
|
244
232
|
]),
|
|
245
233
|
_: 1
|
|
246
|
-
})
|
|
234
|
+
}, 8, ["loading"]))
|
|
247
235
|
]),
|
|
248
236
|
_: 1
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
])
|
|
237
|
+
})
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}, 8, ["model"])
|
|
253
241
|
])
|
|
254
|
-
])
|
|
255
|
-
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
});
|
|
256
245
|
};
|
|
257
246
|
}
|
|
258
247
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue2.js","sources":["../../../../src/page/login/index.vue"],"sourcesContent":["<template>\r\n <
|
|
1
|
+
{"version":3,"file":"index.vue2.js","sources":["../../../../src/page/login/index.vue"],"sourcesContent":["<template>\r\n <SimplePageLayout class=\"login-wrap\">\r\n <div class=\"login-form-wrap\">\r\n\r\n <template v-if=\"!forgotPassword\">\r\n <div class=\"login-form-title\"> 账号登录 </div>\r\n <div class=\"login-form-item\">\r\n <div></div>\r\n <span class=\"notify\">\r\n 没有账号?\r\n <el-link :underline=\"false\" type=\"primary\" @click=\"router.push('/signup')\">\r\n 申请账号\r\n <MKSvgIcon iconClass=\"ArrowRightBold\" style=\"margin-left: 5px;\" />\r\n </el-link>\r\n </span>\r\n </div>\r\n </template>\r\n <template v-else>\r\n <div class=\"login-form-title\">账号重置</div>\r\n <div class=\"login-form-item\">\r\n 新密码将会在重置后送至 {{loginFormData.account}} 绑定的邮箱!请查收!\r\n </div>\r\n </template> \r\n \r\n <ElForm :model=\"loginFormData\" :rules=\"rules\" size=\"large\" ref=\"formEl\" @submit.native.prevent>\r\n <ElFormItem prop=\"account\">\r\n <ElInput\r\n v-model=\"loginFormData.account\"\r\n placeholder=\"帐号\"\r\n @keyup.enter.native.prevent=\"sendAction\"\r\n />\r\n </ElFormItem>\r\n <ElFormItem prop=\"password\" style=\"margin-top: 30px;\" v-if=\"!forgotPassword\">\r\n <ElInput\r\n v-model=\"loginFormData.password\"\r\n type=\"password\"\r\n placeholder=\"密码\"\r\n @keyup.enter.native.prevent=\"sendAction\"\r\n />\r\n </ElFormItem>\r\n <div class=\"login-form-item\">\r\n <div></div>\r\n <el-link :underline=\"false\" type=\"primary\" @click=\"forgotPassword = !forgotPassword\">\r\n {{forgotPassword ? \"返回登陆\" : \"忘记密码\" }}\r\n <MKSvgIcon iconClass=\"ArrowRightBold\" style=\"margin-left: 2px;\" />\r\n </el-link>\r\n </div>\r\n <ElFormItem>\r\n <ElButton type=\"primary\" style=\"width: 100%\" :loading=\"loading\" @click=\"sendAction\" v-if=\"!forgotPassword\">\r\n 登陆\r\n </ElButton>\r\n <ElButton type=\"primary\" v-else style=\"width: 100%\" :loading=\"loading\" @click=\"sendAction\">\r\n 重置\r\n </ElButton>\r\n </ElFormItem>\r\n </ElForm>\r\n <!-- <ElDivider></ElDivider> -->\r\n </div>\r\n </SimplePageLayout>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { ElMessage, ElForm, ElFormItem } from \"element-plus\";\r\nimport { useMSAppClient } from \"../../composables\";\r\nimport { MKOpenVerifyCode } from \"../../components\";\r\nimport { Ref, computed, reactive, ref } from \"vue\";\r\nimport { useRouter } from \"vue-router\";\r\nimport SimplePageLayout from \"../../layouts/components/simple-page-layout/index.vue\"\r\n\r\ndefineOptions({\r\n mkRoute: {\r\n name: \"login\",\r\n path: \"/login\",\r\n meta: {\r\n isAuthorization: false,\r\n },\r\n },\r\n});\r\n\r\nconst verifyDialog: Ref<{ fail: () => void } | null> = ref(null);\r\n\r\n// 记住登陆状态\r\nconst rememberLoginState = ref(false);\r\n\r\nconst formEl: Ref<any> = ref(null);\r\n\r\nconst system = useMSAppClient()!;\r\n\r\nconst router = useRouter();\r\n\r\nconst loading = ref(false);\r\n\r\nconst loginDisabled = computed(\r\n () => !loginFormData.account || !loginFormData.password\r\n);\r\nconst resetDisabled = computed(() => !loginFormData.account);\r\n\r\nconst forgotPassword = ref(false);\r\nconst scene = computed(() =>\r\n forgotPassword.value ? \"ModifyPassword\" : \"Login\"\r\n);\r\n\r\nconst rules = {\r\n account: [{ required: true, message: \"账号必填\" }],\r\n password: [{ required: true, message: \"密码必填\" }],\r\n};\r\n\r\nconst loginFormData = reactive({\r\n account: \"\",\r\n password: \"\",\r\n vCode: \"\",\r\n});\r\n\r\n// 发起动作 可能是登录 也可能是修改密码\r\nconst sendAction = async (v: number) => {\r\n\r\n // 验证不通过\r\n if(!await formEl.value?.validate()){\r\n return;\r\n }\r\n // 验证码\r\n var vResult = await MKOpenVerifyCode({ sence:scene.value } as any);\r\n\r\n // 转成字符串格式\r\n loginFormData.vCode = vResult+\"\";\r\n\r\n try {\r\n\r\n loading.value = true;\r\n\r\n if (forgotPassword.value) {\r\n\r\n const { data } = await system.resetPassword(\r\n loginFormData.account,\r\n loginFormData.vCode\r\n );\r\n\r\n if (data.code !== 200) {\r\n ElMessage.error(data.msg || \"重置邮箱失败!\");\r\n return;\r\n }\r\n\r\n ElMessage.success(\"重置密码邮件已发送到邮箱\");\r\n forgotPassword.value = false;\r\n\r\n } else {\r\n\r\n const { data } = await system.login(\r\n loginFormData.account,\r\n loginFormData.password,\r\n loginFormData.vCode\r\n );\r\n\r\n if (data.code !== 200) {\r\n ElMessage.error(data.msg || \"登录失败!\");\r\n return;\r\n }\r\n\r\n router.push({ path: \"/\" });\r\n }\r\n } catch (e) {\r\n ElMessage.error(\"登录失败\");\r\n } finally {\r\n loading.value = false;\r\n }\r\n};\r\n</script>\r\n"],"names":["ref","useMSAppClient","useRouter","computed","reactive","MKOpenVerifyCode","ElMessage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EuDA,QAAAA,IAAI,IAAI;AAGpCA,QAAAA,IAAI,KAAK;AAE9B,UAAA,SAAmBA,QAAI,IAAI;AAEjC,UAAM,SAASC,eAAAA;AAEf,UAAM,SAASC,UAAAA;AAET,UAAA,UAAUF,QAAI,KAAK;AAEHG,QAAA;AAAA,MACpB,MAAM,CAAC,cAAc,WAAW,CAAC,cAAc;AAAA,IACjD;AACsBA,iBAAS,MAAM,CAAC,cAAc,OAAO;AAErD,UAAA,iBAAiBH,QAAI,KAAK;AAChC,UAAM,QAAQG,IAAA;AAAA,MAAS,MACrB,eAAe,QAAQ,mBAAmB;AAAA,IAAA;AAG5C,UAAM,QAAQ;AAAA,MACZ,SAAS,CAAC,EAAE,UAAU,MAAM,SAAS,QAAQ;AAAA,MAC7C,UAAU,CAAC,EAAE,UAAU,MAAM,SAAS,QAAQ;AAAA,IAAA;AAGhD,UAAM,gBAAgBC,IAAAA,SAAS;AAAA,MAC7B,SAAS;AAAA,MACT,UAAU;AAAA,MACV,OAAO;AAAA,IAAA,CACR;AAGK,UAAA,aAAa,OAAO,MAAc;;AAGtC,UAAG,CAAC,QAAM,YAAO,UAAP,mBAAc,aAAW;AACjC;AAAA,MACF;AAEA,UAAI,UAAU,MAAMC,uBAAiB,EAAE,OAAM,MAAM,OAAc;AAGjE,oBAAc,QAAQ,UAAQ;AAE1B,UAAA;AAEF,gBAAQ,QAAQ;AAEhB,YAAI,eAAe,OAAO;AAExB,gBAAM,EAAE,KAAA,IAAS,MAAM,OAAO;AAAA,YAC5B,cAAc;AAAA,YACd,cAAc;AAAA,UAAA;AAGZ,cAAA,KAAK,SAAS,KAAK;AACXC,wBAAAA,UAAA,MAAM,KAAK,OAAO,SAAS;AACrC;AAAA,UACF;AAEAA,gCAAU,QAAQ,cAAc;AAChC,yBAAe,QAAQ;AAAA,QAAA,OAElB;AAEL,gBAAM,EAAE,KAAA,IAAS,MAAM,OAAO;AAAA,YAC5B,cAAc;AAAA,YACd,cAAc;AAAA,YACd,cAAc;AAAA,UAAA;AAGZ,cAAA,KAAK,SAAS,KAAK;AACXA,wBAAAA,UAAA,MAAM,KAAK,OAAO,OAAO;AACnC;AAAA,UACF;AAEA,iBAAO,KAAK,EAAE,MAAM,IAAK,CAAA;AAAA,QAC3B;AAAA,eACO,GAAG;AACVA,8BAAU,MAAM,MAAM;AAAA,MAAA,UACtB;AACA,gBAAQ,QAAQ;AAAA,MAClB;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -36,17 +36,12 @@ require("../../components/data-model/data-table-pagination/index.js");
|
|
|
36
36
|
const index = require("../../components/business/verify-dialog/index.js");
|
|
37
37
|
require("../../components/business/resource-list/index.js");
|
|
38
38
|
require("../../components/business/resource-manager/index.js");
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
const _hoisted_4 = { class: "login-main" };
|
|
46
|
-
const _hoisted_5 = { class: "form-container" };
|
|
47
|
-
const _hoisted_6 = { class: "form-wrap" };
|
|
48
|
-
const _hoisted_7 = { class: "form-title" };
|
|
49
|
-
const _hoisted_8 = { class: "notify" };
|
|
39
|
+
const index_vue_vue_type_script_setup_true_lang = require("../../layouts/components/simple-page-layout/index.vue.js");
|
|
40
|
+
const _hoisted_1 = { class: "login-form-wrap" };
|
|
41
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "login-form-title" }, " 账号申请 ", -1);
|
|
42
|
+
const _hoisted_3 = { class: "login-form-item" };
|
|
43
|
+
const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
44
|
+
const _hoisted_5 = { class: "notify" };
|
|
50
45
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
51
46
|
...{
|
|
52
47
|
mkRoute: {
|
|
@@ -104,116 +99,117 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
104
99
|
};
|
|
105
100
|
vue.ref(false);
|
|
106
101
|
return (_ctx, _cache) => {
|
|
102
|
+
const _component_MKSvgIcon = vue.resolveComponent("MKSvgIcon");
|
|
107
103
|
const _component_el_link = vue.resolveComponent("el-link");
|
|
108
104
|
const _component_ElInput = vue.resolveComponent("ElInput");
|
|
109
105
|
const _component_ElFormItem = vue.resolveComponent("ElFormItem");
|
|
110
106
|
const _component_ElButton = vue.resolveComponent("ElButton");
|
|
111
107
|
const _component_ElForm = vue.resolveComponent("ElForm");
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
vue.createElementVNode("
|
|
119
|
-
vue.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
underline: false,
|
|
125
|
-
onClick: _cache[0] || (_cache[0] = ($event) => vue.unref(router).push("/login"))
|
|
126
|
-
}, {
|
|
127
|
-
default: vue.withCtx(() => [
|
|
128
|
-
vue.createTextVNode(" 返回登录 ")
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
})
|
|
132
|
-
])
|
|
133
|
-
]),
|
|
134
|
-
vue.createVNode(_component_ElForm, {
|
|
135
|
-
model: signFormData,
|
|
136
|
-
rules,
|
|
137
|
-
size: "large",
|
|
138
|
-
ref_key: "formEl",
|
|
139
|
-
ref: formEl
|
|
108
|
+
return vue.openBlock(), vue.createBlock(index_vue_vue_type_script_setup_true_lang, { class: "login-wrap" }, {
|
|
109
|
+
default: vue.withCtx(() => [
|
|
110
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
111
|
+
_hoisted_2,
|
|
112
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
113
|
+
_hoisted_4,
|
|
114
|
+
vue.createElementVNode("span", _hoisted_5, [
|
|
115
|
+
vue.createTextVNode(" 已有账号? "),
|
|
116
|
+
vue.createVNode(_component_el_link, {
|
|
117
|
+
underline: false,
|
|
118
|
+
type: "primary",
|
|
119
|
+
onClick: _cache[0] || (_cache[0] = ($event) => vue.unref(router).push("/login"))
|
|
140
120
|
}, {
|
|
141
121
|
default: vue.withCtx(() => [
|
|
142
|
-
vue.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
vue.createVNode(
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
vue.createVNode(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
vue.createVNode(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
vue.createVNode(
|
|
122
|
+
vue.createTextVNode(" 返回登录 "),
|
|
123
|
+
vue.createVNode(_component_MKSvgIcon, {
|
|
124
|
+
iconClass: "ArrowRightBold",
|
|
125
|
+
style: { "margin-left": "5px" }
|
|
126
|
+
})
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
130
|
+
])
|
|
131
|
+
]),
|
|
132
|
+
vue.createVNode(_component_ElForm, {
|
|
133
|
+
model: signFormData,
|
|
134
|
+
rules,
|
|
135
|
+
size: "large",
|
|
136
|
+
ref_key: "formEl",
|
|
137
|
+
ref: formEl
|
|
138
|
+
}, {
|
|
139
|
+
default: vue.withCtx(() => [
|
|
140
|
+
vue.createVNode(_component_ElFormItem, { prop: "account" }, {
|
|
141
|
+
default: vue.withCtx(() => [
|
|
142
|
+
vue.createVNode(_component_ElInput, {
|
|
143
|
+
modelValue: signFormData.account,
|
|
144
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => signFormData.account = $event),
|
|
145
|
+
placeholder: "帐号"
|
|
146
|
+
}, null, 8, ["modelValue"])
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
}),
|
|
150
|
+
vue.createVNode(_component_ElFormItem, { prop: "email" }, {
|
|
151
|
+
default: vue.withCtx(() => [
|
|
152
|
+
vue.createVNode(_component_ElInput, {
|
|
153
|
+
modelValue: signFormData.email,
|
|
154
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => signFormData.email = $event),
|
|
155
|
+
placeholder: "邮箱"
|
|
156
|
+
}, null, 8, ["modelValue"])
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}),
|
|
160
|
+
vue.createVNode(_component_ElFormItem, { prop: "name" }, {
|
|
161
|
+
default: vue.withCtx(() => [
|
|
162
|
+
vue.createVNode(_component_ElInput, {
|
|
163
|
+
modelValue: signFormData.name,
|
|
164
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => signFormData.name = $event),
|
|
165
|
+
placeholder: "姓名"
|
|
166
|
+
}, null, 8, ["modelValue"])
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}),
|
|
170
|
+
vue.createVNode(_component_ElFormItem, { prop: "nickName" }, {
|
|
171
|
+
default: vue.withCtx(() => [
|
|
172
|
+
vue.createVNode(_component_ElInput, {
|
|
173
|
+
modelValue: signFormData.nickName,
|
|
174
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => signFormData.nickName = $event),
|
|
175
|
+
placeholder: "昵称"
|
|
176
|
+
}, null, 8, ["modelValue"])
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}),
|
|
180
|
+
vue.createVNode(_component_ElFormItem, { prop: "phone" }, {
|
|
181
|
+
default: vue.withCtx(() => [
|
|
182
|
+
vue.createVNode(_component_ElInput, {
|
|
183
|
+
modelValue: signFormData.phone,
|
|
184
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => signFormData.phone = $event),
|
|
185
|
+
placeholder: "手机号"
|
|
186
|
+
}, null, 8, ["modelValue"])
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
}),
|
|
190
|
+
vue.createVNode(_component_ElFormItem, null, {
|
|
191
|
+
default: vue.withCtx(() => [
|
|
192
|
+
vue.createVNode(_component_ElButton, {
|
|
193
|
+
type: "primary",
|
|
194
|
+
style: { "width": "100%" },
|
|
195
|
+
loading: loading.value,
|
|
196
|
+
onClick: handleAccountApply
|
|
197
|
+
}, {
|
|
193
198
|
default: vue.withCtx(() => [
|
|
194
|
-
vue.
|
|
195
|
-
type: "primary",
|
|
196
|
-
style: { "width": "100%" },
|
|
197
|
-
loading: loading.value,
|
|
198
|
-
onClick: handleAccountApply
|
|
199
|
-
}, {
|
|
200
|
-
default: vue.withCtx(() => [
|
|
201
|
-
vue.createTextVNode(" 提交申请 ")
|
|
202
|
-
]),
|
|
203
|
-
_: 1
|
|
204
|
-
}, 8, ["loading"])
|
|
199
|
+
vue.createTextVNode(" 提交申请 ")
|
|
205
200
|
]),
|
|
206
201
|
_: 1
|
|
207
|
-
})
|
|
202
|
+
}, 8, ["loading"])
|
|
208
203
|
]),
|
|
209
204
|
_: 1
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
])
|
|
205
|
+
})
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
}, 8, ["model"])
|
|
214
209
|
])
|
|
215
|
-
])
|
|
216
|
-
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
});
|
|
217
213
|
};
|
|
218
214
|
}
|
|
219
215
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue2.js","sources":["../../../../src/page/signup/index.vue"],"sourcesContent":["<template>\r\n <
|
|
1
|
+
{"version":3,"file":"index.vue2.js","sources":["../../../../src/page/signup/index.vue"],"sourcesContent":["<template>\r\n <SimplePageLayout class=\"login-wrap\">\r\n <div class=\"login-form-wrap\">\r\n <div class=\"login-form-title\"> 账号申请 </div>\r\n <div class=\"login-form-item\">\r\n <div></div>\r\n <span class=\"notify\">\r\n 已有账号?\r\n <el-link :underline=\"false\" type=\"primary\" @click=\"router.push('/login')\">\r\n 返回登录\r\n <MKSvgIcon iconClass=\"ArrowRightBold\" style=\"margin-left: 5px;\" />\r\n </el-link>\r\n </span>\r\n </div>\r\n <ElForm\r\n :model=\"signFormData\"\r\n :rules=\"rules\"\r\n size=\"large\"\r\n ref=\"formEl\"\r\n >\r\n <ElFormItem prop=\"account\">\r\n <ElInput v-model=\"signFormData.account\" placeholder=\"帐号\" />\r\n </ElFormItem>\r\n <ElFormItem prop=\"email\">\r\n <ElInput v-model=\"signFormData.email\" placeholder=\"邮箱\" />\r\n </ElFormItem>\r\n <ElFormItem prop=\"name\">\r\n <ElInput v-model=\"signFormData.name\" placeholder=\"姓名\" />\r\n </ElFormItem>\r\n <ElFormItem prop=\"nickName\">\r\n <ElInput v-model=\"signFormData.nickName\" placeholder=\"昵称\" />\r\n </ElFormItem>\r\n <ElFormItem prop=\"phone\">\r\n <ElInput v-model=\"signFormData.phone\" placeholder=\"手机号\" />\r\n </ElFormItem>\r\n\r\n <ElFormItem>\r\n <ElButton type=\"primary\" style=\"width: 100%\"\r\n :loading=\"loading\" @click=\"handleAccountApply\">\r\n 提交申请\r\n </ElButton>\r\n </ElFormItem>\r\n </ElForm>\r\n </div>\r\n </SimplePageLayout>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { Ref, computed, reactive, ref } from \"vue\";\r\nimport { useRouter } from \"vue-router\";\r\nimport { FormRules } from \"element-plus\";\r\nimport { Messager } from \"@maketribe/dm\";\r\nimport { useHttpRequest } from \"../../composables\";\r\nimport { MKOpenVerifyCode } from \"../../components\";\r\nimport SimplePageLayout from \"../../layouts/components/simple-page-layout/index.vue\"\r\n\r\ndefineOptions({\r\n mkRoute: {\r\n name: \"signup\",\r\n path: \"/signup\",\r\n meta: {\r\n isAuthorization: false,\r\n },\r\n },\r\n});\r\n\r\nconst formEl: Ref<any> = ref(null);\r\n\r\nconst router = useRouter();\r\n\r\nconst httpRequest = useHttpRequest()!;\r\n\r\nconst loading = ref(false);\r\n\r\nconst rules: FormRules = {\r\n account: [{ required: true, message: \"账号必填\" }],\r\n email: [\r\n {\r\n required: true,\r\n trigger: \"change\",\r\n validator: (rule, value, callback) => {\r\n if (!value) {\r\n callback(new Error(\"邮箱必填\"));\r\n } else if (\r\n !/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$/.test(value)\r\n ) {\r\n callback(new Error(\"邮箱规则不符\"));\r\n } else {\r\n callback();\r\n }\r\n },\r\n },\r\n ],\r\n name: [{ required: true, message: \"姓名必填\" }],\r\n};\r\n\r\n\r\nconst signFormData = reactive({\r\n account: \"\",\r\n email: \"\",\r\n name: \"\",\r\n nickName: \"\",\r\n phone: \"\",\r\n vCdoe:\"\"\r\n});\r\n\r\nconst handleAccountApply = async () => {\r\n\r\n if(! await formEl.value.validate()){\r\n return ;\r\n }\r\n\r\n // 验证码\r\n signFormData.vCdoe = (await MKOpenVerifyCode({ sence:\"AccountApply\" } as any)) + \"\";\r\n\r\n const result = await httpRequest.post(\"ms/app/account-apply\",signFormData);\r\n\r\n if (result.data.code != 200) {\r\n Messager.error({ message: result.data.msg || \"注册失败\"});\r\n return;\r\n }\r\n\r\n Messager.success({ message: \"注册成功,请联系管理员通过验证\" });\r\n};\r\n\r\n// 记住登陆状态\r\nconst rememberLoginState = ref(false);\r\n</script>\r\n"],"names":["ref","useRouter","useHttpRequest","reactive","MKOpenVerifyCode","Messager"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEM,UAAA,SAAmBA,QAAI,IAAI;AAEjC,UAAM,SAASC,UAAAA;AAEf,UAAM,cAAcC,eAAAA;AAEd,UAAA,UAAUF,QAAI,KAAK;AAEzB,UAAM,QAAmB;AAAA,MACvB,SAAS,CAAC,EAAE,UAAU,MAAM,SAAS,QAAQ;AAAA,MAC7C,OAAO;AAAA,QACL;AAAA,UACE,UAAU;AAAA,UACV,SAAS;AAAA,UACT,WAAW,CAAC,MAAM,OAAO,aAAa;AACpC,gBAAI,CAAC,OAAO;AACD,uBAAA,IAAI,MAAM,MAAM,CAAC;AAAA,YAE1B,WAAA,CAAC,qDAAqD,KAAK,KAAK,GAChE;AACS,uBAAA,IAAI,MAAM,QAAQ,CAAC;AAAA,YAAA,OACvB;AACI;YACX;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,MACA,MAAM,CAAC,EAAE,UAAU,MAAM,SAAS,QAAQ;AAAA,IAAA;AAI5C,UAAM,eAAeG,IAAAA,SAAS;AAAA,MAC5B,SAAS;AAAA,MACT,OAAO;AAAA,MACP,MAAM;AAAA,MACN,UAAU;AAAA,MACV,OAAO;AAAA,MACP,OAAM;AAAA,IAAA,CACP;AAED,UAAM,qBAAqB,YAAY;AAErC,UAAG,CAAE,MAAM,OAAO,MAAM,YAAW;AACjC;AAAA,MACF;AAGA,mBAAa,QAAS,MAAMC,MAAA,iBAAiB,EAAE,OAAM,eAAA,CAAuB,IAAK;AAEjF,YAAM,SAAS,MAAM,YAAY,KAAK,wBAAuB,YAAY;AAErE,UAAA,OAAO,KAAK,QAAQ,KAAK;AAC3BC,oBAAS,MAAM,EAAE,SAAS,OAAO,KAAK,OAAO,QAAO;AACpD;AAAA,MACF;AAEAA,SAAAA,SAAS,QAAQ,EAAE,SAAS,kBAAmB,CAAA;AAAA,IAAA;AAItBL,QAAAA,IAAI,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|