vue3框架

This commit is contained in:
wyy 2023-11-08 17:40:35 +08:00
parent 3a490ee16e
commit 662ec8510f
188 changed files with 4072 additions and 13593 deletions

8
.editorconfig Normal file
View File

@ -0,0 +1,8 @@
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

View File

@ -1,8 +1,11 @@
# just a flag
ENV = 'development'
# 如需添加更多环境变量,请以 VITE_APP_ 开头声明
# 在代码中使用 import.meta.env.VITE_APP_XXX 获取指定变量
// api接口请求地址
VUE_APP_BASE_API = 'http://127.0.0.1:8085'
# 环境配置标识
VITE_APP_ENV = 'development'
# api接口请求地址
VITE_APP_BASE_API = 'http://127.0.0.1:8085'
# 静态资源文件url
VUE_APP_RESOURCES_URL = 'https://img.mall4j.com/'
VITE_APP_RESOURCES_URL = 'https://img.mall4j.com/'

View File

@ -1,10 +1,11 @@
# just a flag
ENV = 'production'
# 如需添加更多环境变量,请以 VITE_APP_ 开头声明
# 在代码中使用 import.meta.env.VITE_APP_XXX 获取指定变量
// api接口请求地址
VUE_APP_BASE_API = 'https://mini-admin.mall4j.com/apis'
# 环境配置标识
VITE_APP_ENV = 'production'
# api接口请求地址
VITE_APP_BASE_API = 'http://127.0.0.1:8085'
# 静态资源文件url
VUE_APP_RESOURCES_URL = 'https://img.mall4j.com/'
VITE_APP_RESOURCES_URL = 'https://img.mall4j.com/'

11
.env.testing Normal file
View File

@ -0,0 +1,11 @@
# 如需添加更多环境变量,请以 VITE_APP_ 开头声明
# 在代码中使用 import.meta.env.VITE_APP_XXX 获取指定变量
# 环境配置标识
VITE_APP_ENV = 'testing'
# api接口请求地址
VITE_APP_BASE_API = 'http://127.0.0.1:8085'
# 静态资源文件url
VITE_APP_RESOURCES_URL = 'https://img.mall4j.com/'

View File

@ -2,5 +2,8 @@
/config/
/dist/
/*.js
/src/components/verifition
/test/unit/coverage/
/src/icons/iconfont.js
/components.d.ts
/src/auto-import

View File

@ -0,0 +1,94 @@
{
"globals": {
"$t": true,
"Component": true,
"ComponentPublicInstance": true,
"ComputedRef": true,
"Debounce": true,
"EffectScope": true,
"InjectionKey": true,
"PropType": true,
"Ref": true,
"VNode": true,
"clearLoginInfo": true,
"computed": true,
"configDefInfo": true,
"createApp": true,
"customRef": true,
"defineAsyncComponent": true,
"defineComponent": true,
"effectScope": true,
"encrypt": true,
"flatten": true,
"checkFileUrl": true,
"formatConfigInfo": true,
"getCurrentInstance": true,
"getCurrentScope": true,
"getLevels": true,
"getUUID": true,
"h": true,
"http": true,
"idList": true,
"inject": true,
"isAuth": true,
"isEmail": true,
"isHtmlNull": true,
"isMobile": true,
"isPhone": true,
"isProxy": true,
"isQq": true,
"isReactive": true,
"isReadonly": true,
"isRef": true,
"isURL": true,
"markRaw": true,
"nextTick": true,
"onActivated": true,
"onBeforeMount": true,
"onBeforeRouteLeave": true,
"onBeforeRouteUpdate": true,
"onBeforeUnmount": true,
"onBeforeUpdate": true,
"onDeactivated": true,
"onErrorCaptured": true,
"onMounted": true,
"onRenderTracked": true,
"onRenderTriggered": true,
"onScopeDispose": true,
"onServerPrefetch": true,
"onUnmounted": true,
"onUpdated": true,
"provide": true,
"reactive": true,
"readonly": true,
"ref": true,
"resolveComponent": true,
"shallowReactive": true,
"shallowReadonly": true,
"shallowRef": true,
"toRaw": true,
"toRef": true,
"toRefs": true,
"treeDataTranslate": true,
"triggerRef": true,
"unref": true,
"uploadFile": true,
"useAttrs": true,
"useCommonStore": true,
"scoreProdStore":true,
"useCssModule": true,
"useCssVars": true,
"useLink": true,
"useRoute": true,
"useRouter": true,
"useSlots": true,
"useUserStore": true,
"useWebConfigStore": true,
"validHtmlLength": true,
"validNoEmptySpace": true,
"watch": true,
"watchEffect": true,
"watchPostEffect": true,
"watchSyncEffect": true
}
}

79
.eslintrc.cjs Normal file
View File

@ -0,0 +1,79 @@
module.exports = {
root: true,
env: {
browser: true,
es2021: true
},
globals: {
BMap: 'readonly'
},
extends: [
'standard',
'./.eslintrc-auto-import.json',
'plugin:vue/vue3-recommended',
'plugin:vue-scoped-css/vue3-recommended'
],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['vue'],
rules: {
// Possible Errors
// 要求使用 let 或 const 而不是 var
'no-var': 'error',
// 强制 "for" 循环中更新子句的计数器朝着正确的方向移动
'for-direction': 'error',
// 强制 getter 函数中出现 return 语句
'getter-return': 'error',
// 禁止在嵌套的块中出现变量声明或 function 声明
'no-inner-declarations': 'error',
// 禁止由于 await 或 yield的使用而可能导致出现竞态条件的赋值
'require-atomic-updates': 'error',
// console 警告
'no-console': 'warn',
// 禁止出现未使用过的变量
'no-unused-vars': [
'warn',
{
args: 'all',
caughtErrors: 'none',
ignoreRestSiblings: true,
vars: 'all'
}
],
// 关闭名称校验
'vue/multi-word-component-names': 'off',
// 非生产环境启用 debugger
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// Best Practices
eqeqeq: 'off',
// Stylistic Issues
// 强制可嵌套的块的最大深度
'max-depth': ['error', 5],
// 强制函数最大代码行数
'max-lines-per-function': [
'error',
{
max: 150,
skipBlankLines: true
}
],
// 强制回调函数最大嵌套深度
'max-nested-callbacks': ['error', { max: 10 }],
// 强制函数定义中最多允许的参数数量
'max-params': ['error', { max: 5 }],
// 强制每一行中所允许的最大语句数量
'max-statements-per-line': ['error', { max: 1 }],
// 三目运算符换行
'multiline-ternary': ['error', 'never'],
// 传值给组件时的使用 kebab-case
'vue/v-on-event-hyphenation': ['warn', 'always', {
autofix: true,
ignore: []
}]
}
}

View File

@ -1,25 +0,0 @@
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
}

29
.gitignore vendored
View File

@ -1,24 +1,29 @@
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
package-lock.json
pnpm-lock.yaml
dist
dist-ssr
*.local
# Editor directories and files
.idea
.vscode
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
package-lock.json
# 自动引入
src/auto-import
components.d.ts

4
.husky/pre-commit Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# 提交前使用执行此命令,格式化暂存区
npm run lint:staged

4
.npmrc Normal file
View File

@ -0,0 +1,4 @@
engine-strict = true
shamefully-hoist = true
strict-peer-dependencies = false
registry = https://registry.npmmirror.com

View File

@ -1,7 +0,0 @@
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
'plugins': {
// to edit target browsers: use "browserslist" field in package.json
'autoprefixer': {}
}
}

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM nginx:1.20
COPY ./dist /usr/share/nginx/html/dist
COPY ./nginx.conf /etc/nginx/conf.d

661
LICENSE
View File

@ -1,661 +0,0 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.

View File

@ -24,18 +24,6 @@ vue中后台https://gitee.com/gz-yami/mall4v
## 演示地址
**由于我们并不希望小程序的数据被弄混乱,我们弄了两个数据库。因此,您修改了后台的商品信息,小程序并不能看到!**
后台:<http://mall4j-admin.mall4j.com> 账号admin/123456
小程序:扫描二维码
![小程序](https://gitee.com/gz-yami/mall4j/raw/master/screenshot/miniQrcode.jpg)
## 部署教程
@ -75,4 +63,14 @@ npm run build
更多内容请查看 主项目 https://gitee.com/gz-yami/mall4j
## 提交反馈
提问之前,请先阅读[提问的智慧](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md)
- QQ群722835385
![QQ群](https://gitee.com/gz-yami/mall4j/raw/master/screenshot/qqGroup.png)
- 论坛:<http://bbs.mall4j.com>
- 商务邮箱yamitech@163.com

View File

@ -1,13 +0,0 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
'env': {
'development': {
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
// https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html
'plugins': ['dynamic-import-node']
}
}
}

37
index.html Normal file
View File

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script id="qqMap" charset="utf-8"></script>
<meta name="renderer" content="webkit">
<title></title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<script>
console.log('mall4j.v231106')
const webConfigData = JSON.parse(localStorage.getItem('b2cWebConfigData'));
if (webConfigData) {
let lang = localStorage.getItem('b2cLang')
if (lang !== 'en') {
document.title = webConfigData.bsTitleContentCn || ''
} else {
document.title = webConfigData.bsTitleContentEn || ''
}
let facicon = document.querySelector('link[rel="icon"]')
if (facicon !== null) {
facicon.href = webConfigData.bsTitleImg
} else {
facicon = document.createElement('link')
facicon.rel = 'icon'
facicon.href = webConfigData.bsTitleImg
document.head.appendChild(facicon)
}
}
</script>
</body>
</html>

View File

@ -1,24 +0,0 @@
module.exports = {
moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
transform: {
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
'jest-transform-stub',
'^.+\\.jsx?$': 'babel-jest'
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
snapshotSerializers: ['jest-serializer-vue'],
testMatch: [
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
],
collectCoverageFrom: ['src/utils/**/*.{js,vue}', '!src/utils/auth.js', '!src/utils/request.js', 'src/components/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/tests/unit/coverage',
// 'collectCoverage': true,
'coverageReporters': [
'lcov',
'text-summary'
],
testURL: 'http://localhost/'
}

View File

