From 74e8926177371ac43a3cd3174e102e9af8a16a11 Mon Sep 17 00:00:00 2001 From: lyt-Top <1105290566@qq.com> Date: Sun, 14 Feb 2021 00:47:25 +0800 Subject: [PATCH] =?UTF-8?q?'admin-21.02.14:=E6=96=B0=E5=A2=9E=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=AD=E5=BF=83=E3=80=81=E8=BF=94=E5=9B=9E=E9=A1=B6?= =?UTF-8?q?=E9=83=A8=E3=80=81=E5=B0=81=E8=A3=85js=E3=80=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=B8=83=E5=B1=80=E7=AD=89'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue-admin-wonderful-next/package.json | 2 +- vue-admin-wonderful-next/src/App.vue | 6 +- .../src/components/auth/authAll.vue | 12 +- vue-admin-wonderful-next/src/theme/app.scss | 2 +- .../src/theme/element.scss | 9 + .../src/theme/media/examples.scss | 13 - .../src/theme/media/media.scss | 2 +- .../src/theme/media/personal.scss | 16 + .../src/utils/arrayOperation.ts | 11 + .../src/utils/authDirective.ts | 13 +- .../src/utils/authFunction.ts | 13 +- .../src/utils/setIconfont.ts | 35 +- .../src/views/layout/main/classic.vue | 3 +- .../src/views/layout/main/columns.vue | 3 +- .../src/views/layout/main/defaults.vue | 3 +- .../src/views/layout/main/transverse.vue | 3 +- .../layout/navBars/breadcrumb/setings.vue | 2 +- .../src/views/personal/index.vue | 362 ++++++++++++- .../src/views/personal/mock.ts | 64 +++ .../src/views/tools/index.vue | 477 +++++++++++++++++- 20 files changed, 975 insertions(+), 76 deletions(-) delete mode 100644 vue-admin-wonderful-next/src/theme/media/examples.scss create mode 100644 vue-admin-wonderful-next/src/theme/media/personal.scss create mode 100644 vue-admin-wonderful-next/src/utils/arrayOperation.ts create mode 100644 vue-admin-wonderful-next/src/views/personal/mock.ts diff --git a/vue-admin-wonderful-next/package.json b/vue-admin-wonderful-next/package.json index 809d464..e23dd50 100644 --- a/vue-admin-wonderful-next/package.json +++ b/vue-admin-wonderful-next/package.json @@ -29,4 +29,4 @@ "typescript": "^4.1.3", "vite": "^2.0.0-beta.50" } -} +} \ No newline at end of file diff --git a/vue-admin-wonderful-next/src/App.vue b/vue-admin-wonderful-next/src/App.vue index 7f694f4..ae0e55e 100644 --- a/vue-admin-wonderful-next/src/App.vue +++ b/vue-admin-wonderful-next/src/App.vue @@ -16,7 +16,7 @@ import { } from "vue"; import { useStore } from "/@/store/index.ts"; import { getLocal } from "/@/utils/storage.ts"; -import { setIconfont } from "/@/utils/setIconfont.ts"; +import setIntroduction from "/@/utils/setIconfont.ts"; import LockScreen from "/@/views/layout/lockScreen/index.vue"; import Setings from "/@/views/layout/navBars/breadcrumb/setings.vue"; export default { @@ -37,7 +37,9 @@ export default { // 设置初始化,防止刷新时恢复默认 onBeforeMount(() => { // 设置批量第三方 icon 图标 - setIconfont(); + setIntroduction.cssCdn(); + // 设置批量第三方 js + setIntroduction.jsCdn(); }); onMounted(() => { nextTick(() => { diff --git a/vue-admin-wonderful-next/src/components/auth/authAll.vue b/vue-admin-wonderful-next/src/components/auth/authAll.vue index 75ea808..ba23b15 100644 --- a/vue-admin-wonderful-next/src/components/auth/authAll.vue +++ b/vue-admin-wonderful-next/src/components/auth/authAll.vue @@ -7,6 +7,7 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/vue-admin-wonderful-next/src/views/personal/mock.ts b/vue-admin-wonderful-next/src/views/personal/mock.ts new file mode 100644 index 0000000..653fd00 --- /dev/null +++ b/vue-admin-wonderful-next/src/views/personal/mock.ts @@ -0,0 +1,64 @@ +// 消息通知 +export const newsInfoList: Array = [ + { + title: "[发布] 2020年11月15日发布 v1.0.0 版本", + date: "11/15", + link: "https://gitee.com/lyt-top/vue-admin-wonderful", + }, + { + title: + "[预览] pro 版本预览 http://lyt-top.gitee.io/vue-admin-wonderful-preview", + date: "11/15", + link: "http://lyt-top.gitee.io/vue-admin-wonderful-preview", + }, + { + title: + "[预览] fashion 版本预览 http://lyt-top.gitee.io/vue-admin-wonderful-fashion-preview", + date: "11/15", + link: "http://lyt-top.gitee.io/vue-admin-wonderful-fashion-preview", + }, + { + title: + "[预览] classic 版本预览 http://lyt-top.gitee.io/vue-admin-wonderful-classic-preview", + date: "11/15", + link: "http://lyt-top.gitee.io/vue-admin-wonderful-classic-preview", + }, + { + title: + "[预览] elegant 版本预览 http://lyt-top.gitee.io/vue-admin-wonderful-elegant-preview", + date: "11/15", + link: "http://lyt-top.gitee.io/vue-admin-wonderful-elegant-preview", + }, +] + +// 营销推荐 +export const recommendList: Array = [ + { + title: "优惠券", + msg: "现金券、折扣券、营销必备", + icon: "el-icon-food", + bg: "#48D18D", + iconColor: "#64d89d", + }, + { + title: "多人拼团", + msg: "社交电商、开辟流量", + icon: "el-icon-shopping-bag-1", + bg: "#F95959", + iconColor: "#F86C6B", + }, + { + title: "分销中心", + msg: "轻松招募分销员,成功推广奖励", + icon: "el-icon-school", + bg: "#8595F4", + iconColor: "#92A1F4", + }, + { + title: "秒杀", + msg: "超低价抢购引导更多销量", + icon: "el-icon-alarm-clock", + bg: "#FEBB50", + iconColor: "#FDC566", + }, +] \ No newline at end of file diff --git a/vue-admin-wonderful-next/src/views/tools/index.vue b/vue-admin-wonderful-next/src/views/tools/index.vue index 7e1d4ec..e75d692 100644 --- a/vue-admin-wonderful-next/src/views/tools/index.vue +++ b/vue-admin-wonderful-next/src/views/tools/index.vue @@ -1,21 +1,484 @@ - - tools - - + + + + 验证可以输入小数或整数,0 开始, . 只能出现一次,保留小数点后保留2位小数。(负数时,模拟拼接负号给后台)。 + + + + + + + 验证只可以输入正整数,0 开始后面将不可以输入。 + + + + + + + 验证不可以输入空格与中文。 + + + + + + + 验证不可以输入空格与英文。 + + + + + + + 验证不可以输入空格。 + + + + + + + 金额添加 `,` 进行区分,便于阅读。{{ruleForm.a6}} + + + + + + + 示例: + + + + + + + 验证数字转成中文的大写。{{cnText}} + + + + + + + 验证手机号码 (true: 正确,false: 不正确)。{{phone}} + + + + + + + 验证国内电话号码 (true: 正确,false: 不正确)。{{telePhone}} + + + + + + + 验证登录账号是否正确。字母开头,允许5-16字节,允许字母数字下划线 (true: 正确,false: 不正确)。{{account}} + + + + + + + 验证密码是否正确。以字母开头,长度在6~16之间,只能包含字母、数字和下划线 (true: 正确,false: 不正确)。{{password}} + + + + + + + 验证强密码是否正确。字母+数字+特殊字符,长度在6-16之间 (true: 正确,false: + 不正确)。{{passwordPowerful}} + + + + + + + 验证密码强度。返回 强、中、弱。(弱:纯数字,纯字母,纯特殊字符,中:字母+数字,字母+特殊字符,数字+特殊字符,强:字母+数字+特殊字符){{passwordStrength}} + + + + + + + 验证IP地址是否正确。(true: 正确,false: 不正确)。{{iPAddress}} + + + + + + + 验证邮箱是否正确。(true: 正确,false:不正确)。{{email}} + + + + + + + 验证身份证是否正确。(true: 正确,false:不正确)。{{idCard}} + + + + + + + 验证姓名是否正确,包括少数民族名字。(true: 正确,false:不正确)。{{fullName}} + + + + + + + 验证邮政编码是否正确,不能以 0 开始。(true: 正确,false:不正确)。{{postalCode}} + + + + + + + 验证url是否正确。(true: 正确,false:不正确)。{{url}} + + + + + + + 验证车牌号是否正确。(true: 正确,false:不正确)。{{carNum}} + + + + + + + \ No newline at end of file + + + \ No newline at end of file