@ -1,9 +0,0 @@
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@/*": ["src/*"]
}
},
"exclude": ["node_modules", "dist"]
}

22
nginx.conf Normal file
View File

@ -0,0 +1,22 @@
server {
listen 80;
server_name mini-admin.mall4j.com;
gzip on;
gzip_static on;
location / {
try_files $uri $uri/ /;
root /usr/share/nginx/html/dist;
index index.html;
}
error_page 404 /404.html;
location = /404-light.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}

View File

@ -1,48 +1,69 @@
{
"name": "mall4v",
"version": "0.1.0",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "eslint --ext .js,.vue src"
"preinstall": "npx only-allow pnpm",
"dev": "vite",
"dev:test": "vite --mode testing",
"build": "vite build",
"build:test": "vite build --mode testing",
"lint": "eslint --ext .js,.vue src",
"lint:fix": "eslint --fix --ext .js,.vue src",
"preview": "vite preview",
"prepare": "husky install",
"lint:staged": "lint-staged"
},
"engines": {
"node": ">=16",
"pnpm": ">=6"
},
"dependencies": {
"@smallwei/avue": "^2.8.27",
"axios": "0.18.1",
"core-js": "3.6.5",
"crypto-js": "^4.1.1",
"element-ui": "2.15.7",
"lodash": "4.17.5",
"svg-sprite-loader": "3.7.3",
"vue": "2.6.14",
"vue-cookie": "1.1.4",
"vue-router": "3.5.2",
"vuex": "3.6.2"
"@element-plus/icons-vue": "2.1.0",
"@tinymce/tinymce-vue": "^5.1.0",
"axios": "1.3.4",
"big.js": "6.2.1",
"browser-image-compression": "2.0.2",
"crypto-js": "4.1.1",
"echarts": "5.4.1",
"element-plus": "2.3.6",
"element-resize-detector": "1.2.4",
"js-base64": "3.7.5",
"lodash": "4.17.21",
"moment": "2.29.4",
"pinia": "2.0.33",
"qs": "6.11.1",
"tinymce": "^6.4.1",
"vue": "3.2.47",
"vue-cookies": "1.8.3",
"vue-draggable-next": "2.1.1",
"vue-router": "4.1.6"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.15",
"@vue/cli-plugin-unit-jest": "~4.5.15",
"@vue/cli-service": "~4.5.15",
"babel-eslint": "7.1.1",
"eslint": "3.19.0",
"eslint-config-standard": "10.2.1",
"eslint-friendly-formatter": "3.0.0",
"eslint-loader": "1.7.1",
"eslint-plugin-html": "3.0.0",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-node": "5.2.0",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "3.0.1",
"html-webpack-plugin": "^3.2.0",
"sass": "^1.33.0",
"sass-loader": "^8.0.2",
"script-ext-html-webpack-plugin": "^2.1.3",
"vue-template-compiler": "2.6.14"
"@babel/eslint-parser": "^7.21.3",
"@vitejs/plugin-vue": "^4.1.0",
"eslint": "^8.38.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-vue": "^9.10.0",
"eslint-plugin-vue-scoped-css": "^2.4.0",
"husky": "8.0.3",
"lint-staged": "13.2.2",
"sass": "^1.59.3",
"unplugin-auto-import": "^0.15.1",
"unplugin-vue-components": "^0.24.1",
"vite": "^4.3.9",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-svg-icons": "^2.0.1",
"vue-eslint-parser": "^9.1.1"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
"lint-staged": {
"*.{js,vue}": [
"eslint --fix"
]
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -1,20 +0,0 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<script>
console.log('mall4j.v230417')
</script>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

View File

@ -1,15 +1,12 @@
<template>
<transition name="fade">
<router-view></router-view>
</transition>
<el-config-provider
namespace="el"
>
<router-view />
</el-config-provider>
</template>
<script>
export default {
computed: {
key () {
return this.$route.path + Math.random()
}
}
}
</script>
<!-- eslint-disable-next-line vue-scoped-css/enforce-style-type -->
<style lang="scss">
@use '@/assets/app.scss';
</style>

27
src/assets/app.scss Normal file
View File

@ -0,0 +1,27 @@
// 商品卡片信息的名称删除按钮组
.card-prod-info-btn{
font-size: 14px;
.prod-name{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
padding: 0 8px;
}
.del-btn{
line-height: 20px;
text-align: right;
padding-right: 8px;
user-select: none;
span{
color: #155bd4;
cursor: pointer;
&:hover{
opacity: 0.8;
}
&.disabled{
opacity: 0.6;
cursor: not-allowed;
}
}
}
}

View File

@ -1,72 +0,0 @@
<template>
<div>
<el-upload
:action="$http.adornUrl('/admin/file/upload/element')"
:headers="{Authorization: $cookie.get('Authorization')}"
:on-remove="handleRemove"
:on-success="handleUploadSuccess"
:before-remove="beforeRemove"
:file-list="fileList"
multiple>
<el-button size="small" type="primary">点击上传</el-button>
</el-upload>
</div>
</template>
<script>
export default {
data () {
return {
resourcesUrl: process.env.VUE_APP_RESOURCES_URL
}
},
props: {
value: {
default: '',
type: String
}
},
computed: {
fileList () {
let res = []
if (this.value) {
let fileArray = this.value.split(',')
for (let i = 0; i < fileArray.length; i++) {
res.push({name: fileArray[i], url: this.resourcesUrl + fileArray[i], response: fileArray[i]})
}
}
this.$emit('input', this.value)
return res
}
},
methods: {
//
handleUploadSuccess (response, file, fileList) {
let files = fileList.map(file => {
return file.response
}).join(',')
this.$emit('change', files)
},
//
beforeAvatarUpload (file) {
const isLt2M = file.size / 1024 / 1024 < 2
if (!isLt2M) {
this.$message.error('上传图片大小不能超过 2MB!')
}
return isLt2M
},
handleRemove (file, fileList) {
let files = fileList.map(file => {
return file.response
}).join(',')
this.$emit('change', files)
},
beforeRemove (file, fileList) {
return this.$confirm(`确定移除 ${file.name}`)
}
}
}
</script>
<style lang="scss">
</style>

View File

@ -1,51 +0,0 @@
<template>
<svg
:class="getClassName"
:width="width"
:height="height"
aria-hidden="true">
<use :xlink:href="getName"></use>
</svg>
</template>
<script>
export default {
name: 'icon-svg',
props: {
name: {
type: String,
required: true
},
className: {
type: String
},
width: {
type: String
},
height: {
type: String
}
},
computed: {
getName () {
return `#icon-${this.name}`
},
getClassName () {
return [
'icon-svg',
`icon-svg__${this.name}`,
this.className && /\S/.test(this.className) ? `${this.className}` : ''
]
}
}
}
</script>
<style>
.icon-svg {
width: 1em;
height: 1em;
fill: currentColor;
overflow: hidden;
}
</style>

View File

@ -1,89 +0,0 @@
<template>
<div>
<el-upload
:action="$http.adornUrl('/admin/file/upload/element')"
:headers="{Authorization: $cookie.get('Authorization')}"
list-type="picture-card"
:on-preview="handlePictureCardPreview"
:on-remove="handleRemove"
:on-success="handleUploadSuccess"
:file-list="imageList"
:before-upload="beforeAvatarUpload">
<i class="el-icon-plus"></i>
</el-upload>
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>
</div>
</template>
<script>
export default {
data () {
return {
dialogImageUrl: '',
dialogVisible: false,
resourcesUrl: process.env.VUE_APP_RESOURCES_URL
}
},
props: {
value: {
default: '',
type: String
}
},
computed: {
imageList () {
let res = []
if (this.value) {
let imageArray = this.value.split(',')
for (let i = 0; i < imageArray.length; i++) {
res.push({url: this.resourcesUrl + imageArray[i], response: imageArray[i]})
}
}
this.$emit('input', this.value)
return res
}
},
methods: {
//
handleUploadSuccess (response, file, fileList) {
let pics = fileList.map(file => {
if (typeof file.response === 'string') {
return file.response
}
return file.response.data
}).join(',')
this.$emit('input', pics)
},
//
beforeAvatarUpload (file) {
const isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/gif' || file.type === 'image/jpg'
if (!isJPG) {
this.$message.error('上传图片只能是jpeg/jpg/png/gif 格式!')
}
const isLt2M = file.size / 1024 / 1024 < 2
if (!isLt2M) {
this.$message.error('上传图片大小不能超过 2MB!')
}
return isLt2M && isJPG
},
handleRemove (file, fileList) {
let pics = fileList.map(file => {
if (typeof file.response === 'string') {
return file.response
}
return file.response.data
}).join(',')
this.$emit('input', pics)
},
handlePictureCardPreview (file) {
this.dialogImageUrl = file.url
this.dialogVisible = true
}
}
}
</script>
<style lang="scss">
</style>

View File

@ -1,75 +0,0 @@
<template>
<div>
<el-upload
class="pic-uploader-component"
:action="$http.adornUrl('/admin/file/upload/element')"
:headers="{Authorization: $cookie.get('Authorization')}"
:show-file-list="false"
:on-success="handleUploadSuccess"
:before-upload="beforeAvatarUpload">
<img v-if="value" :src="resourcesUrl + value" class="pic">
<i v-else class="el-icon-plus pic-uploader-icon"></i>
</el-upload>
</div>
</template>
<script>
export default {
data () {
return {
resourcesUrl: process.env.VUE_APP_RESOURCES_URL
}
},
props: {
value: {
default: '',
type: String
}
},
methods: {
//
handleUploadSuccess (response, file, fileList) {
this.$emit('input', file.response.data)
},
//
beforeAvatarUpload (file) {
const isLt2M = file.size / 1024 / 1024 < 2
const isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/gif' || file.type === 'image/jpg'
if (!isJPG) {
this.$message.error('上传图片只能是jpeg/jpg/png/gif 格式!')
}
if (!isLt2M) {
this.$message.error('上传图片大小不能超过 2MB!')
}
return isLt2M && isJPG
}
}
}
</script>
<style lang="scss">
.pic-uploader-component .el-upload {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
.pic-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 178px;
height: 178px;
line-height: 178px;
text-align: center;
}
.pic {
width: 178px;
height: 178px;
display: block;
}
}
.pic-uploader-component .el-upload:hover {
border-color: #409EFF;
}
</style>

View File

@ -1,71 +0,0 @@
<template>
<div>
<el-upload
class="pic-uploader-component"
:action="$http.adornUrl('/admin/file/upload/element')"
:headers="{Authorization: $cookie.get('Authorization')}"
:show-file-list="false"
:on-success="handleUploadSuccess"
:before-upload="beforeAvatarUpload">
<img v-if="value" :src="resourcesUrl + value" class="pic">
<i v-else class="el-icon-plus pic-uploader-icon"></i>
</el-upload>
</div>
</template>
<script>
export default {
data () {
return {
resourcesUrl: process.env.VUE_APP_RESOURCES_URL
}
},
props: {
value: {
default: '',
type: String
}
},
methods: {
//
handleUploadSuccess (response, file, fileList) {
this.$emit('input', file.response)
},
//
beforeAvatarUpload (file) {
const isLt2M = file.size / 1024 / 1024 < 2
if (!isLt2M) {
this.$message.error('上传头像图片大小不能超过 2MB!')
}
return isLt2M
}
}
}
</script>
<style lang="scss">
.pic-uploader-component .el-upload {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
.pic-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 178px;
height: 178px;
line-height: 178px;
text-align: center;
}
.pic {
width: 178px;
height: 178px;
display: block;
}
}
.pic-uploader-component .el-upload:hover {
border-color: #409EFF;
}
</style>

View File

@ -1,188 +0,0 @@
<template>
<el-dialog title="选择商品"
:modal="false"
:close-on-click-modal="false"
:visible.sync="visible">
<el-table ref="prodTable"
:data="dataList"
border
v-loading="dataListLoading"
@selection-change="selectChangeHandle"
style="width: 100%;"
>
<el-table-column v-if="isSingle" width="50"
header-align="center"
align="center">
<template slot-scope="scope">
<div>
<el-radio :label="scope.row.prodId"
v-model="singleSelectProdId"
@change.native="getSelectProdRow(scope.row)">&nbsp;</el-radio>
</div>
</template>
</el-table-column>
<el-table-column v-if="!isSingle"
type="selection"
header-align="center"
align="center"
width="50">
</el-table-column>
<el-table-column prop="prodName"
header-align="center"
align="center"
label="产品名称">
</el-table-column>
<el-table-column align="center"
width="140"
label="产品图片">
<template slot-scope="scope">
<img :src="scope.row.pic"
width="100"
height="100" />
</template>
</el-table-column>
</el-table>
<el-pagination @size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
<span slot="footer">
<el-button @click="visible = false">取消</el-button>
<el-button type="primary"
@click="submitProds()">确定</el-button>
</span>
</el-dialog>
</template>
<script>
export default {
data () {
return {
visible: false,
dataForm: {
product: ''
},
singleSelectProdId: 0,
allData: [],
selectProds: [],
dataList: [],
pageIndex: 1,
pageSize: 10,
totalPage: 0,
dataListLoading: false,
dataListSelections: [],
addOrUpdateVisible: false
}
},
props: {
isSingle: {
default: false,
type: Boolean
}
},
activated () {
this.getDataList()
},
methods: {
//
init (selectProds) {
this.selectProds = selectProds
this.visible = true
this.dataListLoading = true
if (this.selectProds) {
this.selectProds.forEach(row => {
this.dataListSelections.push(row)
})
}
this.getDataList()
},
getDataList () {
this.$http({
url: this.$http.adornUrl('/prod/prod/page'),
method: 'get',
params: this.$http.adornParams(
Object.assign(
{
current: this.pageIndex,
size: this.pageSize
},
{
prodName: this.dataForm.prodName
}
)
)
}).then(({ data }) => {
this.dataList = data.records
this.totalPage = data.total
this.dataListLoading = false
if (this.selectProds) {
this.$nextTick(() => {
this.selectProds.forEach(row => {
let index = this.dataList.findIndex((prodItem) => prodItem.prodId === row.prodId)
this.$refs.prodTable.toggleRowSelection(this.dataList[index])
})
})
}
})
},
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.getDataList()
},
//
currentChangeHandle (val) {
this.pageIndex = val
this.getDataList()
},
//
getSelectProdRow (row) {
this.dataListSelections = [row]
},
//
selectChangeHandle (selection) {
this.dataList.forEach((tableItem) => {
let selectedProdIndex = selection.findIndex((selectedProd) => {
if (!selectedProd) {
return false
}
return selectedProd.prodId === tableItem.prodId
})
let dataSelectedProdIndex = this.dataListSelections.findIndex((dataSelectedProd) => dataSelectedProd.prodId === tableItem.prodId)
if (selectedProdIndex > -1 && dataSelectedProdIndex === -1) {
this.dataListSelections.push(tableItem)
} else if (selectedProdIndex === -1 && dataSelectedProdIndex > -1) {
this.dataListSelections.splice(dataSelectedProdIndex, 1)
}
})
},
//
submitProds () {
if (!this.dataListSelections.length) {
this.$message({
message: '请选择商品',
type: 'error',
duration: 1000,
onClose: () => {}
})
return
}
let prods = []
this.dataListSelections.forEach(item => {
let prodIndex = prods.findIndex((prod) => prod.prodId === item.prodId)
if (prodIndex === -1) {
prods.push({ prodId: item.prodId, prodName: item.prodName, pic: item.pic })
}
})
this.$emit('refreshSelectProds', prods)
this.dataListSelections = []
this.visible = false
}
}
}
</script>

View File

@ -1,88 +0,0 @@
<template>
<div class="upload-container">
<el-tooltip v-if="tinymceUploadType === 'prod'" :content="this.$i18n.t('product.uploadDetailPicTips')" placement="top">
<el-button :style="{background:color,borderColor:color}" icon="el-icon-upload" size="mini" type="primary" @click="clickUpload()">
{{ $t('components.uploadImage') }}
</el-button>
</el-tooltip>
<el-button v-else :style="{background:color,borderColor:color}" icon="el-icon-upload" size="mini" type="primary" @click="clickUpload()">
{{ $t('components.uploadImage') }}
</el-button>
<!-- 弹窗, 新增图片 -->
<elx-imgbox v-if="elxImgboxVisible" ref="elxImgbox" @refreshPic="refreshPic"></elx-imgbox>
</div>
</template>
<script>
import ImgsUpload from '@/components/imgs-upload'
import ElxImgbox from '@/components/elx-imgbox'
export default {
name: 'EditorSlideUpload',
props: {
color: {
type: String,
default: '#1890ff'
},
tinymceUploadType: {
default: '',
type: String
}
},
data () {
return {
elxImgboxVisible: false,
maxNum: 15, //
imgUrls: [],
resourcesUrl: process.env.VUE_APP_RESOURCES_URL
}
},
components: {
ImgsUpload,
ElxImgbox
},
methods: {
/**
* 打开图片选择窗
*/
clickUpload () {
this.imgUrls = ''
this.elxImgboxVisible = true
this.$nextTick(() => {
this.$refs.elxImgbox.init(0, this.maxNum)
})
},
/**
* 接收回调的图片数据
*/
refreshPic (imagePath) {
let imageArray = imagePath.split(',')
var data = []
imageArray.forEach(img => {
data.push(this.resourcesUrl + img)
})
this.imgUrls = ''
this.dialogVisible = false
this.$emit('successCBK', data)
}
// handleSubmit() {
// let imageArray = this.imgUrls.split(',')
// var data = []
// imageArray.forEach(img => {
// data.push(this.resourcesUrl + img)
// })
// this.imgUrls = ''
// this.dialogVisible = false
// this.$emit('successCBK', data)
// }
}
}
</script>
<style lang="scss" scoped>
.editor-slide-upload {
margin-bottom: 20px;
::v-deep .el-upload--picture-card {
width: 100%;
}
}
</style>

View File

@ -1,60 +0,0 @@
let callbacks = []
function loadedTinymce () {
// to fixed https://github.com/PanJiaChen/vue-element-admin/issues/2144
// check is successfully downloaded script
return window.tinymce
}
const dynamicLoadScript = (src, callback) => {
const existingScript = document.getElementById(src)
const cb = callback || function () {}
if (!existingScript) {
const script = document.createElement('script')
script.src = src // src url for the third-party library being loaded.
script.id = src
document.body.appendChild(script)
callbacks.push(cb)
const onEnd = 'onload' in script ? stdOnEnd : ieOnEnd
onEnd(script)
}
if (existingScript && cb) {
if (loadedTinymce()) {
cb(null, existingScript)
} else {
callbacks.push(cb)
}
}
function stdOnEnd (script) {
script.onload = function () {
// this.onload = null here is necessary
// because even IE9 works not like others
this.onerror = this.onload = null
for (const cb of callbacks) {
cb(null, script)
}
callbacks = null
}
script.onerror = function () {
document.body.removeChild(script)
this.onerror = this.onload = null
cb(new Error('Failed to load ' + src), script)
}
}
function ieOnEnd (script) {
script.onreadystatechange = function () {
if (this.readyState !== 'complete' && this.readyState !== 'loaded') return
this.onreadystatechange = null
for (const cb of callbacks) {
cb(null, script) // there is no way to catch loading errors in IE8
}
callbacks = null
}
}
}
export default dynamicLoadScript

View File

@ -1,289 +0,0 @@
<template>
<div :class="{fullscreen:fullscreen}" class="tinymce-container" :style="{width:containerWidth}">
<textarea :id="tinymceId" class="tinymce-textarea" />
<div class="editor-custom-btn-container">
<el-upload
class="upload-demo"
list-type="picture"
:action="$http.adornUrl('/admin/file/upload/element')"
:headers="{Authorization: $cookie.get('Authorization')}"
:on-success="imageSuccessCBK"
:show-file-list="false"
:before-upload="beforeAvatarUpload">
<el-button size="small" type="primary">点击上传图片</el-button>
</el-upload>
</div>
</div>
</template>
<script>
/**
* docs:
* https://panjiachen.github.io/vue-element-admin-site/feature/component/rich-editor.html#tinymce
*/
import mulPicUpload from '@/components/mul-pic-upload'
import plugins from './plugins'
import toolbar from './toolbar'
import load from './dynamicLoadScript'
// why use this cdn, detail see https://github.com/PanJiaChen/tinymce-all-in-one
const resourceCdn1 = 'https://cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js'
const resourceCdn2 = 'https://unpkg.zhimg.com/tinymce-all-in-one@4.9.3/tinymce.min.js'
const resourceCdn3 = 'https://unpkg.com/tinymce-all-in-one@4.9.3/tinymce.min.js'
export default {
name: 'Tinymce',
components: { mulPicUpload },
props: {
id: {
type: String,
default: function () {
return 'vue-tinymce-' + +new Date() + ((Math.random() * 1000).toFixed(0) + '')
}
},
value: {
type: String,
default: ''
},
toolbar: {
type: Array,
required: false,
default () {
return []
}
},
menubar: {
type: String,
default: 'file edit insert view format table'
},
height: {
type: [Number, String],
required: false,
default: 360
},
width: {
type: [Number, String],
required: false,
default: 'auto'
}
},
data () {
return {
hasChange: false,
hasInit: false,
tinymceId: this.id,
fullscreen: false,
resourcesUrl: process.env.VUE_APP_RESOURCES_URL
}
},
computed: {
language () {
return localStorage.getItem('lang') || 'zh_CN'
},
containerWidth () {
const width = this.width
if (/^[\d]+(\.[\d]+)?$/.test(width)) { // matches `100`, `'100'`
return `${width}px`
}
return width
}
},
watch: {
value (val) {
if (!this.hasChange && this.hasInit) {
this.$nextTick(() =>
window.tinymce.get(this.tinymceId).setContent(val || ''))
}
},
language () {
this.destroyTinymce()
this.$nextTick(() => this.initTinymce())
}
},
mounted () {
this.init()
},
activated () {
if (window.tinymce) {
this.initTinymce()
}
},
deactivated () {
this.destroyTinymce()
},
destroyed () {
this.destroyTinymce()
},
methods: {
init () {
// dynamic load tinymce from cdn
load(resourceCdn1, (err) => {
if (!err) {
this.initTinymce()
return
}
load(resourceCdn2, (err2) => {
if (!err2) {
this.initTinymce()
return
}
load(resourceCdn3, (err3) => {
if (!err3) {
this.initTinymce()
return
}
this.$message.error(err.message)
})
})
})
},
initTinymce () {
const _this = this
window.tinymce.init({
language: this.language,
selector: `#${this.tinymceId}`,
height: this.height,
body_class: 'panel-body ',
object_resizing: false,
toolbar: this.toolbar.length > 0 ? this.toolbar : toolbar,
menubar: this.menubar,
plugins: plugins,
end_container_on_empty_block: true,
powerpaste_word_import: 'clean',
code_dialog_height: 450,
code_dialog_width: 1000,
advlist_bullet_styles: 'square',
advlist_number_styles: 'default',
imagetools_cors_hosts: ['www.tinymce.com', 'codepen.io'],
default_link_target: '_blank',
link_title: false,
nonbreaking_force_tab: true, // inserting nonbreaking space &nbsp; need Nonbreaking Space Plugin
init_instance_callback: editor => {
if (_this.value) {
editor.setContent(_this.value)
}
_this.hasInit = true
editor.on('NodeChange Change KeyUp SetContent', () => {
this.hasChange = true
this.$emit('input', editor.getContent())
})
},
setup (editor) {
editor.on('FullscreenStateChanged', (e) => {
_this.fullscreen = e.state
})
},
// it will try to keep these URLs intact
// https://www.tiny.cloud/docs-3x/reference/configuration/Configuration3x@convert_urls/
// https://stackoverflow.com/questions/5196205/disable-tinymce-absolute-to-relative-url-conversions
convert_urls: false
//
// images_dataimg_filter(img) {
// setTimeout(() => {
// const $image = $(img);
// $image.removeAttr('width');
// $image.removeAttr('height');
// if ($image[0].height && $image[0].width) {
// $image.attr('data-wscntype', 'image');
// $image.attr('data-wscnh', $image[0].height);
// $image.attr('data-wscnw', $image[0].width);
// $image.addClass('wscnph');
// }
// }, 0);
// return img
// },
// images_upload_handler(blobInfo, success, failure, progress) {
// progress(0);
// const token = _this.$store.getters.token;
// getToken(token).then(response => {
// const url = response.data.qiniu_url;
// const formData = new FormData();
// formData.append('token', response.data.qiniu_token);
// formData.append('key', response.data.qiniu_key);
// formData.append('file', blobInfo.blob(), url);
// upload(formData).then(() => {
// success(url);
// progress(100);
// })
// }).catch(err => {
// failure('')
// console.log(err);
// });
// },
})
},
destroyTinymce () {
const tinymce = window.tinymce.get(this.tinymceId)
if (this.fullscreen) {
tinymce.execCommand('mceFullScreen')
}
if (tinymce) {
tinymce.destroy()
}
},
setContent (value) {
if (window.tinymce) {
window.tinymce.get(this.tinymceId).setContent(value)
}
},
getContent () {
window.tinymce.get(this.tinymceId).getContent()
},
//
beforeAvatarUpload (file) {
const isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/gif' || file.type === 'image/jpg'
if (!isJPG) {
this.$message.error('上传图片只能是jpeg/jpg/png/gif 格式!')
}
const isLt2M = file.size / 1024 / 1024 < 2
if (!isLt2M) {
this.$message.error('上传图片大小不能超过 2MB!')
}
return isLt2M && isJPG
},
imageSuccessCBK (response, file, fileList) {
const _this = this
fileList.forEach(v => {
window.tinymce.get(_this.tinymceId).insertContent(`<img class="wscnph" src="${this.resourcesUrl + v.response.data}" >`)
})
}
}
}
</script>
<style lang="scss" scoped>
.tinymce-container {
position: relative;
line-height: normal;
}
.tinymce-container {
::v-deep {
.mce-fullscreen {
z-index: 10000;
}
}
}
.tinymce-textarea {
visibility: hidden;
z-index: -1;
}
.editor-custom-btn-container {
position: absolute;
right: 4px;
top: 4px;
/*z-index: 2005;*/
}
.fullscreen .editor-custom-btn-container {
z-index: 10000;
position: fixed;
}
.editor-upload-btn {
display: inline-block;
}
</style>

View File

@ -1,7 +0,0 @@
// Any plugins you want to use has to be imported
// Detail plugins list see https://www.tinymce.com/docs/plugins/
// Custom builds see https://www.tinymce.com/download/custom-builds/
const plugins = ['advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount']
export default plugins

View File

@ -1,6 +0,0 @@
// Here is a list of the toolbar
// Detail list see https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols
const toolbar = ['searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample', 'hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen']
export default toolbar

File diff suppressed because one or more lines are too long

View File

@ -1,30 +1,21 @@
<template>
<div
style="position: relative"
<div style="position: relative"
>
<div class="verify-img-out">
<div
class="verify-img-panel"
:style="{'width': setSize.imgWidth,
<div class="verify-img-panel" :style="{'width': setSize.imgWidth,
'height': setSize.imgHeight,
'background-size' : setSize.imgWidth + ' '+ setSize.imgHeight,
'margin-bottom': vSpace + 'px'}"
>
<div v-show="showRefresh" class="verify-refresh" style="z-index:3" @click="refresh">
<i class="iconfont icon-refresh" />
<div class="verify-refresh" style="z-index:3" @click="refresh" v-show="showRefresh">
<i class="iconfont icon-refresh"></i>
</div>
<img
<img :src="'data:image/png;base64,'+pointBackImgBase"
ref="canvas"
:src="pointBackImgBase?('data:image/png;base64,'+pointBackImgBase):defaultImg"
alt=""
style="width:100%;height:100%;display:block"
@click="bindingClick?canvasClick($event):undefined"
>
alt="" style="width:100%;height:100%;display:block"
@click="bindingClick?canvasClick($event):undefined">
<div
v-for="(tempPoint, index) in tempPoints"
:key="index"
class="point-area"
<div v-for="(tempPoint, index) in tempPoints" :key="index" class="point-area"
:style="{
'background-color':'#1abd6c',
color:'#fff',
@ -37,21 +28,18 @@
position:'absolute',
top:parseInt(tempPoint.y-10) + 'px',
left:parseInt(tempPoint.x-10) + 'px'
}"
>
{{ index + 1 }}
}">
{{index + 1}}
</div>
</div>
</div>
<!-- 'height': this.barSize.height, -->
<div
class="verify-bar-area"
<div class="verify-bar-area"
:style="{'width': setSize.imgWidth,
'color': this.barAreaColor,
'border-color': this.barAreaBorderColor,
'line-height':this.barSize.height}"
>
<span class="verify-msg">{{ text }}</span>
'line-height':this.barSize.height}">
<span class="verify-msg">{{text}}</span>
</div>
</div>
</template>
@ -63,7 +51,7 @@
import { resetSize, _code_chars, _code_color1, _code_color2 } from './../utils/util'
import { aesEncrypt } from './../utils/ase'
import { reqGet, reqCheck } from './../api/index'
import { computed, onMounted, reactive, ref, watch, nextTick, toRefs, watchEffect, getCurrentInstance } from 'vue'
export default {
name: 'VerifyPoints',
props: {
@ -73,7 +61,7 @@ export default {
default: 'fixed'
},
captchaType: {
type: String,
type: String
},
//
vSpace: {
@ -82,7 +70,7 @@ export default {
},
imgSize: {
type: Object,
default() {
default () {
return {
width: '310px',
height: '155px'
@ -91,178 +79,183 @@ export default {
},
barSize: {
type: Object,
default() {
default () {
return {
width: '310px',
height: '40px'
}
}
},
defaultImg: {
type: String,
default: ''
}
},
data() {
return {
secretKey: '', // ase
checkNum: 3, //
fontPos: [], //
checkPosArr: [], //
num: 1, //
pointBackImgBase: '', //
poinTextList: [], //
backToken: '', // token
setSize: {
setup (props, context) {
const { mode, captchaType, vSpace, imgSize, barSize } = toRefs(props)
const { proxy } = getCurrentInstance()
const secretKey = ref('') // ase
const checkNum = ref(3) //
const fontPos = reactive([]) //
const checkPosArr = reactive([]) //
const num = ref(1) //
const pointBackImgBase = ref('') //
const poinTextList = reactive([]) //
const backToken = ref('') // token
const setSize = reactive({
imgHeight: 0,
imgWidth: 0,
barHeight: 0,
barWidth: 0
},
tempPoints: [],
text: '',
barAreaColor: undefined,
barAreaBorderColor: undefined,
showRefresh: true,
bindingClick: true
})
const tempPoints = reactive([])
const text = ref('')
const barAreaColor = ref(undefined)
const barAreaBorderColor = ref(undefined)
const showRefresh = ref(true)
const bindingClick = ref(true)
const init = () => {
//
fontPos.splice(0, fontPos.length)
checkPosArr.splice(0, checkPosArr.length)
num.value = 1
getPictrue()
nextTick(() => {
const { imgHeight, imgWidth, barHeight, barWidth } = resetSize(proxy)
setSize.imgHeight = imgHeight
setSize.imgWidth = imgWidth
setSize.barHeight = barHeight
setSize.barWidth = barWidth
proxy.$parent.$emit('ready', proxy)
})
}
},
computed: {
resetSize() {
return resetSize
}
},
watch: {
// type
type: {
immediate: true,
handler() {
this.init()
}
}
},
mounted() {
onMounted(() => {
//
this.$el.onselectstart = function() {
init()
proxy.$el.onselectstart = function () {
return false
}
},
methods: {
init() {
//
this.fontPos.splice(0, this.fontPos.length)
this.checkPosArr.splice(0, this.checkPosArr.length)
this.num = 1
this.getPictrue()
this.$nextTick(() => {
this.setSize = this.resetSize(this) //
this.$parent.$emit('ready', this)
})
},
canvasClick(e) {
this.checkPosArr.push(this.getMousePos(this.$refs.canvas, e))
if (this.num == this.checkNum) {
this.num = this.createPoint(this.getMousePos(this.$refs.canvas, e))
const canvas = ref(null)
const canvasClick = (e) => {
checkPosArr.push(getMousePos(canvas, e))
if (num.value == checkNum.value) {
num.value = createPoint(getMousePos(canvas, e))
//
this.checkPosArr = this.pointTransfrom(this.checkPosArr, this.setSize)
const arr = pointTransfrom(checkPosArr, setSize)
checkPosArr.length = 0
checkPosArr.push(...arr)
//
setTimeout(() => {
// var flag = this.comparePos(this.fontPos, this.checkPosArr);
//
var captchaVerification = this.secretKey ? aesEncrypt(this.backToken + '---' + JSON.stringify(this.checkPosArr), this.secretKey) : this.backToken + '---' + JSON.stringify(this.checkPosArr)
const captchaVerification = secretKey.value ? aesEncrypt(backToken.value + '---' + JSON.stringify(checkPosArr), secretKey.value) : backToken.value + '---' + JSON.stringify(checkPosArr)
const data = {
captchaType: this.captchaType,
'pointJson': this.secretKey ? aesEncrypt(JSON.stringify(this.checkPosArr), this.secretKey) : JSON.stringify(this.checkPosArr),
'token': this.backToken
captchaType: captchaType.value,
pointJson: secretKey.value ? aesEncrypt(JSON.stringify(checkPosArr), secretKey.value) : JSON.stringify(checkPosArr),
token: backToken.value
}
reqCheck(data).then(res => {
if (res.repCode == '0000') {
this.barAreaColor = '#4cae4c'
this.barAreaBorderColor = '#5cb85c'
this.text = '验证成功'
this.bindingClick = false
if (this.mode == 'pop') {
barAreaColor.value = '#4cae4c'
barAreaBorderColor.value = '#5cb85c'
text.value = '验证成功'
bindingClick.value = false
if (mode.value == 'pop') {
setTimeout(() => {
this.$parent.clickShow = false
this.refresh()
proxy.$parent.clickShow = false
refresh()
}, 1500)
}
this.$parent.$emit('success', { captchaVerification })
proxy.$parent.$emit('success', { captchaVerification })
} else {
this.$parent.$emit('error', this)
this.barAreaColor = '#d9534f'
this.barAreaBorderColor = '#d9534f'
this.text = '验证失败'
proxy.$parent.$emit('error', proxy)
barAreaColor.value = '#d9534f'
barAreaBorderColor.value = '#d9534f'
text.value = '验证失败'
setTimeout(() => {
this.refresh()
refresh()
}, 700)
}
})
}, 400)
}
if (this.num < this.checkNum) {
this.num = this.createPoint(this.getMousePos(this.$refs.canvas, e))
if (num.value < checkNum.value) {
num.value = createPoint(getMousePos(canvas, e))
}
}
},
//
getMousePos: function(obj, e) {
var x = e.offsetX
var y = e.offsetY
const getMousePos = function (obj, e) {
const x = e.offsetX
const y = e.offsetY
return { x, y }
},
}
//
createPoint: function(pos) {
this.tempPoints.push(Object.assign({}, pos))
return ++this.num
},
refresh: function() {
this.tempPoints.splice(0, this.tempPoints.length)
this.barAreaColor = '#000'
this.barAreaBorderColor = '#ddd'
this.bindingClick = true
this.fontPos.splice(0, this.fontPos.length)
this.checkPosArr.splice(0, this.checkPosArr.length)
this.num = 1
this.getPictrue()
this.text = '验证失败'
this.showRefresh = true
},
const createPoint = function (pos) {
tempPoints.push(Object.assign({}, pos))
return num.value + 1
}
const refresh = function () {
tempPoints.splice(0, tempPoints.length)
barAreaColor.value = '#000'
barAreaBorderColor.value = '#ddd'
bindingClick.value = true
fontPos.splice(0, fontPos.length)
checkPosArr.splice(0, checkPosArr.length)
num.value = 1
getPictrue()
text.value = '验证失败'
showRefresh.value = true
}
//
getPictrue() {
function getPictrue () {
const data = {
captchaType: this.captchaType,
clientUid: localStorage.getItem('point'),
ts: Date.now(), //
captchaType: captchaType.value
}
reqGet(data).then(res => {
if (res.repCode == '0000') {
this.pointBackImgBase = res.repData.originalImageBase64
this.backToken = res.repData.token
this.secretKey = res.repData.secretKey
this.poinTextList = res.repData.wordList
this.text = '请依次点击【' + this.poinTextList.join(',') + '】'
pointBackImgBase.value = res.repData.originalImageBase64
backToken.value = res.repData.token
secretKey.value = res.repData.secretKey
poinTextList.value = res.repData.wordList
text.value = '请依次点击【' + poinTextList.value.join(',') + '】'
} else {
this.text = res.repMsg
}
//
if (res.repCode == '6201') {
this.pointBackImgBase = null
text.value = res.repMsg
}
})
},
}
//
pointTransfrom(pointArr, imgSize) {
var newPointArr = pointArr.map(p => {
const pointTransfrom = function (pointArr, imgSize) {
const newPointArr = pointArr.map(p => {
const x = Math.round(310 * p.x / parseInt(imgSize.imgWidth))
const y = Math.round(155 * p.y / parseInt(imgSize.imgHeight))
return { x, y }
})
// console.log(newPointArr,"newPointArr");
return newPointArr
}
},
return {
secretKey,
checkNum,
fontPos,
checkPosArr,
num,
pointBackImgBase,
poinTextList,
backToken,
setSize,
tempPoints,
text,
barAreaColor,
barAreaBorderColor,
showRefresh,
bindingClick,
init,
canvas,
canvasClick,
getMousePos,
createPoint,
refresh,
getPictrue,
pointTransfrom
}
}
}
</script>

View File

@ -1,56 +1,46 @@
<template>
<div style="position: relative;">
<div
v-if="type === '2'"
class="verify-img-out"
v-if="type === '2'" class="verify-img-out"
:style="{height: (parseInt(setSize.imgHeight) + vSpace) + 'px'}"
>
<div
class="verify-img-panel"
:style="{width: setSize.imgWidth,
height: setSize.imgHeight,}"
>
<img :src="backImgBase?('data:image/png;base64,'+backImgBase):defaultImg" alt="" style="width:100%;height:100%;display:block">
<div v-show="showRefresh" class="verify-refresh" @click="refresh"><i class="iconfont icon-refresh" />
class="verify-img-panel" :style="{width: setSize.imgWidth,
height: setSize.imgHeight,}">
<img :src="'data:image/png;base64,'+backImgBase" alt="" style="width:100%;height:100%;display:block"/>
<div v-show="showRefresh" class="verify-refresh" @click="refresh"><i class="iconfont icon-refresh"/>
</div>
<transition name="tips">
<span v-if="tipWords" class="verify-tips" :class="passFlag ?'suc-bg':'err-bg'">{{ tipWords }}</span>
<span v-if="tipWords" class="verify-tips" :class="passFlag ?'suc-bg':'err-bg'">{{tipWords}}</span>
</transition>
</div>
</div>
<!-- 公共部分 -->
<div
class="verify-bar-area"
:style="{width: setSize.imgWidth,
class="verify-bar-area" :style="{width: setSize.imgWidth,
height: barSize.height,
'line-height':barSize.height}"
>
<span class="verify-msg" v-text="text" />
'line-height':barSize.height}">
<span class="verify-msg" v-text="text"/>
<div
class="verify-left-bar"
:style="{width: (leftBarWidth!==undefined)?leftBarWidth: barSize.height, height: barSize.height, 'border-color': leftBarBorderColor, transaction: transitionWidth}"
>
<span class="verify-msg" v-text="finishText" />
class="verify-left-bar"
:style="{width: (leftBarWidth!==undefined)?leftBarWidth: barSize.height, height: barSize.height, 'border-color': leftBarBorderColor, transaction: transitionWidth}">
<span class="verify-msg" v-text="finishText"/>
<div
class="verify-move-block"
class="verify-move-block"
:style="{width: barSize.height, height: barSize.height, 'background-color': moveBlockBackgroundColor, left: moveBlockLeft, transition: transitionLeft}"
@touchstart="start"
@mousedown="start"
>
@mousedown="start">
<i
:class="['verify-icon iconfont', iconClass]"
:style="{color: iconColor}"
/>
:class="['verify-icon iconfont', iconClass]"
:style="{color: iconColor}"/>
<div
v-if="type === '2'"
class="verify-sub-block"
v-if="type === '2'" class="verify-sub-block"
:style="{'width':Math.floor(parseInt(setSize.imgWidth)*47/310)+ 'px',
'height': setSize.imgHeight,
'top':'-' + (parseInt(setSize.imgHeight) + vSpace) + 'px',
'background-size': setSize.imgWidth + ' ' + setSize.imgHeight,
}"
>
<img :src="'data:image/png;base64,'+blockBackImgBase" alt="" style="width:100%;height:100%;display:block">
}">
<img :src="'data:image/png;base64,'+blockBackImgBase" alt="" style="width:100%;height:100%;display:block;-webkit-user-drag:none;"/>
</div>
</div>
</div>
@ -64,14 +54,14 @@
* */
import { aesEncrypt } from './../utils/ase'
import { resetSize } from './../utils/util'
import { reqGet, reqCheck } from './../api/index'
import { reqCheck, reqGet } from './../api/index'
import { computed, getCurrentInstance, nextTick, onMounted, reactive, ref, toRefs, watch } from 'vue'
// "captchaType":"blockPuzzle",
export default {
name: 'VerifySlide',
props: {
captchaType: {
type: String,
type: String
},
type: {
type: String,
@ -92,7 +82,7 @@ export default {
},
imgSize: {
type: Object,
default() {
default () {
return {
width: '310px',
height: '155px'
@ -101,7 +91,7 @@ export default {
},
blockSize: {
type: Object,
default() {
default () {
return {
width: '50px',
height: '50px'
@ -110,269 +100,276 @@ export default {
},
barSize: {
type: Object,
default() {
default () {
return {
width: '310px',
height: '40px'
}
}
},
defaultImg: {
type: String,
default: ''
}
},
data() {
return {
secretKey: '', //
passFlag: '', //
backImgBase: '', //
blockBackImgBase: '', //
backToken: '', // token
startMoveTime: '', //
endMovetime: '', //
tipsBackColor: '', //
tipWords: '',
text: '',
finishText: '',
setSize: {
setup (props) {
const { mode, captchaType, type, blockSize, explain } = toRefs(props)
const { proxy } = getCurrentInstance()
const secretKey = ref('') // ase
const passFlag = ref('') //
const backImgBase = ref('') //
const blockBackImgBase = ref('') //
const backToken = ref('') // token
const startMoveTime = ref('') //
const endMovetime = ref('') //
const tipsBackColor = ref('') //
const tipWords = ref('')
const text = ref('')
const finishText = ref('')
const setSize = reactive({
imgHeight: 0,
imgWidth: 0,
barHeight: 0,
barWidth: 0
},
top: 0,
left: 0,
moveBlockLeft: undefined,
leftBarWidth: undefined,
})
const top = ref(0)
const left = ref(0)
const moveBlockLeft = ref(undefined)
const leftBarWidth = ref(undefined)
//
moveBlockBackgroundColor: undefined,
leftBarBorderColor: '#ddd',
iconColor: undefined,
iconClass: 'icon-right',
status: false, //
isEnd: false, //
showRefresh: true,
transitionLeft: '',
transitionWidth: ''
const moveBlockBackgroundColor = ref(undefined)
const leftBarBorderColor = ref('#ddd')
const iconColor = ref(undefined)
const iconClass = ref('icon-right')
const status = ref(false) //
const isEnd = ref(false) //
const showRefresh = ref(true)
const transitionLeft = ref('')
const transitionWidth = ref('')
const startLeft = ref(0)
const barArea = computed(() => {
return proxy.$el.querySelector('.verify-bar-area')
})
function init () {
text.value = explain.value
getPictrue()
nextTick(() => {
const { imgHeight, imgWidth, barHeight, barWidth } = resetSize(proxy)
setSize.imgHeight = imgHeight
setSize.imgWidth = imgWidth
setSize.barHeight = barHeight
setSize.barWidth = barWidth
proxy.$parent.$emit('ready', proxy)
})
window.removeEventListener('touchmove', (e) => {
move(e)
})
window.removeEventListener('mousemove', (e) => {
move(e)
})
//
window.removeEventListener('touchend', () => {
end()
})
window.removeEventListener('mouseup', () => {
end()
})
window.addEventListener('touchmove', (e) => {
move(e)
})
window.addEventListener('mousemove', (e) => {
move(e)
})
//
window.addEventListener('touchend', () => {
end()
})
window.addEventListener('mouseup', () => {
end()
})
}
},
computed: {
barArea() {
return this.$el.querySelector('.verify-bar-area')
},
resetSize() {
return resetSize
}
},
watch: {
// type
type: {
immediate: true,
handler() {
this.init()
}
}
},
mounted() {
watch(type, () => {
init()
})
onMounted(() => {
//
this.$el.onselectstart = function() {
init()
proxy.$el.onselectstart = function () {
return false
}
console.log(this.defaultImg)
},
methods: {
init() {
this.text = this.explain
this.getPictrue()
this.$nextTick(() => {
const setSize = this.resetSize(this) //
for (const key in setSize) {
this.$set(this.setSize, key, setSize[key])
}
this.$parent.$emit('ready', this)
})
var _this = this
window.removeEventListener('touchmove', function(e) {
_this.move(e)
})
window.removeEventListener('mousemove', function(e) {
_this.move(e)
})
//
window.removeEventListener('touchend', function() {
_this.end()
})
window.removeEventListener('mouseup', function() {
_this.end()
})
window.addEventListener('touchmove', function(e) {
_this.move(e)
})
window.addEventListener('mousemove', function(e) {
_this.move(e)
})
//
window.addEventListener('touchend', function() {
_this.end()
})
window.addEventListener('mouseup', function() {
_this.end()
})
},
//
start: function(e) {
function start (e) {
e = e || window.event
let x
if (!e.touches) { // PC
var x = e.clientX
x = e.clientX
} else { //
var x = e.touches[0].pageX
x = e.touches[0].pageX
}
this.startLeft = Math.floor(x - this.barArea.getBoundingClientRect().left)
this.startMoveTime = +new Date() //
if (this.isEnd == false) {
this.text = ''
this.moveBlockBackgroundColor = '#337ab7'
this.leftBarBorderColor = '#337AB7'
this.iconColor = '#fff'
startLeft.value = Math.floor(x - barArea.value.getBoundingClientRect().left)
startMoveTime.value = Date.now() //
if (isEnd.value === false) {
text.value = ''
moveBlockBackgroundColor.value = '#337ab7'
leftBarBorderColor.value = '#337AB7'
iconColor.value = '#fff'
e.stopPropagation()
this.status = true
status.value = true
}
}
},
//
move: function(e) {
function move (e) {
e = e || window.event
if (this.status && this.isEnd == false) {
let x
if (status.value && isEnd.value === false) {
if (!e.touches) { // PC
var x = e.clientX
x = e.clientX
} else { //
var x = e.touches[0].pageX
x = e.touches[0].pageX
}
var bar_area_left = this.barArea.getBoundingClientRect().left
var move_block_left = x - bar_area_left // left
if (move_block_left >= this.barArea.offsetWidth - parseInt(parseInt(this.blockSize.width) / 2) - 2) {
move_block_left = this.barArea.offsetWidth - parseInt(parseInt(this.blockSize.width) / 2) - 2
const bar_area_left = barArea.value.getBoundingClientRect().left
let move_block_left = x - bar_area_left // left
if (move_block_left >= barArea.value.offsetWidth - Number.parseInt(Number.parseInt(blockSize.value.width) / 2) - 2) {
move_block_left = barArea.value.offsetWidth - Number.parseInt(Number.parseInt(blockSize.value.width) / 2) - 2
}
if (move_block_left <= 0) {
move_block_left = parseInt(parseInt(this.blockSize.width) / 2)
move_block_left = Number.parseInt(Number.parseInt(blockSize.value.width) / 2)
}
// left
this.moveBlockLeft = (move_block_left - this.startLeft) + 'px'
this.leftBarWidth = (move_block_left - this.startLeft) + 'px'
moveBlockLeft.value = `${move_block_left - startLeft.value}px`
leftBarWidth.value = `${move_block_left - startLeft.value}px`
}
}
},
//
end: function() {
this.endMovetime = +new Date()
var _this = this
function end () {
endMovetime.value = Date.now()
//
if (this.status && this.isEnd == false) {
var moveLeftDistance = parseInt((this.moveBlockLeft || '').replace('px', ''))
moveLeftDistance = moveLeftDistance * 310 / parseInt(this.setSize.imgWidth)
if (status.value && isEnd.value === false) {
let moveLeftDistance = Number.parseInt((moveBlockLeft.value || '').replace('px', ''))
moveLeftDistance = moveLeftDistance * 310 / Number.parseInt(setSize.imgWidth)
const data = {
captchaType: this.captchaType,
'pointJson': this.secretKey ? aesEncrypt(JSON.stringify({ x: moveLeftDistance, y: 5.0 }), this.secretKey) : JSON.stringify({ x: moveLeftDistance, y: 5.0 }),
'token': this.backToken
captchaType: captchaType.value,
pointJson: secretKey.value ? aesEncrypt(JSON.stringify({ x: moveLeftDistance, y: 5.0 }), secretKey.value) : JSON.stringify({ x: moveLeftDistance, y: 5.0 }),
token: backToken.value
}
reqCheck(data).then(res => {
res = res.data
if (res.repCode == '0000') {
this.moveBlockBackgroundColor = '#5cb85c'
this.leftBarBorderColor = '#5cb85c'
this.iconColor = '#fff'
this.iconClass = 'icon-check'
this.showRefresh = false
this.isEnd = true
if (this.mode == 'pop') {
if (res.data.repCode === '0000') {
moveBlockBackgroundColor.value = '#5cb85c'
leftBarBorderColor.value = '#5cb85c'
iconColor.value = '#fff'
iconClass.value = 'icon-check'
showRefresh.value = false
isEnd.value = true
if (mode.value === 'pop') {
setTimeout(() => {
this.$parent.clickShow = false
this.refresh()
proxy.$parent.clickShow = false
refresh()
}, 1500)
}
this.passFlag = true
this.tipWords = `${((this.endMovetime - this.startMoveTime) / 1000).toFixed(2)}s验证成功`
var captchaVerification = this.secretKey ? aesEncrypt(this.backToken + '---' + JSON.stringify({ x: moveLeftDistance, y: 5.0 }), this.secretKey) : this.backToken + '---' + JSON.stringify({ x: moveLeftDistance, y: 5.0 })
passFlag.value = true
tipWords.value = `${((endMovetime.value - startMoveTime.value) / 1000).toFixed(2)}s验证成功`
const captchaVerification = secretKey.value ? aesEncrypt(`${backToken.value}---${JSON.stringify({ x: moveLeftDistance, y: 5.0 })}`, secretKey.value) : `${backToken.value}---${JSON.stringify({ x: moveLeftDistance, y: 5.0 })}`
setTimeout(() => {
this.tipWords = ''
this.$parent.closeBox()
this.$parent.$emit('success', { captchaVerification })
tipWords.value = ''
proxy.$parent.closeBox()
proxy.$parent.$emit('success', { captchaVerification })
}, 1000)
} else {
this.moveBlockBackgroundColor = '#d9534f'
this.leftBarBorderColor = '#d9534f'
this.iconColor = '#fff'
this.iconClass = 'icon-close'
this.passFlag = false
setTimeout(function() {
_this.refresh()
}, 1000)
this.$parent.$emit('error', this)
this.tipWords = '验证失败'
moveBlockBackgroundColor.value = '#d9534f'
leftBarBorderColor.value = '#d9534f'
iconColor.value = '#fff'
iconClass.value = 'icon-close'
passFlag.value = false
setTimeout(() => {
this.tipWords = ''
refresh()
}, 1000)
proxy.$parent.$emit('error', proxy)
tipWords.value = '验证失败'
setTimeout(() => {
tipWords.value = ''
}, 1000)
}
})
this.status = false
status.value = false
}
}
},
refresh: function() {
this.showRefresh = true
this.finishText = ''
const refresh = () => {
showRefresh.value = true
finishText.value = ''
this.transitionLeft = 'left .3s'
this.moveBlockLeft = 0
transitionLeft.value = 'left .3s'
moveBlockLeft.value = 0
this.leftBarWidth = undefined
this.transitionWidth = 'width .3s'
leftBarWidth.value = undefined
transitionWidth.value = 'width .3s'
this.leftBarBorderColor = '#ddd'
this.moveBlockBackgroundColor = '#fff'
this.iconColor = '#000'
this.iconClass = 'icon-right'
this.isEnd = false
leftBarBorderColor.value = '#ddd'
moveBlockBackgroundColor.value = '#fff'
iconColor.value = '#000'
iconClass.value = 'icon-right'
isEnd.value = false
this.getPictrue()
getPictrue()
setTimeout(() => {
this.transitionWidth = ''
this.transitionLeft = ''
this.text = this.explain
transitionWidth.value = ''
transitionLeft.value = ''
text.value = explain.value
}, 300)
},
}
//
getPictrue() {
function getPictrue () {
const data = {
captchaType: this.captchaType,
clientUid: localStorage.getItem('slider'),
ts: Date.now(), //
captchaType: captchaType.value,
clientUid: localStorage.getItem('b2cSlider'),
ts: Date.now() //
}
reqGet(data).then(res => {
if (res.data.repCode == '0000') {
this.backImgBase = res.data.repData.originalImageBase64
this.blockBackImgBase = res.data.repData.jigsawImageBase64
this.backToken = res.data.repData.token
this.secretKey = res.data.repData.secretKey
if (res.data.repCode === '0000') {
backImgBase.value = res.data.repData.originalImageBase64
blockBackImgBase.value = res.data.repData.jigsawImageBase64
backToken.value = res.data.repData.token
secretKey.value = res.data.repData.secretKey
} else {
this.tipWords = res.data.repMsg
}
//
if (res.data.repCode == '6201') {
this.backImgBase = null
this.blockBackImgBase = null
tipWords.value = res.data.repMsg
}
})
},
},
}
return {
secretKey, // ase
passFlag, //
backImgBase, //
blockBackImgBase, //
backToken, // token
startMoveTime, //
endMovetime, //
tipsBackColor, //
tipWords,
text,
finishText,
setSize,
top,
left,
moveBlockLeft,
leftBarWidth,
//
moveBlockBackgroundColor,
leftBarBorderColor,
iconColor,
iconClass,
status, //
isEnd, //
showRefresh,
transitionLeft,
transitionWidth,
barArea,
refresh,
start
}
}
}
</script>

View File

@ -2,12 +2,13 @@
* 此处可直接引用自己项目封装好的 axios 配合后端联调
*/
import httpRequest from '@/utils/httpRequest'
import request from './../utils/axios' // 组件内部封装的axios
// import request from "@/api/axios.js" //调用项目封装的axios
// 获取验证图片 以及token
export function reqGet (data) {
return httpRequest({
url: httpRequest.adornUrl('/captcha/get'),
return request({
url: '/captcha/get',
method: 'post',
data
})
@ -15,10 +16,9 @@ export function reqGet (data) {
// 滑动或者点选验证
export function reqCheck (data) {
return httpRequest({
url: httpRequest.adornUrl('/captcha/check'),
return request({
url: '/captcha/check',
method: 'post',
data
})
}

View File

@ -3,9 +3,9 @@ import CryptoJS from 'crypto-js'
* @word 要加密的内容
* @keyWord String 服务器随机返回的关键字
* */
export function aesEncrypt(word, keyWord = 'XwKsGlMcdPMEhR1B') {
var key = CryptoJS.enc.Utf8.parse(keyWord)
var srcs = CryptoJS.enc.Utf8.parse(word)
var encrypted = CryptoJS.AES.encrypt(srcs, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 })
export function aesEncrypt (word, keyWord = 'XwKsGlMcdPMEhR1B') {
const key = CryptoJS.enc.Utf8.parse(keyWord)
const srcs = CryptoJS.enc.Utf8.parse(word)
const encrypted = CryptoJS.AES.encrypt(srcs, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 })
return encrypted.toString()
}

View File

@ -0,0 +1,27 @@
import axios from 'axios'
axios.defaults.baseURL = import.meta.env.VITE_APP_BASE_API
const service = axios.create({
timeout: 40000,
headers: {
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/json; charset=UTF-8'
}
})
service.interceptors.request.use(
config => {
return config
},
error => {
Promise.reject(error)
}
)
// response interceptor
service.interceptors.response.use(
response => {
return response.data
}
)
export default service

View File

@ -1,31 +1,30 @@
export function resetSize(vm) {
var img_width, img_height, bar_width, bar_height // 图片的宽度、高度,移动条的宽度、高度
var parentWidth = vm.$el.parentNode.offsetWidth || window.offsetWidth
var parentHeight = vm.$el.parentNode.offsetHeight || window.offsetHeight
export function resetSize (vm) {
let img_width, img_height, bar_width, bar_height // 图片的宽度、高度,移动条的宽度、高度
const parentWidth = vm.$el.parentNode.offsetWidth || window.offsetWidth
const parentHeight = vm.$el.parentNode.offsetHeight || window.offsetHeight
if (vm.imgSize.width.indexOf('%') != -1) {
img_width = parseInt(this.imgSize.width) / 100 * parentWidth + 'px'
img_width = parseInt(vm.imgSize.width) / 100 * parentWidth + 'px'
} else {
img_width = this.imgSize.width
img_width = vm.imgSize.width
}
if (vm.imgSize.height.indexOf('%') != -1) {
img_height = parseInt(this.imgSize.height) / 100 * parentHeight + 'px'
img_height = parseInt(vm.imgSize.height) / 100 * parentHeight + 'px'
} else {
img_height = this.imgSize.height
img_height = vm.imgSize.height
}
if (vm.barSize.width.indexOf('%') != -1) {
bar_width = parseInt(this.barSize.width) / 100 * parentWidth + 'px'
bar_width = parseInt(vm.barSize.width) / 100 * parentWidth + 'px'
} else {
bar_width = this.barSize.width
bar_width = vm.barSize.width
}
if (vm.barSize.height.indexOf('%') != -1) {
bar_height = parseInt(this.barSize.height) / 100 * parentHeight + 'px'
bar_height = parseInt(vm.barSize.height) / 100 * parentHeight + 'px'
} else {
bar_height = this.barSize.height
bar_height = vm.barSize.height
}
return { imgWidth: img_width, imgHeight: img_height, barWidth: bar_width, barHeight: bar_height }

View File

@ -1,70 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '表单名称',
prop: 'formName',
search: true
}, {
label: '按钮文本',
prop: 'buttonName',
search: true
}, {
label: '提交次数',
prop: 'submitNum',
type: 'select',
dicData: [
{
label: '不做限制',
value: 0
}, {
label: '每个IP限填一次',
value: 1
}
]
}, {
label: '开启验证',
prop: 'needValidation',
type: 'select',
dicData: [
{
label: '不需要',
value: 0
}, {
label: '需要',
value: 1
}
]
}, {
label: '提交权限',
prop: 'submitPerm',
type: 'select',
dicData: [
{
label: '所有人',
value: 0
}, {
label: '仅会员可提交',
value: 1
}
]
}]
}

View File

@ -1,47 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '轮播图片',
prop: 'imgUrl',
type: 'upload',
slot: true,
listType: 'picture-img'
}, {
label: '顺序',
prop: 'seq'
}, {
width: 150,
label: '状态',
prop: 'status',
search: true,
type: 'select',
dicData: [
{
label: '禁用',
value: 0
}, {
label: '正常',
value: 1
}
]
}]
}

View File

@ -1,52 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: false,
indexLabel: '序号',
selection: true,
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '创建时间',
prop: 'createTime'
},
{
label: '姓名',
prop: 'userName',
search: true
}, {
label: '邮箱',
prop: 'email'
}, {
label: '联系方式',
prop: 'contact'
}, {
label: '审核',
prop: 'status',
search: true,
slot: true,
type: 'select',
dicData: [
{
label: '未审核',
value: 0
}, {
label: '审核通过',
value: 1
}
]
}]
}

View File

@ -1,77 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
align: 'center',
addBtn: false,
editBtn: false,
delBtn: false,
column: [
{
label: '商品名',
prop: 'prodName',
search: true
},
{
label: '用户昵称',
prop: 'nickName',
slot: true
},
{
label: '记录时间',
prop: 'recTime',
width: '200'
},
{
label: '回复时间',
slot: true,
prop: 'replyTime',
width: '200',
dicData: [
{
label: '无',
value: ''
}
]
},
{
label: '评价得分',
prop: 'score'
},
{
label: '是否匿名',
prop: 'isAnonymous',
dicData: [
{
label: '否',
value: 0
}, {
label: '是',
value: 1
}
]
},
{
prop: 'status',
label: '审核状态',
search: true,
type: 'select',
dicData: [
{
label: '待审核',
value: 0
}, {
label: '审核通过',
value: 1
}, {
label: '审核未通过',
value: -1
}
]
}
]
}

View File

@ -1,59 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '产品名字',
prop: 'prodName',
search: true
}, {
label: '商品原价',
prop: 'oriPrice'
}, {
label: '商品现价',
prop: 'price'
}, {
label: '商品库存',
prop: 'totalStocks'
}, {
label: '产品图片',
prop: 'pic',
type: 'upload',
width: 150,
listType: 'picture-img'
}, {
width: 150,
label: '状态',
prop: 'status',
search: true,
slot: true,
type: 'select',
dicData: [
{
label: '未上架',
value: 0
}, {
label: '上架',
value: 1
}
]
}]
}

View File

@ -1,46 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
align: 'center',
addBtn: false,
editBtn: false,
delBtn: false,
column: [
{
label: '标签名称',
prop: 'title',
search: true,
slot: true
},
{
label: '状态',
prop: 'status',
type: 'select',
slot: true,
search: true,
dicData: [
{
label: '禁用',
value: 0
}, {
label: '正常',
value: 1
}
]
},
{
label: '默认类型',
prop: 'isDfault',
slot: true
},
{
label: '排序',
prop: 'seq'
}
]
}

View File

@ -1,30 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
viewBtn: false,
delBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '属性名称',
prop: 'propName',
search: true
}, {
label: '属性值',
prop: 'prodPropValues',
slot: true
}]
}

View File

@ -1,52 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: false,
selection: true,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
align: 'center',
addBtn: false,
editBtn: false,
delBtn: false,
column: [
{
label: '热搜标题',
prop: 'title',
search: true
},
{
label: '热搜内容',
prop: 'content',
search: true
},
{
label: '录入时间',
prop: 'recDate',
sortable: true
},
{
label: '顺序',
prop: 'seq',
sortable: true
},
{
label: '启用状态',
prop: 'status',
type: 'select',
slot: true,
search: true,
dicData: [
{
label: '未启用',
value: 0
}, {
label: '启用',
value: 1
}
]
}
]
}

View File

@ -1,52 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
align: 'center',
addBtn: false,
editBtn: false,
delBtn: false,
column: [
{
label: '公告内容',
prop: 'title',
search: true
},
{
label: '状态',
prop: 'status',
search: true,
slot: true,
type: 'select',
dicData: [
{
label: '撤销',
value: 0
}, {
label: '公布',
value: 1
}
]
},
{
label: '是否置顶',
prop: 'isTop',
search: true,
slot: true,
type: 'select',
dicData: [
{
label: '否',
value: 0
}, {
label: '是',
value: 1
}
]
}
]
}

View File

@ -1,43 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: false,
selection: true,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
viewBtn: false,
delBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [
{
label: '自提点名称',
prop: 'addrName',
search: true
}, {
label: '手机号',
prop: 'mobile'
}, {
label: '省份',
prop: 'province'
}, {
label: '城市',
prop: 'city'
}, {
label: '区/县',
prop: 'area'
}, {
label: '地址',
prop: 'addr'
}]
}

View File

@ -1,27 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: false,
selection: true,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '模板名称',
prop: 'transName',
search: true
}]
}

View File

@ -1,30 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
align: 'center',
addBtn: false,
editBtn: false,
column: [
{
label: '',
prop: 'areaId'
},
{
label: '',
prop: 'areaName'
},
{
label: '',
prop: 'parentId'
},
{
label: '',
prop: 'level'
}
]
}

View File

@ -1,33 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '参数名',
prop: 'paramKey',
search: true
}, {
label: '参数值',
prop: 'paramValue'
}, {
label: '备注',
prop: 'remark'
}]
}

View File

@ -1,47 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
menu: false, // 移除操作栏
selection: true,
index: false,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '用户名',
prop: 'username',
search: true
}, {
label: '用户操作',
prop: 'operation',
search: true
}, {
label: '请求方法',
prop: 'method'
}, {
label: '请求参数',
prop: 'params'
}, {
label: '执行时长(毫秒)',
prop: 'time'
}, {
label: 'IP地址',
prop: 'ip'
}, {
label: '创建时间',
prop: 'createDate'
}]
}

View File

@ -1,33 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '角色名称',
prop: 'roleName',
search: true
}, {
label: '备注',
prop: 'remark'
}, {
label: '创建时间',
prop: 'createTime'
}]
}

View File

@ -1,50 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
selection: true,
index: false,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '用户名',
prop: 'username',
search: true
}, {
label: '邮箱',
prop: 'email'
}, {
label: '手机号',
prop: 'mobile'
}, {
label: '创建时间',
prop: 'createTime'
}, {
label: '状态',
prop: 'status',
type: 'select',
dicData: [
{
label: '禁用',
value: 0
}, {
label: '正常',
value: 1
}
]
}]
}

View File

@ -1,80 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
index: true,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
align: 'center',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
column: [
{
label: '收货人名称',
prop: 'receiver'
},
{
label: '省',
prop: 'province'
},
{
label: '城市',
prop: 'city'
},
{
label: '区',
prop: 'area'
},
{
label: '地址',
prop: 'addr'
},
{
label: '邮编',
prop: 'postCode'
},
{
label: '手机',
prop: 'mobile'
},
{
label: '状态',
prop: 'status',
search: true,
type: 'select',
dicData: [
{
label: '无效',
value: 0
}, {
label: '正常',
value: 1
}
]
},
{
label: '默认地址',
prop: 'commonAddr',
dicData: [
{
label: '否',
value: 0
}, {
label: '是',
value: 1
}
]
},
{
label: '建立时间',
prop: 'createTime'
},
{
label: '更新时间',
prop: 'updateTime'
}
]
}

View File

@ -1,53 +0,0 @@
export const tableOption = {
searchMenuSpan: 6,
columnBtn: false,
border: true,
// selection: true,
index: false,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
menuWidth: 350,
align: 'center',
refreshBtn: true,
searchSize: 'mini',
addBtn: false,
editBtn: false,
delBtn: false,
viewBtn: false,
props: {
label: 'label',
value: 'value'
},
column: [{
label: '用户昵称',
prop: 'nickName',
search: true
}, {
label: '用户头像',
prop: 'pic',
type: 'upload',
imgWidth: 150,
listType: 'picture-img',
slot: true
}, {
label: '状态',
prop: 'status',
search: true,
type: 'select',
slot: true,
dicData: [
{
label: '禁用',
value: 0
}, {
label: '正常',
value: 1
}
]
}, {
label: '注册时间',
prop: 'userRegtime',
imgWidth: 150
}]
}

File diff suppressed because one or more lines are too long

View File

@ -1,156 +0,0 @@
/**
* UI组件, 统一使用饿了么桌面端组件库(https://github.com/ElemeFE/element
*
* 使用:
* 1. 项目中需要的组件进行释放(解开注释)
*
* 注意:
* 1. 打包只会包含释放(解开注释)的组件, 减少打包文件大小
*/
import Vue from 'vue'
import {
Scrollbar,
Pagination,
Dialog,
Autocomplete,
Dropdown,
DropdownMenu,
DropdownItem,
Menu,
Submenu,
MenuItem,
MenuItemGroup,
Input,
InputNumber,
Radio,
RadioGroup,
RadioButton,
Checkbox,
CheckboxButton,
CheckboxGroup,
Switch,
Select,
Option,
OptionGroup,
Button,
ButtonGroup,
Table,
TableColumn,
DatePicker,
TimeSelect,
TimePicker,
Popover,
Tooltip,
Breadcrumb,
BreadcrumbItem,
Form,
FormItem,
Tabs,
TabPane,
Tag,
Tree,
Alert,
Slider,
Icon,
Row,
Col,
Upload,
Progress,
Badge,
Card,
Rate,
Steps,
Step,
Carousel,
CarouselItem,
Collapse,
CollapseItem,
Cascader,
ColorPicker,
Transfer,
Container,
Header,
Aside,
Main,
Footer,
Loading,
MessageBox,
Message,
Notification
} from 'element-ui'
Vue.use(Pagination)
Vue.use(Dialog)
Vue.use(Autocomplete)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Input)
Vue.use(InputNumber)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(RadioButton)
Vue.use(Checkbox)
Vue.use(CheckboxButton)
Vue.use(CheckboxGroup)
Vue.use(Switch)
Vue.use(Select)
Vue.use(Option)
Vue.use(OptionGroup)
Vue.use(Button)
Vue.use(ButtonGroup)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(DatePicker)
Vue.use(TimeSelect)
Vue.use(TimePicker)
Vue.use(Popover)
Vue.use(Tooltip)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Tag)
Vue.use(Tree)
Vue.use(Alert)
Vue.use(Slider)
Vue.use(Icon)
Vue.use(Row)
Vue.use(Col)
Vue.use(Upload)
Vue.use(Progress)
Vue.use(Badge)
Vue.use(Card)
Vue.use(Rate)
Vue.use(Steps)
Vue.use(Step)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(Collapse)
Vue.use(CollapseItem)
Vue.use(Cascader)
Vue.use(ColorPicker)
Vue.use(Transfer)
Vue.use(Container)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Footer)
Vue.use(Scrollbar)
Vue.use(Loading.directive)
Vue.prototype.$loading = Loading.service
Vue.prototype.$msgbox = MessageBox
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
Vue.prototype.$notify = Notification
Vue.prototype.$message = Message
Vue.prototype.$ELEMENT = { size: 'medium' }

47
src/icons/SvgIcon.vue Normal file
View File

@ -0,0 +1,47 @@
<template>
<svg
:class="svgClass"
aria-hidden="true"
>
<use :xlink:href="iconName" />
</svg>
</template>
<script setup lang="ts">
const props = defineProps({
iconClass: {
type: String,
required: true
},
className: {
type: String,
default: ''
}
})
const iconName = computed(() => `#icon-${props.iconClass}`)
const svgClass = computed(() => {
if (props.className) {
return `svg-icon ${props.className}`
}
return 'svg-icon'
})
</script>
<style scoped lang="scss">
.sub-el-icon,
.nav-icon {
display: inline-block;
font-size: 15px;
margin-right: 12px;
position: relative;
}
.svg-icon {
width: 1em;
height: 1em;
position: relative;
fill: currentColor;
vertical-align: -2px;
}
</style>

View File

View File

@ -1,27 +0,0 @@
/**
* 字体图标, 统一使用SVG Sprite矢量图标(http://www.iconfont.cn/
* 8a8a8a 32
* 使用:
* 1. 在阿里矢量图标站创建一个项目, 并添加图标(这一步非必须, 创建方便项目图标管理)
* 2-1. 添加icon, 选中新增的icon图标, 复制代码 -> 下载 -> SVG下载 -> 粘贴代码(重命名)
* 2-2. 添加icons, 下载图标库对应[iconfont.js]文件, 替换项目[./iconfont.js]文件
* 3. 组件模版中使用 [<icon-svg name="canyin"></icon-svg>]
*
* 注意:
* 1. 通过2-2 添加icons, getNameList方法无法返回对应数据
*/
import Vue from 'vue'
import IconSvg from '@/components/icon-svg'
import './iconfont.js'
Vue.component('IconSvg', IconSvg)
const svgFiles = require.context('./svg', true, /\.svg$/)
const iconList = svgFiles.keys().map(item => svgFiles(item))
export default {
// 获取图标icon-(*).svg名称列表, 例如[shouye, xitong, zhedie, ...]
getNameList () {
return iconList.map(item => item.default.id.split('-')[1])
}
}

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662615995358" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3254" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M32 136.53333333a32 32 0 0 1 32-32h896a32 32 0 0 1 0 64H64A32 32 0 0 1 32 136.53333333z" p-id="3255"></path><path d="M448 735.63733333a32 32 0 0 0-53.248-35.456l-128 192A32 32 0 0 0 320 927.57333333l128-192zM586.752 735.63733333a32 32 0 0 1 53.248-35.456l128 192a32 32 0 1 1-53.248 35.456l-128-192z" p-id="3256"></path><path d="M792.128 307.54133333a32 32 0 0 1-3.136 45.12L631.488 489.81333333a32 32 0 0 1-33.344 5.376l-178.56-74.624-142.592 124.16a32 32 0 1 1-41.984-48.32L392.512 359.25333333a32 32 0 0 1 33.344-5.376l178.56 74.624 142.592-124.16a32 32 0 0 1 45.12 3.2z" p-id="3257"></path><path d="M160 136.53333333v512a32 32 0 0 0 32 32h640a32 32 0 0 0 32-32V136.53333333h64v512a96 96 0 0 1-96 96H192A96 96 0 0 1 96 648.53333333V136.53333333h64z" p-id="3258"></path></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14.467" height="13.441" viewBox="0 0 14.467 13.441">
<path id="配送" d="M23.519,9.61v3.42a.5.5,0,0,1-.475.521h-.413v8a.9.9,0,0,1-.242.62.8.8,0,0,1-.585.257H10.866a.8.8,0,0,1-.584-.257.9.9,0,0,1-.243-.62v-8H9.629a.5.5,0,0,1-.477-.518V9.609a.5.5,0,0,1,.474-.521H23.042a.5.5,0,0,1,.477.519v0Zm-13.413,2.9H22.565V10.133H10.105v2.376ZM17.767,16.4V13.553h-2.92V16.4l1.293-.523a.441.441,0,0,1,.332,0l1.293.523Zm.312,1.24-1.771-.717-1.771.718a.468.468,0,0,1-.614-.309.566.566,0,0,1-.031-.182V13.552H11v7.833H21.678V13.552H18.722v3.594a.5.5,0,0,1-.477.522.441.441,0,0,1-.165-.033Z" transform="translate(-9.102 -9.038)" stroke-width="0.1" opacity="0.65"/>
</svg>

After

Width:  |  Height:  |  Size: 704 B

View File

@ -0,0 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" width="15.881" height="15.881" viewBox="0 0 15.881 15.881">
<defs>
<style>
.cls-1 {
opacity: 0.65;
}
.cls-2 {
}
</style>
</defs>
<g id="分销" class="cls-1" transform="translate(-85.325 -85.325)">
<path id="路径_4784" data-name="路径 4784" class="cls-2" d="M95.648,87.707a2.382,2.382,0,1,0-2.382,2.382A2.382,2.382,0,0,0,95.648,87.707Zm-1.191,0a1.191,1.191,0,1,1-1.191-1.191A1.191,1.191,0,0,1,94.457,87.707Zm-4.367,9.528a2.382,2.382,0,1,0-2.382,2.382A2.382,2.382,0,0,0,90.089,97.236Zm-1.191,0a1.191,1.191,0,1,1-1.191-1.191A1.191,1.191,0,0,1,88.9,97.236Zm9.926,2.382a2.382,2.382,0,1,0-2.382-2.382A2.382,2.382,0,0,0,98.824,99.618Zm0-1.191a1.191,1.191,0,1,1,1.191-1.191A1.191,1.191,0,0,1,98.824,98.427Z" transform="translate(0 0)"/>
<path id="路径_4785" data-name="路径 4785" class="cls-2" d="M135.063,233.089a5.733,5.733,0,0,0-2.479,4.3,3.575,3.575,0,0,0-1.358.334,7.079,7.079,0,0,1,3.446-5.962,3.6,3.6,0,0,0,.391,1.333Zm8.967,4.3a5.734,5.734,0,0,0-2.479-4.3,3.68,3.68,0,0,0,.391-1.333,7.08,7.08,0,0,1,3.446,5.96A3.629,3.629,0,0,0,144.03,237.385Zm-5.725,6.186a5.69,5.69,0,0,0,2.479-.569,3.627,3.627,0,0,0,.962,1.01,7.035,7.035,0,0,1-6.888,0,3.573,3.573,0,0,0,.967-1.01A5.731,5.731,0,0,0,138.306,243.57Z" transform="translate(-45.047 -143.706)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14.223" height="15.664" viewBox="0 0 14.223 15.664">
<defs>
<style>
.cls-1 {
stroke-width: 0.1px;
opacity: 0.65;
}
</style>
</defs>
<path id="财务" class="cls-1" d="M97.783,6.155a1.755,1.755,0,0,1,1.084,0l5.124,1.689a1.855,1.855,0,0,1,1.326,1.73V15.3l-.048.211a6.226,6.226,0,0,1-1.79,3.277,19.692,19.692,0,0,1-4.957,2.759l-.193.084-.415-.173a17.759,17.759,0,0,1-4.73-2.667A6.17,6.17,0,0,1,91.2,15.334l-.008-.039V9.585A1.856,1.856,0,0,1,92.533,7.85Zm.771.8a.752.752,0,0,0-.465,0L92.839,8.65a1,1,0,0,0-.721.934v5.629l.027.12a5.313,5.313,0,0,0,1.566,2.74l.114.1A16.468,16.468,0,0,0,98.095,20.6l.224.1.406-.18a17.859,17.859,0,0,0,4.035-2.271l.069-.061a5.524,5.524,0,0,0,1.572-3.01l-.01.04V9.577a.991.991,0,0,0-.647-.908l-.067-.024Zm2.522,3.006a.4.4,0,0,1,.084.561l-.03.037-2,2.16h1.9a.447.447,0,0,1,.467.4.438.438,0,0,1-.42.444l-.047,0H98.593v.824h2.432a.447.447,0,0,1,.463.4.438.438,0,0,1-.416.444l-.047,0H98.593v2.166a.442.442,0,0,1-.439.425.452.452,0,0,1-.484-.381l0-.043V15.242H95.316a.447.447,0,0,1-.459-.4.437.437,0,0,1,.412-.444l.047,0h2.352v-.825H95.192a.447.447,0,0,1-.459-.4.437.437,0,0,1,.412-.444l.047,0h1.958l-1.943-2.165a.4.4,0,0,1,.044-.582.493.493,0,0,1,.636.008l.034.034,2.215,2.467,2.289-2.472a.492.492,0,0,1,.652-.049Z" transform="translate(-91.144 -6.018)"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="13.557" height="15.566" viewBox="0 0 13.557 15.566">
<g id="拼团" transform="translate(-142.222 -85.333)" opacity="0.65">
<path id="路径_4647" stroke="none" data-name="路径 4647" d="M155.311,90.338a1.222,1.222,0,0,0-1.228-1.192h-.709l-.03-.148a4.492,4.492,0,0,0-4.172-3.665A4.4,4.4,0,0,0,145.018,89l-.03.148h-1.069a1.222,1.222,0,0,0-1.228,1.192l-.469,9.35v.01a1.218,1.218,0,0,0,1.228,1.2h11.1a1.218,1.218,0,0,0,1.228-1.2Zm-9.235-1.389a3.407,3.407,0,0,1,3.075-2.69,3.46,3.46,0,0,1,3.075,2.69l.06.216h-6.271l.06-.216Zm8.346,11.014H143.57a.335.335,0,0,1-.219-.089.268.268,0,0,1-.08-.236l.43-9.212a.3.3,0,0,1,.309-.286h9.983a.3.3,0,0,1,.309.3l.429,9.211a.305.305,0,0,1-.309.315Z"/>
<path id="路径_4648" stroke="none" data-name="路径 4648" d="M292.981,428.114a.525.525,0,0,1-.539.5.111.111,0,0,1-.061-.01l-.02-.009h-.508v4.515a.226.226,0,0,0,.01.076v.029a.541.541,0,0,1-1.077-.01v-.038l.01-.029v-3.61l-3.973,3.572c-.01.019-.031.029-.041.048a.029.029,0,0,0-.01.019.566.566,0,0,1-.752,0,.464.464,0,0,1-.163-.333.488.488,0,0,1,.132-.343c.01-.01.03-.019.041-.038a.256.256,0,0,1,.061-.048l4.237-3.81h-5.234a.269.269,0,0,0-.081.01h-.03a.518.518,0,0,1-.539-.5.525.525,0,0,1,.539-.5h.04l.031.01H290.8v-.362a.227.227,0,0,0-.01-.077v-.029a.541.541,0,0,1,1.077.01v.029l-.01.029v.419h.417v-.01h.172a.517.517,0,0,1,.539.486Z" transform="translate(-139.712 -335.307)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,27 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="13.982" viewBox="0 0 14 13.982">
<defs>
<clipPath id="clip">
<use xlink:href="#fill"/>
</clipPath>
</defs>
<g id="直播" transform="translate(-2210 3200.982)" opacity="0.65">
<g id="矩形_2262" data-name="矩形 2262" transform="translate(2210 -3198.018)" fill="none" stroke-width="1">
<rect width="14" height="11.018" rx="2" stroke="none"/>
<rect x="0.5" y="0.5" width="13" height="10.018" rx="1.5" fill="none"/>
</g>
<g id="多边形_1" data-name="多边形 1" transform="translate(2220.5 -3195.509) rotate(90)" fill="none" stroke-width="1">
<path d="M2.143,1.429a1,1,0,0,1,1.715,0L5.091,3.486A1,1,0,0,1,4.234,5H1.766A1,1,0,0,1,.909,3.486Z"/>
<path d="M 2.999845504760742 1.943915605545044 L 1.766190052032471 3.999997615814209 L 4.233810424804688 4.000007629394531 L 2.999845504760742 1.943915605545044 M 3.000000238418579 0.9436526298522949 C 3.331645250320435 0.9436526298522949 3.66329026222229 1.105487823486328 3.857490301132202 1.429157733917236 L 5.091300010681152 3.485507726669312 C 5.491220474243164 4.152027606964111 5.011100292205811 4.999997615814209 4.233810424804688 4.999997615814209 L 1.766190052032471 4.999997615814209 C 0.9889001846313477 4.999997615814209 0.5087800025939941 4.152027606964111 0.9087004661560059 3.485507726669312 L 2.142510175704956 1.429157733917236 C 2.336710214614868 1.105487823486328 2.668355226516724 0.9436526298522949 3.000000238418579 0.9436526298522949 Z" stroke="none"/>
</g>
<g id="组_6837" data-name="组 6837" transform="translate(0.217 1)">
<g id="矩形_2263" data-name="矩形 2263" transform="translate(2212.067 -3201.482) rotate(-30)" stroke-width="1">
<rect width="1" height="4" rx="0.5" stroke="none"/>
<rect x="0.5" y="0.5" height="3" fill="none"/>
</g>
<g id="矩形_2264" data-name="矩形 2264" transform="translate(2219.5 -3198.018) rotate(-150)" stroke-width="1">
<rect id="fill" width="1" height="4" rx="0.5" stroke="none"/>
<path d="M0,0.5h0.9999456405639648M0.5,0v3.999976873397827M0.9999456405639648,3.499976873397827h-0.9999456405639648M0.49994564056396484,3.999976873397827v-3.999976873397827" fill="none" clip-path="url(#clip)"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1 @@
<svg t="1662618972710" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4319" width="200" height="200"><path d="M870.4 211.2h-76.8c12.8-51.2-12.8-102.4-57.6-128-57.6-38.4-128-19.2-160 38.4l-51.2 89.6h-19.2l-51.2-89.6C422.4 64 345.6 44.8 288 83.2c-44.8 25.6-70.4 76.8-57.6 128H153.6c-51.2 0-89.6 38.4-89.6 89.6v121.6c0 38.4 25.6 70.4 57.6 83.2v364.8c0 51.2 38.4 89.6 89.6 89.6h595.2c51.2 0 89.6-38.4 89.6-89.6V499.2c38.4-6.4 64-44.8 64-83.2V300.8c0-51.2-38.4-89.6-89.6-89.6zM320 134.4c32-19.2 64-6.4 83.2 19.2l32 57.6H294.4c-12.8-32 0-64 25.6-76.8zM480 896H211.2c-19.2 0-32-12.8-32-32V505.6h294.4V896z m0-448H153.6c-19.2 0-32-12.8-32-32V300.8c0-19.2 12.8-32 32-32h326.4V448z m147.2-294.4c12.8-25.6 51.2-38.4 83.2-19.2 25.6 12.8 38.4 51.2 25.6 76.8H595.2l32-57.6z m211.2 710.4c0 19.2-12.8 32-32 32H544V505.6h294.4v358.4z m64-448c0 19.2-12.8 32-32 32H544V268.8h326.4c19.2 0 32 12.8 32 32v115.2z" p-id="4320"></path></svg>

After

Width:  |  Height:  |  Size: 961 B

View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14.804" height="16.462" viewBox="0 0 14.804 16.462">
<g id="消息" transform="translate(-26.244 -125.91)">
<path id="路径_4640" data-name="路径 4640" d="M123.218,79.328h-9.826c-1.144,0-1.864-.245-2.2-.748a1.1,1.1,0,0,1-.113-1l.054-.094,1.708-2.234V72.429a5.573,5.573,0,0,1,4.479-5.444l.075-.007,1.9.007a5.573,5.573,0,0,1,4.479,5.444v2.827l1.763,2.328a1.1,1.1,0,0,1-.113,1C125.082,79.083,124.362,79.328,123.218,79.328Zm-11.382-1.4a.273.273,0,0,0,.047.2c.08.112.388.373,1.508.373h9.826c1.121,0,1.428-.261,1.508-.373a.271.271,0,0,0,.046-.2l-1.831-2.394V72.429a4.643,4.643,0,0,0-3.766-4.623h-1.742a4.662,4.662,0,0,0-3.767,4.623v3.107ZM119.754,67.5h-.828V66.461a.621.621,0,1,0-1.242,0V67.5h-.828V66.461a1.449,1.449,0,0,1,2.9,0ZM118.3,81.295a2.613,2.613,0,0,1-2.811-2.577h.828a2,2,0,0,0,3.967,0h.828A2.613,2.613,0,0,1,118.3,81.295Z" transform="translate(-84.659 60.988)" stroke="#fff" stroke-width="0.18" opacity="0.65"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 988 B

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662616004649" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3561" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M384 480a32 32 0 0 0-64 0v85.312a32 32 0 1 0 64 0V480zM554.624 394.688a32 32 0 1 0-64 0v170.624a32 32 0 0 0 64 0V394.688zM693.312 277.312a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0v-256a32 32 0 0 1 32-32z" p-id="3562"></path><path d="M160 128A96 96 0 0 0 64 224v426.688a96 96 0 0 0 96 96h330.688v96a32 32 0 0 0 1.792 10.688H266.624a32 32 0 0 0 0 64h512a32 32 0 0 0 0-64H552.832a32 32 0 0 0 1.792-10.688v-96h330.688a96 96 0 0 0 96-96V224a96 96 0 0 0-96-96H160zM128 224a32 32 0 0 1 32-32h725.312a32 32 0 0 1 32 32v426.688a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V224z" p-id="3563"></path></svg>

After

Width:  |  Height:  |  Size: 920 B

View File

@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14.537" height="14.537" viewBox="0 0 14.537 14.537">
<defs>
<style>
.cls-1 {
}
</style>
</defs>
<path id="积分" class="cls-1" d="M70.858,79.134a2.431,2.431,0,0,1,0-3.365,2.556,2.556,0,0,1-.676-1.684c0-2.257,3.292-3.9,7.269-3.9s7.269,1.646,7.269,3.9a2.558,2.558,0,0,1-.676,1.684,2.431,2.431,0,0,1,0,3.365,2.562,2.562,0,0,1,.676,1.681c0,2.257-3.292,3.9-7.269,3.9s-7.269-1.646-7.269-3.9a2.559,2.559,0,0,1,.676-1.681Zm.806.714a1.5,1.5,0,0,0-.405.967c0,1.46,2.734,2.827,6.192,2.827s6.192-1.367,6.192-2.827a1.5,1.5,0,0,0-.405-.967,11.873,11.873,0,0,1-11.573,0Zm11.573-3.365a11.872,11.872,0,0,1-11.572,0,1.5,1.5,0,0,0-.406.967c0,1.46,2.734,2.827,6.192,2.827s6.192-1.367,6.192-2.827a1.5,1.5,0,0,0-.405-.967Zm-5.787.429c3.458,0,6.192-1.367,6.192-2.827s-2.734-2.827-6.192-2.827-6.192,1.367-6.192,2.827S73.992,76.912,77.45,76.912Z" transform="translate(-70.182 -70.182)"/>
</svg>

After

Width:  |  Height:  |  Size: 944 B

View File

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="14.152" height="14.242" viewBox="0 0 14.152 14.242">
<g id="产品" transform="translate(-26.237 -238.89)" opacity="0.65">
<g id="组_6574" data-name="组 6574" transform="translate(-7.786 239)">
<path id="路径_4638" data-name="路径 4638" d="M46.353,0H35.836a1.777,1.777,0,0,0-1.7,1.8V12.32a1.688,1.688,0,0,0,1.7,1.7H46.353a1.688,1.688,0,0,0,1.7-1.7V1.8a1.656,1.656,0,0,0-1.7-1.8ZM35.836.9H46.353a.9.9,0,0,1,0,1.8H35.836a.9.9,0,0,1-.9-.9.968.968,0,0,1,.9-.9ZM46.353,13.121H35.836a.9.9,0,0,1-.9-.9V3.205a1.488,1.488,0,0,0,.9.2H46.353a2.924,2.924,0,0,0,.9-.2v9.014A.841.841,0,0,1,46.353,13.121Z" stroke="none" stroke-width="0.22"/>
<path id="路径_4639" data-name="路径 4639" d="M219.539,382.293a.883.883,0,0,0-.9.8,1.041,1.041,0,0,0,.4.8,3.036,3.036,0,0,1-6.01,0,1.041,1.041,0,0,0,.4-.8.908.908,0,0,0-1.8,0,1.021,1.021,0,0,0,.5.8,3.929,3.929,0,0,0,7.812,0,.793.793,0,0,0,.5-.8A.883.883,0,0,0,219.539,382.293Z" transform="translate(-174.889 -376.684)" stroke="none" stroke-width="0.22"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1 @@
<svg t="1630999344891" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2240" width="200" height="200"><path d="M979.2 158.848a32 32 0 0 0-38.4-23.936l-166.848 38.656a32 32 0 0 0-15.808 53.408L794.56 264.64l-194.56 173.568-101.024-95.68a32 32 0 0 0-45.152 1.152l-216.736 227.264A64 64 0 1 0 288 633.6c0-6.944-1.376-13.472-3.424-19.712l193.536-202.944 99.232 93.952a32 32 0 0 0 43.296 0.64L839.04 310.72l41.504 42.976a32 32 0 0 0 53.92-13.92l44.448-165.408a31.84 31.84 0 0 0 0.288-15.52z" p-id="2241"></path><path d="M928 450.464a32 32 0 0 0-32 32V736a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h530.656a32 32 0 0 0 0-64H160a96 96 0 0 0-96 96v576a96 96 0 0 0 96 96h704a96 96 0 0 0 96-96v-253.536a32 32 0 0 0-32-32zM912 896h-800a32 32 0 0 0 0 64h800a32 32 0 0 0 0-64z" p-id="2242"></path></svg>

After

Width:  |  Height:  |  Size: 853 B

View File

@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" width="13.673" height="15.211" viewBox="0 0 13.673 15.211">
<defs>
<style>
.cls-1 {
}
</style>
</defs>
<path id="结算" class="cls-1" d="M66.174,12.351v-5.1a.55.55,0,0,1,1.094,0v5.1a.55.55,0,0,1-1.094,0h0Zm3.843-1.533h-5.5a.553.553,0,0,1,0-1.106h5.5a.553.553,0,0,1,0,1.106h0Zm0-2.443h-5.5a.553.553,0,0,1,0-1.106h5.5a.553.553,0,0,1,0,1.106h0ZM66.994,7.268a.541.541,0,0,1-.383-.158L64.146,4.645a.543.543,0,1,1,.768-.767l2.08,2.079,2.082-2.079a.542.542,0,0,1,.767.766L67.378,7.11a.55.55,0,0,1-.384.158h0Zm4.586,7.943H62.413a2.215,2.215,0,0,1-2.253-2.173V2.1A2.145,2.145,0,0,1,62.341,0h7.728a1.375,1.375,0,0,1,.955.383l2.416,2.346a1.261,1.261,0,0,1,.392.915v9.393a2.219,2.219,0,0,1-2.253,2.174ZM62.341,1.023A1.1,1.1,0,0,0,61.221,2.1V13.036a1.172,1.172,0,0,0,1.191,1.149h9.165a1.172,1.172,0,0,0,1.191-1.149V3.646a.268.268,0,0,0-.083-.195L70.271,1.106a.293.293,0,0,0-.2-.08H62.341v0Z" transform="translate(-60.16)"/>
</svg>

After

Width:  |  Height:  |  Size: 985 B

View File

@ -1 +0,0 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1525499040598" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1423" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M491.392 286.464m-286.464 0a4.476 4.476 0 1 0 572.928 0 4.476 4.476 0 1 0-572.928 0Z" p-id="1424"></path><path d="M869.312 523.264c-35.392-43.2-101.888-51.2-140.16-10.496-59.648 63.36-143.744 103.232-237.824 103.232-83.264 0-158.976-31.04-216.832-82.048C230.656 495.296 161.856 510.592 129.024 558.976c-49.28 72.768-78.4 160.064-78.4 254.72 0 19.072 1.28 37.76 3.648 56.064C66.176 960.32 150.272 1024 241.536 1024l539.392 0c100.544 0 183.744-77.824 191.232-178.048 0.768-10.624 1.216-21.376 1.216-32.192C973.376 703.296 934.208 602.432 869.312 523.264z" p-id="1425"></path></svg>

Before

Width:  |  Height:  |  Size: 965 B

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662617388508" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4167" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M966.4 620.8l-140.8-140.8 51.2-51.2 6.4-6.4 6.4-6.4 57.6-57.6c38.4-38.4 38.4-102.4 0-140.8l-140.8-140.8c-38.4-38.4-102.4-38.4-140.8 0l-121.6 128L403.2 57.6C364.8 19.2 300.8 19.2 262.4 57.6L121.6 198.4c-38.4 38.4-38.4 102.4 0 140.8l140.8 140.8-102.4 115.2c-6.4 0-12.8 6.4-12.8 12.8l-44.8 243.2c0 12.8 0 19.2 6.4 25.6 6.4 12.8 19.2 19.2 25.6 19.2l281.6-12.8c6.4 0 12.8-6.4 19.2-6.4L544 768l140.8 140.8c38.4 38.4 102.4 38.4 140.8 0l140.8-140.8c32-44.8 32-108.8 0-147.2z m-249.6-499.2c12.8-12.8 32-12.8 51.2 0l140.8 140.8c12.8 12.8 12.8 32 0 51.2l-44.8 44.8-185.6-185.6 38.4-51.2zM243.2 364.8L172.8 294.4c-12.8-12.8-12.8-32 0-51.2l140.8-140.8c12.8-12.8 32-12.8 51.2 0l140.8 140.8-192 192-25.6-25.6 70.4-70.4c12.8-12.8 12.8-32 0-44.8s-32-12.8-44.8 0L243.2 364.8z m281.6 326.4l-121.6 121.6-224 12.8 38.4-198.4 416-416 185.6 185.6-57.6 57.6-236.8 236.8z m390.4 25.6l-140.8 140.8c-12.8 12.8-32 12.8-51.2 0L704 832l70.4-70.4c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0l-70.4 70.4-70.4-70.4 185.6-185.6 140.8 140.8c19.2 6.4 19.2 25.6 0 44.8z" p-id="4168"></path></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662615992618" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3101" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M380.16 384a32 32 0 0 1 45.248 0.96L512 475.392l86.592-90.432a32 32 0 0 1 46.208 44.288L550.4 527.808H640a32 32 0 0 1 0 64H544v50.56H640a32 32 0 0 1 0 64H544v63.36a32 32 0 0 1-64 0v-63.36H384a32 32 0 1 1 0-64h96v-50.56H384a32 32 0 0 1 0-64h89.6l-94.4-98.56A32 32 0 0 1 380.16 384z" p-id="3102"></path><path d="M128 160A96 96 0 0 1 224 64h512A96 96 0 0 1 832 160V192a96 96 0 0 1 96 96v576A96 96 0 0 1 832 960H224A96 96 0 0 1 128 864v-704zM224 128a32 32 0 0 0-32 32v704a32 32 0 0 0 32 32H832a32 32 0 0 0 32-32v-576A32 32 0 0 0 832 256H384a32 32 0 0 1 0-64h384v-32a32 32 0 0 0-32-32h-512z" p-id="3103"></path></svg>

After

Width:  |  Height:  |  Size: 945 B

View File

@ -1 +1,8 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1540532996442" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6189" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M228.413712 351.302041l565.792137 0 0-51.436486L228.413712 299.865555 228.413712 351.302041zM228.413712 531.351744l565.792137 0 0-51.461045L228.413712 479.890698 228.413712 531.351744zM897.077797 119.841436 125.543809 119.841436c-28.404933 0-51.435463 23.056112-51.435463 51.435463l0 668.664086c0 28.431539 23.030529 51.435463 51.435463 51.435463l771.535011 0c28.405957 0 51.435463-23.0029 51.435463-51.435463L948.514283 171.276898C948.51326 142.897547 925.483754 119.841436 897.077797 119.841436zM897.077797 814.222229c0 14.216793-11.528568 25.718755-25.717731 25.718755L151.261541 839.940984c-14.216793 0-25.717731-11.501962-25.717731-25.718755L125.543809 196.995653c0-14.189164 11.501962-25.717731 25.717731-25.717731l720.099549 0c14.189164 0 25.717731 11.528568 25.717731 25.717731L897.078821 814.222229zM228.413712 711.351304l565.792137 0 0-51.435463L228.413712 659.915841 228.413712 711.351304z" p-id="6190"></path></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="13.945" height="13.545" viewBox="0 0 13.945 13.545">
<g id="报表" transform="translate(-27.297 -519.95)">
<g id="组_6580" data-name="组 6580" transform="translate(-52.069 405.483)" opacity="0.65">
<path id="路径_4656" data-name="路径 4656" d="M92.338,114.517h-12a.923.923,0,0,0-.923.923v9.23a.923.923,0,0,0,.923.923h12a.923.923,0,0,0,.923-.923v-9.23A.923.923,0,0,0,92.338,114.517Zm-12,.923h12v9.23h-12Z" transform="translate(0)" stroke-width="0.1"/>
<path id="路径_4657" data-name="路径 4657" d="M202.133,311.568a.461.461,0,0,1,.705.591l-.054.063-3.511,3.5-2.62-2.528L194.48,315.4a.461.461,0,0,1-.589.057l-.065-.054a.461.461,0,0,1-.057-.588l.054-.065,2.814-2.855,2.625,2.532,2.871-2.858Zm.745,9.128a.5.5,0,0,1,.083.977l-.083.008h-9.222a.477.477,0,0,1-.462-.492.484.484,0,0,1,.378-.485l.083-.008Z" transform="translate(-111.933 -193.719)" stroke-width="0.1"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 959 B

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662616001505" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3409" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M256.256 96A96 96 0 0 0 160.64 183.296l-58.176 640A96 96 0 0 0 198.08 928h627.84a96 96 0 0 0 95.616-104.704l-58.24-640A96 96 0 0 0 767.744 96H256.256z m-31.872 93.12a32 32 0 0 1 31.872-29.12h511.488a32 32 0 0 1 31.872 29.12l58.176 640a32 32 0 0 1-31.872 34.88h-627.84a32 32 0 0 1-31.872-34.88l58.176-640zM384 320a32 32 0 0 0-64 0c0 94.72 92.992 160 192 160s192-65.28 192-160a32 32 0 1 0-64 0c0 46.72-50.304 96-128 96-77.76 0-128-49.28-128-96z" p-id="3410"></path></svg>

After

Width:  |  Height:  |  Size: 802 B

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662615961096" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2338" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M384 544c-19.2 0-32 12.8-32 32s12.8 32 32 32h256c19.2 0 32-12.8 32-32s-12.8-32-32-32H384z" p-id="2339"></path><path d="M921.6 371.2l-115.2-236.8c-12.8-25.6-38.4-38.4-64-38.4H281.6c-25.6 0-51.2 12.8-64 38.4L102.4 371.2l-6.4 6.4v448c0 57.6 44.8 102.4 102.4 102.4h627.2c57.6 0 102.4-44.8 102.4-102.4v-448l-6.4-6.4zM544 166.4h198.4L832 352H544V166.4z m-262.4 0h198.4v185.6H185.6l96-185.6z m576 659.2c0 19.2-12.8 32-32 32H198.4c-19.2 0-32-12.8-32-32V422.4h691.2v403.2z" p-id="2340"></path></svg>

After

Width:  |  Height:  |  Size: 823 B

View File

@ -1 +1,5 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1525499440059" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4865" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M904 238.5L746.2 84.2c-13.1-13.1-31-20-48.9-20H195.8c-53.7 0-97.1 44.1-97.1 97.8v700c0 53.7 43.4 97.8 97.1 97.8h631.7c53.7 0 97.8-44.1 97.8-97.8V288.8c0-18.6-8.2-37.2-21.3-50.3zM856.4 862c0 15.8-13.1 28.9-28.9 28.9H195.8c-15.8 0-28.2-13.1-28.2-28.9V162c0-15.8 12.4-28.9 28.2-28.9l454 0.7v121.9c0 57.2 46.2 103.3 103.3 103.3h103.3v503z m0-571.8H753.1c-19.3 0-34.4-15.2-34.4-34.4v-102l137.8 135v1.4z" p-id="4866"></path><path d="M684 475.2H339.5c-19 0-34.4 15.4-34.4 34.4s15.4 34.4 34.4 34.4H684c19 0 34.4-15.4 34.4-34.4S703 475.2 684 475.2zM684 681.9H339.5c-19 0-34.4 15.4-34.4 34.4s15.4 34.4 34.4 34.4H684c19 0 34.4-15.4 34.4-34.4S703 681.9 684 681.9z" p-id="4867"></path></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="14.622" height="15.565" viewBox="0 0 14.622 15.565">
<g id="公告" transform="translate(-26.347 -182)">
<path id="路径_4637" stroke="none" data-name="路径 4637" d="M49.673,22.169H37.593A1.27,1.27,0,0,1,36.322,20.9V12.017a1.27,1.27,0,0,1,1.271-1.269h1.271l-.019-.019L42.7,7.4a.95.95,0,0,1,.889-.769l.028-.024.019.019c.01,0,.02,0,.031,0l0,0,0,0a.95.95,0,0,1,.9.776L48.4,10.714l-.034.034h1.305a1.27,1.27,0,0,1,1.272,1.269V20.9a1.27,1.27,0,0,1-1.271,1.269ZM44.2,8.334a.939.939,0,0,1-1.139,0l-2.789,2.412H47L44.2,8.334Zm5.787,3.683a.318.318,0,0,0-.318-.317H37.593a.318.318,0,0,0-.318.317V20.9a.318.318,0,0,0,.318.317H49.673a.318.318,0,0,0,.318-.317V12.017Zm-2.225,6.27H39.5a.318.318,0,0,1-.318-.317v-.317a.318.318,0,0,1,.318-.317h8.265a.318.318,0,0,1,.318.317v.317A.318.318,0,0,1,47.765,18.287Zm-3.814-2.7H39.5a.318.318,0,0,1-.318-.317v-.317a.318.318,0,0,1,.318-.317h4.45a.318.318,0,0,1,.318.317v.317A.318.318,0,0,1,43.951,15.582Z" transform="translate(-9.975 175.396)" opacity="0.65"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662615986063" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2797" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M212.928 896a27.84 27.84 0 0 1-27.904-27.712v-67.84c0-67.84 20.48-133.056 59.328-188.736a335.808 335.808 0 0 1 152.064-120.512l10.176-3.968-8.64-6.72a195.84 195.84 0 0 1-76.288-155.136C321.664 216.576 410.88 128 520.384 128s198.72 88.512 198.72 197.376a195.84 195.84 0 0 1-76.288 155.136l-8.576 6.72 10.112 3.968a335.808 335.808 0 0 1 152.128 120.512c38.784 55.68 59.264 120.96 59.264 188.736v67.84a27.84 27.84 0 0 1-27.904 27.712H212.928z m307.52-373.312c-154.176 0-279.552 124.608-279.552 277.76v40.192h559.04v-40.192c0-153.152-125.44-277.76-279.488-277.76z m0-339.328a142.592 142.592 0 0 0-142.912 142.016A142.592 142.592 0 0 0 520.32 467.328a142.592 142.592 0 0 0 142.912-141.952A142.592 142.592 0 0 0 520.32 183.36z m-444.16 610.816a27.84 27.84 0 0 1-27.904-27.648v-52.48C48.384 614.4 103.424 524.224 192 478.72l7.232-3.712-5.504-6.08a162.432 162.432 0 0 1-42.752-109.632c0-89.152 72.256-161.92 161.664-163.392a315.072 315.072 0 0 0-1.728 2.752 208.768 208.768 0 0 0-31.744 59.2c-43.456 15.36-72.384 55.68-72.384 101.44 0 42.24 25.024 80.896 63.872 98.368l0.128 0.128h0.192c11.52 4.416 19.072 14.4 19.072 25.6a28.16 28.16 0 0 1-20.032 25.856l-6.4 1.536a209.6 209.6 0 0 0-159.36 203.2v24.832h32.64c-3.328 18.24-5.12 36.8-5.504 55.36h-55.04z m832.832 0a343.552 343.552 0 0 0-5.504-55.36h32.64v-24.832a209.6 209.6 0 0 0-159.36-203.2l-6.4-1.536a28.16 28.16 0 0 1-20.032-25.856c0-11.2 7.488-21.184 19.008-25.6h0.192l0.192-0.128c38.784-17.472 63.872-56.064 63.872-98.368 0-45.76-28.992-86.144-72.448-101.44a208.512 208.512 0 0 0-31.744-59.2 226.304 226.304 0 0 0-1.664-2.752 164.16 164.16 0 0 1 161.664 163.456c0 40.448-15.168 79.36-42.816 109.568l-5.504 6.08 7.296 3.712a263.552 263.552 0 0 1 143.488 235.264v52.48a27.84 27.84 0 0 1-27.904 27.712h-55.04z" p-id="2798"></path></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="36px" height="36px" viewBox="0 0 36 36" enable-background="new 0 0 36 36" xml:space="preserve"> <image id="image0" width="36" height="36" x="0" y="0"
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAABGdBTUEAALGPC/xhBQAAACBjSFJN
AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAV1BMVEUAAAAVWtUVWtMVWtQU
W9QUWdcQYN8UWtUVWtQQWNcUW9MUWtQUWtMUWtMVW9QUWtMTWtUTWdYTWtUVW9QUXNMUW9QUWtQV
WtQUW9QTWtUTW9QVW9T///+5LZL8AAAAG3RSTlMAMG+fvz8Qf98g7+DAgKDwkFBg0EBwsM+PT18y
kB11AAAAAWJLR0QcnARBBwAAAAd0SU1FB+cFGAUqAPN4f1kAAAFVSURBVDjLlVRZloQgEJOxRUVQ
QHqb3P+eU6DY2Fq+N/lQsWItCVhV/4b4qW+E+qfhGLLtsKFr+1OKotigDWEc6FG1x0KUZbIiL3sz
UTax5ziFychdZkPJXPnGUxpxSD4D/rMMwCyrA+QMtX0qqdYJZ2HlwHhSa604wa6TAHdOO+q+z4l4
DwaMqTBgeJKHShIBkifJRYYRc3UBneroPADXuqZrltUr1HS7L7OO2ROXmgJCWpGjcFGPOLWL2yC7
UZBi1Md3gIhmpuA3ydJukrHF2ISkvHYtF1Wcs0zCJylc6kV6UTY+4nE13RK+o7siqTR8H4diEVaH
H7jxpFtqKZEDx+m3mEbHWWwwfOj1pb2LbSyrIJEYDMuWIhLreda9i0ZuoB2CuliLF/1d2nejdn4E
Oq94vt6NFM3vq/i/7E3zMwoMxlgd799HMhi9MLRlTmsWLYSDsn/urByCgozkcQAAACV0RVh0ZGF0
ZTpjcmVhdGUAMjAyMy0wNS0yNFQwNTo0MjowMCswMDowMKJgiuQAAAAldEVYdGRhdGU6bW9kaWZ5
ADIwMjMtMDUtMjRUMDU6NDI6MDArMDA6MDDTPTJYAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDIz
LTA1LTI0VDA1OjQyOjAwKzAwOjAwhCgThwAAAABJRU5ErkJggg==" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662615981859" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2644" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M288 550.4c0-19.2 12.8-32 32-32h403.2c19.2 0 32 12.8 32 32s-12.8 32-32 32H320c-19.2 0-32-12.8-32-32zM320 652.8c-19.2 0-32 12.8-32 32s12.8 32 32 32h204.8c19.2 0 32-12.8 32-32s-12.8-32-32-32H320z" p-id="2645"></path><path d="M857.6 313.6h-115.2L601.6 128c-38.4-51.2-121.6-51.2-160 0L300.8 313.6H185.6c-57.6 0-102.4 44.8-102.4 102.4v403.2c0 57.6 44.8 102.4 102.4 102.4h672c57.6 0 102.4-44.8 102.4-102.4V416c0-57.6-44.8-102.4-102.4-102.4zM492.8 166.4c12.8-19.2 38.4-19.2 51.2 0l108.8 147.2H384l108.8-147.2z m396.8 652.8c0 19.2-12.8 32-32 32H185.6c-19.2 0-32-12.8-32-32V416c0-19.2 12.8-32 32-32h672c19.2 0 32 12.8 32 32v403.2z" p-id="2646"></path></svg>

After

Width:  |  Height:  |  Size: 981 B

View File

@ -1 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1540516824936" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8177" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M459.954135 607.201246l233.733369 0c14.352893 0 25.941835-11.088546 25.941835-24.798802 0-13.623275-11.587919-24.710798-25.941835-24.710798l-233.733369 0c-14.352893 0-25.986861 11.087523-25.986861 24.710798C433.967274 596.1127 445.601242 607.201246 459.954135 607.201246zM382.017088 824.38673l287.564391-0.272199 0-0.633427c9.370415-1.494027 16.660448-9.233292 16.660448-19.053961 0-9.773598-7.290033-17.693987-16.660448-19.23304l0-0.633427L369.500007 784.560676c-27.275203 0-51.949162-38.46915-51.949162-65.214281l0-415.585113c0.181125-1.041726 0.633427-1.992377 0.633427-3.123131 0-10.997472-8.985652-20.00359-20.032242-20.00359-11.023054 0-20.010753 9.007141-20.010753 20.00359l0 418.708244C278.1423 773.383102 327.080895 824.38673 382.017088 824.38673zM693.687504 89.925079c-3.235694 0-311.669392-0.814552-311.669392-0.814552-51.2922 0-96.314603 39.10053-102.108562 88.294952-0.181125 1.085728-0.656963 2.036379-0.656963 3.168156 0 0.091074 0.023536 0.135076 0.023536 0.181125 0 0.046049-0.023536 0.090051-0.023536 0.181125l0.067538 0c0.181125 10.860349 9.031701 19.685341 19.942191 19.685341 10.933003 0 19.762089-8.824993 19.964704-19.685341l0.226151 0c6.043646-24.664749 27.027563-52.04433 50.04786-52.04433l284.755416 0c-0.406253 60.461023 0 118.435413 0 118.435413 0 54.531987 35.991726 91.642187 91.358731 91.642187 0 0 40.133046 0 90.428545 0l0 380.37724c0.338714 44.261063-33.70259 65.757656-62.180178 65.214281l0 0.272199c-10.229992 0.723477-18.425651 9.188266-18.425651 19.594267 0 10.454096 8.195659 18.736736 18.425651 19.417235l0 0.271176c0.248663 0 0.49835-0.091074 0.74599-0.091074 0.184195 0 0.340761 0.091074 0.522909 0.091074 0.971118 0 1.811252-0.407276 2.739391-0.544399 52.287877-3.755534 97.580432-52.314483 97.580432-104.22476L875.452267 299.777551 693.687504 89.925079zM745.615177 299.777551c-27.684526 0-51.927673-51.411927-51.927673-78.69941 0 0 0-27.606755 0-78.656431l0-0.045025 129.839137 157.400866L745.615177 299.777551zM459.954135 483.471246l233.733369 0c14.352893 0 25.941835-11.041474 25.941835-24.708751 0-13.667278-11.587919-24.7548-25.941835-24.7548l-233.733369 0c-14.352893 0-25.986861 11.087523-25.986861 24.7548C433.967274 472.430796 445.601242 483.471246 459.954135 483.471246zM716.709847 841.356216c-8.53335 0-15.32708 6.246261-17.113773 14.256702l-0.475837-0.045025c-21.73093 44.171012-40.426735 34.032094-62.294788 34.032094L252.179998 889.599987c-27.27725 0-64.466244-38.512129-64.466244-65.213257L187.713754 322.314847c0-24.800849 29.857005-58.606793 55.954383-63.403029l0-0.543376c10.571776-0.543376 19.082614-9.142218 19.082614-19.86749 0-10.68127-8.510838-19.279089-19.082614-19.777439l0-0.226151c-0.181125 0.044002-0.339738 0.091074-0.51984 0.091074-0.158612 0-0.272199-0.091074-0.429789-0.091074-1.245364 0-2.353604 0.497327-3.553942 0.724501-50.703799 5.203512-90.860381 52.134381-90.860381 103.092983l0 502.07086c0 54.034661 48.938596 105.038288 103.875812 105.038288l389.558343 0c47.104831 0 78.254272-17.198707 90.542132-61.683874 1.358951-2.533706 2.330068-5.250584 2.330068-8.326643C734.611565 849.546759 726.601124 841.356216 716.709847 841.356216z" p-id="8178"></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662615969453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2491" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M646.4 64H256c-51.2 0-96 44.8-96 96v704c0 51.2 44.8 96 96 96h512c51.2 0 96-44.8 96-96V294.4L646.4 64zM640 147.2l128 140.8h-96c-19.2 0-32-12.8-32-32V147.2z m160 716.8c0 19.2-12.8 32-32 32H256c-19.2 0-32-12.8-32-32v-704c0-19.2 12.8-32 32-32h320v128c0 51.2 44.8 96 96 96h128v512z" p-id="2492"></path><path d="M320 512c0-19.2 12.8-32 32-32h320c19.2 0 32 12.8 32 32s-12.8 32-32 32h-320c-19.2 0-32-12.8-32-32zM320 704c0-19.2 12.8-32 32-32h320c19.2 0 32 12.8 32 32s-12.8 32-32 32h-320c-19.2 0-32-12.8-32-32z" p-id="2493"></path></svg>

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 860 B

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662616012391" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4014" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M528.768 329.408a183.744 183.744 0 1 0 0 367.488 183.744 183.744 0 0 0 0-367.488z m-118.912 183.68a118.912 118.912 0 1 1 237.76 0 118.912 118.912 0 0 1-237.76 0z" p-id="4015"></path><path d="M442.048 81.664a32.448 32.448 0 0 0-37.568-16.512 464.064 464.064 0 0 0-192.128 107.52 32.448 32.448 0 0 0-7.04 38.144 97.28 97.28 0 0 1-87.296 140.224h-1.28a32.448 32.448 0 0 0-31.424 22.656 466.688 466.688 0 0 0-11.84 233.024 32.448 32.448 0 0 0 34.88 25.792 97.28 97.28 0 0 1 84.032 159.488 32.448 32.448 0 0 0 1.472 43.392 464.64 464.64 0 0 0 202.112 123.264 32.448 32.448 0 0 0 40.128-21.184 97.28 97.28 0 0 1 185.344 0c5.376 16.768 23.232 26.24 40.128 21.12a464.64 464.64 0 0 0 202.112-123.2c11.52-11.968 12.16-30.72 1.408-43.392a97.28 97.28 0 0 1 84.032-159.488 32.448 32.448 0 0 0 35.008-25.792 466.752 466.752 0 0 0-11.904-232.96 32.448 32.448 0 0 0-31.36-22.784h-1.344a97.28 97.28 0 0 1-87.36-140.16 32.448 32.448 0 0 0-7.04-38.08 464 464 0 0 0-192.128-107.52 32.448 32.448 0 0 0-37.504 16.448 97.28 97.28 0 0 1-173.44 0z m-161.92 172.096c0-16.704-2.496-32.832-7.168-48a399.232 399.232 0 0 1 126.08-71.04A161.92 161.92 0 0 0 528.704 199.68c53.12 0 100.224-25.536 129.792-64.96a399.232 399.232 0 0 1 126.08 71.04 162.176 162.176 0 0 0 131.776 208.512 400.832 400.832 0 0 1 8.576 153.6 162.176 162.176 0 0 0-126.848 240.896 399.872 399.872 0 0 1-128.128 78.656 162.048 162.048 0 0 0-282.496 0 399.872 399.872 0 0 1-128.128-78.72 162.112 162.112 0 0 0-126.848-240.896 403.84 403.84 0 0 1 8.64-153.6 162.176 162.176 0 0 0 139.008-160.448z" p-id="4016"></path></svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1523793666871" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2239" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M958.400956 451.54921c-0.058328-5.760191-2.597151-11.215436-6.965645-14.97097L524.345166 69.511143c-7.498788-6.445806-18.581194-6.445806-26.079982 0L309.582871 231.6755l0-102.017488c0-11.04966-8.901741-19.532869-19.951401-19.532869l-88.034009 0c-11.048637 0-19.928888 8.482185-19.928888 19.532869l0 211.954343L71.176063 436.57824c-4.423753 3.800559-6.967692 9.341762-6.967692 15.173584l0 105.500822c0 7.819083 4.554736 14.921851 11.660574 18.183128 2.670829 1.226944 5.51562 1.824555 8.343015 1.824555 4.699022 0 9.346879-1.654686 13.048177-4.836145l53.29788-45.825698 0 324.100516c0 60.677964 49.364291 110.042255 110.042255 110.042255L764.792447 960.741257c60.677964 0 110.042255-49.364291 110.042255-110.042255L874.834702 527.026228l51.585889 44.335764c5.955642 5.119601 14.356986 6.282077 21.481244 2.965541 7.122211-3.313465 11.645225-10.488889 11.565407-18.342764L958.400956 451.54921zM221.578538 150.034085l48.095391 0 0 115.941616-48.095391 41.336454L221.578538 150.034085zM570.718333 920.725892 436.666244 920.725892 436.666244 700.642404c0-11.031241 8.976442-20.007683 20.007683-20.007683l94.0357 0c11.031241 0 20.007683 8.976442 20.007683 20.007683L570.71731 920.725892zM834.818313 495.895207l0 354.803795c0 38.612413-31.414477 70.02689-70.02689 70.02689l-154.058748 0L610.732675 700.642404c0-33.096792-26.926256-60.023048-60.023048-60.023048l-94.0357 0c-33.096792 0-60.023048 26.926256-60.023048 60.023048l0 220.084511L260.59925 920.726915c-38.612413 0-70.02689-31.414477-70.02689-70.02689L190.57236 495.895207c0-1.172709-0.121773-2.314719-0.315178-3.432169l322.113255-276.958846 322.70268 277.348726C834.921667 493.848595 834.818313 494.858598 834.818313 495.895207zM525.411451 173.947727c-7.502881-6.445806-18.587334-6.446829-26.086122 0.00307L104.223736 513.663896l0-52.726875 407.081439-349.870436 407.176606 349.9523 0.521886 51.205219L525.411451 173.947727z" p-id="2240"></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662615926541" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2186" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M582.4 96L928 384c64 57.6 32 160-57.6 172.8v294.4c0 51.2-44.8 96-96 96H576v-230.4c0-19.2-12.8-32-32-32h-64c-19.2 6.4-32 19.2-32 38.4v230.4H249.6c-51.2 0-96-44.8-96-96V556.8C70.4 550.4 32 441.6 96 384l358.4-288c38.4-32 96-32 128 0z m-38.4 51.2c-12.8-12.8-32-12.8-44.8 0L140.8 435.2c-25.6 19.2-12.8 57.6 19.2 57.6h51.2v358.4c0 19.2 12.8 32 32 32H384v-166.4c0-51.2 44.8-96 96-96h64c51.2 0 96 44.8 96 96v166.4h134.4c19.2 0 32-12.8 32-32V492.8h51.2c32 0 44.8-38.4 19.2-57.6L544 147.2z" p-id="2187"></path></svg>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 839 B

View File

@ -1 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1540533078620" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6320" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M829.220317 124.424824l-7.074116-10.656711L211.680609 113.768113l-7.141654 9.141194C48.983109 321.498248 70.507332 442.416202 97.154225 496.860185c26.740014 54.537104 80.878029 89.831958 137.977491 89.831958l5.146207 0c72.043826-2.867304 119.953999-38.642089 145.190777-64.548108 22.793122 25.90602 65.699328 60.541865 132.855844 60.541865 70.02382 0 113.703645-37.70167 135.579885-63.877843 30.546713 24.907273 90.183975 65.721841 152.687518 65.721841 40.980343 0 76.085886-16.799618 104.681154-49.907667C1017.364371 411.082566 836.949348 136.066979 829.220317 124.424824zM874.641809 503.603773c-19.22383 22.49841-41.49916 33.236985-68.14503 33.236985-60.246129 0-122.821303-54.56064-136.7792-67.51979L669.717579 305.754682c0.023536-0.458441 0.258896-0.799202 0.258896-1.245364 0-13.252839-10.714016-23.967878-23.920806-23.967878-13.227256 0-23.919782 10.715039-23.919782 23.967878l-0.258896 0 0 177.851641c-13.063527 17.811668-46.172599 52.634778-103.552447 52.634778-64.784492 0-98.525967-44.292785-107.666138-58.367339l0-172.120103c0-13.252839-10.715039-23.967878-23.898293-23.967878-13.228279 0-23.943318 10.715039-23.943318 23.967878l0 171.250292c-11.725042 15.249309-52.070936 60.389392-124.465756 63.37233l-3.219321 0 0-0.047072c-31.933293 0-73.688279-19.585057-95.000678-63.232137-21.358447-43.540655-36.843116-141.948943 94.953605-314.397526l561.097208 0C845.996398 240.173035 940.480306 427.225221 874.641809 503.603773zM831.288418 613.83227c-13.277398 0-24.086581 10.761088-24.13263 24.037463l0 0.045025c0 0.048095 0 0.048095 0 0.095167 0 0 0 0.023536 0 0.059352l0 173.505659c0 26.693965-21.641903 48.312332-48.263214 48.312332L552.089555 859.887268c-0.022513 0-0.022513 0-0.046049 0L264.081049 859.887268c-26.623357 0-48.26526-21.618367-48.26526-48.312332l0-173.634596c-0.023536-13.323447-10.80816-24.108071-24.109094-24.108071-13.299911 0-24.084535 10.784624-24.131607 24.108071l0 178.452321c0 50.730405 41.026392 91.804892 91.664699 91.804892l504.492002 0c50.637284 0 91.662653-41.074487 91.662653-91.804892L855.394443 637.869732C855.325881 624.592334 844.562746 613.83227 831.288418 613.83227z" p-id="6321"></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1662616007184" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3714" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M986.752 418.368a178.56 178.56 0 0 0-8.832-56.256 29.44 29.44 0 0 0-1.92-6.976l-78.08-194.112c-13.44-40.256-52.288-64.896-97.664-65.024H252.864c-46.016 0-81.728 24.448-94.72 63.104l-83.84 198.144a42.048 42.048 0 0 0-1.152 4.608 182.848 182.848 0 0 0 48 190.016l0.256 291.072c0 46.912 38.272 85.056 85.248 85.056l626.112-0.384c46.976-0.128 85.12-38.4 85.12-85.312V561.6a183.04 183.04 0 0 0 68.864-143.232z m-154.048 442.688l-626.048 0.384a18.624 18.624 0 0 1-18.688-18.56l-0.192-251.136c18.048 5.696 37.888 8.576 59.328 8.576a182.272 182.272 0 0 0 139.648-65.216 182.144 182.144 0 0 0 139.008 64.896 181.632 181.632 0 0 0 138.24-65.024 181.76 181.76 0 0 0 139.968 64.896c16.768 0 32.64-1.92 47.36-5.44v247.872a18.752 18.752 0 0 1-18.624 18.752z m26.88-340.288c-15.04 8.256-33.792 12.48-55.68 12.608-40.512 0-77.44-20.608-99.008-55.488a52.8 52.8 0 0 0-8.896-14.016 41.088 41.088 0 0 0-31.872-13.44 41.6 41.6 0 0 0-32.064 13.76 56.192 56.192 0 0 0-8.704 13.76 115.648 115.648 0 0 1-97.664 55.488 115.776 115.776 0 0 1-98.304-55.68c-1.536-3.008-4.032-8.192-7.936-12.544-15.616-18.688-50.56-17.728-64.256-1.408a53.312 53.312 0 0 0-9.344 14.72 116.416 116.416 0 0 1-98.816 55.296c-21.44 0-39.872-4.032-54.72-11.968a116.288 116.288 0 0 1-55.424-140.8 31.232 31.232 0 0 0 0.832-3.008l82.56-195.2c1.664-4.992 6.784-20.224 32.512-20.224h547.584c10.56 0.64 28.672 2.56 35.2 21.504l77.312 192.576c0.256 1.344 0.64 2.688 0.96 3.84a116.416 116.416 0 0 1-54.208 140.224z" p-id="3715"></path></svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 6.5 KiB

View File

@ -1 +1,7 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1525767824715" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1992" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M896 928 768 928C732.656 928 704 899.344 704 864L704 416C704 380.656 732.656 352 768 352L896 352C931.344 352 960 380.656 960 416L960 864C960 899.344 931.344 928 896 928ZM896 416 768 416 768 864 896 864 896 416ZM576 928 448 928C412.656 928 384 899.344 384 864L384 160C384 124.656 412.656 96 448 96L576 96C611.344 96 640 124.656 640 160L640 864C640 899.344 611.344 928 576 928ZM576 160 448 160 448 864 576 864 576 160ZM256 928 128 928C92.656 928 64 899.344 64 864L64 544C64 508.656 92.656 480 128 480L256 480C291.344 480 320 508.656 320 544L320 864C320 899.344 291.344 928 256 928ZM256 544 128 544 128 864 256 864 256 544Z" p-id="1993"></path></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="13.91" height="13.504" viewBox="0 0 13.91 13.504">
<g id="资源" transform="translate(-5.3 -5.5)" opacity="0.65">
<path id="路径_4769" data-name="路径 4769" d="M17.462,6H7.042A1.042,1.042,0,0,0,6,7.042v10.42A1.042,1.042,0,0,0,7.042,18.5h10.42A1.042,1.042,0,0,0,18.5,17.462V7.042A1.042,1.042,0,0,0,17.462,6Z" transform="translate(0 0)" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
<path id="路径_4770" data-name="路径 4770" d="M14.737,16.473A1.737,1.737,0,1,0,13,14.737,1.737,1.737,0,0,0,14.737,16.473Z" transform="translate(-4.569 -4.569)" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
<path id="路径_4771" data-name="路径 4771" d="M18.5,29.473,14.683,26,11.21,29.126,8.779,27.042,6,29.126" transform="translate(0 -13.054)" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 955 B

View File

@ -1 +1,19 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1523793794156" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4137" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M914.7391013 783.78649017l-807.02687634-0.00282656c-21.54153523 0-39.00084656 17.44942036-39.00084655 38.97400023 0 21.5231659 17.45789872 38.97541285 39.00084655 38.97541284l807.02687634 0c21.54012263 0 39.00084656-17.45224693 39.00084656-38.97541284C953.73994786 801.23308533 936.28063653 783.78649017 914.7391013 783.78649017zM914.7391013 471.61156444l-807.02687634 0c-21.54153523 0-39.00084656 17.45224693-39.00084655 38.97541285 0 21.52457851 17.45789872 38.97258627 39.00084655 38.97258628l807.02687634 0c21.54012263 0 39.00084656-17.44518117 39.00084656-38.97258628C953.73994786 489.06239742 936.28063653 471.61156444 914.7391013 471.61156444zM107.71363893 237.38605044l807.02687634 0c21.54012263 0 39.00084656-17.44800775 39.00084656-38.97258626 0-21.52740509-17.45931133-38.97400026-39.00084656-38.97400025L107.71363893 159.43946393c-21.54153523 0-39.00084656 17.44659517-39.00084654 38.97258627C68.71279101 219.93945529 86.17068973 237.38605044 107.71363893 237.38605044z" p-id="4138"></path></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
<defs>
<style>
.cls-1 {
fill: none;
}
.cls-2 {
fill: #333;
}
</style>
</defs>
<g id="Group" transform="translate(20 0.303)">
<rect id="Rectangle_9" data-name="Rectangle 9" class="cls-1" width="18" height="18" transform="translate(-20 -0.303)"/>
<rect id="Combined_Shape" data-name="Combined Shape" class="cls-2" width="15.485" height="1.659" rx="0.83" transform="translate(-18.894 2.212)"/>
<rect id="Rectangle_Copy" data-name="Rectangle Copy" class="cls-2" width="9.955" height="1.659" rx="0.83" transform="translate(-13.364 8.019)"/>
<path id="Rectangle_6" data-name="Rectangle 6" class="cls-2" d="M3.178.139a.138.138,0,0,0-.229-.1L.095,2.529a.277.277,0,0,0,0,.417L2.949,5.433a.138.138,0,0,0,.229-.1Z" transform="translate(-18.754 6.111)"/>
<rect id="Rectangle_Copy_2" data-name="Rectangle Copy 2" class="cls-2" width="15.485" height="1.659" rx="0.83" transform="translate(-18.894 13.826)"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -0,0 +1,85 @@
<template>
<div>
<el-card
v-if="route.meta.isTab"
class="main-head"
>
<el-breadcrumb :separator-icon="ArrowRight">
<el-breadcrumb-item
v-for="(item, index) in selectMenu"
:key="index"
class="breadcrumb-item"
>
<span>{{ item }}</span>
</el-breadcrumb-item>
</el-breadcrumb>
</el-card>
<main
class="site-content"
:class="{ 'site-content--tabs': route.meta.isTab }"
>
<!-- 主入口标签页 (发布商品) -->
<div
v-if="route.name === 'prod-post-product/postProduct'"
:style="siteContentViewHeight"
>
<keep-alive>
<router-view />
</keep-alive>
</div>
<el-card
v-else-if="homeHidden"
class="card-content-h"
style="border-radius: 0 !important; box-shadow: none"
:body-style="siteContentViewHeight"
>
<router-view />
</el-card>
<div v-else>
<router-view />
</div>
</main>
</div>
</template>
<script setup>
import { ArrowRight } from '@element-plus/icons-vue'
const route = useRoute()
const documentClientHeight = ref(document.documentElement.clientHeight)
window.addEventListener('resize', () => {
documentClientHeight.value = document.documentElement.clientHeight
})
const siteContentViewHeight = computed(() => {
let height = documentClientHeight.value - 50 - 30 - 2
if (route.meta.isTab) {
height -= 40
return isURL(route.meta.iframeUrl) ? { height: height + 'px' } : { minHeight: height + 'px' }
}
return { minHeight: height + 'px' }
})
const commonStore = useCommonStore()
const selectMenu = computed(() => commonStore.selectMenu)
const homeHidden = computed(() => route.name !== 'home')
</script>
<style scoped>
.main-head {
background: #ffffff;
width: 100%;
height: 40px;
position: fixed;
top: 50px;
z-index: 10;
display: flex;
align-items: center;
border-radius: 0;
box-shadow: none;
border-top: none;
}
.breadcrumb-item:last-child span {
color: #155bd4 !important;
}
.card-content-h {
min-height: calc(100vh - 50px - 60px - 20px);
}
</style>

View File

@ -0,0 +1,121 @@
<template>
<el-dialog
v-model="visible"
:title="'修改密码'"
:append-to-body="true"
>
<el-form
ref="dataFormRef"
:model="dataForm"
:rules="dataRule"
label-width="80px"
@keyup.enter="onSubmit(dataFormRef)"
>
<el-form-item label="账号">
<span>{{ userName }}</span>
</el-form-item>
<el-form-item
label="原密码"
prop="password"
>
<el-input
v-model="dataForm.password"
type="password"
/>
</el-form-item>
<el-form-item
label="新密码"
prop="newPassword"
>
<el-input
v-model="dataForm.newPassword"
type="password"
/>
</el-form-item>
<el-form-item
label="确定密码"
prop="confirmPassword"
>
<el-input
v-model="dataForm.confirmPassword"
type="password"
/>
</el-form-item>
</el-form>
<template #footer>
<span class="dialog-footer">
<el-button @click="visible = false">取消</el-button>
<el-button
type="primary"
@click="onSubmit(dataFormRef)"
>确定</el-button>
</span>
</template>
</el-dialog>
</template>
<script setup>
import { ElMessage } from 'element-plus'
const visible = ref(false)
const dataForm = reactive({
password: '',
newPassword: '',
confirmPassword: ''
})
const dataFormRef = ref()
const init = () => {
visible.value = true
nextTick(() => {
dataFormRef.value?.resetFields()
})
}
// eslint-disable-next-line no-unused-vars
const validateConfirmPassword = (rule, value, callback) => {
if (dataForm.newPassword !== value) {
callback(new Error('确认密码与新密码不一致'))
} else {
callback()
}
}
const dataRule = reactive({
password: [{ required: true, message: '原密码不能为空', trigger: 'blur' }],
newPassword: [{ required: true, message: '新密码不能为空', trigger: 'blur' }],
confirmPassword: [
{ required: true, message: '确认密码不能为空', trigger: 'blur' },
{ validator: validateConfirmPassword, trigger: 'blur' }
]
})
const userStore = useUserStore()
const userName = computed(() => userStore.name)
const router = useRouter()
const onSubmit = async formEl => {
if (!formEl) return
await formEl.validate(valid => {
if (valid) {
http({
url: http.adornUrl('/sys/user/password'),
method: 'post',
data: http.adornData({
password: encrypt(dataForm.password),
newPassword: encrypt(dataForm.newPassword)
})
}).then(() => {
ElMessage({
message: '操作?',
type: 'success',
duration: 1500,
onClose: () => {
visible.value = false
nextTick(() => {
clearLoginInfo()
router.replace({ name: 'login' })
})
}
})
})
}
})
}
defineExpose({ init })
</script>

Some files were not shown because too many files have changed in this diff Show More