Browse Source

项目上传

master
wanghongjun 2 years ago
parent
commit
c85390bf61
  1. 66
      .gitignore
  2. 8
      .idea/.gitignore
  3. 6
      .idea/misc.xml
  4. 8
      .idea/modules.xml
  5. 19
      .idea/php.xml
  6. 23
      .idea/thinkphp.iml
  7. 42
      .travis.yml
  8. 1236
      CHANGELOG.md
  9. 674
      LICENSE
  10. 32
      LICENSE.txt
  11. 0
      application/.htaccess
  12. 32
      application/api/controller/Base.php
  13. 50
      application/api/controller/Information.php
  14. 18
      application/api/validate/InformationValidate.php
  15. 12
      application/command.php
  16. 12
      application/common.php
  17. 243
      application/config.php
  18. 55
      application/database.php
  19. 14
      application/extra/queue.php
  20. 896
      application/index/controller/Administrator.php
  21. 33
      application/index/controller/Base.php
  22. 115
      application/index/controller/Index.php
  23. 699
      application/index/controller/Tools.php
  24. 30
      application/index/model/User.php
  25. 453
      application/index/view/administrator/admin_list.html
  26. 520
      application/index/view/administrator/device.html
  27. 453
      application/index/view/administrator/device_list.html
  28. 469
      application/index/view/administrator/index.html
  29. 307
      application/index/view/administrator/log.html
  30. 43
      application/index/view/administrator/test.html
  31. 558
      application/index/view/administrator/user_list.html
  32. 578
      application/index/view/administrator/welcome.html
  33. 131
      application/index/view/index/index.html
  34. 183
      application/index/view/tools/admin_add.html
  35. 192
      application/index/view/tools/admin_edit.html
  36. 188
      application/index/view/tools/device_add_page.html
  37. 139
      application/index/view/tools/device_id_add_page.html
  38. 284
      application/index/view/tools/device_operation.html
  39. 1070
      application/index/view/tools/getData.html
  40. 1211
      application/index/view/tools/icon.html
  41. 443
      application/index/view/tools/show_detail.html
  42. 183
      application/index/view/tools/user_add.html
  43. 191
      application/index/view/tools/user_edit.html
  44. 21
      application/route.php
  45. 28
      application/tags.php
  46. 25
      build.php
  47. 33
      composer.json
  48. 528
      composer.lock
  49. 5695
      data.sql
  50. 2
      extend/.gitignore
  51. 12
      public/.htaccess
  52. 16
      public/css/font.css
  53. 123
      public/css/login.css
  54. 21
      public/css/theme1.css
  55. 21
      public/css/theme2.css
  56. 22
      public/css/theme3.css
  57. 21
      public/css/theme4.css
  58. 27
      public/css/theme5.css
  59. 633
      public/css/xadmin.css
  60. 4020
      public/dist/layarea.js
  61. 228
      public/dist/notice.css
  62. 486
      public/dist/notice.js
  63. 1
      public/dist/sliderVerify/sliderVerify.js
  64. 8
      public/dist/xm-select.js
  65. BIN
      public/favicon.ico
  66. BIN
      public/favicon1.ico
  67. BIN
      public/fonts/iconfont.eot
  68. 477
      public/fonts/iconfont.svg
  69. BIN
      public/fonts/iconfont.ttf
  70. BIN
      public/fonts/iconfont.woff
  71. 1
      public/icon.json
  72. BIN
      public/images/aiwrap.png
  73. BIN
      public/images/handsome.ico
  74. BIN
      public/images/start.jpg
  75. BIN
      public/images/wallhaven.jpg
  76. BIN
      public/images/work.jpg
  77. 17
      public/index.php
  78. 492
      public/js/china.js
  79. 1
      public/js/countUp.min.js
  80. 97412
      public/js/echarts.js
  81. 22
      public/js/echarts.min.js
  82. 4
      public/js/jquery.min.js
  83. 602
      public/js/xadmin.js
  84. 506
      public/js/xcity.js
  85. 2
      public/lib/layui/css/layui.css
  86. 2
      public/lib/layui/css/layui.mobile.css
  87. 2
      public/lib/layui/css/modules/code.css
  88. 2
      public/lib/layui/css/modules/laydate/default/laydate.css
  89. BIN
      public/lib/layui/css/modules/layer/default/icon-ext.png
  90. BIN
      public/lib/layui/css/modules/layer/default/icon.png
  91. 2
      public/lib/layui/css/modules/layer/default/layer.css
  92. BIN
      public/lib/layui/css/modules/layer/default/loading-0.gif
  93. BIN
      public/lib/layui/css/modules/layer/default/loading-1.gif
  94. BIN
      public/lib/layui/css/modules/layer/default/loading-2.gif
  95. BIN
      public/lib/layui/font/iconfont.eot
  96. 554
      public/lib/layui/font/iconfont.svg
  97. BIN
      public/lib/layui/font/iconfont.ttf
  98. BIN
      public/lib/layui/font/iconfont.woff
  99. BIN
      public/lib/layui/font/iconfont.woff2
  100. BIN
      public/lib/layui/images/face/0.gif

66
.gitignore

@ -0,0 +1,66 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

8
.idea/.gitignore

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

6
.idea/misc.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>

8
.idea/modules.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/thinkphp.iml" filepath="$PROJECT_DIR$/.idea/thinkphp.iml" />
</modules>
</component>
</project>

19
.idea/php.xml

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PhpIncludePathManager">
<include_path>
<path value="$PROJECT_DIR$/vendor/workerman/workerman" />
<path value="$PROJECT_DIR$/vendor/topthink/think-helper" />
<path value="$PROJECT_DIR$/vendor/topthink/think-image" />
<path value="$PROJECT_DIR$/vendor/topthink/think-captcha" />
<path value="$PROJECT_DIR$/vendor/topthink/think-mongo" />
<path value="$PROJECT_DIR$/vendor/topthink/think-oracle" />
<path value="$PROJECT_DIR$/vendor/composer" />
<path value="$PROJECT_DIR$/vendor/topthink/think-queue" />
<path value="$PROJECT_DIR$/vendor/topthink/think-migration" />
<path value="$PROJECT_DIR$/vendor/topthink/think-installer" />
<path value="$PROJECT_DIR$/vendor/topthink/think-worker" />
</include_path>
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="5.4.0" />
</project>

23
.idea/thinkphp.iml

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/application" isTestSource="false" packagePrefix="app\" />
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
<excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-captcha" />
<excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-helper" />
<excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-image" />
<excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-installer" />
<excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-migration" />
<excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-mongo" />
<excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-oracle" />
<excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-queue" />
<excludeFolder url="file://$MODULE_DIR$/vendor/topthink/think-worker" />
<excludeFolder url="file://$MODULE_DIR$/vendor/workerman/workerman" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

42
.travis.yml

@ -0,0 +1,42 @@
sudo: false
language: php
branches:
only:
- stable
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
install:
- composer install --no-dev --no-interaction --ignore-platform-reqs
- zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Core.zip .
- composer require --update-no-dev --no-interaction "topthink/think-image:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-migration:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-captcha:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-mongo:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-worker:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-helper:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-queue:^1.0"
- composer require --update-no-dev --no-interaction "topthink/think-angular:^1.0"
- composer require --dev --update-no-dev --no-interaction "topthink/think-testing:^1.0"
- zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Full.zip .
script:
- php think unit
deploy:
provider: releases
api_key:
secure: TSF6bnl2JYN72UQOORAJYL+CqIryP2gHVKt6grfveQ7d9rleAEoxlq6PWxbvTI4jZ5nrPpUcBUpWIJHNgVcs+bzLFtyh5THaLqm39uCgBbrW7M8rI26L8sBh/6nsdtGgdeQrO/cLu31QoTzbwuz1WfAVoCdCkOSZeXyT/CclH99qV6RYyQYqaD2wpRjrhA5O4fSsEkiPVuk0GaOogFlrQHx+C+lHnf6pa1KxEoN1A0UxxVfGX6K4y5g4WQDO5zT4bLeubkWOXK0G51XSvACDOZVIyLdjApaOFTwamPcD3S1tfvuxRWWvsCD5ljFvb2kSmx5BIBNwN80MzuBmrGIC27XLGOxyMerwKxB6DskNUO9PflKHDPI61DRq0FTy1fv70SFMSiAtUv9aJRT41NQh9iJJ0vC8dl+xcxrWIjU1GG6+l/ZcRqVx9V1VuGQsLKndGhja7SQ+X1slHl76fRq223sMOql7MFCd0vvvxVQ2V39CcFKao/LB1aPH3VhODDEyxwx6aXoTznvC/QPepgWsHOWQzKj9ftsgDbsNiyFlXL4cu8DWUty6rQy8zT2b4O8b1xjcwSUCsy+auEjBamzQkMJFNlZAIUrukL/NbUhQU37TAbwsFyz7X0E/u/VMle/nBCNAzgkMwAUjiHM6FqrKKBRWFbPrSIixjfjkCnrMEPw=
file:
- ThinkPHP_Core.zip
- ThinkPHP_Full.zip
skip_cleanup: true
on:
tags: true

1236
CHANGELOG.md

File diff suppressed because it is too large

674
LICENSE

@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 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 General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is 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. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
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.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
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 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. Use with the GNU Affero General Public License.
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 Affero 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 special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU 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 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 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 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 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 General Public License for more details.
You should have received a copy of the GNU 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 the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
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 GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

32
LICENSE.txt

@ -0,0 +1,32 @@
ThinkPHP遵循Apache2开源协议发布,并提供免费使用。
版权所有Copyright © 2006-2017 by ThinkPHP (http://thinkphp.cn)
All rights reserved。
ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。
Apache Licence是著名的非盈利开源组织Apache采用的协议。
该协议和BSD类似,鼓励代码共享和尊重原作者的著作权,
允许代码修改,再作为开源或商业软件发布。需要满足
的条件:
1. 需要给代码的用户一份Apache Licence ;
2. 如果你修改了代码,需要在被修改的文件中说明;
3. 在延伸的代码中(修改和有源代码衍生的代码中)需要
带有原来代码中的协议,商标,专利声明和其他原来作者规
定需要包含的说明;
4. 如果再发布的产品中包含一个Notice文件,则在Notice文
件中需要带有本协议内容。你可以在Notice中增加自己的
许可,但不可以表现为对Apache Licence构成更改。
具体的协议参考:http://www.apache.org/licenses/LICENSE-2.0
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

0
application/.htaccess

32
application/api/controller/Base.php

@ -0,0 +1,32 @@
<?php
namespace app\api\controller;
use think\Controller;
class Base extends Controller
{
protected $ERROR_CODE = 0;
protected $SUCCESS_CODE = 1;
protected function jsonError($msg = '失败',$data = [])
{
$arr = [
'code' => $this->ERROR_CODE,
'msg' => $msg,
'data' => $data
];
return json_encode($arr);
}
public function jsonSuccess($msg = '成功',$data = [])
{
$arr = [
'code' => $this->SUCCESS_CODE,
'msg' => $msg,
'data' => $data
];
return json_encode($arr);
}
}

50
application/api/controller/Information.php

@ -0,0 +1,50 @@
<?php
namespace app\api\controller;
use app\api\validate\InformationValidate;
use think\Db;
use think\Exception;
use think\exception\ValidateException;
use think\Loader;
use think\Request;
class Information extends Base
{
/**
* 接收Wing推送数据
* @param Request $request
* @return false|string
*/
public function receivingInformation(Request $request)
{
$param = $request->param();
try {
$InformationValidate = Loader::validate('InformationValidate');
if(!$InformationValidate->check($param)){
throw new ValidateException($InformationValidate->getError());
}
$insertArr = [
'tenant_id' => $param['tenantId'],
'task_id' => $param['taskId'],
'protocol' => $param['protocol'],
'product_id' => $param['productId'],
'device_id' => $param['deviceId'],
'timestamp' => $param['timestamp'],
'create_time' => date("Y-m-d H:i:s"),
];
Db::table('bs_device_receiving_information')->insert($insertArr);
return $this->jsonSuccess();
} catch (ValidateException $exception) {
return $this->jsonError($exception->getMessage());
}
}
}

18
application/api/validate/InformationValidate.php

@ -0,0 +1,18 @@
<?php
namespace app\api\validate;
use think\Validate;
class InformationValidate extends Validate
{
protected $rule = [
'tenantId' => 'require',
'taskId' => 'require',
'protocol' => 'require',
'productId' => 'require',
'deviceId' => 'require',
'timestamp' => 'require'
];
}

12
application/command.php

@ -0,0 +1,12 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------
return [];

12
application/common.php

@ -0,0 +1,12 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 流年 <liu21st@gmail.com>
// +----------------------------------------------------------------------
// 应用公共文件

243
application/config.php

@ -0,0 +1,243 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
return [
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
// 应用调试模式
'app_debug' => true,
// 应用Trace
'app_trace' => false,
// 应用模式状态
'app_status' => '',
// 是否支持多模块
'app_multi_module' => true,
// 入口自动绑定模块
'auto_bind_module' => false,
// 注册的根命名空间
'root_namespace' => [],
// 扩展函数文件
'extra_file_list' => [THINK_PATH . 'helper' . EXT],
// 默认输出类型
'default_return_type' => 'html',
// 默认AJAX 数据返回格式,可选json xml ...
'default_ajax_return' => 'json',
// 默认JSONP格式返回的处理方法
'default_jsonp_handler' => 'jsonpReturn',
// 默认JSONP处理方法
'var_jsonp_handler' => 'callback',
// 默认时区
'default_timezone' => 'PRC',
// 是否开启多语言
'lang_switch_on' => false,
// 默认全局过滤方法 用逗号分隔多个
'default_filter' => '',
// 默认语言
'default_lang' => 'zh-cn',
// 应用类库后缀
'class_suffix' => false,
// 控制器类后缀
'controller_suffix' => false,
// +----------------------------------------------------------------------
// | 模块设置
// +----------------------------------------------------------------------
// 默认模块名
'default_module' => 'index',
// 禁止访问模块
'deny_module_list' => ['common'],
// 默认控制器名
'default_controller' => 'Index',
// 默认操作名
'default_action' => 'index',
// 默认验证器
'default_validate' => '',
// 默认的空控制器名
'empty_controller' => 'Error',
// 操作方法后缀
'action_suffix' => '',
// 自动搜索控制器
'controller_auto_search' => false,
// +----------------------------------------------------------------------
// | URL设置
// +----------------------------------------------------------------------
// PATHINFO变量名 用于兼容模式
'var_pathinfo' => 's',
// 兼容PATH_INFO获取
'pathinfo_fetch' => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
// pathinfo分隔符
'pathinfo_depr' => '/',
// URL伪静态后缀
'url_html_suffix' => '',
// URL普通方式参数 用于自动生成
'url_common_param' => false,
// URL参数方式 0 按名称成对解析 1 按顺序解析
'url_param_type' => 0,
// 是否开启路由
'url_route_on' => true,
// 路由使用完整匹配
'route_complete_match' => false,
// 路由配置文件(支持配置多个)
'route_config_file' => ['route'],
// 是否开启路由解析缓存
'route_check_cache' => false,
// 是否强制使用路由
'url_route_must' => false,
// 域名部署
'url_domain_deploy' => false,
// 域名根,如thinkphp.cn
'url_domain_root' => '',
// 是否自动转换URL中的控制器和操作名
'url_convert' => true,
// 默认的访问控制器层
'url_controller_layer' => 'controller',
// 表单请求类型伪装变量
'var_method' => '_method',
// 表单ajax伪装变量
'var_ajax' => '_ajax',
// 表单pjax伪装变量
'var_pjax' => '_pjax',
// 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
'request_cache' => false,
// 请求缓存有效期
'request_cache_expire' => null,
// 全局请求缓存排除规则
'request_cache_except' => [],
// +----------------------------------------------------------------------
// | 模板设置
// +----------------------------------------------------------------------
'template' => [
// 模板引擎类型 支持 php think 支持扩展
'type' => 'Think',
// 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写
'auto_rule' => 1,
// 模板路径
'view_path' => '',
// 模板后缀
'view_suffix' => 'html',
// 模板文件名分隔符
'view_depr' => DS,
// 模板引擎普通标签开始标记
'tpl_begin' => '{',
// 模板引擎普通标签结束标记
'tpl_end' => '}',
// 标签库标签开始标记
'taglib_begin' => '{',
// 标签库标签结束标记
'taglib_end' => '}',
],
// 视图输出字符串内容替换
'view_replace_str' => [],
// 默认跳转页面对应的模板文件
'dispatch_success_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
'dispatch_error_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',
// +----------------------------------------------------------------------
// | 异常及错误设置
// +----------------------------------------------------------------------
// 异常页面的模板文件
'exception_tmpl' => THINK_PATH . 'tpl' . DS . 'think_exception.tpl',
// 错误显示信息,非调试模式有效
'error_message' => '页面错误!请稍后再试~',
// 显示错误信息
'show_error_msg' => false,
// 异常处理handle类 留空使用 \think\exception\Handle
'exception_handle' => '',
// +----------------------------------------------------------------------
// | 日志设置
// +----------------------------------------------------------------------
'log' => [
// 日志记录方式,内置 file socket 支持扩展
'type' => 'File',
// 日志保存目录
'path' => LOG_PATH,
// 日志记录级别
'level' => [],
],
// +----------------------------------------------------------------------
// | Trace设置 开启 app_trace 后 有效
// +----------------------------------------------------------------------
'trace' => [
// 内置Html Console 支持扩展
'type' => 'Html',
],
// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------
'cache' => [
// 驱动方式
'type' => 'File',
// 缓存保存目录
'path' => CACHE_PATH,
// 缓存前缀
'prefix' => '',
// 缓存有效期 0表示永久缓存
'expire' => 0,
],
// +----------------------------------------------------------------------
// | 会话设置
// +----------------------------------------------------------------------
'session' => [
'id' => '',
// SESSION_ID的提交变量,解决flash上传跨域
'var_session_id' => '',
// SESSION 前缀
'prefix' => 'think',
// 驱动方式 支持redis memcache memcached
'type' => '',
// 是否自动开启 SESSION
'auto_start' => true,
],
// +----------------------------------------------------------------------
// | Cookie设置
// +----------------------------------------------------------------------
'cookie' => [
// cookie 名称前缀
'prefix' => '',
// cookie 保存时间
'expire' => 0,
// cookie 保存路径
'path' => '/',
// cookie 有效域名
'domain' => '',
// cookie 启用安全传输
'secure' => false,
// httponly设置
'httponly' => '',
// 是否使用 setcookie
'setcookie' => true,
],
//分页配置
'paginate' => [
'type' => 'bootstrap',
'var_page' => 'page',
'list_rows' => 15,
],
];

55
application/database.php

@ -0,0 +1,55 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
return [
// 数据库类型
'type' => 'mysql',
// 服务器地址
'hostname' => '127.0.0.1',
// 数据库名
'database' => 'iotdata',
// 用户名
'username' => 'root',
// 密码
'password' => 'root',
// 端口
'hostport' => '',
// 连接dsn
'dsn' => '',
// 数据库连接参数
'params' => [],
// 数据库编码默认采用utf8
'charset' => 'utf8',
// 数据库表前缀
'prefix' => 'bs_',
// 数据库调试模式
'debug' => true,
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
'deploy' => 0,
// 数据库读写是否分离 主从式有效
'rw_separate' => false,
// 读写分离后 主服务器数量
'master_num' => 1,
// 指定从服务器序号
'slave_no' => '',
// 自动读取主库数据
'read_master' => false,
// 是否严格检查字段是否存在
'fields_strict' => true,
// 数据集返回类型
'resultset_type' => 'array',
// 自动写入时间戳字段
'auto_timestamp' => false,
// 时间字段取出后的默认时间格式
'datetime_format' => 'Y-m-d H:i:s',
// 是否需要进行SQL性能分析
'sql_explain' => false,
];

14
application/extra/queue.php

@ -0,0 +1,14 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------
return [
'connector' => 'Sync'
];

896
application/index/controller/Administrator.php

@ -0,0 +1,896 @@
<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Request;
class Administrator extends Base
{
public function _initialize()
{
// parent::_initialize(); // TODO: Change the autogenerated stub
if (!session('root')) {
$this->error('亲,您还没有登录呢!', '/');
}
}
public function quit()
{
session(null);
$this->redirect('/');
}
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/////////以下为页面跳转函数/////////////
////////////////////////////////////////
//主页
public function index()
{
$name = $value = session('name');
$device = Db::table('bs_device_map')->select();
$this->assign('name', $name);
$this->assign('dev', $device);
// dump($device);
return $this->fetch();
}
//统计页面
public function statistics()
{
return $this->fetch();
}
//我的桌面
public function welcome()
{
$data = $value = session('name');
$this->assign('data', $data);
return $this->fetch();
}
//管理员列表
public function admin_list()
{
return $this->fetch();
}
//用户列表
public function user_list()
{
return $this->fetch();
}
//设备总览
public function device()
{
$device = Db::table('bs_device_map')->select();
for ($i = 0; $i < count($device); $i++) {
$device[$i]['all'] = Db::table('bs_device_serial' )->where('type',$device[$i]['function']) ->count();
$device[$i]['error'] = Db::table('bs_device_' . $device[$i]['function'])->where('status', 0)->count();
}
$this->assign('dev', $device);
return $this->fetch();
}
// 列表中所有设备共用模板函数
public function device_list()
{
$request = Request::instance();
$device = $request->get();
// dump($device);
$this->assign('dev', $device);
return $this->fetch();
}
// 日志记录
public function log()
{
return $this->fetch();
}
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
//////////以下为功能函数////////////////
////////////////////////////////////////
//将所有固定表中的ID重新排序
public function resort()
{
// 重新排序bs_people表
Db::execute("ALTER TABLE bs_people DROP id;");
Db::execute("alter table bs_people add id int(11) not null auto_increment primary key first;");
// 重新排序bs_user表
Db::execute("ALTER TABLE bs_user DROP id;");
Db::execute("alter table bs_user add id int(11) not null auto_increment primary key first;");
// 重新排序bs_administrator表
Db::execute("ALTER TABLE bs_administrator DROP id;");
Db::execute("alter table bs_administrator add id int(11) not null auto_increment primary key first;");
// 重新排序bs_device_map表
Db::execute("ALTER TABLE bs_device_map DROP id;");
Db::execute("alter table bs_device_map add id int(11) not null auto_increment primary key first;");
// 重新排序bs_device_serial表
Db::execute("ALTER TABLE bs_device_serial DROP id;");
Db::execute("alter table bs_device_serial add id int(11) not null auto_increment primary key first;");
}
//停用、恢复 管理员
public function banAdmin(Request $request)
{
$receive = $request->post();
$flag1 = false;
$flag2 = false;
if ($receive['type'] == 'true') {
$flag1 = Db::table('bs_administrator')->where('account', $receive['account'])->update(['status' => 1]);
} else {
$flag2 = Db::table('bs_administrator')->where('account', $receive['account'])->update(['status' => 0]);
}
if ($flag1 || $flag2) {
if ($flag1) {
$this->logInsert('停用管理员:' . $receive['account']);
};
if ($flag2) {
$this->logInsert('恢复管理员:' . $receive['account']);
}
return 'ok';
} else {
return '后台数据发生错误,请联系后台管理员';
}
}
// 禁用用户
public function banUser(Request $request)
{
$receive = $request->post();
$flag1 = false;
$flag2 = false;
if ($receive['type'] == 'true') {
$flag1 = Db::table('bs_user')->where('uid', $receive['uid'])->update(['status' => 1]);
} else {
$flag2 = Db::table('bs_user')->where('uid', $receive['uid'])->update(['status' => 0]);
}
if ($flag1 || $flag2) {
if ($flag1) {
$this->logInsert('冻结用户:' . $receive['uid']);
};
if ($flag2) {
$this->logInsert('恢复用户:' . $receive['uid']);
}
return 'ok';
} else {
return '后台数据传输错误,请联系后台管理员';
}
}
// 禁用设备ID对应的设备
public function banDev(Request $request)
{
$data = $request->post();
$flag1 = false;
$flag2 = false;
//根据设备名获得对应的标识符
$deviceName = (Db::table('bs_device_map')->where('chinese', $data['deviceName'])->find())['function'];
//在对应的数据库表中将该设备ID的状态更新
if ($data['type'] == 'true') {
$flag1 = Db::table('bs_device_' . $deviceName)->where('serial_num', $data['serial_num'])->update(['status' => 1]);
} else {
$flag2 = Db::table('bs_device_' . $deviceName)->where('serial_num', $data['serial_num'])->update(['status' => 0]);
}
if ($flag1 || $flag2) {
return 'ok';
} else {
return '后台数据传输错误,请联系后台管理员';
}
}
//单个删除管理员
public function delAdmin(Request $request)
{
$receive = $request->post();
// 从总账户表中删除该管理员
$flag1 = Db::table('bs_administrator')->where('account', $receive['account'])->delete();
// 从管理员表中删除该管理员
$flag2 = Db::table('bs_people')->where('name', $receive['account'])->delete();
$this->resort();
if ($flag1 && $flag2) {
$this->logInsert('删除管理员:' . $receive['account']);
return 'ok';
} else {
if (!$flag1) {
return 'ERROR1';
};
if (!$flag2) {
return 'ERROR2';
}
}
}
//单个删除用户
public function delUser(Request $request)
{
$receive = $request->post();
// 在用户表中删除该用户
$flag1 = Db::table('bs_user')->where('uid', $receive['uid'])->delete();
// 在用户设备统计表中删除该用户
$flag2 = Db::table('bs_device')->where('uid', $receive['uid'])->delete();
// 在总账户表中删除该用户
$flag3 = Db::table('bs_people')->where('name', $receive['uid'])->delete();
// 判断接收到的指令是否要删除该用户与设备的绑定信息,如果是则遍历每个设备绑定信息表删除
if ($receive['more']) {
$deviceName = Db::table('bs_device_map')->field('function')->select();
for ($i = 0; $i < count($deviceName); $i++) {
$devArr[] = $deviceName[$i]['function'];
};
for ($i = 0; $i < count($devArr); $i++) {
Db::table('bs_device_' . $devArr[$i])->where('uid', $receive['uid'])->delete();
}
}
$this->resort();
if ($flag1 && $flag2 && $flag3) {
if ($receive['more']) {
$this->logInsert('删除用户:' . $receive['uid'] . ' 并解除与之绑定的所有设备');
} else {
$this->logInsert('删除用户:' . $receive['uid']);
};
return 'ok';
} else {
if (!$flag1) {
return 'ERROR1';
};
if (!$flag2) {
return 'ERROR2';
};
if (!$flag3) {
return 'ERROR3';
};
}
}
//单个删除设备ID绑定信息
public function delDev(Request $request)
{
$receive = $request->post();
//获得该设备名所对应的设备标识符名称
$deviceName = (Db::table('bs_device_map')->where('chinese', $receive['deviceName'])->field('function')->find())['function'];
//获得该设备ID对应的用户名
$uid = (Db::table('bs_device_' . $deviceName)->where('serial_num', $receive['serial_num'])->find())['uid'];
//去对应的设备列表中按照序列号删除设备
$flag = Db::table('bs_device_' . $deviceName)->where('serial_num', $receive['serial_num'])->delete();
//更新用户设备表中该用户拥有该设备的数量
$num = Db::table('bs_device_' . $deviceName)->where('uid', $uid)->count();
Db::table('bs_device')->where('uid', $uid)->update([$deviceName => $num]);
if ($flag) {
$this->logInsert('在' . $receive['deviceName'] . '类型设备中删除设备ID:' . $receive['serial_num'] . ' 与用户:' . $uid . '的绑定信息');
return 'ok';
} else {
return '后台数据异常,请联系后台管理员';
}
}
//单个删除设备ID
public function delDevID(Request $request)
{
$receive = $request->post();
//判断该设备是否已绑定
if ($receive['flag'] == 'true') {
//获得该设备ID所对应的设备标识符名称
$deviceName = (Db::table('bs_device_serial')->where('serial_num', $receive['serial_num'])->find())['type'];
//获得该设备ID对应的用户名
$uid = (Db::table('bs_device_' . $deviceName)->where('serial_num', $receive['serial_num'])->find())['uid'];
//去对应的设备详细信息列表中按照序列号删除该设备ID的相关信息
Db::table('bs_device_data_' . $deviceName)->where('serial_num', $receive['serial_num'])->delete();
//去对应的设备列表中按照序列号解绑
Db::table('bs_device_' . $deviceName)->where('serial_num', $receive['serial_num'])->delete();
//更新用户设备表中该用户拥有该设备的数量
$num = Db::table('bs_device_' . $deviceName)->where('uid', $uid)->count();
Db::table('bs_device')->where('uid', $uid)->update([$deviceName => $num]);
}
//去对应的设备序列号列表中删除该设备ID
$flag = Db::table('bs_device_serial')->where('serial_num', $receive['serial_num'])->delete();
$this->resort();
if ($flag) {
$this->logInsert('删除设备ID:' . $receive['serial_num'] . ',设备类型为:' . $receive['type']);
return 'ok';
} else {
return '后台数据异常,请联系后台管理员';
}
}
//批量删除管理员
public function delAllAdmin(Request $request)
{
$receive = $request->post();
// dump($receive);
// die;
$len = count($receive['account']);
for ($i = 0; $i < $len; $i++) {
// 删除管理员表中的账号
$flag1 = Db::table('bs_administrator')->where('account', $receive['account'][$i])->delete();
// 删除总账号表中的账户
$flag2 = Db::table('bs_people')->where('name', $receive['account'][$i])->delete();
};
$this->resort();
if ($flag1 && $flag2) {
$log = '批量删除管理员:' . $receive['log'];
$this->logInsert($log);
return 'ok';
} else {
if (!$flag1) {
return 'ERROR1';
};
if (!$flag2) {
return 'ERROR2';
}
}
}
//批量删除用户
public function delAllUser(Request $request)
{
$receive = $request->post();
// dump($data);
$len = count($receive['uid']);
// 获得要匹配的设备循环遍历信息
$deviceName = Db::table('bs_device_map')->field('function')->select();
for ($j = 0; $j < count($deviceName); $j++) {
$devArr[] = $deviceName[$j]['function'];
};
// 遍历每个用户uid
for ($i = 0; $i < $len; $i++) {
$flag = Db::table('bs_user')->where('uid', $receive['uid'][$i])->delete();
if (!$flag) {
break;
}
Db::table('bs_people')->where('name', $receive['uid'][$i])->delete();
Db::table('bs_device')->where('uid', $receive['uid'][$i])->delete();
// 判断是否需要同时删除该用户与设备的绑定信息
if ($receive['more']) {
for ($k = 0; $k < count($devArr); $k++) {
Db::table('bs_device_' . $devArr[$k])->where('uid', $receive['uid'][$i])->delete();
}
}
}
$this->resort();
if ($flag) {
if ($receive['more']) {
$this->logInsert('批量删除用户:' . $receive['log'] . '并解除与之绑定的设备信息');
} else {
$this->logInsert('批量删除用户:' . $receive['log']);
}
return 'ok';
} else {
return '后台数据异常,请联系管理员';
}
}
//批量删除设备ID绑定信息
public function delAllDev(Request $request)
{
$receive = $request->post();
//获得该设备名所对应的设备标识符名称
$deviceName = (Db::table('bs_device_map')->where('chinese', $receive['deviceName'])->field('function')->find())['function'];
$len = count($receive['serial_num']);
for ($i = 0; $i < $len; $i++) {
//获得该设备ID对应的用户名
$uid = (Db::table('bs_device_' . $deviceName)->where('serial_num', $receive['serial_num'][$i])->find())['uid'];
$flag = Db::table('bs_device_' . $deviceName)->delete($receive['serial_num'][$i]);
if (!$flag) {
break;
}
//更新用户设备表中该用户拥有该设备的数量
$num = Db::table('bs_device_' . $deviceName)->where('uid', $uid)->count();
Db::table('bs_device')->where('uid', $uid)->update([$deviceName => $num]);
}
if ($flag) {
$serialStr = implode(",", $receive['serial_num']);
$this->logInsert('批量删除' . $receive['deviceName'] . '类型设备中设备ID:' . $serialStr . '与对应的用户:' . $receive['log'] . '的绑定信息');
return 'ok';
} else {
return '后台数据异常,请联系管理员';
}
}
//后台返回管理员json数据
public function adminMsg()
{
$request = Request::instance();
$receive = $request->get();
// dump($receive);
// 判断请求类型是初始化数据表(true)还是搜索数据表(false)
$flag = count($receive) > 2 ? false : true;
//dump($flag);
if ($flag) {
$num = Db::table('bs_administrator')->count();
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
$cate_list = Db::table("bs_administrator")->field('password', true)->limit($start, $limit)->select();
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $cate_list;
if (empty($cate_list)) {
$list["code"] = 1;
$list["msg"] = "暂无数据";
}
return json($list);
} else {
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
switch ($receive['choose']) {
case '账号':
$result = Db::table("bs_administrator")->where('account', $receive['message'])->field('password', true)->limit($start, $limit)->select();
$num = Db::table("bs_administrator")->where('account', $receive['message'])->field('password', true)->count();
break;
case '手机号':
$result = Db::table("bs_administrator")->where('tel', $receive['message'])->field('password', true)->limit($start, $limit)->select();
$num = Db::table("bs_administrator")->where('tel', $receive['message'])->field('password', true)->count();
break;
case '邮箱':
$result = Db::table("bs_administrator")->where('email', $receive['message'])->field('password', true)->limit($start, $limit)->select();
$num = Db::table("bs_administrator")->where('email', $receive['message'])->field('password', true)->count();
break;
}
// dump($result);
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $result;
if (empty($result)) {
$list["code"] = 1;
switch ($receive['choose']) {
case '账号':
$list["msg"] = "未找到账号" . $receive['message'] . "的相关数据";
break;
case '手机号':
$list["msg"] = "未找到手机号" . $receive['message'] . "的相关数据";
break;
case '邮箱':
$list["msg"] = "未找到邮箱" . $receive['message'] . "的相关数据";
break;
}
}
return json($list);
}
}
//后台返回用户json数据
public function userMsg()
{
$request = Request::instance();
$receive = $request->get();
// dump($receive);
// 判断请求类型是初始化数据表(true)还是搜索数据表(false)
$flag = count($receive) > 2 ? false : true;
// dump($flag);
if ($flag) {
$num = Db::table('bs_user')->count();
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
$cate_list = Db::table("bs_user")->field('password', true)->limit($start, $limit)->select();
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $cate_list;
if (empty($cate_list)) {
$list["code"] = 1;
$list["msg"] = "暂无数据";
}
return json($list);
} else {
// dump($receive['message']);
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
switch ($receive['choose']) {
case '用户名':
$result = Db::table("bs_user")->where('uid', $receive['message'])->field('password', true)->limit($start, $limit)->select();
$num = Db::table("bs_user")->where('uid', $receive['message'])->field('password', true)->count();
break;
case '手机号':
$result = Db::table("bs_user")->where('tel', $receive['message'])->field('password', true)->limit($start, $limit)->select();
$num = Db::table("bs_user")->where('tel', $receive['message'])->field('password', true)->count();
break;
case '邮箱':
$result = Db::table("bs_user")->where('email', $receive['message'])->field('password', true)->limit($start, $limit)->select();
$num = Db::table("bs_user")->where('email', $receive['message'])->field('password', true)->count();
break;
}
// dump($result);
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $result;
if (empty($result)) {
$list["code"] = 1;
switch ($receive['choose']) {
case '用户名':
$list["msg"] = "未找到用户名" . $receive['message'] . "的相关数据";
break;
case '手机号':
$list["msg"] = "未找到手机号" . $receive['message'] . "的相关数据";
break;
case '邮箱':
$list["msg"] = "未找到邮箱" . $receive['message'] . "的相关数据";
break;
}
}
return json($list);
}
}
//后台返回各设备列表json数据
public
function deviceMsg()
{
$request = Request::instance();
$receive = $request->get();
// dump($receive);
// 判断请求类型是初始化数据表(true)还是搜索数据表(false)
$flag = count($receive) > 3 ? false : true;
// dump($flag);
//获得该设备名所对应的设备标识符名称
$deviceName = (Db::table('bs_device_map')->where('chinese', $receive['deviceName'])->field('function')->find())['function'];
if ($flag) {
$num = Db::table('bs_device_' . $deviceName)->count();
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
$cate_list = Db::table("bs_device_" . $deviceName)->limit($start, $limit)->select();
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $cate_list;
if (empty($cate_list)) {
$list["code"] = 1;
$list["msg"] = '暂无' . $receive['deviceName'] . '设备的相关数据';
}
return json($list);
} else {
// dump($receive['message']);
// dump($deviceName);
// dump($receive['choose']);
// die;
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
switch ($receive['choose']) {
case '1':
$result = Db::table("bs_device_" . $deviceName)->where('uid', $receive['message'])->limit($start, $limit)->select();
$num = Db::table("bs_device_" . $deviceName)->where('uid', $receive['message'])->count();
break;
case '2':
$result = Db::table("bs_device_" . $deviceName)->where('serial_num', $receive['message'])->limit($start, $limit)->select();
$num = Db::table("bs_device_" . $deviceName)->where('serial_num', $receive['message'])->count();
break;
case '3':
$result = Db::table("bs_device_" . $deviceName)->where('area', 'like', "%" . $receive['message'] . "%")->limit($start, $limit)->select();
$num = Db::table("bs_device_" . $deviceName)->where('area', 'like', "%" . $receive['message'] . "%")->count();
break;
default :
$result = '';
$num = 0;
}
// dump($result);
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $result;
if (empty($result)) {
$list["code"] = 1;
switch ($receive['choose']) {
case '1':
$list["msg"] = "未找到用户" . $receive['message'] . "的相关数据";
break;
case '2':
$list["msg"] = "暂无设备" . $receive['message'] . "的相关数据";
break;
case '3':
$list["msg"] = "暂无" . $receive['message'] . "地区的相关数据";
break;
}
}
return json($list);
}
}
// 验证输入的二级密码是否正确
public function log_verify(Request $request)
{
$receive = $request->post();
// dump($receive);
// die;
$week = $receive['week'];
$year = $receive['year'];
$day = $receive['day'];
$hour = $receive['hour'];
$month = $receive['month'];
$logPwd = '';
$option = [$week, $year, $day, $hour, $month];
// dump($option);
for ($i = 0; $i < count($receive['numArr']); $i++) {
// dump($receive['numArr'][$i]);
$logPwd = $logPwd . $option[$receive['numArr'][$i]];
}
if ($receive['logInput'] == $logPwd) {
return 'ok';
} else {
return '校验码错误,请重新输入';
}
}
// 后台返回序列号json数据
public function serialMsg()
{
$request = Request::instance();
$receive = $request->get();
// dump($receive);
// 判断请求类型是初始化数据表(true)还是搜索数据表(false)
$flag = count($receive) > 2 ? false : true;
// dump($flag);
if ($flag) {
$num = Db::table('bs_device_serial')->count();
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
$cate_list = Db::table("bs_device_serial")->limit($start, $limit)->select();
for ($i = 0; $i < count($cate_list); $i++) {
// 查询该设备ID的绑定信息
if (Db::table('bs_device_' . $cate_list[$i]['type'])->where('serial_num', $cate_list[$i]['serial_num'])->find()) {
$cate_list[$i]['status'] = '已绑定';
} else {
$cate_list[$i]['status'] = '未绑定';
}
// 将查询到的设备识别符后面添加其对应的中文
$cate_list[$i]['type'] = (Db::table('bs_device_map')->where('function', $cate_list[$i]['type'])->find())['chinese'] . ' ' . $cate_list[$i]['type'];
};
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $cate_list;
if (empty($cate_list)) {
$list["code"] = 1;
$list["msg"] = '暂无日志数据';
}
return json($list);
} else {
// dump($receive);
// die;
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
switch ($receive['choose']) {
// 设备ID
case '1':
$result = Db::table("bs_device_serial")->where('serial_num', $receive['message'])->limit($start, $limit)->select();
$num = Db::table("bs_device_serial")->where('serial_num', $receive['message'])->count();
for ($i = 0; $i < count($result); $i++) {
// 查询该设备ID的绑定信息
if (Db::table('bs_device_' . $result[$i]['type'])->where('serial_num', $result[$i]['serial_num'])->find()) {
$result[$i]['status'] = '已绑定';
} else {
$result[$i]['status'] = '未绑定';
}
// 将查询到的设备识别符后面添加其对应的中文
$result[$i]['type'] = (Db::table('bs_device_map')->where('function', $result[$i]['type'])->find())['chinese'] . ' ' . $result[$i]['type'];
};
break;
// 设备类型
case '2':
// 查询中文
$resCN = Db::table('bs_device_map')->where('chinese', 'like', '%' . $receive['message'] . '%')->find();
// 查询英文
$resEN = Db::table('bs_device_map')->where('function', 'like', '%' . $receive['message'] . '%')->find();
if ($resCN) {
$res = $resCN['function'];
} elseif ($resEN) {
$res = $resEN['function'];
} else {
$res = '';
}
$result = Db::table("bs_device_serial")->where('type', $res)->limit($start, $limit)->select();
$num = Db::table("bs_device_serial")->where('type', $res)->count();
if ($result) {
for ($i = 0; $i < count($result); $i++) {
// 查询该设备ID的绑定信息
if (Db::table('bs_device_' . $result[$i]['type'])->where('serial_num', $result[$i]['serial_num'])->find()) {
$result[$i]['status'] = '已绑定';
} else {
$result[$i]['status'] = '未绑定';
}
// 将查询到的设备识别符后面添加其对应的中文
$result[$i]['type'] = (Db::table('bs_device_map')->where('function', $result[$i]['type'])->find())['chinese'] . ' ' . $result[$i]['type'];
};
}
break;
default :
$result = '';
$num = 0;
}
// dump($result);
// die;
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $result;
if (empty($result)) {
$list["code"] = 1;
switch ($receive['choose']) {
case '1':
$list["msg"] = "未找序列号为:" . $receive['message'] . "的设备";
break;
case '2':
$list["msg"] = "未找到" . $receive['message'] . "类型的设备";
break;
}
}
return json($list);
}
}
//后台返回日志json数据
public function logMsg()
{
$request = Request::instance();
$receive = $request->get();
// dump($receive);
// 判断请求类型是初始化数据表(true)还是搜索数据表(false)
$flag = count($receive) > 2 ? false : true;
// dump($flag);
if ($flag) {
$num = Db::table('bs_log')->count();
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
$cate_list = Db::table("bs_log")->order('id desc')->limit($start, $limit)->select();
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $cate_list;
if (empty($cate_list)) {
$list["code"] = 1;
$list["msg"] = '暂无日志数据';
}
return json($list);
} else {
// dump($receive['findTime']);
// die;
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
switch ($receive['choose']) {
// 时间
case '1':
// 分隔获得的时间字符串
$findTime = explode(' - ', $receive['findTime']);
$result = Db::table("bs_log")->where('time', 'between time', [$findTime[0], $findTime[1]])->order('id desc')->limit($start, $limit)->select();
$num = Db::table("bs_log")->where('time', 'between time', [$findTime[0], $findTime[1]])->count();
break;
// 操作
case '2':
$result = Db::table("bs_log")->where('operation', 'like', '%' . $receive['message'] . '%')->order('id desc')->limit($start, $limit)->select();
$num = Db::table("bs_log")->where('operation', 'like', '%' . $receive['message'] . '%')->count();
break;
// 操作人员
case '3':
$result = Db::table("bs_log")->where('who', 'like', "%" . $receive['message'] . "%")->order('id desc')->limit($start, $limit)->select();
$num = Db::table("bs_log")->where('who', 'like', "%" . $receive['message'] . "%")->count();
break;
default :
$result = '';
$num = 0;
}
// dump($result);
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $result;
if (empty($result)) {
$list["code"] = 1;
switch ($receive['choose']) {
case '1':
$list["msg"] = "未找到" . $receive['findTime'] . "之间的相关数据";
break;
case '2':
$list["msg"] = "暂无与" . $receive['message'] . "相关的操作";
break;
case '3':
$list["msg"] = "暂无" . $receive['message'] . "操作人员的相关数据";
break;
}
}
return json($list);
}
}
//批量新增测试数据
// public function test()
// {
// $data = [
// ['id' => '10', 'account' => 'tes1', 'password' => '123456', 'tel' => '133131111111', 'email' => 'test@test.com'],
// ['id' => '11', 'account' => 'tes2', 'password' => '123456', 'tel' => '133131111111', 'email' => 'test@test.com'],
// ['id' => '12', 'account' => 'tes3', 'password' => '123456', 'tel' => '133131111111', 'email' => 'test@test.com'],
//
// ];
// Db::table('bs_administrator')->insertAll($data);
// }
// public function test()
// {
// return $this->fetch();
// }
}

33
application/index/controller/Base.php

@ -0,0 +1,33 @@
<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
class Base extends Controller
{
public function _initialize()
{
// parent::_initialize(); // TODO: Change the autogenerated stub
if (!session('name')) {
$this->error('亲,您还没有登录呢!', '/');
}
}
public function logInsert($operation)
{
$name = session('name');
$timeNow = date('Y-m-d H:i:s', time());
$root = session('root');
if ($root == 1) {
$lv = '管理员:';
} else {
$lv = '用 户:';
}
$data = ['time' => $timeNow, 'operation' => $operation, 'who' => $lv . $name];
Db::table('bs_log')->insert($data);
}
}

115
application/index/controller/Index.php

@ -0,0 +1,115 @@
<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Request;
use app\index\model\User as Usermodel;
class Index extends Controller
{
public function index()
{
//return '<style type="text/css">*{ padding: 0; margin: 0; } .think_default_text{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }</style><div style="padding: 24px 48px;"> <h1>:)</h1><p> ThinkPHP V5<br/><span style="font-size:30px">十年磨一剑 - 为API开发设计的高性能框架</span></p><span style="font-size:22px;">[ V5.0 版本由 <a href="http://www.qiniu.com" target="qiniu">七牛云</a> 独家赞助发布 ]</span></div><script type="text/javascript" src="https://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script><script type="text/javascript" src="https://e.topthink.com/Public/static/client.js"></script><think id="ad_bd568ce7058a1091"></think>';
return $this->fetch();
}
public function loginVerify(Request $request)
{
//$data=Request::post();
$receive = $request->post();
//隐藏用户
if ($receive['username'] == 'view') {
if ($receive['password'] == '1610930312') {
session('name', $receive['username']);
session('root', 1);
return 'ok';
} else {
return '密码错误';
}
} else {
if ($receive['username'] == 'admin') {
if ($receive['password'] == 'admin') {
session('name', $receive['username']);
session('root', 1);
return 'ok';
} else {
return '密码错误';
}
}
}
// 判断该账号是否存在
$flag = Db::table('bs_people')->where('name', $receive['username'])->find();
if (!$flag) {
return '用户不存在';
}
// 判断该账号是管理员还是用户
if ($flag['root']) {
// 从管理员表中获得该账户对应的信息
$flag1 = Db::table('bs_administrator')->where('account', $receive['username'])->find();
// 判断该管理员是否被冻结
if ($flag1['status'] == 0) {
if ($receive['password'] == $flag1['password']) {
// 密码正确则会在后台存储该账户名字和权限并返回'ok'
session('name', $receive['username']);
session('root', 1);
return 'ok';
} else
return '密码错误!';
} else {
return '该账号已被冻结,请联系后台管理员';
}
} else {
// 从用户表中获得该账户对应的信息
$flag2 = Db::table('bs_user')->where('uid', $receive['username'])->find();
// 判断该用户是否被冻结
if ($flag2['status'] == 0) {
if ($receive['password'] == $flag2['password']) {
// 密码正确则会在后台存储该账户名字和权限
session('name', $receive['username']);
session('root', 0);
// Db::table('bs_user')->where('uid', $data['username'])->setInc('count_times');
// 记录该用户的登录IP和登录时间
$user = new Usermodel;
$user->where('uid', $receive['username'])->setInc('count_times');
return 'ok';
} else
return '密码错误!';
} else {
return '该账号已被冻结,请联系后台管理员';
}
}
}
public function login()
{
// dump('ok');
$name = session('name');
// dump($name);
$root = session('root');
// dump($root);
$timeNow = date('Y-m-d H:i:s', time());
// $ip= \request()->ip();
// $data = ['time' => $timeNow, 'operation' => '非法人员入侵', 'who' => '入侵者ip:' . $ip];
// Db::table('bs_log')->insert($data);
if ($root) {
$data = ['time' => $timeNow, 'operation' => '登录管理员系统', 'who' => '管理员:' . $name];
Db::table('bs_log')->insert($data);
$this->redirect('Administrator/index');
}
if ($name){
$data = ['time' => $timeNow, 'operation' => '登录用户系统', 'who' => '用户:' . $name];
Db::table('bs_log')->insert($data);
$this->error($name . '您好,' . '用户界面还在开发中,请使用管理员账户登录获得完整体验。', '/', '', '7');
session(null);
}
$ip= \request()->ip();
$data = ['time' => $timeNow, 'operation' => '非法人员入侵', 'who' => '入侵者ip:' . $ip];
Db::table('bs_log')->insert($data);
$this->error('成功了而没有快乐,是最大的失败。', '/', '', '7');
}
}

699
application/index/controller/Tools.php

@ -0,0 +1,699 @@
<?php
namespace app\index\controller;
use app\index\model\User as Usermodel;
use think\Controller;
use think\Db;
use think\Request;
class Tools extends Base
{
public function _initialize()
{
// parent::_initialize(); // TODO: Change the autogenerated stub
if (session('root') == 0) {
$this->error('亲,您还没有登录呢!', '/');
}
}
public function cardData()
{
$result = array();
// 管理员总人数
$result[0] = Db::table('bs_administrator')->count();
// 用户总人数
$result[1] = Db::table('bs_user')->count();
// 用户总登录次数
$result[2] = Db::table('bs_user')->sum('count_times');
// 总设备数
$result[3] = Db::table('bs_device_serial')->count();
return $result;
}
/*获取地域信息的接口*/
public function areaData()
{
$addr = ['南海诸岛', '台湾', '河北', '山西', '内蒙古', '辽宁', '吉林', '黑龙江', '江苏', '浙江', '安徽', '福建', '江西', '山东', '河南', '湖北', '湖南', '广东', '广西', '海南', '四川', '贵州', '云南', '西藏', '陕西', '甘肃', '青海', '宁夏', '新疆', '北京', '天津', '上海', '重庆', '香港', '澳门'];
$list = [];
$i = 0;
$max = 0;
$devName = Db::table('bs_device_map')->select();
foreach ($addr as $data) {
$list[$i]['name'] = $data;
$list[$i]['value'] = 0;
for ($dev = 0; $dev < count($devName); $dev++) {
$data1 = Db::table('bs_device_' . $devName[$dev]['function'])->select();
for ($j = 0; $j < count($data1); $j++) {
$area = (explode('-', $data1[$j]['area']))[0];
$area = substr($area, 0, -3);
if ($area == $data) {
$list[$i]['value'] += 1;
// dump($area);
}
}
if ($list[$i]['value'] > $max) {
$max = $list[$i]['value'];
}
}
$i++;
}
$result[0] = json_encode($list, JSON_UNESCAPED_UNICODE);//中文不转为unicode
$result[1] = $max;
// dump($result);
return $result;
}
/*获取设备类型信息的接口*/
public function devTypeData()
{
$type = Db::table('bs_device_map')->select();
// dump($type);die;
// 生成前台需要的标识数据
$result = array();
for ($i = 0; $i < count($type); $i++) {
$result[0][$i] = $type[$i]['chinese'];
}
// $type[0]['name'] = $type[0]['chinese'];
// unset($type[0]['chinese']);
// dump($type);
// 生成前台需要的每个设备的数据
for ($i = 0; $i < count($type); $i++) {
$result[1][$i]['name'] = $type[$i]['chinese'];
$result[1][$i]['value'] = (Db::table('bs_device_serial')->where('type', $type[$i]['function'])->count());
}
$result[1] = json_encode($result[1], JSON_UNESCAPED_UNICODE);//中文不转为unicode
// dump($result);die;
return $result;
}
/*获取用户信息的接口*/
public function userData()
{
$data = Db::table('bs_user')->field('create_time')->order('create_time desc')->select();
$result = array();
// 提取用户的创建日期
for ($i = 0; $i < count($data); $i++) {
$time = explode(' ', $data[$i]['create_time']);
$time = explode('-', $time[0]);
$create_time = $time[1] . '-' . $time[2];
$result[0][$i] = $create_time;
}
// 数组去重
$result[0] = array_unique($result[0]);
// 保留前12条数据
$result[0] = array_slice($result[0], 0, 12);
// 数组逆序
$result[0] = array_reverse($result[0]);
// 仅保留数组键值对中的值
$result[0] = array_values($result[0]);
// dump($result[0]);
// return $result;
// 生成前台需要的每个时间点的数据
for ($i = 0; $i < count($result[0]); $i++) {
$result[1][$i] = (Db::table('bs_user')->where('create_time', 'like', '%' . $result[0][$i] . '%')->count());
}
// dump($result);die;
return $result;
}
// 将所有固定表中的ID重新排序
public function resort()
{
// 重新排序bs_people表
Db::execute("ALTER TABLE bs_people DROP id;");
Db::execute("alter table bs_people add id int(11) not null auto_increment primary key first;");
// 重新排序bs_user表
Db::execute("ALTER TABLE bs_user DROP id;");
Db::execute("alter table bs_user add id int(11) not null auto_increment primary key first;");
// 重新排序bs_administrator表
Db::execute("ALTER TABLE bs_administrator DROP id;");
Db::execute("alter table bs_administrator add id int(11) not null auto_increment primary key first;");
// 重新排序bs_device_map表
Db::execute("ALTER TABLE bs_device_map DROP id;");
Db::execute("alter table bs_device_map add id int(11) not null auto_increment primary key first;");
// 重新排序bs_device_serial表
Db::execute("ALTER TABLE bs_device_serial DROP id;");
Db::execute("alter table bs_device_serial add id int(11) not null auto_increment primary key first;");
}
///////////////以下为管理员管理////////////////////////
///////////////以下为管理员管理////////////////////////
public function admin_add()
{
return $this->fetch();
}
//新增管理员
public function admin_insert(Request $request)
{
$receive = $request->post();
//判断该用户名是否可用
if (Db::table('bs_people')->where('name', $receive['account'])->find()) {
return '该账号名已被占用,请重新输入';
}
//将该管理员账号名录入总账户表中
$flag1 = Db::table('bs_people')->insert(['name' => $receive['account'], 'root' => 1]);
//拼接要添加到管理员列表的数据
$createTime = date('Y-m-d H:i:s', time());
$allData = ['account' => $receive['account'], 'password' => $receive['passwd'], 'tel' => $receive['phone'], 'email' => $receive['email'], 'create_time' => $createTime];
$flag2 = Db::table('bs_administrator')->insert($allData);
$this->resort();
if ($flag1 && $flag2) {
$log = '新增管理员:' . $receive['account'];
$this->logInsert($log);
return 'ok';
} else {
if (!$flag1) {
return "ERROR1";
}
if (!$flag1) {
return "ERROR2";
}
}
}
//编辑管理员信息页面
public function admin_edit()
{
$id = input('get.id');
$data = Db::table('bs_administrator')->where('id', $id)->find();
$this->assign('data', $data);
// dump($data);
return $this->fetch();
}
//修改管理员信息
public function admin_update(Request $request)
{
$receive = $request->post();
//检查修改了哪些信息
$preData = Db::table('bs_administrator')->where('id', $receive['id'])->field('account,password,tel,email')->find();
$preData = array_values($preData);
$receive1 = array_values(array_slice($receive, 1));
$map = ['账户名', '密码', '电话', '邮箱'];
$statusArr = [];
for ($i = 0; $i < 4; $i++) {
if ($preData[$i] != $receive1[$i]) {
$statusArr['option'][] = $map[$i];
$statusArr['content'][] = $receive1[$i];
}
}
if (!$statusArr) {
return '该管理员信息未发生变化';
}
$oldAccount = (Db::table('bs_administrator')->where('id', $receive['id'])->find())['account'];
if ($oldAccount != $receive['username']) {
//判断账号是否同名
if (Db::table('bs_people')->where('name', $receive['username'])->find()) {
return '该账户名已被占用,请重新输入';
}
$result2 = Db::table('bs_people')->where('name', $oldAccount)->update(['name' => $receive['username']]);
if (!$result2) {
return 'ERROR2';
}
}
//拼接要添加的数据
$allData = ['account' => $receive['username'], 'password' => $receive['passwd'], 'tel' => $receive['phone'], 'email' => $receive['email']];
$result1 = Db::table('bs_administrator')->where('id', $receive['id'])->update($allData);
if ($result1) {
$log = '修改管理员' . $receive['username'] . '的信息: ';
for ($i = 0; $i < count($statusArr['option']); $i++) {
$log = $log . $statusArr['option'][$i] . '变为:' . $statusArr['content'][$i] . ';';
}
$this->logInsert($log);
return 'ok';
} else {
return '后台异常,请联系后台管理员';
}
}
///////////////以下为用户管理////////////////////////
///////////////以下为用户管理////////////////////////
public function user_add()
{
return $this->fetch();
}
//新增用户
public function user_insert(Request $request)
{
$receive = $request->post();
//检查新加入的用户名是否已存在
if (Db::table('bs_people')->where('name', $receive['username'])->find()) {
return '该用户名已存在,请重新输入';
}
//拼接要添加的数据
$allData = [
'uid' => $receive['username'],
'password' => $receive['passwd'],
'tel' => $receive['phone'],
'email' => $receive['email'],
];
$user = new Usermodel($allData);
$result1 = $user->allowField(true)->save();
//在设备数量映射表中创建该用户
$devData = ['uid' => $receive['username']];
$result2 = Db::table('bs_device')->insert($devData);
// 在总账户库中录入该用户
$allAccount = ['name' => $receive['username']];
$result2 = Db::table('bs_people')->insert($allAccount);
$this->resort();
if ($result1 && $result2) {
$this->logInsert('新增用户:' . $receive['username']);
return 'ok';
} else {
if (!$result1) {
return '用户表添加出错,请联系后台管理员';
};
if (!$result2) {
return '用户设备表添加出错,请联系后台管理员';
};
}
}
//编辑用户信息页面
public function user_edit()
{
$id = input('get.id');
$data = Db::table('bs_user')->where('id', $id)->find();
$this->assign('data', $data);
// dump($data);
return $this->fetch();
}
//更新用户
public function user_update(Request $request)
{
$receive = $request->post();
//检查修改了哪些信息
$preData = Db::table('bs_user')->where('id', $receive['id'])->field('uid,password,tel,email')->find();
$preData = array_values($preData);
$receive1 = array_values(array_slice($receive, 1));
$map = ['账户名', '密码', '电话', '邮箱'];
$statusArr = [];
for ($i = 0; $i < 4; $i++) {
if ($preData[$i] != $receive1[$i]) {
$statusArr['option'][] = $map[$i];
$statusArr['content'][] = $receive1[$i];
}
}
if (!$statusArr) {
return '该用户信息未发生变化';
}
// 判断更改的是否为用户名
$uid = (Db::table('bs_user')->where('id', $receive['id'])->find())['uid'];
if ($receive['uid'] == $uid) {
$flag1 = false;
} else {
// 判断账号是否同名
if (Db::table('bs_people')->where('name', $receive['uid'])->find()) {
return '该账户名已被占用,请重新输入';
}
$flag1 = true;
};
// 获得要匹配的设备循环遍历信息
$deviceName = Db::table('bs_device_map')->field('function')->select();
for ($i = 0; $i < count($deviceName); $i++) {
$devArr[] = $deviceName[$i]['function'];
};
//拼接要添加的数据并更新用户表中的数据
$allData = ['uid' => $receive['uid'], 'password' => $receive['passwd'], 'tel' => $receive['phone'], 'email' => $receive['email']];
$result1 = Db::table('bs_user')->where('id', $receive['id'])->update($allData);
// 如果更改了用户名则需要修改其他表中对应的数据
if ($flag1) {
//修改用户设备表
$result2 = Db::table('bs_device')->where('uid', $uid)->update(['uid' => $receive['uid']]);
//修改总账号表
$result3 = Db::table('bs_people')->where('name', $uid)->update(['name' => $receive['uid']]);
//修改各设备表中所有该用户名的uid信息
for ($i = 0; $i < count($devArr); $i++) {
Db::table('bs_device_' . $devArr[$i])->where('uid', $uid)->update(['uid' => $receive['uid']]);
};
if ($result1 && $result2 && $result3) {
$log = '修改用户' . $receive['uid'] . '的信息: ';
for ($i = 0; $i < count($statusArr['option']); $i++) {
$log = $log . $statusArr['option'][$i] . '变为:' . $statusArr['content'][$i] . ';';
}
$this->logInsert($log);
return 'ok';
} else {
if ($result1) {
return 'ERROR1';
}
if ($result1) {
return 'ERROR2';
}
if ($result1) {
return 'ERROR3';
}
}
}
if ($result1) {
$log = '修改用户' . $receive['uid'] . '的信息: ';
for ($i = 0; $i < count($statusArr['option']); $i++) {
$log = $log . $statusArr['option'][$i] . '变为:' . $statusArr['content'][$i] . ';';
}
$this->logInsert($log);
return 'ok';
} else {
return '后台数据异常,请联系管理员';
}
}
///////////////以下为设备管理/////////////////////////
///////////////以下为设备管理////////////////////////
///设备ID入库界面
public function device_id_add_page()
{
$data = Db::table('bs_device_map')->select();
$this->assign('data', $data);
return $this->fetch();
}
//设备ID入库
public function device_id_add(Request $request)
{
$receive = $request->post();
// dump($receive);
// 判读该序列号是否存在,是则返回提示
if (Db::table('bs_device_serial')->where('serial_num', $receive['serial_num'])->find()) {
return '该序列号已存在,请重新输入';
}
$data = ['serial_num' => $receive['serial_num'], 'type' => $receive['type']];
$flag1 = Db::table('bs_device_serial')->insert($data);
$this->resort();
if ($flag1) {
$this->logInsert('设备ID入库,类型为:' . $receive['type'] . ' ' . '设备ID:' . $receive['serial_num']);
return 'ok';
} else {
return '数据库异常,请联系后台管理员';
}
}
//增删设备界面
public function device_operation()
{
$data = Db::table('bs_device_map')->select();
$this->assign('data', $data);
$icons = Db::table('bs_icon_data')->select();
$this->assign('icons', $icons);
return $this->fetch();
}
//删除设备
public function device_delete(Request $request)
{
$receive = $request->post();
// dump($data['function']) ;
// die;
//将数据表bs_device中该设备字段删除
Db::execute("ALTER TABLE bs_device DROP " . $receive['function']);
//在data数据库中删除该表,包括其中存放的所有新加入的设备中所有的用户uid对应的传感器型号以及该传感器添加时间
Db::execute("DROP TABLE bs_device_" . $receive['function']);
// 删除data数据库中用来存放该传感器详细数据的表
Db::execute("DROP TABLE bs_device_data_" . $receive['function']);
//将bs_device_map表中的该设备删除
$flag1 = Db::table('bs_device_map')->where('function', $receive['function'])->delete();
// 删除该类型设备对应的设备ID
Db::table("bs_device_serial")->where('type', $receive['function'])->delete();
// 重置bs_device_map表排序ID
Db::execute("ALTER TABLE bs_device_map DROP id;");
Db::execute("alter table bs_device_map add id int(11) not null auto_increment primary key first;");
// 重置排序ID
$this->resort();
if ($flag1) {
$this->logInsert('删除' . $receive['deviceName'] . '类型设备');
return 'ok';
} else {
return 'ERROR';
}
}
//添加新的设备类型
public function device_insert(Request $request)
{
$receive = $request->post();
//判断字段,不能与数据库中的序列号和映射表同名
if ($receive['function'] == 'map' || $receive['function'] == 'serial') {
return '该字段已被占用,请重新输入';
};
//判断新加入的名称和标识符是否重复,重复则报错提示
$flag0 = Db::table('bs_device_map')->where('function', $receive['function'])->find();
$flag1 = Db::table('bs_device_map')->where('chinese', $receive['chinese'])->find();
if ($flag0 || $flag1) {
if ($flag0) {
return '该设备标识名已存在,请重新输入';
};
if ($flag1) {
return '该设备已存在,请重新输入';
};
} else {
//在图标库中查找接收到的英文字符对应的该图标的数字符号
$icon = Db::table('bs_icon_data')->field('icon_string')->where('icon_sym', $receive['icon'])->select();
// dump($icon[0]['icon_string']);
//给数据表bs_device添加新的字段用来存放每个用户的该设备的数目
Db::execute("ALTER TABLE bs_device ADD " . $receive['function'] . " INT(255) NOT NULL DEFAULT 0 ");
//拼接bs_device_map表所需要的数据并写入数据库
$deviceMap = ['chinese' => $receive['chinese'], 'function' => $receive['function'], 'unit' => $receive['unit'], 'icon' => $icon[0]['icon_string']];
$flag = Db::table('bs_device_map')->insert($deviceMap);
//在data数据库中增加新表,存放新加入的设备中所有的用户uid对应的传感器型号以及该传感器添加时间
Db::execute("CREATE TABLE bs_device_" . $receive['function'] . "(uid VARCHAR(255) not null, serial_num VARCHAR(255) not null,status BOOLEAN NOT NULL DEFAULT TRUE,create_time DATETIME not null,area VARCHAR(255) not null,UNIQUE(serial_num)) ENGINE = MyISAM CHARSET=utf8 COLLATE utf8_general_ci ");
//在data数据库中添加数据存放新加入设备的详细数据
Db::execute("CREATE TABLE bs_device_data_" . $receive['function'] . "(time INT(255) NOT NULL, serial_num VARCHAR(255) not null, data FLOAT NOT NULL, id INT(255) NOT NULL AUTO_INCREMENT, PRIMARY KEY (id) ) ENGINE = MyISAM CHARSET=utf8 COLLATE utf8_general_ci ");
$this->resort();
if ($flag) {
$this->logInsert('新增:' . $receive['chinese'] . '类型设备,' . '设备标识符为:' . $receive['function']);
return 'ok';
} else {
return '后台数据异常,请联系管理员';
}
}
}
//设备ID添加绑定界面
public function device_add_page()
{
$devName = input('get.devName');
$this->assign('devName', $devName);
return $this->fetch();
}
//设备ID绑定函数
public function device_add(Request $request)
{
$receive = $request->post();
//获得该设备名所对应的设备标识符名称
$deviceName = (Db::table('bs_device_map')->where('chinese', $receive['deviceName'])->field('function')->find())['function'];
//验证该用户是否在用户表中,如果没有则返回提示
if (!(Db::table('bs_user')->where('uid', $receive['uid'])->find())) {
return '该用户不存在,请重新输入!';
};
//验证该设备序列号是否在设备序列号表中,如果没有则返回提示
$devSerial = Db::table('bs_device_serial')->where('type', $deviceName)->where('serial_num', $receive['serialNum'])->find();
if (!$devSerial) {
return '设备序列号错误,请重新输入!';
};
//验证该设备序列号是否已绑定,如果有则返回提示
if (Db::table('bs_device_' . $deviceName)->where('serial_num', $receive['serialNum'])->find()) {
return '该序列号已被绑定,请绑定其他设备!';
};
//获得当前系统时间
$dateTime = date("Y-m-d H:i:s");
//拼接要添加的数据
$allData = ['uid' => $receive['uid'], 'serial_num' => $receive['serialNum'], 'create_time' => $dateTime, 'area' => $receive['area']];
$flag = Db::table('bs_device_' . $deviceName)->insert($allData);
//添加初始化测试数据
$min = 60;
$max = 80;
for ($i = 0; $i < 7; $i++) {
$num = $min + mt_rand() / mt_getrandmax() * ($max - $min);
$num = floatval(number_format($num, 2));
$timeStamp = time();
$testDate = ['time' => $timeStamp,'serial_num'=>$receive['serialNum'], 'data' => $num];
Db::table('bs_device_data_' . $deviceName)->insert($testDate);
}
//更新用户设备表中该用户拥有该设备的数量
$num = Db::table('bs_device_' . $deviceName)->where('uid', $receive['uid'])->count();
Db::table('bs_device')->where('uid', $receive['uid'])->update([$deviceName => $num]);
if ($flag) {
$this->logInsert('在' . $receive['deviceName'] . '类型设备中将设备ID:' . $receive['serialNum'] . '与用户:' . $receive['uid'] . '绑定');
return 'ok';
} else {
return '数据库异常,请联系后台管理员';
}
}
//图标预览
public function icon()
{
return $this->fetch();
}
//显示每个设备ID的基本信息
public function show_detail()
{
$devName = input('get.devName');
$serial_num = input('get.serial_num');
$unit = (Db::table('bs_device_map')->where('chinese', $devName)->field('unit')->find())['unit'];
$this->assign('devName', $devName);
$this->assign('serial_num', $serial_num);
$this->assign('unit', $unit);
return $this->fetch();
}
// 单个设备ID的可视化数据传值
public function echarts(Request $request)
{
$receive = $request->post();
//将收到的设备名转换成对应的设备识别符
$deviceName = (Db::table('bs_device_map')->where('chinese', $receive['deviceName'])->field('function')->find())['function'];
// //获得前端所要查询的时间戳
// $timeStamp = intval($receive['time']);
$timeStamp = time();
// echo $timeStamp;
///////////////////////////////////////
//以下代码为后端模拟设备数据生成,实际生产环境请删除并匹配自己的数据库
//下面4行代码用来生产60-80之间的随机float类型小数
$min = 60;
$max = 80;
$num = $min + mt_rand() / mt_getrandmax() * ($max - $min);
$num = floatval(number_format($num, 2));
//////////$num为生成的随机float类型小数///////////////////
///接下来将生成的随机小数插入到该设备对应的数据存储表中的对应时间上
$data = ['time' => $timeStamp, 'serial_num' => $receive['serial_num'], 'data' => $num];
Db::table('bs_device_data_' . $deviceName)->insert($data);
//模拟设备数据生成完成/////////////////////////////
///////////////////////////////////////
// 接下来根据所取得的设备型号以及设备ID去对应的数据库中查询最近的7条数据
$result = Db::table('bs_device_data_' . $deviceName)->where('serial_num', $receive['serial_num'])->order('time desc')->field('time, data')->limit(7)->select();
return $result;
}
//显示该设备ID对应的历史数据
public function device_detailMsg()
{
$request = Request::instance();
$receive = $request->get();
// dump($receive);
// die;
//获得该设备名所对应的设备标识符名称
$deviceName = (Db::table('bs_device_map')->where('chinese', $receive['deviceName'])->field('function')->find())['function'];
// 判断请求类型是初始化数据表(true)还是搜索数据表(false)
$flag = count($receive) > 4 ? false : true;
//dump($flag);
if ($flag) {
$num = Db::table('bs_device_data_' . $deviceName)->where('serial_num', $receive['serial_num'])->count();
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页查询
$cate_list = Db::table("bs_device_data_" . $deviceName)->where('serial_num', $receive['serial_num'])->order('time desc')->limit($start, $limit)->select();
if (empty($cate_list)) {
$list["code"] = 1;
$list["msg"] = "暂无历史数据";
$list["count"] = $num;
$list["data"] = $cate_list;
} else {
for ($i = 0; $i < count($cate_list); $i++) {
$cate_list[$i]['time'] = date('Y-m-d H:i:s', $cate_list[$i]['time']);
}
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $cate_list;
}
return json($list);
} else {
// dump($receive);
// die;
//将接收到的日期转化成时间戳
$startTime = strtotime($receive['startDate']);
$endTime = strtotime($receive['endDate']);
$page = input("get.page") ? input("get.page") : 1;
$page = intval($page);
$limit = input("get.limit") ? input("get.limit") : 1;
$limit = intval($limit);
$start = $limit * ($page - 1);
//分页按照时间范围查询
$result = Db::table("bs_device_data_" . $deviceName)->where('serial_num', $receive['serial_num'])->where('time', '>', $startTime)->where('time', '<', $endTime)->order('time desc')->limit($start, $limit)->select();
$num = Db::table("bs_device_data_" . $deviceName)->where('serial_num', $receive['serial_num'])->where('time', '>', $startTime)->where('time', '<', $endTime)->order('time desc')->count();
for ($i = 0; $i < count($result); $i++) {
$result[$i]['time'] = date('Y-m-d H:i:s', $result[$i]['time']);
}
// dump($result);
if (empty($result)) {
$list["code"] = 1;
$list["msg"] = "未查询到" . $receive['startDate'] . ' ~ ' . $receive['endDate'] . "的数据";
$list["count"] = $num;
$list["data"] = $result;
} else {
$list["msg"] = "";
$list["code"] = 0;
$list["count"] = $num;
$list["data"] = $result;
}
return json($list);
}
}
//
// //图标入库
// public function getdata()
// {
// return $this->fetch();
// }
// public function iconsql(Request $request)
// {
// $data = $request->post();
//// dump($data);
// for ($i=0; $i<168; $i++)
// {
// $allData = [
// 'icon_name' => $data['datas'][$i]['icon_name'],
// 'icon_string' => $data['datas'][$i]['icon_string'],
// 'icon_sym' => $data['datas'][$i]['icon_sym'],
// ];
//// dump ($data['datas'][$i]['icon_string']) ;
// Db::table('bs_icon_data')->insert($allData);
// }
//
// }
}

30
application/index/model/User.php

@ -0,0 +1,30 @@
<?php
namespace app\index\model;
use think\Model;
class User extends Model
{
// 设置主键为id
protected $pk = 'id';
// 设置自动写入时间戳字段
protected $autoWriteTimestamp = 'datetime';
protected $updateTime = false;
// 时间字段取出后的默认时间格式
protected $dateFormat = 'Y-m-d H:i:s';
// 设置自动写入的时间戳字段名
protected $createTime = 'create_time';
// 实现自动写入登录ip字段
protected $auto = ['ip','login_time'];
protected function setIpAttr()
{
return request()->ip();
}
public function setLoginTimeAttr()
{
return date('Y-m-d H:i:s', time());
}
}

453
application/index/view/administrator/admin_list.html

@ -0,0 +1,453 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>管理员账号管理</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.layui-table thead span {
/*background-color: #acd3ed;*/
font-size: 15px;
}
.layui-table tbody tr td div {
font-size: 14px;
}
.layui-table tbody tr:hover {
background-color: #bff7f7;
}
.layui-table tbody tr:hover td div {
font-size: 18px;
}
</style>
</head>
<body class="layui-anim layui-anim-scale flag" style="display: none"><br/>
<div class="x-nav">
<span class="layui-breadcrumb">
<a>首页</a>
<a>
管理员管理
</a>
</span>
<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:5px;float:right"
id="refresh" title="刷新">
<i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
</a>
</div>
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card" style="border-radius: 20px;">
<div class="layui-card-body"
style="background-image: linear-gradient(#bff7f7,#ffffff , #bff7f7);border-radius: 20px;">
<form class="layui-form layui-col-space5" style="margin-top: 5px" id="myForm">
<div class="layui-input-inline">
<select lay-verify="choose" lay-filter="choose" name="option">
<option value="">选择要查找的内容</option>
<option value="账号">账号</option>
<option value="手机号">手机号</option>
<option value="邮箱">邮箱</option>
</select>
</div>
<div class="layui-inline layui-show-xs-block">
<input style="display: none" id="findText" lay-verify="message" type="text" name="message"
placeholder="输入信息" autocomplete="off"
class="layui-input">
</div>
<div class="layui-inline layui-show-xs-block">
<button class="layui-btn" lay-submit lay-filter="search">
<i class="layui-icon">&#xe615;</i>查找
</button>
</div>
</form>
<table id="demo" lay-filter="demo"></table>
</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/html" id="barDemo">
<a class="layui-btn layui-btn-radius layui-btn-normal layui-icon layui-icon-edit "
lay-event="edit">修改</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" value="{{d.account}}" lay-event="del">删除</a>
</script>
<script type="text/html" id="toolbarDemo">
<div class="layui-btn-container">
<button class="layui-btn layui-btn-radius layui-btn-lg" lay-event="getCheckData"
style="background-color: #bd2b28"><i class="layui-icon "></i>批量删除
</button>
<button class="layui-btn layui-btn-radius layui-btn-lg" lay-event="addAdmin">
<i class="layui-icon"></i>添加管理员
</button>
</div>
</script>
<script type="text/html" id="titleTpl">
<i>******</i>
</script>
<script type="text/html" id="checkboxTpl">
<input type="checkbox" name="lock" value="{{d.account}}" lay-skin="switch" lay-text="已停用|未停用" lay-filter="switchBan"
{{
d.status== 0 ? '' : 'checked' }}>
</script>
<script>
layui.use(['table', 'form', 'jquery', 'layer'], function () {
var $ = layui.jquery;
var table = layui.table;
var form = layui.form;
var layer = layui.layer;
// var notice = layui.notice;
//动态显示
parent.layui.notice.remove();
parent.layui.notice.info('管理员管理界面', '已进入', parent.noticeOpt1);
// parent.layui.notice.info('xxx界面', '已进入', parent.noticeOpt1);
$('.flag').show();
$("#refresh").click(function () {
// document.getElementById("myform").reset();
$("#myForm")[0].reset();
layui.form.render();
$("#findText").hide();
parent.layui.notice.remove();
parent.layui.notice.success("管理员数据列表已校准", "<div class = 'layui-icon layui-icon-heart-fill'> 同步成功</div>", parent.noticeOpt6);
table.render({
elem: '#demo'
, toolbar: '#toolbarDemo' //开启头部工具栏,并为其绑定左侧模板
, url: '/index/Administrator/adminMsg' //数据接口
, loading: true
, size: 'lg'
, page: {
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
// , limit: 7 //初始 每页几条数据
// , limits: [7, 12, 2] //可以选择的 每页几条数据
// , groups: 3 //最多几个跳页按钮
}
, cols: [[ //表头
{type: 'checkbox', width: 80}
, {field: 'id', title: 'ID', width: 80, align: 'center', sort: true, hide:true}
, {field: 'account', title: '账号', minWidth: 120, align: 'center'}
, {field: 'password', title: '密码', width: 80, align: 'center', templet: '#titleTpl', hide:true}
, {field: 'tel', title: '手机号', width: 150, align: 'center'}
, {field: 'email', title: '邮箱', minWidth: 250, align: 'left'}
, {
field: 'status',
title: '状态',
width: 124,
align: 'center',
templet: '#checkboxTpl',
unresize: true
}
, {field: 'operation', title: '操作', width: 160, align: 'center', toolbar: '#barDemo'}
]]
});
});
//生成数据表格
var tableIns = table.render({
elem: '#demo'
, toolbar: '#toolbarDemo' //开启头部工具栏,并为其绑定左侧模板
, url: '/index/Administrator/adminMsg' //数据接口
, loading: true
, size: 'lg'
, page: {
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
// , limit: 7 //初始 每页几条数据
// , limits: [7, 12, 2] //可以选择的 每页几条数据
// , groups: 3 //最多几个跳页按钮
}
, cols: [[ //表头
{type: 'checkbox', width: 80}
, {field: 'id', title: 'ID', width: 80, align: 'center', sort: true, hide:true}
, {field: 'account', title: '账号', minWidth: 120, align: 'center'}
, {field: 'password', title: '密码', width: 80, align: 'center', templet: '#titleTpl', hide:true}
, {field: 'tel', title: '手机号', width: 150, align: 'center'}
, {field: 'email', title: '邮箱', minWidth: 250, align: 'left'}
, {field: 'status', title: '状态', width: 124, align: 'center', templet: '#checkboxTpl', unresize: true}
, {field: 'operation', title: '操作', width: 160, align: 'center', toolbar: '#barDemo'}
]]
});
// 动态显示搜索选项提示
form.on('select(choose)', function (data) {
// console.log(data.elem); //得到select原始DOM对象
// console.log(data.value); //得到被选中的值
// console.log(data.othis); //得到美化后的DOM对象
var findText = $("#findText");
var select = data.value;
findText.val('');
// console.log(findText.val);
switch (select) {
case "账号":
findText.attr('placeholder', "请输入要搜索的账号");
// findText.attr('lay-reqText', '请输入要搜索的账号');
findText.show();
break;
case "手机号":
findText.show();
findText.attr('placeholder', '请输入要搜索的手机号');
// findText.attr('lay-reqText', '请输入要搜索的手机号');
break;
case "邮箱":
findText.show();
findText.attr('placeholder', '请输入要搜索的邮箱');
// findText.attr('lay-reqText', '请输入要搜索的邮箱');
break;
default:
findText.hide();
break;
}
});
// 自定义验证规则
form.verify({
choose: function (value) {
if (!value){
parent.layui.notice.remove();
parent.layui.notice.error('请选择搜索项', '操作异常', parent.noticeOpt5);
return '请选择搜索项!'
}
},
message: function (value) {
if (!value){
parent.layui.notice.remove();
parent.layui.notice.error('请输入要搜索的内容', '操作异常', parent.noticeOpt5);
return '请输入要搜索的内容';
}
}
});
//搜索功能
form.on('submit(search)',
function (data) {
layer.msg('搜索中', {time: 1000});
var load = layer.load();
tableIns.reload({
where: { //设定异步数据接口的额外参数,任意设
choose: data.field.option
, message: data.field.message
}
, page: {
curr: 1 //重新从第 1 页开始
}
, done: function (res, curr, count) {
layer.close(load);
parent.layui.notice.remove();
if (count === 0) {
parent.layui.notice.success(res.msg, '搜索完成', parent.noticeOpt4);
layer.msg('搜索完成,' + res.msg, {time: 1500});
} else {
parent.layui.notice.success('找到' + count + '条数据', '搜索完成', parent.noticeOpt4);
layer.msg('搜索完成,找到' + count + '条数据', {time: 1500});
}
}
});
return false;
});
// 停用、恢复 管理员
form.on('switch(switchBan)', function (data) {
var status = this.checked ? 'true' : 'false';
parent.layui.notice.remove();
$.ajax({
type: "POST",
url: "/index/Administrator/banAdmin",
data: {
account: data.value,
type: status
},
success: function (msg) {
parent.layui.notice.success('管理员:' + data.value + (status == 'true' ? ' 已停用' : ' 已恢复'), '操作成功', parent.noticeOpt4);
if (msg === 'ok') {
layer.tips('' + (status === 'true' ? '已停用' : '已恢复'), data.othis, {time: 600});
form.render('checkbox'); //刷新checkbox开关渲染
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.alert(msg, {icon: 2});
}
},
error: function () {
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据传输失败,请联系后台管理员!', {icon: 5})
}
});
// console.log(data.value);
});
//监听工具条
table.on('tool(demo)', function (obj) {
var data = obj.data;
//修改管理员
if (obj.event === 'edit') {
// layer.msg('ID:'+ data.id + ' 的查看操作');
parent.layui.notice.remove();
parent.layui.notice.warning('正在修改管理员:' + data.account + ' 的信息', '操作提示:', parent.noticeOpt3);
// parent.layui.notice.warning('正在执行xxx', '操作提示:', parent.noticeOpt3);
xadmin.open('修改管理员', '/index/tools/admin_edit?id=' + data.id, 400, 500, window.screen.width);
}
//单个删除管理员
else if (obj.event === 'del') {
parent.layui.notice.remove();
parent.layui.notice.warning('正在删除管理员:' + data.account, '操作提示:', parent.noticeOpt3);
layer.confirm('真的要删除管理员:' + data.account + ' 吗?', {
closeBtn: 0,
title: '提示',
shade: [0.7, '#dc7069']
}, function (index) {
// obj.del();
layer.msg('删除中……');
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Administrator/delAdmin",
data: {
account: data.account,
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
if (msg == 'ok') {
parent.layui.notice.success('删除管理员' + data.account + '成功', '操作完成', parent.noticeOpt4);
layer.msg('删除管理员' + data.account + '成功', {time: 1000, icon: 1});
setTimeout(function () {
// location.reload();
$("#refresh").click();
}, 800);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1200});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.msg('数据传输失败,请联系后台管理员', {time: 800, icon: 2});
}
});
layer.close(index);
},
function () {
layer.msg('您取消了操作', {time: 600});
}
);
}
});
//头工具栏事件
table.on('toolbar(demo)', function (obj) {
var checkStatus = table.checkStatus(obj.config.id);
// 添加管理员
if (obj.event === 'addAdmin') {
parent.layui.notice.remove();
parent.layui.notice.warning('正在添加管理员', '操作提示', parent.noticeOpt3);
xadmin.open('添加管理员', '/index/tools/admin_add', 400, 500, window.screen.width);
}
//批量删除管理员
if (obj.event === 'getCheckData') {
var data = checkStatus.data;
// console.log(data);
// console.log(data[0]['id']);
// console.log(data[0]['account']);
//判断是否为空
parent.layui.notice.remove();
if (!data[0]) {
// parent.layui.notice.options = parent.noticeOpt5;
parent.layui.notice.error('请选择要删除的管理员!', '操作异常', parent.noticeOpt5);
return layer.msg('请选择要删除的管理员!', {icon: 2, time: 800});
}
var arrId = new Array();
var arrAcc = '';
for (var i = 0, len = data.length; i < len; i++) {
arrId.push(data[i]['account']);
arrAcc += (data[i]['account']) + ' ';
}
// console.log(arrAcc);
parent.layui.notice.warning('正在删除管理员: ' + arrAcc, '操作提示', parent.noticeOpt3);
layer.confirm('确定要删除管理员: ' + arrAcc + '吗?', {
closeBtn: 0,
title: '提示',
shade: [0.7, '#dc7069'],
}, function (index) {
// obj.del();
layer.msg('删除中……');
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Administrator/delAllAdmin",
data: {
account: arrId,
log: arrAcc
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
if (msg == 'ok') {
parent.layui.notice.success('删除管理员' + arrAcc + '成功', '操作完成', parent.noticeOpt4);
layer.msg('删除管理员' + arrAcc + '成功', {time: 1400, icon: 1});
setTimeout(function () {
$("#refresh").click();
}, 1000);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1000});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.msg('数据传输失败,请联系后台管理员', {time: 800, icon: 1});
}
});
layer.close(index);
},
function () {
layer.msg('您取消了操作', {time: 600});
// location.reload();
});
}
});
});
</script>
</html>

520
application/index/view/administrator/device.html

@ -0,0 +1,520 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>设备信息总览</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.layui-table thead span {
/*background-color: #acd3ed;*/
font-size: 15px;
}
.layui-table tbody tr td div {
font-size: 14px;
}
.layui-table tbody tr:hover {
background-color: #f7e8df;
}
.layui-table tbody tr:hover td div {
font-size: 18px;
}
</style>
</head>
<body class="layui-anim layui-anim-scale flag" style="display: none"><br/>
<div class="x-nav">
<span class="layui-breadcrumb">
<a>首页</a>
<a>设备信息总览</a>
<a>设备序列号</a>
</span>
<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:5px;float:right"
id="refresh" title="刷新">
<i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
</a>
</div>
<div class="layui-fluid" style="margin-bottom: 30px;min-height: 740px">
<!-- style="width: 90%;margin-left: auto;margin-right: auto;"-->
<div class="layui-card" style="border-radius: 20px;">
<div class="layui-card-body"
style="background-image: linear-gradient(#f7e8df,#ffffff , #f7e8df);border-radius: 20px;">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
<legend class="layui-icon">设备序列号管理 &#xe705;&#xe705;&#xe705;</legend>
</fieldset>
<form class="layui-form layui-col-space5" action="" id="myForm">
<div class="layui-input-inline">
<select lay-verify="choose" lay-filter="choose" name="option">
<option value="">选择要查找的内容</option>
<option value="1">设备ID</option>
<option value="2">设备类型</option>
</select>
</div>
<div class="layui-inline layui-show-xs-block">
<input style="display: none" lay-verify="" id="findText" type="text" name="message"
autocomplete="false" placeholder="" lay-reqText="" class="layui-input">
</div>
<div class="layui-inline layui-show-xs-block">
<button class="layui-btn" lay-submit="" lay-filter="search">
<i class="layui-icon">&#xe615;</i>查找
</button>
</div>
</form>
<table id="demo" lay-filter="demo"></table>
</div>
</div>
</div>
<div class="x-nav" >
<span class="layui-breadcrumb">
<a>首页</a>
<a>设备信息总览</a>
<a>设备绑定情况总览</a>
</span>
<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:5px;float:right"
onclick="location.reload()" id="fresh" title="刷新">
<i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
</a>
</div>
<div class="layui-fluid" style="min-height: 770px;">
<div class="layui-card" style="border-radius: 20px;">
<div class="layui-card-body"
style="border-radius: 20px;background-image: linear-gradient(#BED5FF,#ffffff , #BED5FF);">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
<legend class="layui-icon">设备绑定情况总览 &#xe857;&#xe857;&#xe857;</legend>
</fieldset>
<div class="layui-row layui-col-space15" style="margin-bottom: 10px">
{foreach $dev as $device}
<div class="layui-col-sm6 layui-col-md4 layui-col-lg4">
<div class="layui-card" style="border-color: #7886a1;border-style:solid;border-width:1px;">
<div class="layui-card-header" style="background-color: rgba(190,213,255,0.79)" ;>
<i style="font-size: 1.7em;font-family: 黑体">{$device.chinese}</i>
<i class="layui-icon">&#xe62c;&#xe62c;&#xe62c;</i>
<span class="layui-badge "
style="background-color: #264c9a;border-radius: 5px">{$device.function}</span>
</div>
<div class="layui-card-body " style="background-color: rgba(190,213,255,0.79)">
<ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog"
style="background-color: rgb(206,255,210);border-radius: 10px">
<li class="layui-table-grid layui-col-xs4 layui-col-sm4 layui-col-md4 layui-col-lg3"
style="margin-top: 35px;">
<div class="layui-fluid">
<i class="layui-icon" style="font-size: 80px;">{$device.icon}</i>
</div>
</li>
<li class="layui-col-xs7 layui-col-sm7 layui-col-md7 layui-col-lg8 "
style="margin-left: 20px">
<a class="x-admin-backlog-body"
style="background-color: rgb(122,219,255);border-radius: 7px;height: 100px">
<h3 style="color:#000000;font-size: 20px;font-weight:800;font-family: 幼圆;-webkit-text-stroke: 1px #000000;">
设备总数量:</h3>
<p>
<br/>
<cite style="font-size: 35px">{$device.all}</cite>
</p>
</a>
</li>
</ul>
<ul class="layui-row layui-this x-admin-backlog">
<a class="x-admin-backlog-body "
style="background-color: rgb(248,212,233);margin-top:10px;border-radius: 27px;height: 80px">
<h3 style="font-size: 1.7em;font-weight:800;font-family: 黑体;">异常设备数:</h3>
<p style="margin-top: 10px">
<cite style="color: #BD362F">{$device.error}</cite>
</p>
</a>
</ul>
</div>
</div>
</div>
{/foreach}
</div>
</div>
</div>
</div>
<script type="text/html" id="barDemo">
<a class="layui-btn layui-btn-danger layui-icon layui-icon-delete layui-btn-xs" value="{{d.serial_num}}"
lay-event="del">
删除</a>
</script>
<script type="text/html" id="toolbarDemo">
<div class="layui-btn-container">
<button class="layui-btn layui-btn-radius layui-btn-lg" lay-event="add">
<i class="layui-icon"></i>设备ID入库
</button>
</div>
</script>
<script>
layui.use(['table', 'form', 'layer', 'jquery',], function () {
var table = layui.table;
var form = layui.form;
var layer = layui.layer;
var $ = layui.jquery;
$("#fresh").click(function () {
setTimeout(() => window.scrollTo(0, 870), 10);
});
$("#refresh").click(function () {
$("#myForm")[0].reset();
layui.form.render();
$("#findText").hide();
parent.layui.notice.remove();
parent.layui.notice.success("设备序列号列表已校准", "<div class = 'layui-icon layui-icon-heart-fill'> 同步成功</div>", parent.noticeOpt6);
table.render({
elem: '#demo'
, url: '/index/Administrator/serialMsg' //数据接口
, toolbar: '#toolbarDemo' //开启头部工具栏,并为其绑定左侧模板
, loading: true
, size: 'lg'
, page: {
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
, groups: 10 //最多几个跳页按钮
, first: false //不显示首页
, last: false //不显示尾页
}
, cols: [[ //表头,style: 'background-color: #bee4ca ; color: #2c2525 ' ,style: 'background-color: #acd3ed;color: #2c2525;' ,style: 'background-color: #bda9c5'
{
field: 'serial_num',
title: '设备ID',
minWidth: 100,
align: 'center'
}
, {
field: 'status', title: '绑定情况',
width: 90, align: 'center',
templet: function (d) {
if (d.status == '已绑定') {
return '<span style="color: #ab3635;font-family: 黑体;font-weight: bold;">' + d.status + '</span>'
} else {
return '<span style="color: #33912b;font-family: 黑体;font-weight: bold;">' + d.status + '</span>'
}
}
}
, {
field: 'type',
title: '设备类型',
align: 'left',
minWidth: 200
}
, {
field: 'operation',
title: '操作',
width: 90,
align: 'center',
toolbar: '#barDemo'
}
]]
});
});
//动态显示
parent.layui.notice.remove();
parent.layui.notice.info('设备信息总览', '已进入', parent.noticeOpt1);
setTimeout(function () {
$('.flag').show();
tableIns.resize();
},20);
//自定义验证规则
form.verify({
choose: function (value) {
if (!value) {
parent.layui.notice.remove();
parent.layui.notice.error('请选择搜索项', '操作异常', parent.noticeOpt5);
return '请选择搜索项!'
}
// return '请选择搜索项!'
},
message: function (value) {
if (!value) {
parent.layui.notice.remove();
parent.layui.notice.error('请输入要搜索的内容', '操作异常', parent.noticeOpt5);
return '请输入要搜索的内容';
}
}
});
// 动态显示搜索选项提示
form.on('select(choose)', function (data) {
// console.log(data.elem); //得到select原始DOM对象
// console.log(data.value); //得到被选中的值
// console.log(data.othis); //得到美化后的DOM对象
var findText = $("#findText");
var select = data.value;
//默认不显示输入框
findText.hide();
//重置验证类型
findText.attr('lay-verify', '');
//每次切换搜索项后都要清空里面的值
findText.val('');
// console.log(findText.val);
switch (select) {
case "1":
findText.attr('lay-verify', 'message');
findText.attr('placeholder', '请输入要搜索的设备ID');
// findText.attr('lay-reqText', '请输入要搜索的设备ID');
findText.show();
break;
case "2":
findText.attr('lay-verify', 'message');
findText.attr('placeholder', '请输入要搜索的设备类型');
// findText.attr('lay-reqText', '请输入要搜索的设备类型');
findText.show();
break;
}
});
//生成数据表格
var tableIns = table.render({
elem: '#demo'
, url: '/index/Administrator/serialMsg' //数据接口
, toolbar: '#toolbarDemo' //开启头部工具栏,并为其绑定左侧模板
, loading: true
, size: 'lg'
, page: {
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
, groups: 10 //最多几个跳页按钮
, first: false //不显示首页
, last: false //不显示尾页
}
, cols: [[ //表头,style: 'background-color: #bee4ca ; color: #2c2525 ' ,style: 'background-color: #acd3ed;color: #2c2525;' ,style: 'background-color: #bda9c5'
{
field: 'serial_num',
title: '设备ID',
minWidth: 100,
align: 'center'
}
, {
field: 'status', title: '绑定情况',
width: 90, align: 'center',
templet: function (d) {
if (d.status == '已绑定') {
return '<span style="color: #ab3635;font-family: 黑体;font-weight: bold;">' + d.status + '</span>'
} else {
return '<span style="color: #33912b;font-family: 黑体;font-weight: bold;">' + d.status + '</span>'
}
}
}
, {
field: 'type',
title: '设备类型',
align: 'left',
minWidth: 200
}
, {
field: 'operation',
title: '操作',
width: 90,
align: 'center',
toolbar: '#barDemo'
}
]]
// ,done: function(res, curr, count){
// //如果是异步请求数据方式,res即为你接口返回的信息。
// //如果是直接赋值的方式,res即为:{data: [], count: 99} data为当前页数据、count为数据总长度
// console.log(res.data);
//
// //得到数据总量
// console.log(count);
// }
});
//搜索功能
form.on('submit(search)', function (data) {
layer.msg('搜索中', {time: 500});
// console.log(data.field.findTime);
var load = layer.load();
tableIns.reload({
where: { //设定异步数据接口的额外参数,任意设
choose: data.field.option
, message: data.field.message
}
, page: {
curr: 1 //重新从第 1 页开始
}
, done: function (res, curr, count) {
layer.close(load);
parent.layui.notice.remove();
if (count === 0) {
parent.layui.notice.success(res.msg, '搜索完成', parent.noticeOpt4);
layer.msg('搜索完成,' + res.msg, {time: 1500});
} else {
parent.layui.notice.success('找到' + count + '条数据', '搜索完成', parent.noticeOpt4);
layer.msg('搜索完成,找到' + count + '条数据', {time: 1500});
}
}
});
return false;
});
table.on('toolbar(demo)', function (obj) {
if (obj.event === 'add') {
parent.layui.notice.remove();
parent.layui.notice.warning('正在添加新的设备ID', '操作提示', parent.noticeOpt3);
xadmin.open('设备ID入库', '/index/tools/device_id_add_page', 380, 390, window.screen.width);
}
});
//删除设备ID
table.on('tool(demo)', function (obj) {
var data = obj.data;
var flag = false;
parent.layui.notice.remove();
parent.layui.notice.warning('正在删除ID为:' + data.serial_num + ' 的' + data.type + '设备:', '操作提示', parent.noticeOpt3);
if (obj.event === 'del') {
layer.confirm('真的要删除序列号为 ' + data.serial_num + ' 的' + data.type + '设备吗?'
, {
icon: 3,
title: '提示',
closeBtn: 0,
}
, function (index) {
if (data.status === '已绑定') {
layer.confirm('检测到该设备ID已被绑定,删除该设备ID会同时解除绑定并删除所有该设备ID产生的数据信息,请再次确认操作!'
, {
icon: 7
, btn: ['心意已决', '算了吧']
, btn1: function (index1) {
flag = true;
console.log(flag);
layer.msg('删除中……', {time: 800});
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Administrator/delDevID",
data: {
type: data.type,
serial_num: data.serial_num,
flag: flag,
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
layer.close(index1);
if (msg === 'ok') {
parent.layui.notice.success('成功删除序列号为:' + data.serial_num + '的设备及其产生的数据', '操作完成', parent.noticeOpt4);
layer.msg('成功删除序列号为:' + data.serial_num + '的设备及其产生的数据', {
time: 1400,
icon: 1
});
setTimeout(function () {
$("#refresh").click();
}, 1200);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1000});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据传输失败,请联系后台管理员!', {icon: 2})
}
});
}
, btn2: function (index1) {
layer.msg('您取消了操作', {time: 800});
layer.close(index1);
}
}
)
} else {
//删除未绑定的设备ID
// console.log(data.serial_num + flag);
layer.msg('删除中……', {time: 800});
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Administrator/delDevID",
data: {
type: data.type,
serial_num: data.serial_num,
flag: flag,
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
if (msg == 'ok') {
parent.layui.notice.success('成功删除序列号为:' + data.serial_num + ' 的设备', '操作完成', parent.noticeOpt4);
layer.msg('成功删除序列号为:' + data.serial_num + ' 的设备', {time: 1800, icon: 1});
setTimeout(function () {
$("#refresh").click();
}, 1400);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1200});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据传输失败,请联系后台管理员!', {icon: 2})
}
});
}
layer.close(index);
}
, function (index) {
layer.msg('您取消了操作', {time: 800});
layer.close(index);
}
);
}
});
});
</script>
</body>
</html>

453
application/index/view/administrator/device_list.html

@ -0,0 +1,453 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>设备管理</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<style>
.layui-table thead span {
/*background-color: #acd3ed;*/
font-size: 15px;
}
.layui-table tbody tr td div {
font-size: 14px;
}
.layui-table tbody tr:hover {
background-color: #f6e4f7;
}
.layui-table tbody tr:hover td div {
font-size: 18px;
}
</style>
</head>
<body class="layui-anim layui-anim-scale flag" style="display: none"><br/>
<div class="x-nav">
<span class="layui-breadcrumb">
<a>首页</a>
<a>设备管理</a>
<a id="deviceName">{$dev.name}</a>
</span>
<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:5px;float:right"
id="refresh" title="刷新">
<i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
</a>
</div>
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card" style="border-radius: 20px;">
<div class="layui-card-body"
style="background-image: linear-gradient(#f6e4f7,#ffffff , #f6e4f7);border-radius: 20px;">
<form class="layui-form layui-col-space5" style="margin-top: 5px" id="myForm">
<div class="layui-input-inline">
<select lay-verify="choose" lay-filter="choose" name="option">
<option value="">选择要查找的内容</option>
<option value="1">用户ID</option>
<option value="2">设备ID</option>
<option value="3">所在地区</option>
</select>
</div>
<div class="layui-inline layui-show-xs-block">
<input style="display: none" lay-verify="message" id="findText" type="text" name="message"
placeholder="" lay-reqText="" class="layui-input">
</div>
<div class="layui-inline layui-show-xs-block">
<button class="layui-btn" lay-submit="" lay-filter="search">
<i class="layui-icon">&#xe615;</i>查找
</button>
</div>
</form>
<table id="demo" lay-filter="demo"></table>
</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/html" id="showDetail">
<a class="layui-btn layui-btn-radius layui-btn-normal layui-icon layui-icon-template-1 "
lay-event="showDetail"> 查看实时动态</a>
</script>
<script type="text/html" id="barDemo">
<a class="layui-btn layui-btn-danger layui-icon layui-icon-delete layui-btn-xs" value="{{d.id}}" lay-event="del">
删除</a>
</script>
<script type="text/html" id="toolbarDemo">
<div class="layui-btn-container">
<button class="layui-btn layui-btn-radius layui-btn-lg" lay-event="delete_all"
style="background-color: #bd2b28">
<i class="layui-icon layui-icon-delete"></i>批量删除
</button>
<button class="layui-btn layui-btn-radius layui-btn-lg" lay-event="device_add">
<i class="layui-icon layui-icon-add-circle"></i>绑定设备
</button>
</div>
</script>
<script>
layui.use(['table', 'form', 'layer', 'jquery'], function () {
var table = layui.table;
var form = layui.form;
var $ = layui.jquery;
var layer = layui.layer;
//动态显示
parent.layui.notice.remove();
parent.layui.notice.info('{$dev.name}设备管理界面', '已进入', parent.noticeOpt1);
setTimeout(function () {
$('.flag').show();
tableIns.resize();
}, 20);
// $('.flag').show();
$("#refresh").click(function () {
$("#myForm")[0].reset();
layui.form.render();
$("#findText").hide();
parent.layui.notice.remove();
parent.layui.notice.success("{$dev.name}设备列表已校准", "<div class = 'layui-icon layui-icon-heart-fill'> 同步成功</div>", parent.noticeOpt6);
table.render({
elem: '#demo'
, toolbar: '#toolbarDemo' //开启头部工具栏,并为其绑定左侧模板
, url: '/index/Administrator/deviceMsg?deviceName=' + $("#deviceName").text() //数据接口
, loading: true
, size: 'lg'
, initSort: {
field: 'serial_num' //排序字段,对应 cols 设定的各字段名
, type: 'asc' //排序方式 asc: 升序、desc: 降序、null: 默认排序
}
, page: {
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
, limit: 7 //初始 每页几条数据
, limits: [7, 12, 2] //可以选择的 每页几条数据
, groups: 10 //最多几个跳页按钮
, first: false //不显示首页
, last: false //不显示尾页
}
, cols: [[ //表头
{type: 'checkbox', width: 80}
, {
field: 'status', title: '状态', width: 90, align: 'center',
templet: function (d) {
if (d.status === 0) {
return '<div name="lock" lay-skin="switch" style="width: 50px;font-size: 16px;height:38px;border-radius: 10px;background-color:#b52926;color: #ffffff">异常</div>'
} else {
return '<div name="lock" lay-skin="switch" style="width: 50px;font-size: 16px;height:38px;border-radius: 10px;background-color:#248e53;color: #ffffff">正常</div>'
}
},
unresize: true
}
, {field: 'serial_num', title: '设备ID', align: 'center', minWidth: 120, sort: true}
, {field: 'uid', title: '用户ID', minWidth: 120, align: 'center'}
, {field: 'area', title: '所在地区', minWidth: 300, align: 'center'}
, {field: 'create_time', title: '绑定时间', minWidth: 300, align: 'center'}
, {
field: 'operation',
title: '状态可视化',
width: 138,
align: 'center',
fixed: 'right',
toolbar: '#showDetail'
}
, {field: 'operation', title: '操作', width: 100, align: 'center', fixed: 'right', toolbar: '#barDemo'}
]]
});
});
// 自定义验证规则
form.verify({
choose: function (value) {
if (!value) {
parent.layui.notice.remove();
parent.layui.notice.error('请选择搜索项', '操作异常', parent.noticeOpt5);
return '请选择搜索项!'
}
// return '请选择搜索项!'
},
message: function (value) {
if (!value) {
parent.layui.notice.remove();
parent.layui.notice.error('请输入要搜索的内容', '操作异常', parent.noticeOpt5);
return '请输入要搜索的内容';
}
}
});
// 动态显示搜索选项提示
form.on('select(choose)', function (data) {
// console.log(data.elem); //得到select原始DOM对象
// console.log(data.value); //得到被选中的值
// console.log(data.othis); //得到美化后的DOM对象
var findText = $("#findText");
var select = data.value;
findText.val('');
// console.log(findText.val);
switch (select) {
case "1":
findText.attr('placeholder', "请输入要搜索的用户ID");
// findText.attr('lay-reqText', '请输入要搜索的用户ID');
findText.show();
break;
case "2":
findText.show();
findText.attr('placeholder', '请输入要搜索的设备ID');
// findText.attr('lay-reqText', '请输入要搜索的设备ID');
break;
case "3":
findText.show();
findText.attr('placeholder', '请输入该设备所在地区');
// findText.attr('lay-reqText', '请输入该设备所在地区');
break;
default:
findText.hide();
break;
}
});
//搜索功能
form.on('submit(search)', function (data) {
layer.msg('搜索中', {time: 500});
// console.log(data.field.message);
var load = layer.load();
tableIns.reload({
where: { //设定异步数据接口的额外参数,任意设
deviceName: $("#deviceName").text()
, choose: data.field.option
, message: data.field.message
}
, page: {
curr: 1 //重新从第 1 页开始
}
, done: function (res, curr, count) {
layer.close(load);
parent.layui.notice.remove();
if (count === 0) {
parent.layui.notice.success(res.msg, '搜索完成', parent.noticeOpt4);
layer.msg('搜索完成,' + res.msg, {time: 1500});
} else {
parent.layui.notice.success('找到' + count + '条数据', '搜索完成', parent.noticeOpt4);
layer.msg('搜索完成,找到' + count + '条数据', {time: 1500});
}
}
});
return false;
});
//生成数据表格
var tableIns = table.render({
elem: '#demo'
, toolbar: '#toolbarDemo' //开启头部工具栏,并为其绑定左侧模板
, url: '/index/Administrator/deviceMsg?deviceName=' + $("#deviceName").text() //数据接口
, loading: true
, size: 'lg'
, initSort: {
field: 'serial_num' //排序字段,对应 cols 设定的各字段名
, type: 'asc' //排序方式 asc: 升序、desc: 降序、null: 默认排序
}
, page: {
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
, limit: 7 //初始 每页几条数据
, limits: [7, 12, 2] //可以选择的 每页几条数据
, groups: 10 //最多几个跳页按钮
, first: false //不显示首页
, last: false //不显示尾页
}
, cols: [[ //表头
{type: 'checkbox', width: 80}
, {
field: 'status', title: '状态', width: 90, align: 'center',
templet: function (d) {
if (d.status === 0) {
return '<div name="lock" lay-skin="switch" style="width: 50px;font-size: 16px;height:38px;border-radius: 10px;background-color:#b52926;color: #ffffff">异常</div>'
} else {
return '<div name="lock" lay-skin="switch" style="width: 50px;font-size: 16px;height:38px;border-radius: 10px;background-color:#248e53;color: #ffffff">正常</div>'
}
},
unresize: true
}
, {field: 'serial_num', title: '设备ID', align: 'center', minWidth: 120, sort: true}
, {field: 'uid', title: '用户ID', minWidth: 120, align: 'center'}
, {field: 'area', title: '所在地区', minWidth: 300, align: 'center'}
, {field: 'create_time', title: '绑定时间', minWidth: 300, align: 'center'}
, {
field: 'operation',
title: '状态可视化',
width: 138,
align: 'center',
fixed: 'right',
toolbar: '#showDetail'
}
, {field: 'operation', title: '操作', width: 100, align: 'center', fixed: 'right', toolbar: '#barDemo'}
]]
// ,done: function(res, curr, count){
// //如果是异步请求数据方式,res即为你接口返回的信息。
// //如果是直接赋值的方式,res即为:{data: [], count: 99} data为当前页数据、count为数据总长度
// console.log(res.data);
//
// //得到数据总量
// console.log(count);
// }
});
//监听头工具栏 批量删除 和 绑定设备 按钮
table.on('toolbar(demo)', function (obj) {
// console.log(obj.event);
if (obj.event === 'device_add') {
parent.layui.notice.remove();
parent.layui.notice.warning('正在绑定设备', '操作提示', parent.noticeOpt3);
xadmin.open('绑定设备', '/index/Tools/device_add_page?devName=' + $("#deviceName").text(), 400, 500, window.screen.width);
}
if (obj.event === 'delete_all') {
var checkStatus = table.checkStatus(obj.config.id);
var data = checkStatus.data;
//判断是否为空
parent.layui.notice.remove();
if (!data[0]) {
// parent.layui.notice.options = parent.noticeOpt5;
parent.layui.notice.error('请选择要删除的设备ID!', '操作异常', parent.noticeOpt5);
return layer.msg('请选择要删除的设备ID!', {icon: 2, time: 800});
}
var arrSerial = new Array();
var arrAcc = '';
for (var i = 0, len = data.length; i < len; i++) {
arrSerial.push(data[i]['serial_num']);
arrAcc += (data[i]['uid']) + '、';
}
// console.log(arrAcc);
console.log(arrSerial);
parent.layui.notice.warning('正在删除用户: ' + arrAcc + ' 的 ' + arrSerial + ' 设备', '操作提示', parent.noticeOpt3);
layer.confirm('真的要删除用户:' + arrAcc + ' 的 ' + arrSerial + ' 设备吗?', {closeBtn: 0}, function (index) {
// obj.del();
layer.msg('删除中……', {time: 600});
var load = layer.load();
$.ajax({
type: "POST",
url: '/index/Administrator/delAllDev',
data: {
deviceName: $("#deviceName").text(),
serial_num: arrSerial,
log: arrAcc,
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
if (msg == 'ok') {
parent.layui.notice.success('成功删除用户:' + arrAcc + ' 的 ' + arrSerial + ' 设备', '操作完成', parent.noticeOpt4);
layer.msg('成功删除用户:' + arrAcc + ' 的 ' + arrSerial + ' 设备', {time: 1800, icon: 1});
setTimeout(function () {
$("#refresh").click();
}, 2000);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1000});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据传输失败,请联系后台管理员!', {icon: 2})
}
});
layer.close(index);
},
function () {
layer.msg('您取消了操作', {time: 600});
// location.reload();
}
);
}
});
//监听单个删除按钮
table.on('tool(demo)', function (obj) {
var data = obj.data;
parent.layui.notice.remove();
if (obj.event === 'del') {
parent.layui.notice.warning('正在删除用户:' + data.uid+' 的 ' + data.serial_num + '设备。', '操作提示:', parent.noticeOpt3);
layer.confirm('真的要删除用户 ' + data.uid + ' 的 ' + data.serial_num + '设备吗?',{closeBtn: 0}, function (index) {
// obj.del();
layer.msg('删除中……', {time: 600});
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Administrator/delDev",
data: {
deviceName: $("#deviceName").text(),
serial_num: data.serial_num,
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
if (msg === 'ok') {
parent.layui.notice.success('成功删除用户:' + data.uid+' 的 ' + data.serial_num + '设备。', '操作完成', parent.noticeOpt4);
layer.msg('成功删除用户:' + data.uid+' 的 ' + data.serial_num + '设备。', {time: 1400, icon: 1});
setTimeout(function () {
$("#refresh").click();
}, 1200);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1000});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据传输失败,请联系后台管理员!', {icon: 2})
}
});
layer.close(index);
},
function () {
layer.msg('您取消了操作', {time: 600});
// location.reload();
}
);
}
//每个设备的数据可视化弹窗显示
if (obj.event === 'showDetail') {
// xadmin.open('添加设备', '/index/Tools/device_add_page?devName=' + $("#deviceName").text(), 400, 500, window.screen.width);
parent.xadmin.add_tab('设备' + data.serial_num, '/index/Tools/show_detail?devName=' + $("#deviceName").text() + '&serial_num=' + data.serial_num);
}
});
//下面为结束符号
});
</script>
</html>

469
application/index/view/administrator/index.html

@ -0,0 +1,469 @@
<!doctype html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>物联网后台管理系统</title>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<link rel="stylesheet" href="/dist/notice.css">
<!-- <link rel="stylesheet" href="./css/theme5.css"> -->
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
// 是否开启刷新记忆tab功能
// var is_remember = false;
</script>
</head>
<body class="index">
<!-- 顶部开始 -->
<div class="container flag1" style="display: none">
<div class="logo">
<a href="./index.html">物联网云平台</a></div>
<div class="left_open">
<a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
</div>
<!-- <ul class="layui-nav left fast-add" lay-filter="">-->
<!-- <li class="layui-nav-item">-->
<!-- <a href="javascript:;">+新增</a>-->
<!-- <dl class="layui-nav-child">-->
<!-- &lt;!&ndash; 二级菜单 &ndash;&gt;-->
<!-- <dd>-->
<!-- <a onclick="xadmin.open('最大化','http://www.baidu.com','','',true)">-->
<!-- <i class="iconfont">&#xe6a2;</i>弹出最大化</a></dd>-->
<!-- <dd>-->
<!-- <a onclick="xadmin.open('弹出自动宽高','http://www.baidu.com')">-->
<!-- <i class="iconfont">&#xe6a8;</i>弹出自动宽高</a></dd>-->
<!-- <dd>-->
<!-- <a onclick="xadmin.open('弹出指定宽高','http://www.baidu.com',500,300)">-->
<!-- <i class="iconfont">&#xe6a8;</i>弹出指定宽高</a></dd>-->
<!-- <dd>-->
<!-- <a onclick="xadmin.add_tab('在tab打开','member-list.html')">-->
<!-- <i class="iconfont">&#xe6b8;</i>在tab打开</a></dd>-->
<!-- <dd>-->
<!-- <a onclick="xadmin.add_tab('在tab打开刷新','member-del.html',true)">-->
<!-- <i class="iconfont">&#xe6b8;</i>在tab打开刷新</a></dd>-->
<!-- </dl>-->
<!-- </li>-->
<!-- </ul>-->
<ul class="layui-nav right" style="" lay-filter="">
<li class="layui-nav-item">
<a href="javascript:;">{$name}</a>
<dl class="layui-nav-child">
<!-- 二级菜单 -->
<dd>
<a href="https://www.bilibili.com/video/BV1uE411w77F/" target="_blank">云平台视频介绍</a>
</dd>
<dd>
<a href="/index/Administrator/quit">退出</a>
</dd>
</dl>
</li>
<img src="/images/handsome.ico" style="margin-top: auto;margin-left: 10px;width: 30px;border-radius:60px">
</ul>
</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav flag2" style="margin-bottom: -10px;display: none">
<div id="side-nav">
<ul id="nav">
<!-- 统计页面-->
<!-- <li>-->
<!-- <a onclick="xadmin.add_tab('统计页面','/index/Administrator/statistics.html')">-->
<!-- <i class="layui-icon">&#xe653;</i>-->
<!-- <cite>统计页面</cite>-->
<!-- </a>-->
<!-- </li>-->
<!-- 管理员管理-->
<li>
<!-- admin-list.html-->
<a onclick="xadmin.add_tab('管理员管理','/index/Administrator/admin_list')">
<i class="iconfont">&#xe726;</i>
<cite>管理员管理</cite>
</a>
</li>
<!-- 用户管理-->
<li>
<a onclick="xadmin.add_tab('用户管理','/index/Administrator/user_list')">
<i class="iconfont left-nav-li" lay-tips="用户管理">&#xe6b8;</i>
<cite>用户管理</cite>
</a>
</li>
<!-- &lt;!&ndash;测试&ndash;&gt;-->
<!-- <li>-->
<!-- <a class="site-demo-active" id="test">-->
<!-- <i class="iconfont left-nav-li" lay-tips="测试">&#xe6b8;</i>-->
<!-- <cite>测试</cite>-->
<!-- </a>-->
<!-- </li>-->
<!-- 设备管理-->
<li>
<a href="javascript:;">
<i class="layui-icon left-nav-li" lay-tips="设备管理">&#xe653;</i>
<cite>设备管理</cite>
<i class="iconfont nav_right">&#xe697;</i></a>
<ul class="sub-menu">
<li>
<a onclick="xadmin.add_tab('设备信息总览','/index/Administrator/device')">
<i class="layui-icon">&#xe663;</i>
<cite>设备信息总览</cite>
</a>
</li>
<li>
<!-- <a onclick="xadmin.open('增删设备','/index/Tools/device_add',800,'',window.screen.width)">-->
<a onclick="xadmin.add_tab('增删设备','/index/Tools/device_operation')">
<i class="layui-icon">&#xe857;</i>
<cite>增删设备</cite>
</a>
</li>
<li>
<a href="javascript:;">
<i class="layui-icon">&#xe610;</i>
<cite>设备列表</cite>
<i class="iconfont nav_right">&#xe697;</i></a>
<ul class="sub-menu">
{foreach $dev as $device}
<li>
<a onclick="xadmin.add_tab('{$device.chinese}','/index/Administrator/device_list?name='+'{$device.chinese}',true)">
<i class="layui-icon">{$device.icon}</i>
<cite>{$device.chinese}</cite></a>
</li>
{/foreach}
</ul>
</li>
</ul>
</li>
<li>
<a id="log">
<i class="layui-icon left-nav-li" lay-tips="日志">&#xe6b2;</i>
<cite>日志记录</cite>
</a>
</li>
</ul>
</div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
<div class="layui-tab tab flag3" style="display: none" lay-filter="xbs_tab" lay-allowclose="false">
<ul class="layui-tab-title">
<li id="myHome" class="home" lay-id="Home">
<i class="layui-icon">&#xe68e;</i>数据总览
</li>
</ul>
<div class="layui-tab-content ">
<div class="layui-tab-item layui-show layui-hide layui-anim layui-anim-fadein" id="showHome">
<iframe src='/index/Administrator/welcome' id="hom" frameborder="0" style="width:100%;height:100%;overflow:scroll;overflow-x:hidden"
class="x-iframe"></iframe>
</div>
</div>
<div id="tab_show"></div>
</div>
</div>
<div class="page-content-bg"></div>
<style id="theme_style"></style>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
<script id="logForm" type="text/html">
<div class="layui-fluid">
<input style="height: 45px" type="text" id="logInput" name="" placeholder="获取校验码后在此处输入定制的二级密码"
autocomplete="off"
class="layui-input">
</div>
</script>
<script>
//进入界面
var noticeOpt1 = {
showMethod: 'slideDown',
hideMethod: 'slideUp',
closeButton: false,//显示关闭按钮
positionClass: "toast-bottom-full-width",//弹出的位置,
showDuration: 300,//显示的时间
hideDuration: 400,//消失的时间
timeOut: 2000,//停留的时间
extendedTimeOut: 200,//控制时间
};
//二级密码校验码弹窗提示
var noticeOpt2 = {
showMethod: 'slideDown',
hideMethod: 'slideUp',
closeButton: false,//显示关闭按钮
positionClass: "toast-bottom-full-width",//弹出的位置,
showDuration: 300,//显示的时间
hideDuration: 300,//消失的时间
timeOut: 0,//停留的时间
extendedTimeOut: 0,//控制时间
};
//执行操作提示
var noticeOpt3 = {
showMethod: 'fadeIn',
hideMethod: 'fadeOut',
closeButton: false,//显示关闭按钮
positionClass: "toast-top-right",//弹出的位置,
showDuration: 300,//显示的时间
hideDuration: 300,//消失的时间
timeOut: 2000,//停留的时间
extendedTimeOut: 200,//控制时间
};
//操作成功提示
var noticeOpt4 = {
showMethod: 'slideDown',
hideMethod: 'fadeOut',
closeButton: false,//显示关闭按钮
positionClass: "toast-top-center",//弹出的位置,
showDuration: 300,//显示的时间
hideDuration: 300,//消失的时间
timeOut: 1900,//停留的时间
extendedTimeOut: 200,//控制时间
};
//操作失败提示
var noticeOpt5 = {
showMethod: 'slideDown',
hideMethod: 'slideUp',
closeButton: false,//显示关闭按钮
positionClass: "toast-top-full-width",//弹出的位置,
showDuration: 300,//显示的时间
hideDuration: 300,//消失的时间
timeOut: 1000,//停留的时间
extendedTimeOut: 200,//控制时间
};
//操作过程提示
var noticeOpt6 = {
showMethod: 'slideDown',
hideMethod: 'slideUp',
closeButton: false,//显示关闭按钮
positionClass: "toast-top-full-width",//弹出的位置,
showDuration: 300,//显示的时间
hideDuration: 300,//消失的时间
timeOut: 2000,//停留的时间
extendedTimeOut: 100,//控制时间
iconClass: 'layui-icon'
};
layui.config({
base: '/dist/'
}).extend({
notice: 'notice'
});
layui.use(['notice', 'jquery', 'element', 'layer'], function () {
var notice = layui.notice; // 允许别名 toastr
var element = layui.element;
var $ = layui.jquery;
var layer = layui.layer;
// 初始化通知配置,同一样式只需要配置一次,非必须初始化,有默认配置
notice.options = {
showMethod: 'slideDown',
hideMethod: 'slideUp',
closeButton: true,//显示关闭按钮
debug: false,//启用debug
positionClass: "toast-bottom-full-width",//弹出的位置,
showDuration: 300,//显示的时间
hideDuration: 300,//消失的时间
timeOut: 1000,//停留的时间
extendedTimeOut: 0,//控制时间
showEasing: "swing",//显示时的动画缓冲方式swing为变速
// showEasing: "linear",//显示时的动画缓冲方式
hideEasing: "linear",//消失时的动画缓冲方式linear为匀速
iconClass: 'toast-info', // 自定义图标,有内置,如不需要则传空 支持layui内置图标/自定义iconfont类名
onclick: null, // 点击关闭回调
};
notice.success("您已进入管理员操作界面", '欢迎管理员:{$name}', noticeOpt4);
//下滑出现操作界面
$(".flag1").slideDown("slow");
$(".flag2").delay(400).slideDown("slow");
$(".flag3").delay(1000).fadeIn("slow");
//浮现我的桌面
setTimeout(function () {
// $("#showHome").removeClass("layui-hide");
}, 1500);
// $('#test').click(function () {
// element.tabChange('xbs_tab', 'Home'); //切换到:用户管理
// });
//点击我的桌面
var myHome = document.querySelector('#myHome');
myHome.addEventListener('click', function () {
$("#showHome").removeClass("layui-hide");
// console.log(document.getElementById("hom").contentWindow);
notice.remove();
notice.success("可视化数据已校准", "<div class = 'layui-icon layui-icon-heart-fill'> 同步成功</div>", noticeOpt6);
setTimeout(function () {
document.getElementById("hom").contentWindow.echatsResize();
document.getElementById("hom").contentWindow.updateCards();
document.getElementById("hom").contentWindow.updateEcharts();
}, 300);
});
//打开日志记录
var str = '';
var num = [];
$('#log').click(function () {
layer.open({
type: 1
, title: '二级验证'
, content: $("#logForm").html()
, skin: 'layui-layer-lan'
, area: ['300px', '170px']
, btn: ['获取当前校验码', '确认']
, btnAlign: 'c'
, success: function (layero, index) {
//设置1提示内容
$(".layui-layer-btn1").text('请先获取校验码');
//禁用1鼠标点击
$(".layui-layer-btn1").attr("disabled", true);
$(".layui-layer-btn1").css("pointer-events", "none");
//设置0/1背景色
$(".layui-layer-btn0").css("background", "#d2ecff");
$(".layui-layer-btn1").css("background", "#ffb3b7");
$("#logInput").attr('disabled', true);
}
, btn1: function () {
//生成随机数
str = '';
num = [];
for (var i = 0; i < 3; i++) {
num.push(parseInt(Math.random() * 5));
str += num[i];
}
var btn0 = $(".layui-layer-btn0");
var btn1 = $(".layui-layer-btn1");
//设置0提示文字
btn0.text('当前校验码:' + str);
//禁用0鼠标点击
btn0.attr("disabled", true);
btn0.css("pointer-events", "none");
//设置0背景色
btn0.css("background", "#6eb7d5");
//设置0字体颜色
btn0.css("color", "#faffff");
//设置输入框提示内容
$("#logInput").attr('placeholder', '提示:w · yyyy · d · H · M');
//允许输入框输入内容
$("#logInput").attr('disabled', false);
//恢复1鼠标点击
btn1.attr("disabled", false);
btn1.css("pointer-events", "auto");
//设置1背景色
btn1.css("background", "#61b77d");
//设置1字体颜色
btn1.css("color", "#ffffff");
//设置1提示内容
$(".layui-layer-btn1").text('确认');
notice.options = noticeOpt2;
notice.info("<div class = 'layui-icon'> 当前时间:&#xe68d; " + updateTime() + "</div>", "<span class='layui-icon layui-icon-tips'> 提示:w · yyyy · d · H · M</span>", {iconClass: 'layui-icon'});
}
, btn2: function (index) {
// console.log($("#logInput").val());
// notice.remove();
// notice.warning('正在检验二级密码是否正确','校验码审核',noticeOpt3);
var myDate = new Date();
var week = myDate.getDay();
var year = myDate.getFullYear();
var day = myDate.getDate();
var hour = myDate.getHours();
var month = (myDate.getMonth() + 1);
$.ajax({
type: "POST",
url: "/index/Administrator/log_verify",
data: {
logInput: $("#logInput").val(),
numArr: num,
week: week,
year: year,
day: day,
hour: hour,
month: month
},
success: function (msg) {
if (msg == 'ok') {
notice.remove();
notice.success('正在打开日志记录…………', '本次校验码审核通过', noticeOpt4);
layer.msg('校验成功', {time: 800, icon: 1});
setTimeout(function () {
layer.close(index);
// xadmin.open('日志记录', '/index/Administrator/log');
notice.remove();
xadmin.add_tab('日志记录', '/index/Administrator/log');
}, 1000);
} else {
layer.msg(msg, {icon: 4, time: 1000});
notice.remove();
notice.error('校验码错误,请检查后重新输入', '校验码未通过审核', noticeOpt5);
$("#logInput").val('');
$("#logInput").focus();
setTimeout(function () {
notice.info("<div class = 'layui-icon'> 当前时间:&#xe68d; " + updateTime() + "</div>", "<span class='layui-icon layui-icon-tips'> 提示:w · yyyy · d · H · M</span>", {iconClass: 'layui-icon'});
}, 1500)
}
},
error: function () {
notice.remove();
layer.msg('数据传输错误,请联系后台管理员', {time: 800, icon: 5});
notice.error('请联系后台管理员', '数据传输错误', noticeOpt5);
layer.close(index);
},
});
return false;
}
, cancel: function () {
notice.clear();
}
}
);
});
function updateTime() {
var date = new Date();
this.year = date.getFullYear();
this.month = date.getMonth() + 1;
this.date = date.getDate();
this.day = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六")[date.getDay()];
this.hour = date.getHours();
var currentTime = this.year + " 年 " + this.month + " 月 " + this.date + " 日 " + this.day + " , " + this.hour + "点";
return currentTime;
}
});
</script>
</body>
</html>

307
application/index/view/administrator/log.html

@ -0,0 +1,307 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>日志记录</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<style>
/*.layui-table-view .layui-table[lay-size=lg] .layui-table-cell {*/
/* font-size: 15px;*/
/* font-weight: 500;*/
/*}*/
.layui-table thead span {
/*background-color: #acd3ed;*/
font-size: 15px;
}
.layui-table tbody tr td div{
font-size: 14px;
}
.layui-table tbody tr:hover {
background-color: #acd3ed;
}
.layui-table tbody tr:hover td div {
font-size: 17px;
}
</style>
</head>
<body class="layui-anim layui-anim-scale flag" style="display: none"><br/>
<div class="x-nav">
<span class="layui-breadcrumb">
<a>首页</a>
<a>日志记录</a>
</span>
<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:5px;float:right"
id="refresh" title="刷新">
<i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
</a>
</div>
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card" style="border-radius: 20px;">
<div class="layui-card-body" style="border-radius: 20px; background-image: linear-gradient(#acd3ed,#ffffff , #acd3ed);">
<form class="layui-form layui-col-space5" style="margin-top: 5px" id="myForm">
<div class="layui-input-inline">
<select lay-verify="choose" lay-filter="choose" name="option">
<option value="">选择要查找的内容</option>
<option value="1">时间</option>
<option value="2">操作</option>
<option value="3">操作人员</option>
</select>
</div>
<div class="layui-inline layui-show-xs-block">
<input style="display: none" lay-verify="" id="findText" type="text" name="message"
autocomplete="false" placeholder="" lay-reqText="" class="layui-input">
</div>
<div class="layui-inline layui-show-xs-block">
<input style="display: none;width: 260px" lay-verify="" id="findTime" type="text"
name="findTime"
autocomplete="false" placeholder="" lay-reqText="" class="layui-input">
</div>
<div class="layui-inline layui-show-xs-block">
<button class="layui-btn" lay-submit="" lay-filter="search">
<i class="layui-icon">&#xe615;</i>查找
</button>
</div>
</form>
<table id="demo" lay-filter="demo" style="font-size: 20px"></table>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
layui.use(['table', 'form', 'layer', 'jquery', 'laydate'], function () {
var table = layui.table;
var form = layui.form;
var $ = layui.jquery;
var layer = layui.layer;
var laydate = layui.laydate;
//动态显示
parent.layui.notice.remove();
parent.layui.notice.info('日志记录界面', '已进入', parent.noticeOpt1);
// setTimeout(function () {
// $('.flag').show();
// tableIns.resize();
// }, 100);
$('.flag').show();
$("#refresh").click(function () {
$("#myForm")[0].reset();
layui.form.render();
$("#findText").hide();
$("#findTime").hide();
parent.layui.notice.remove();
parent.layui.notice.success("日志记录已校准", "<div class = 'layui-icon layui-icon-heart-fill'> 同步成功</div>", parent.noticeOpt6);
table.render({
elem: '#demo'
, url: '/index/Administrator/logMsg' //数据接口
, loading: true
, size: 'lg'
, page: {
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
, groups: 10 //最多几个跳页按钮
, first: false //不显示首页
, last: false //不显示尾页
}
, cols: [[ //表头
{
field: 'time',
title: '时间',
align: 'center',
width: 190,
// style: 'background-color: #9be6a8;color: #2c2525;'
}
, {
field: 'operation',
title: '操作',
minWidth: 220,
align: 'left',
// style: 'background-color: #acd3ed;color: #2c2525;'
}
, {
field: 'who',
title: '操作人员',
width: 250,
align: 'center',
// style: 'background-color: #edccac;color: #2c2525;'
}
]]
});
});
//初始化日期时间选择器
laydate.render({
elem: '#findTime'
, type: 'datetime'
, range: '-'
, trigger: 'click' //采用click弹出
});
//自定义验证规则
form.verify({
choose: function (value) {
if (!value){
parent.layui.notice.remove();
parent.layui.notice.error('请选择搜索项', '操作异常', parent.noticeOpt5);
return '请选择搜索项!'
}
},
message: function (value) {
if (!value) {
parent.layui.notice.remove();
parent.layui.notice.error('请输入要搜索的内容', '操作异常', parent.noticeOpt5);
return '请输入要搜索的内容';
}
},
time: function (value) {
if (!value) {
parent.layui.notice.remove();
parent.layui.notice.error('请输入要搜索的时间', '操作异常', parent.noticeOpt5);
return '请输入要搜索的时间';
}
}
});
// 动态显示搜索选项提示
form.on('select(choose)', function (data) {
// console.log(data.elem); //得到select原始DOM对象
// console.log(data.value); //得到被选中的值
// console.log(data.othis); //得到美化后的DOM对象
var findText = $("#findText");
var findTime = $("#findTime");
var select = data.value;
//默认不显示输入框
findText.hide();
findTime.hide();
//重置验证类型
findText.attr('lay-verify', '');
findTime.attr('lay-verify', '');
//每次切换搜索项后都要清空里面的值
findText.val('');
findTime.val('');
// console.log(findText.val);
switch (select) {
case "1":
findTime.attr('lay-verify', 'time');
findTime.attr('placeholder', "请输入要搜索的时间");
findTime.attr('lay-reqText', '请输入要搜索的时间');
findTime.show();
break;
case "2":
findText.attr('lay-verify', 'message');
findText.attr('placeholder', '请输入要搜索的操作类型');
findText.attr('lay-reqText', '请输入要搜索的操作类型');
findText.show();
break;
case "3":
findText.attr('lay-verify', 'message');
findText.attr('placeholder', '请输入要搜索的操作人员');
findText.attr('lay-reqText', '请输入要搜索的操作人员');
findText.show();
break;
}
});
//搜索功能
form.on('submit(search)', function (data) {
layer.msg('搜索中', {time: 500});
// console.log(data.field.findTime);
var load = layer.load();
tableIns.reload({
where: { //设定异步数据接口的额外参数,任意设
choose: data.field.option
, message: data.field.message
, findTime: data.field.findTime
}
, page: {
curr: 1 //重新从第 1 页开始
}
, done: function (res, curr, count) {
layer.close(load);
layer.msg('搜索完成,找到' + count + '条数据', {time: 1500});
}
});
return false;
});
//生成数据表格
var tableIns = table.render({
elem: '#demo'
, url: '/index/Administrator/logMsg' //数据接口
, loading: true
, size: 'lg'
, page: {
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
, groups: 10 //最多几个跳页按钮
, first: false //不显示首页
, last: false //不显示尾页
}
, cols: [[ //表头
{
field: 'time',
title: '时间',
align: 'center',
width: 190,
// style: 'background-color: #9be6a8;color: #2c2525;'
}
, {
field: 'operation',
title: '操作',
minWidth: 220,
align: 'left',
// style: 'background-color: #acd3ed;color: #2c2525;'
}
, {
field: 'who',
title: '操作人员',
width: 250,
align: 'center',
// style: 'background-color: #edccac;color: #2c2525;'
}
]]
// ,done: function(res, curr, count){
// //如果是异步请求数据方式,res即为你接口返回的信息。
// //如果是直接赋值的方式,res即为:{data: [], count: 99} data为当前页数据、count为数据总长度
// console.log(res.data);
//
// //得到数据总量
// console.log(count);
// }
});
//下面为结束符号
});
</script>
</html>

43
application/index/view/administrator/test.html

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>table模块快速使用</title>
<link rel="stylesheet" href="/lib/layui/css/layui.css" media="all">
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
</head>
<body>
<table id="demo" lay-filter="test"></table>
<script>
layui.use(['table', 'jquery'], function () {
var table = layui.table;
var $ = layui.jquery;
//第一个实例
table.render({
elem: '#test'
// ,url: '/json/users.json' //数据接口
, url: '../Administrator/userMsg' //数据接口
, page: true //开启分页
, cols: [[ //表头
{field: 'id', title: 'ID', width: 80, sort: true, fixed: 'left'}
, {field: 'account', title: '用户名', width: 80}
, {field: 'password', title: '性别', width: 80, sort: true}
, {field: 'tel', title: '城市', width: 80}
, {field: 'email', title: '签名', width: 177}
, {field: 'status', title: '积分', width: 80, sort: true}
]]
});
});
</script>
</body>
</html>

558
application/index/view/administrator/user_list.html

@ -0,0 +1,558 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>用户账号管理</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.layui-table thead span {
/*background-color: #acd3ed;*/
font-size: 15px;
}
.layui-table tbody tr td div {
font-size: 14px;
}
.layui-table tbody tr:hover {
background-color: #d3f7cd;
}
.layui-table tbody tr:hover td div {
font-size: 18px;
}
</style>
</head>
<style>
.layui-form-switch {
width: 70px;
/*height: 25px;*/
}
</style>
<body class="layui-anim layui-anim-scale flag" style="display: none"><br/>
<div class="x-nav">
<span class="layui-breadcrumb">
<a>首页</a>
<a>
用户管理
</a>
</span>
<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:5px;float:right"
id="refresh" title="刷新">
<i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
</a>
</div>
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card" style="border-radius: 20px;">
<div class="layui-card-body"
style="background-image: linear-gradient(#d3f7cd,#ffffff , #d3f7cd);border-radius: 20px;">
<form class="layui-form layui-col-space5" style="margin-top: 5px" id="myForm">
<div class="layui-input-inline">
<select lay-verify="choose" lay-filter="choose" name="option">
<option value="">选择要查找的内容</option>
<option value="用户名">用户名</option>
<option value="手机号">手机号</option>
<option value="邮箱">邮箱</option>
</select>
</div>
<div class="layui-inline layui-show-xs-block">
<input style="display: none" lay-verify="message" type="text" id="findText" name="message"
placeholder="输入信息" autocomplete="off"
class="layui-input">
</div>
<div class="layui-inline layui-show-xs-block">
<button class="layui-btn" lay-submit="" lay-filter="search">
<i class="layui-icon">&#xe615;</i>查找
</button>
</div>
</form>
<table id="demo" lay-filter="demo"></table>
</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/html" id="barDemo">
<a class="layui-btn layui-btn-radius layui-btn-normal layui-icon layui-icon-edit "
lay-event="edit"> 修改</a>
<a class="layui-btn layui-btn-danger layui-icon layui-icon-delete layui-btn-xs" value="{{d.id}}" lay-event="del">
删除</a>
</script>
<script type="text/html" id="toolbarDemo">
<div class="layui-btn-container">
<button class="layui-btn layui-btn-radius layui-btn-lg" lay-event="getCheckData"
style="background-color: #bd2b28"><i class="layui-icon "></i>批量删除
</button>
<button class="layui-btn layui-btn-radius layui-btn-lg" lay-event="addUser">
<i class="layui-icon"></i>添加用户
</button>
</div>
</script>
<script type="text/html" id="titleTpl">
<i>******</i>
</script>
<script type="text/html" id="checkboxTpl">
<input type="checkbox" name="lock" value="{{d.uid}}" lay-skin="switch" lay-text="已冻结|未冻结" lay-filter="switchBan" {{
d.status== 0 ? '' : 'checked' }}>
</script>
<script>
layui.use(['table', 'form', 'jquery', 'layer'], function () {
var $ = layui.jquery;
var table = layui.table;
var form = layui.form;
var layer = layui.layer;
//动态显示
parent.layui.notice.remove();
parent.layui.notice.info('用户管理界面', '已进入', parent.noticeOpt1);
$('.flag').show();
$("#refresh").click(function () {
$('#myForm')[0].reset();
layui.form.render();
$("#findText").hide();
parent.layui.notice.remove();
parent.layui.notice.success("用户数据列表已校准", "<div class = 'layui-icon layui-icon-heart-fill'> 同步成功</div>", parent.noticeOpt6);
table.render({
elem: '#demo'
, toolbar: '#toolbarDemo' //开启头部工具栏,并为其绑定左侧模板
, url: '/index/Administrator/userMsg' //数据接口
, loading: true
, size: 'lg'
, page: {
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
, first: false //不显示首页
, last: false //不显示尾页
}
, cols: [[ //表头
{type: 'checkbox', width: 80}
, {field: 'id', title: 'ID', align: 'center', width: 80, sort: true, hide: true}
, {field: 'uid', title: '用户名', minWidth: 150, align: 'center'}
, {field: 'password', title: '密码', width: 80, align: 'center', templet: '#titleTpl', hide: true}
, {
field: 'status',
title: '状态',
width: 124,
align: 'center',
templet: '#checkboxTpl',
unresize: true
}
, {field: 'count_times', title: '登录次数', minWidth: 80, align: 'center'}
, {field: 'ip', title: '最近登录ip', minWidth: 120, align: 'center'}
, {field: 'tel', title: '手机号', minWidth: 160, align: 'center'}
, {field: 'email', title: '邮箱', minWidth: 250, align: 'left'}
, {field: 'create_time', title: '加入时间', minWidth: 200, align: 'center', sort: true}
, {
field: 'operation',
title: '操作',
minWidth: 170,
align: 'center',
fixed: 'right',
toolbar: '#barDemo'
}
]]
});
});
//生成数据表格
var tableIns = table.render({
elem: '#demo'
, toolbar: '#toolbarDemo' //开启头部工具栏,并为其绑定左侧模板
, url: '/index/Administrator/userMsg' //数据接口
, loading: true
, size: 'lg'
, page: {
layout: ['prev', 'page', 'next', 'count', 'limit']//自定义布局顺序
, first: false //不显示首页
, last: false //不显示尾页
}
, cols: [[ //表头
{type: 'checkbox', width: 80}
, {field: 'id', title: 'ID', align: 'center', width: 80, sort: true, hide: true}
, {field: 'uid', title: '用户名', minWidth: 150, align: 'center'}
, {field: 'password', title: '密码', width: 80, align: 'center', templet: '#titleTpl', hide: true}
, {field: 'status', title: '状态', width: 124, align: 'center', templet: '#checkboxTpl', unresize: true}
, {field: 'count_times', title: '登录次数', minWidth: 80, align: 'center'}
, {field: 'ip', title: '最近登录ip', minWidth: 120, align: 'center'}
, {field: 'tel', title: '手机号', minWidth: 160, align: 'center'}
, {field: 'email', title: '邮箱', minWidth: 250, align: 'left'}
, {field: 'create_time', title: '加入时间', minWidth: 200, align: 'center', sort: true}
, {field: 'operation', title: '操作', minWidth: 170, align: 'center', fixed: 'right', toolbar: '#barDemo'}
]]
});
// 动态显示搜索选项提示
form.on('select(choose)', function (data) {
// console.log(data.elem); //得到select原始DOM对象
// console.log(data.value); //得到被选中的值
// console.log(data.othis); //得到美化后的DOM对象
var findText = $("#findText");
var select = data.value;
findText.val('');
// console.log(findText.val);
switch (select) {
case "用户名":
findText.attr('placeholder', "请输入要搜索的用户名");
// findText.attr('lay-reqText', '请输入要搜索的用户名');
findText.show();
break;
case "手机号":
findText.show();
findText.attr('placeholder', '请输入要搜索的手机号');
// findText.attr('lay-reqText', '请输入要搜索的手机号');
break;
case "邮箱":
findText.show();
findText.attr('placeholder', '请输入要搜索的邮箱');
// findText.attr('lay-reqText', '请输入要搜索的邮箱');
break;
default:
findText.hide();
break;
}
});
// 自定义验证规则
form.verify({
choose: function (value) {
if (!value) {
parent.layui.notice.remove();
parent.layui.notice.error('请选择搜索项', '操作异常', parent.noticeOpt5);
return '请选择搜索项!'
}
},
message: function (value) {
if (!value) {
parent.layui.notice.remove();
parent.layui.notice.error('请输入要搜索的内容', '操作异常', parent.noticeOpt5);
return '请输入要搜索的内容';
}
}
});
//搜索功能
form.on('submit(search)',
function (data) {
layer.msg('搜索中', {time: 1000});
var load = layer.load();
tableIns.reload({
where: { //设定异步数据接口的额外参数,任意设
choose: data.field.option
, message: data.field.message
}
, page: {
curr: 1 //重新从第 1 页开始
}
, done: function (res, curr, count) {
layer.close(load);
parent.layui.notice.remove();
if (count === 0) {
parent.layui.notice.success(res.msg, '搜索完成', parent.noticeOpt4);
layer.msg('搜索完成,' + res.msg, {time: 1500});
} else {
parent.layui.notice.success('找到' + count + '条数据', '搜索完成', parent.noticeOpt4);
layer.msg('搜索完成,找到' + count + '条数据', {time: 1500});
}
}
});
return false;
});
// 冻结账号
form.on('switch(switchBan)', function (data) {
var status = this.checked ? 'true' : 'false';
parent.layui.notice.remove();
$.ajax({
type: "POST",
url: "/index/Administrator/banUser",
data: {
uid: data.value,
type: status
},
success: function (msg) {
if (msg === 'ok') {
parent.layui.notice.success('用户:' + data.value + (status === 'true' ? ' 已冻结' : ' 已恢复'), '操作成功', parent.noticeOpt4);
layer.tips('' + (status === 'true' ? '已冻结' : '已恢复'), data.othis, {time: 600});
form.render('checkbox'); //刷新checkbox开关渲染
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.alert('停用失败', {icon: 2});
}
},
error: function () {
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据传输失败,请联系后台管理员!', {icon: 5})
}
});
// console.log(data.value);
});
//监听编辑和删除工具条
table.on('tool(demo)', function (obj) {
var data = obj.data;
if (obj.event === 'edit') {
// layer.msg('ID:'+ data.id + ' 的查看操作');
parent.layui.notice.remove();
parent.layui.notice.warning('正在修改用户:' + data.uid + ' 的信息', '操作提示:', parent.noticeOpt3);
xadmin.open('修改用户', '/index/tools/user_edit?id=' + data.id, 400, 500, window.screen.width);
} else if (obj.event === 'del') {
parent.layui.notice.remove();
parent.layui.notice.warning('正在删除用户:' + data.uid, '操作提示:', parent.noticeOpt3);
layer.confirm('真的要删除 ' + data.uid + ' 用户吗?', {
closeBtn: 0,
title: '提示',
shade: [0.7, '#dc7069']
}, function (index) {
var more = false;
layer.confirm('是否同时解除与用户:' + data.uid + '绑定的所有设备?'
, {
btn: ['是', '否'],
title: '若该用户有已经绑定的设备',
shade: [0.7, '#8c261f'],
cancel: function () {
layer.msg('您取消了操作', {time: 600});
}
}
, function () {
layer.msg('删除中……');
var load = layer.load();
more = true;
$.ajax({
type: "POST",
url: "/index/Administrator/delUser",
data: {
uid: data.uid,
more: more,
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
if (msg === 'ok') {
parent.layui.notice.success('成功删除用户:' + data.uid + ' 并解除与之绑定的设备', '操作完成', parent.noticeOpt4);
layer.msg('成功删除用户:' + data.uid + ' 并解除与之绑定的设备', {time: 1400, icon: 1});
setTimeout(function () {
$("#refresh").click();
}, 1000);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1000});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据提交失败,请联系后台管理员!', {icon: 2})
}
});
}
, function () {
layer.msg('删除中……');
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Administrator/delUser",
data: {
uid: data.uid,
more: more,
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
if (msg === 'ok') {
parent.layui.notice.success('用户:' + data.uid + '删除成功', '操作完成', parent.noticeOpt4);
layer.msg('成功删除用户' + data.uid, {time: 1200, icon: 1});
setTimeout(function () {
$("#refresh").click();
}, 1000);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1000});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据传输失败,请联系后台管理员!', {icon: 2})
}
});
}
);
layer.close(index);
},
function () {
layer.msg('您取消了操作', {time: 600});
// location.reload();
}
);
}
});
//头工具栏批量删除事件
table.on('toolbar(demo)', function (obj) {
var checkStatus = table.checkStatus(obj.config.id);
// 添加用户
if (obj.event === 'addUser') {
parent.layui.notice.remove();
parent.layui.notice.warning('正在添加用户', '操作提示', parent.noticeOpt3);
xadmin.open('添加用户', '../tools/user_add', 400, 500, window.screen.width)
}
if (obj.event === 'getCheckData') {
var data = checkStatus.data;
// console.log(data);
// console.log(data[0]['id']);
// console.log(data[0]['uid']);
//判断是否为空
parent.layui.notice.remove();
if (!data[0]) {
// parent.layui.notice.options = parent.noticeOpt5;
parent.layui.notice.error('请选择要删除的用户!', '操作异常', parent.noticeOpt5);
return layer.msg('请选择要删除的用户!', {icon: 2, time: 800});
}
var arrId = new Array();
var arrAcc = '';
for (var i = 0, len = data.length; i < len; i++) {
arrId.push(data[i]['uid']);
arrAcc += (data[i]['uid']) + ' ';
}
// console.log(arrAcc);
parent.layui.notice.warning('正在删除用户: ' + arrAcc, '操作提示', parent.noticeOpt3);
layer.confirm('确定要删除用户:' + arrAcc + '吗?', {
closeBtn: 0,
title: '提示',
shade: [0.7, '#dc7069']
}, function (index) {
var more = false;
layer.confirm('是否同时删除他们与设备的绑定信息?', {
btn: ['是', '否'],
title: '若该用户有已经绑定的设备',
shade: [0.7, '#8c261f'],
cancel: function () {
layer.msg('您取消了操作', {time: 600});
}
}, function () {
more = true;
layer.msg('删除中……');
var load = layer.load();
$.ajax({
type: "POST",
url: "../Administrator/delAllUser",
data: {
uid: arrId,
log: arrAcc,
more: more,
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
if (msg == 'ok') {
parent.layui.notice.success('成功删除用户:' + arrAcc + ' 并解除与之绑定的设备', '操作完成', parent.noticeOpt4);
layer.msg('成功删除用户:' + arrAcc + ' 并解除与之绑定的设备', {time: 1400, icon: 1});
setTimeout(function () {
$("#refresh").click();
}, 1000);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1000});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据传输失败,请联系后台管理员!', {icon: 2})
}
});
},
function () {
layer.msg('删除中……');
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Administrator/delAllUser",
data: {
uid: arrId,
log: arrAcc,
more: more,
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
if (msg == 'ok') {
parent.layui.notice.success('用户:' + arrAcc + '删除成功', '操作完成', parent.noticeOpt4);
layer.msg('用户:' + arrAcc + '删除成功', {time: 1400, icon: 1});
setTimeout(function () {
$("#refresh").click();
}, 1000);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1000});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据传输失败,请联系后台管理员!', {icon: 2})
}
});
});
layer.close(index);
},
function () {
layer.msg('您取消了操作', {time: 600});
// location.reload();
});
}
});
});
</script>
</html>

578
application/index/view/administrator/welcome.html

@ -0,0 +1,578 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>数据总览</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<script type="text/javascript" src="/js/echarts.min.js"></script>
<script src="/js/china.js"></script>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/countUp.min.js"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
/*欢迎文字*/
.layui-elem-quote:hover {
background: #b9c8ff;
}
/*卡片样式*/
.layui-card-body li:hover {
background: #ffb5b7;
}
.layui-card-body li a:hover {
background: #9cecff;
}
.layui-card-body li:hover h3 {
font-size: 16px;
color: #911215;
}
.layui-card-body li:hover cite {
font-size: 30px;
color: #3d933a;
}
/*系统信息*/
.layui-table tbody tr th {
width: 30%
}
.layui-table tbody tr:hover {
background-color: #ddded9;
}
.layui-table tbody tr:hover th {
font-size: 18px;
}
.layui-table tbody tr:hover td {
font-size: 18px;
/*letter-spacing: 3px;*/
}
/*开发团队*/
.team tbody tr:hover {
background-color: #d1d1ff;
}
</style>
</head>
<body>
<div class="layui-fluid">
<div class="layui-row layui-col-space30">
<div class="layui-col-md12" style="margin-top: 10px">
<div class="layui-card">
<div class="layui-card-header"
style="background-image: linear-gradient(#ffedcc , #ffffff);">
静坐当思己过,闲谈莫论人非。
</div>
<div class="layui-card-body" style="background-image: linear-gradient(#ffffff , #ffedcc);">
<blockquote class="layui-elem-quote layui-anim layui-anim-scale" style="font-size: 20px;background-color: rgba(255,230,179,0.89)">
当前时间:<span id="time" style="font-size: 20px;font-family: 方正姚体;"></span>
</blockquote>
</div>
</div>
</div>
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-header"
style="background-image: linear-gradient(#86e4df , #ffffff);">数据统计
</div>
<div class="layui-card-body" style="background-image: linear-gradient(#ffffff , #86e4df); min-height: 85px">
<ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
<li class="layui-col-xs6 layui-col-sm3 layui-col-md3 ">
<a class="x-admin-backlog-body">
<h3>管理员人数</h3>
<p>
<cite id="card0" class="counter">0</cite></p>
</a>
</li>
<li class="layui-col-xs6 layui-col-sm3 layui-col-md3 ">
<a class="x-admin-backlog-body">
<h3>用户人数</h3>
<p>
<cite id="card1" class="counter">0</cite></p>
</a>
</li>
<li class="layui-col-xs6 layui-col-sm3 layui-col-md3 ">
<a class="x-admin-backlog-body">
<h3>用户总访问次数</h3>
<p>
<cite id="card2" class="counter">0</cite></p>
</a>
</li>
<li class="layui-col-xs6 layui-col-sm3 layui-col-md3 ">
<a class="x-admin-backlog-body">
<h3>总设备数</h3>
<p>
<cite id="card3" class="counter">0</cite></p>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="layui-row layui-col-space10">
<div class="layui-col-sm12 layui-col-lg6">
<div class="layui-card">
<div class="layui-card-header"
style="background-image: linear-gradient( #98d9f3 , #ffffff);">设备地域分布
</div>
<div class="layui-card-body" style="min-height:470px;">
<div id="main1" class="layui-col-sm12" style="height:470px;"></div>
</div>
</div>
</div>
<div class="layui-col-sm12 layui-col-lg6">
<div class="layui-card">
<div class="layui-card-header" style="background-image: linear-gradient(#f4c5c1 , #ffffff);">设备数量比重</div>
<div class="layui-card-body" style="min-height: 470px;">
<div id="main2" class="layui-col-sm12" style="height: 470px;"></div>
</div>
</div>
</div>
<div class="layui-col-sm12 layui-col-md12">
<div class="layui-card">
<div class="layui-card-header" style="background-image: linear-gradient(#daffdb , #ffffff);">近期单日新增用户变化</div>
<div class="layui-card-body" style="min-height: 270px;">
<div id="main3" class="layui-col-sm12" style="height: 270px;"></div>
</div>
</div>
</div>
</div>
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-header" style="background-image: linear-gradient(#ddded9 , #ffffff);">系统信息</div>
<div class="layui-card-body" style="background-image: linear-gradient(#ffffff , #ddded9);">
<table class="layui-table">
<tbody>
<tr>
<th>系统版本</th>
<td>1.2.0内测版</td>
</tr>
<tr>
<th>服务器地址</th>
<td>graduation.zengjianqi.com</td>
</tr>
<tr>
<th>服务器环境</th>
<td>LAMP</td>
</tr>
<tr>
<th>运行环境</th>
<td>Linux/CentOS-7.3</td>
</tr>
<tr>
<th>Apache版本</th>
<td>2.4.41</td>
</tr>
<tr>
<th>MySQL版本</th>
<td>5.6.44</td>
</tr>
<tr>
<th>PHP版本</th>
<td>7.2</td>
</tr>
<tr>
<th>ThinkPHP版本</th>
<td>5.0</td>
</tr>
<tr>
<th>Layui版本</th>
<td>2.5.6</td>
</tr>
<tr>
<th>X-admin版本</th>
<td>2.2/Deepin modified version by ZJQ</td>
</tr>
<tr>
<th>ECharts版本</th>
<td>4.6.0</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="layui-col-md12">
<div class="layui-card" style="margin-bottom: 20px">
<div class="layui-card-header" style="background-image: linear-gradient(#d1d1ff , #ffffff);">开发团队</div>
<div class="layui-card-body" style="background-image: linear-gradient(#ffffff , #d1d1ff);">
<table class="layui-table team">
<tbody>
<tr>
<th>前端</th>
<td>曾健起</td>
</tr>
<tr>
<th>后端</th>
<td>曾健起</td>
</tr>
<tr>
<th>版权所有</th>
<td>
<a href="http://zengjianqi.com/" target="_blank" class="layui-icon"> © Copyright
Reserved.zengjianqi.com &#xe617; &#xe618; zengjianqi163@163.com</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
//配置可视化数字增长的属性
var options = {
useEasing: true, // 使用缓和
useGrouping: true, // 使用分组(是否显示千位分隔符,一般为 true)
separator: ',', // 分隔器(千位分隔符,默认为',')
decimal: '.', // 十进制(小数点符号,默认为 '.')
prefix: '', // 字首(数字的前缀,根据需要可设为 $,¥,¥ 等)
suffix: '' // 后缀(数字的后缀 ,根据需要可设为 元,个,美元 等)
};
$.ajaxSettings.async = false;
// 基于准备好的dom,初始化echarts实例
var myChart1 = echarts.init(document.getElementById('main1'));
var myChart2 = echarts.init(document.getElementById('main2'));
var myChart3 = echarts.init(document.getElementById('main3'));
//当前时间
updateTime();
setInterval(updateTime, 1000);
//初始化卡片数据
updateCards();
//初始化所有图表
updateEcharts();
//根据窗口的大小变动图表 --- 重点
window.onresize = function () {
echatsResize();
};
//获取当前详细时间
function updateTime() {
var date = new Date();
this.year = date.getFullYear();
this.month = date.getMonth() + 1;
this.date = date.getDate();
this.day = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六")[date.getDay()];
this.hour = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
this.minute = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
this.second = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
var currentTime = this.year + "." + this.month + "." + this.date + "," + this.day + ", " + this.hour + ":" + this.minute + ":" + this.second;
$("#time").html(currentTime);
}
//获取卡片展示数据
function updateCards() {
$.get("/index/Tools/cardData", function (result) {
//控制数字的滚动时间,数值越大,滚动时间越长。
if (result[0] < 10) {
var time0 = 1
}else if (result[0] < 100) {
var time0 = 2
}else if (result[0] < 1000) {
var time0 = 3
}else {
var time0 = 4
}
if (result[1] < 10) {
var time1 = 1
}else if (result[0] < 100) {
var time1 = 2
}else if (result[0] < 1000) {
var time1 = 3
}else {
var time1 = 4
}
if (result[2] < 10) {
var time2 = 1
}else if (result[0] < 100) {
var time2 = 2
}else if (result[0] < 1000) {
var time2 = 3
}else {
var time2 = 4
}
if (result[3] < 10) {
var time3 = 1
}else if (result[0] < 100) {
var time3 = 2
}else if (result[0] < 1000) {
var time3 = 3
}else {
var time3 = 4
}
//下面的操作为数字可视化滚动显示至当前值
$(function () {
// CountUp(参数一, 参数二, 参数三, 参数四, 参数五, 参数六)
// 参数一: 数字所在容器
// 参数二: 数字开始增长前的默认值(起始值),一般从 0 开始增长
// 参数三: 数字增长后的最终值,该值一般通过异步请求获取
// 参数四: 数字小数点后保留的位数
// 参数五: 数字增长特效的时间,此处为3秒
// 参数六: 其他配置项
// 注: 参数六也可不加,其配置项则为默认值
new CountUp("card0", 0, result[0], 0, time0, {suffix: '人'}).start();
new CountUp("card1", 0, result[1], 0, time1, {suffix: '人'}).start();
new CountUp("card2", 0, result[2], 0, time2, {suffix: '次'}).start();
new CountUp("card3", 0, result[3], 0, time3, {suffix: '个'}).start();
});
// card1.countUp({
// delay: 50,
// time: 2000
// });
});
}
//获取图表所需数据
function updateEcharts() {
// 指定图表1的配置项和数据
$.get("/index/Tools/areaData", function (result) {
// myChart1.showLoading();
// setTimeout(function () {
// myChart1.hideLoading();
// }, 200);
myChart1.setOption(option = {
tooltip: {
trigger: 'item',
formatter: '{b}<br/>{c} (个)'
},
grid: {
top: '1%',
right: '2%',
left: '1%',
bottom: '10%',
containLabel: true
},
toolbox: {
// show: true,
// orient: 'vertical',
// left: 'right',
// top: 'center',
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
visualMap: {
min: 0,
max: result[1],
text: ['High', 'Low'],
realtime: false,
calculable: true,
inRange: {
color: ['lightskyblue', 'yellow', 'orangered']
}
},
series: [
{
name: '设备地域分布',
type: 'map',
mapType: 'china', // 自定义扩展图表类型
itemStyle: {
normal: {label: {show: true}},
emphasis: {label: {show: true}}
},
data: JSON.parse(result[0]),
}
]
});
});
// 指定图表2的配置项和数据
$.get("/index/Tools/devTypeData", function (result) {
// console.log(result[0]);
// myChart2.showLoading();
// setTimeout(function () {
// myChart2.hideLoading();
// }, 400);
myChart2.setOption(option = {
tooltip: {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%)"
},
toolbox: {
// show: true,
// orient: 'vertical',
// left: 'right',
// top: 'center',
feature: {
dataView: {readOnly: false},
restore: {},
saveAsImage: {}
}
},
legend: {
orient: 'vertical',
left: 'left',
data: result[0]
},
series: [
{
name: '设备类型',
type: 'pie',
radius: '55%',
center: ['50%', '60%'],
data: JSON.parse(result[1]),
itemStyle: {
emphasis: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
]
});
});
// 指定图表3的配置项和数据
$.get("/index/Tools/userData", function (result) {
// myChart3.showLoading();
// setTimeout(function () {
// myChart3.hideLoading();
// }, 300);
myChart3.setOption(option = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'line',
lineStyle: {
color: '#9bbbde',
width: 3
}
}
},
color: '#85d081',
toolbox: {
// show: true,
// orient: 'vertical',
// left: 'right',
// top: 'top',
feature: {
dataView: {readOnly: false},
saveAsImage: {}
}
},
grid: {
top: '15%',
right: '2%',
left: '1%',
bottom: '10%',
containLabel: true
},
xAxis: [
{
type: 'category',
boundaryGap: false,
// data: recentWeeks()
data: result[0]
}
],
yAxis: [
{
type: 'value',
minInterval: 1
}
],
series: [
{
name: '新增人数:',
type: 'line',
areaStyle: {normal: {}},
data: result[1],
smooth: true
}]
});
});
}
//变动图表大小 --- 重点
function echatsResize() {
myChart1.resize();
myChart2.resize();
myChart3.resize();
}
function recentWeeks() {
var myDate = new Date();
var days = myDate.getDay();
var daysArr = [];
for (var i = 0; i < 7; i++) {
if (days < 0) {
days = 6
}
daysArr.unshift(days);
days--;
}
// console.log(daysArr);
for (var i = 0; i < 7; i++) {
daysArr[i] = trans(daysArr[i]);
}
console.log(daysArr);
function trans(days) {
switch (days) {
case 1:
days = '周一';
break;
case 2:
days = '周二';
break;
case 3:
days = '周三';
break;
case 4:
days = '周四';
break;
case 5:
days = '周五';
break;
case 6:
days = '周六';
break;
case 0:
days = '周日';
break;
}
return days;
}
return daysArr;
}
</script>
</body>
</html>

131
application/index/view/index/index.html

@ -0,0 +1,131 @@
<!doctype html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>物联网云平台</title>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/login.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
html{
height: auto;
}
</style>
</head>
<body class="login-bg">
<div class="login layui-anim layui-anim-up">
<div class="message" style="font-size: 40px">物联网云平台</div>
<div id="darkbannerwrap"></div>
<form action="" class="layui-form">
<div class="layui-form-item">
<input type="text" name="username" autocomplete="off" required lay-verify="required" placeholder="用户名"
class="layui-input"
id="name">
</div>
<hr class="hr15">
<div class="layui-form-item">
<input name="password" id="pass" autocomplete="off" lay-verify="required" placeholder="密码"
type="password"
class="layui-input">
</div>
<hr class="hr15">
<div id="tt" class="layui-form-item">
<div class="layui-form-block">
<div id="slider"></div>
</div>
</div>
<hr class="hr15">
<input value="登录" lay-submit lay-filter="login" style="width:100%;" type="submit">
<hr class="hr20">
</form>
</div>
<script>
//一般直接写在一个js文件中
layui.config({
base: '/dist/sliderVerify/'
}).use(['sliderVerify', 'form', 'jquery'], function () {
var sliderVerify = layui.sliderVerify,
form = layui.form,
$ = layui.$;
var slider = sliderVerify.render({
elem: '#slider'
});
//监听提交
form.on('submit(login)', function (data) {
//用于表单验证是否已经滑动成功
// if (slider.isOk()) {
// //layer.msg(JSON.stringify(data.field));
// //alert('还没滑动滑块');
// }else{
// layer.msg("请先通过滑块验证");
// }
// alert(888)
slider.reset();
$.ajax({
type: "post",
url: "/index/Index/loginVerify",
sync: false,
data: {
username: data.field.username,
password: data.field.password,
},
success: function (msg) {
if (msg == 'ok') {
layer.msg('登录成功!', {
icon: 6,
time: 600,
});
// parent.location.reload();
setTimeout(function () {
location.href = '/index/Index/login';
}, 1000);
//后台主页
// window.location.href = 'http://zengjianqi.com/';
} else {
layer.alert(msg, {icon: 5})
}
},
error: function (msg) {
layer.alert(msg, {icon: 5})
}
});
return false;
})
})
</script>
<script>
// var input = document.querySelectorAll("input");
// input[0].addEventListener('mouseenter', function () {
// alert('别摸我');
// });
// var slider = document.querySelector('#tt');
//
// tt.addEventListener('mouseup',function () {
// alert('你弄疼我了');
// });
</script>
</body>
</html>

183
application/index/view/tools/admin_add.html

@ -0,0 +1,183 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>欢迎页面-X-admin2.2</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
body {
background-image: url("/images/wallhaven.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #e4eaf1;
background-position: center;
}
</style>
</head>
<body>
<div class="layui-fluid" style="background-color:rgba(255,255,255,0.3);min-height: 427px">
<div class="layui-row">
<form class="layui-form">
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">用户名</label>
<div class="layui-input-block">
<input id="username" type="text" name="username" lay-verify="username" autocomplete="off"
placeholder="请输入用户名" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">密码</label>
<div class="layui-input-block">
<input id="passwd" type="password" name="passwd" lay-verify="passwd" autocomplete="off"
placeholder="请输入密码" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">重复密码</label>
<div class="layui-input-block">
<input id="repasswd" type="password" name="repasswd" lay-verify="repasswd" autocomplete="off"
placeholder="请再次输入密码" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">手机</label>
<div class="layui-input-block">
<input id="phone" type="text" name="phone" lay-verify="phone2" autocomplete="off"
placeholder="请输入手机号" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">邮件</label>
<div class="layui-input-block">
<input id="email" type="text" name="email" lay-verify="email2|email" autocomplete="off"
placeholder="请输入邮件地址" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<button lay-filter="edit" lay-submit="" class="layui-btn layui-btn-fluid"
style="font-family:黑体;font-size:20px;height: 50px;border-radius: 15px">添加管理员
</button>
</div>
</form>
</div>
</div>
<script>
layui.use(['form', 'layer'], function () {
$ = layui.jquery;
var form = layui.form,
layer = layui.layer;
//自定义验证规则
form.verify({
username: function (value) {
if (value.length === 0) {
return '请输入用户名!';
} else if (value.length < 2) {
return '长度需大于等于2位'
}
},
passwd: function (value) {
if (value.length === 0) {
return '请输入密码';
} else if (value.length < 4) {
return '密码长度应大于等于4位'
}
},
repasswd: function (value) {
if (value.length === 0) {
return '请确认密码';
} else if ($('#passwd').val() !== $('#repasswd').val()) {
return '两次密码不相同!'
}
},
email2: function (value) {
if (value.length === 0) {
return '请输入邮箱!';
}
},
phone2: function (value) {
if (value.length === 0) {
return '请输入手机号!';
}
}
});
//监听提交
form.on('submit(edit)',
function (data) {
// console.log(data.field);
layer.msg('添加中……', {time: 800});
var load = layer.load();
//使用ajax传递数据
$.ajax({
type: "POST",
url: "/index/Tools/admin_insert",
data: {
account: data.field.username,
passwd: data.field.passwd,
phone: data.field.phone,
email: data.field.email
},
success: function (msg) {
layer.close(load);
parent.parent.layui.notice.remove();
if (msg === 'ok') {
parent.parent.layui.notice.success('管理员:' + data.field.username + '新增成功!', '操作完成', parent.parent.noticeOpt4);
parent.layer.msg('新增管理员' + data.field.username + '成功!', {
icon: 6,
time: 1200
});
// 获得frame索引
var index = parent.layer.getFrameIndex(window.name);
//刷新页面
setTimeout(function () {
parent.layer.close(index);
// parent.location.reload();
parent.$("#refresh").click();
}, 1200);
} else {
parent.parent.layui.notice.error(msg, '操作异常', parent.parent.noticeOpt5);
layer.alert(msg, {icon: 7});
}
},
error: function () {
layer.close(load);
parent.parent.layui.notice.remove();
parent.parent.layui.notice.error('数据提交失败,请联系后台管理员', '操作异常', parent.parent.noticeOpt5);
layer.alert('数据提交失败,请联系后台管理员!', {icon: 2})
}
});
return false;
});
});</script>
</body>
</html>

192
application/index/view/tools/admin_edit.html

@ -0,0 +1,192 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>欢迎页面-X-admin2.2</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
body {
background-image: url("/images/wallhaven.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #e4eaf1;
background-position: center;
}
</style>
</head>
<body>
<div class="layui-fluid" style="background-color:rgba(255,255,255,0.3);min-height: 427px">
<div class="layui-row">
<form class="layui-form">
<input type="hidden" name="id" value="{$data.id}"/>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">用户名</label>
<div class="layui-input-block">
<input id="username" type="text" name="username" value="{$data.account}" lay-verify="username"
autocomplete="off"
placeholder="请输入用户名" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">密码</label>
<div class="layui-input-block">
<input id="passwd" type="password" name="passwd" value="{$data.password}" lay-verify="passwd"
autocomplete="off"
placeholder="请输入新密码" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">重复密码</label>
<div class="layui-input-block">
<input id="repasswd" type="password" name="repasswd" value="{$data.password}"
lay-verify="repasswd" autocomplete="off"
placeholder="请再次输入密码" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">手机</label>
<div class="layui-input-block">
<input id="phone" type="text" name="phone" value="{$data.tel}" lay-verify="phone2"
autocomplete="off"
placeholder="请输入手机号" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">邮件</label>
<div class="layui-input-block">
<input id="email" type="text" name="email" value="{$data.email}" lay-verify="email2|email"
autocomplete="off"
placeholder="请输入邮件地址" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<button lay-filter="edit" lay-submit="" class="layui-btn layui-btn-fluid"
style="font-family:黑体;font-size:20px;height: 50px;border-radius: 15px">修改管理员:{$data.account}的信息
</button>
</div>
</form>
</div>
</div>
<script>layui.use(['form', 'layer'],
function () {
$ = layui.jquery;
var form = layui.form,
layer = layui.layer;
//自定义验证规则
form.verify({
username: function (value) {
if (value.length === 0) {
return '请输入用户名!';
} else if (value.length < 2) {
return '长度需大于等于2位'
}
},
passwd: function (value) {
if (value.length === 0) {
return '请输入密码';
} else if (value.length < 4) {
return '密码长度应大于等于4位'
}
},
repasswd: function (value) {
if (value.length === 0) {
return '请确认密码';
} else if ($('#passwd').val() !== $('#repasswd').val()) {
return '两次密码不相同!'
}
},
email2: function (value) {
if (value.length === 0) {
return '请输入邮箱!';
}
},
phone2: function (value) {
if (value.length === 0) {
return '请输入手机号!';
}
}
});
//监听提交
form.on('submit(edit)',
function (data) {
// console.log(data.field);
layer.msg('添加中……', {time: 800});
var load = layer.load();
//使用ajax传递数据
$.ajax({
type: "POST",
url: "../Tools/admin_update",
data: {
id: data.field.id,
username: data.field.username,
passwd: data.field.passwd,
phone: data.field.phone,
email: data.field.email
},
success: function (msg) {
layer.close(load);
parent.parent.layui.notice.remove();
if (msg === 'ok') {
parent.parent.layui.notice.success('修改管理员:' + data.field.username + ' 信息成功!', '操作完成', parent.parent.noticeOpt4);
parent.layer.msg('修改管理员信息成功!', {
icon: 6,
time: 1200
});
// 获得frame索引
var index = parent.layer.getFrameIndex(window.name);
//刷新页面
setTimeout(function () {
parent.layer.close(index);
// parent.location.reload();
parent.$("#refresh").click();
}, 1000);
} else {
parent.parent.layui.notice.error(msg, '操作异常', parent.parent.noticeOpt5);
layer.alert(msg, {icon: 7});
}
},
error: function () {
layer.close(load);
parent.parent.layui.notice.remove();
parent.parent.layui.notice.error('数据提交失败,请联系后台管理员', '操作异常', parent.parent.noticeOpt5);
layer.alert('数据提交失败,请联系后台管理员!', {icon: 2})
}
});
return false;
});
});</script>
</body>
</html>

188
application/index/view/tools/device_add_page.html

@ -0,0 +1,188 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>设备ID绑定</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
body {
background-image: url("/images/wallhaven.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #e4eaf1;
background-position: center;
}
.layui-form-select dl {
max-height: 224px;
}
</style>
</head>
<body>
<div class="layui-fluid" style="background-color:rgba(255,255,255,0.3);min-height: 427px">
<div class="layui-row">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
<legend class="layui-icon">绑定新的{$devName}设备 &#xe61f;&#xe61f;&#xe61f;</legend>
</fieldset>
<form class="layui-form" style="margin-top: 30px">
<input type="hidden" name="type" value="{$devName}"/>
<div class="layui-form-item" id="area-picker">
<label class="layui-form-label">所在地区</label>
<div class="layui-input-inline layui-btn-fluid">
<select name="province" class="province-selector" data-value="" lay-filter="province-1">
<option value="">请选择省</option>
</select>
</div>
<div class="layui-input-inline layui-btn-fluid">
<select name="city" class="city-selector" data-value="" lay-filter="city-1">
<option value="">请选择市</option>
</select>
</div>
<div class="layui-input-inline layui-btn-fluid">
<select name="county" class="county-selector" data-value="" lay-filter="county-1">
<option value="">请选择区</option>
</select>
</div>
</div>
<label class="layui-form-label" style="width:80px">用 户 ID</label>
<div class="layui-input-block">
<input id="username" type="text" name="username" lay-verify="username" autocomplete="off"
placeholder="请输入用户ID" class="layui-input">
</div>
<div class="layui-form-item">
<label class="layui-form-label">设 备 ID</label>
<div class="layui-input-block">
<input id="serialNum" name="serialNum" lay-verify="serialNum" autocomplete="off"
placeholder="请输入设备ID" class="layui-input">
</div>
</div>
<!-- 提交按钮-->
<div class="layui-form-item" style="margin-top: 40px">
<button lay-filter="edit" lay-submit="" class="layui-btn layui-btn-fluid"
style="font-family:黑体;font-size:20px;height: 50px;border-radius: 15px">绑定设备
</button>
</div>
</form>
</div>
</div>
<script>
//配置插件目录
layui.config({
base: '/dist/'
, version: '1.0'
});
layui.use(['form', 'layer', 'layarea', 'jquery'], function () {
var form = layui.form,
layer = layui.layer,
layarea = layui.layarea,
$ = layui.jquery;
var areaDate = '河北省-石家庄市-桥西区';
layarea.render({
elem: '#area-picker',
data: {
province: '河北省',
city: '石家庄市',
county: '桥西区',
},
change: function (res) {
//选择结果
areaDate = res.province + '-' + res.city + '-' + res.county;
// console.log(aream);
}
});
//自定义验证规则
form.verify({
username: function (value) {
if (value.length === 0) {
return '请输入用户ID!';
} else if (value.length < 2) {
return '长度需大于等于2位'
}
},
serialNum: function (value) {
if (value.length === 0) {
return '请输入设备ID!';
}
}
});
//监听提交
form.on('submit(edit)',
function (data) {
// console.log(data.field);
// console.log(aream);
//使用ajax传递数据
layer.msg('绑定中……', {time: 600});
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Tools/device_add",
data: {
deviceName: data.field.type,
uid: data.field.username,
serialNum: data.field.serialNum,
area: areaDate
},
success: function (msg) {
layer.close(load);
parent.parent.layui.notice.remove();
if (msg === 'ok') {
parent.parent.layui.notice.success('设备ID:' + data.field.serialNum + '与用户:' + data.field.username + '绑定成功!', '操作完成', parent.parent.noticeOpt4);
parent.layer.msg('设备ID:' + data.field.serialNum + '与用户:' + data.field.username + '绑定成功!', {
icon: 6,
time: 1200
});
// 获得frame索引
var index = parent.layer.getFrameIndex(window.name);
//刷新父页面
setTimeout(function () {
parent.layer.close(index);
// parent.location.reload();
parent.$("#refresh").click();
}, 1200);
// parent.location.reload();
} else {
parent.parent.layui.notice.error(msg, '操作异常', parent.parent.noticeOpt5);
layer.alert(msg, {icon: 7});
}
},
error: function () {
layer.close(load);
parent.parent.layui.notice.remove();
parent.parent.layui.notice.error('数据提交失败,请联系后台管理员', '操作异常', parent.parent.noticeOpt5);
layer.alert('数据提交失败,请联系后台管理员!', {icon: 2})
}
});
return false;
});
});</script>
</body>
</html>

139
application/index/view/tools/device_id_add_page.html

@ -0,0 +1,139 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>设备ID入库</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
dl.layui-anim.layui-anim-upbit {
height: 185px;
}
body {
background-image: url("/images/wallhaven.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #e4eaf1;
background-position: center;
}
</style>
</head>
<body>
<div class="layui-fluid" style="background-color:rgba(255,255,255,0.3);min-height: 317px">
<div class="layui-row">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
<legend class="layui-icon">增加新的设备ID &#xe61f;&#xe61f;&#xe61f;</legend>
</fieldset>
<form class="layui-form" style="margin-top: 30px">
<div class="layui-form-item">
<label class="layui-form-label">设备类型</label>
<div class="layui-input-block">
<select name="devType" lay-verify="required" lay-reqText="请选择设备类型">
<option value="">选择要添加的设备类型</option>
{foreach $data as $dev}
<option value="{$dev.function}">{$dev.chinese}({$dev.function})</option>
{/foreach}
</select>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">设备ID</label>
<div class="layui-input-block">
<input id="serialNum" name="serialNum" lay-verify="serialNum" autocomplete="off"
placeholder="输入新增设备ID" class="layui-input">
</div>
</div>
<!-- 提交按钮-->
<div class="layui-form-item" style="margin-top: 90px">
<button lay-filter="edit" lay-submit="" class="layui-btn layui-btn-fluid"
style="font-family:黑体;font-size:20px;height: 50px;border-radius: 15px">增加设备ID
</button>
</div>
</form>
</div>
</div>
<script>
layui.use(['form', 'layer', 'jquery'], function () {
var form = layui.form,
layer = layui.layer,
$ = layui.jquery;
//自定义验证规则
form.verify({
serialNum: function (value) {
if (value.length === 0) {
return '请输入设备ID!';
}
}
});
//监听提交
form.on('submit(edit)',
function (data) {
// console.log(data.field);
// console.log(aream);
//使用ajax传递数据
layer.msg('绑定中……', {time: 600});
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Tools/device_id_add",
data: {
type: data.field.devType,
serial_num: data.field.serialNum,
},
success: function (msg) {
parent.parent.layui.notice.remove();
layer.close(load);
if (msg === 'ok') {
parent.parent.layui.notice.success('设备ID' + data.field.serialNum + '成功入库!设备类型为:' + data.field.devType, '操作完成', parent.parent.noticeOpt4);
parent.layer.msg('设备ID' + data.field.serialNum + '成功入库!设备类型为:' + data.field.devType, {
icon: 6,
time: 1700
});
// 获得frame索引
var index = parent.layer.getFrameIndex(window.name);
//刷新父页面
setTimeout(function () {
parent.layer.close(index);
// parent.location.reload();
parent.$("#refresh").click();
}, 1200);
// parent.location.reload();
} else {
parent.parent.layui.notice.error(msg, '操作异常', parent.parent.noticeOpt5);
layer.alert(msg, {icon: 7});
}
},
error: function () {
layer.close(load);
parent.parent.layui.notice.remove();
parent.parent.layui.notice.error('数据提交失败,请联系后台管理员', '操作异常', parent.parent.noticeOpt5);
layer.alert('数据提交失败,请联系后台管理员!', {icon: 2})
}
});
return false;
});
});</script>
</body>
</html>

284
application/index/view/tools/device_operation.html

@ -0,0 +1,284 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>增删设备</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<style>
.layui-form-select dl {
max-height: 224px;
}
</style>
</head>
<body class="layui-anim layui-anim-scale flag" style="display: none"><br/>
<div class="x-nav">
<span class="layui-breadcrumb">
<a>首页</a>
<a>设备管理</a>
<a>增删设备</a>
</span>
<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
onclick="location.reload()" title="刷新">
<i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
</a>
</div>
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card" style="border-radius: 20px;">
<div class="layui-card-body" style="background-image: linear-gradient(#8dd6d1,#ffffff,#ffffff, #8dd6d1);border-radius: 20px;margin-bottom: 20px">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
<legend class="layui-icon">删除设备 &#xe616;&#xe616;&#xe616;</legend>
</fieldset>
<div id="deleteDevice" style="margin-bottom: 20px">
{foreach $data as $value}
<button type="button" class=" layui-btn layui-btn-lg layui-btn-radius"
style="margin-left: 0;margin-bottom: 7px">
<i class="layui-icon">{$value.icon}</i>
<i id="chinese">{$value.chinese}</i>
<b style="display: none">{$value.function}</b>
<i class="layui-icon layui-icon-delete" style="margin-left: 10px"></i>
</button>
{/foreach}
</div>
</div>
</div>
<div class="layui-card" style="border-radius: 20px;">
<div class="layui-card-body" style="background-image: linear-gradient(#ffeae4,#ffffff, #ffeae4);border-radius: 20px;">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
<legend class="layui-icon">添加设备 &#xe61f;&#xe61f;&#xe61f;</legend>
</fieldset>
<form class="layui-form" action="">
<div class="layui-form-item">
<label class="layui-form-label">设备名</label>
<div class="layui-input-block">
<input type="text" name="devname" lay-verify="required" lay-reqtext="设备名为必填项,岂能为空?"
placeholder="注意名称不能与现有设备相同"
title="注意名称不能与现有设备相同"
autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">设备标识名</label>
<div class="layui-input-block">
<input type="text" name="title" lay-verify="devicefun" autocomplete="off"
placeholder="例如:traffic_light &nbsp/&nbsp temperature_sensor &nbsp/&nbsp infrared_sensor"
title="例如:traffic_light &nbsp/&nbsp temperature_sensor &nbsp/&nbsp infrared_sensor"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">数据单位</label>
<div class="layui-input-block">
<input type="text" name="unit" lay-verify="" autocomplete="off"
placeholder="请输入该设备所产生的的数据的单位,可以为空,一旦录入不可更改。"
title="请输入该设备所产生的的数据的单位,可以为空,一旦录入不可更改。"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">选择图标</label>
<a class="layui-btn" onclick="xadmin.open('图标预览','/index/Tools/icon')">图标预览</a>
<div class="layui-input-inline">
<select name="iconpick" lay-verify="required" lay-reqtext="挑一个您喜欢的图标" lay-search>
<option value="">直接选择或搜索选择</option>
{foreach $icons as $icon}
<option value={$icon.icon_sym}>{$icon.icon_name}</option>
{/foreach}
</select>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button type="submit" class="layui-btn" lay-submit="" lay-filter="add">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
layui.use(['form', 'element', 'jquery'], function () {
var form = layui.form
, layer = layui.layer
, element = layui.element
, $ = layui.jquery;
//动态显示
parent.layui.notice.remove();
parent.layui.notice.info('增删设备界面', '已进入', parent.noticeOpt1);
// setTimeout(function () {
// $('.flag').show();
// }, 30);
$('.flag').show();
//自定义验证规则
form.verify({
title: function (value) {
if (value.length < 1) {
return '您还未填写设备标识名';
}
},
devicefun: function (value) {
// console.log(/^\d+$/.test(value));
var regString = /[a-zA-Z]+/; //验证大小写26个字母任意字母最少出现1次。
if (!(regString.test(value)) || value.length < 1){
parent.layui.notice.remove();
parent.layui.notice.error('您输入的设备标识名格式错误,请重新输入!', '操作异常', parent.noticeOpt5);
return '您输入的设备标识名格式错误,请重新输入!';
}
}
});
//删除设备事件绑定
$('#deleteDevice').on('click', 'button', function () {
// layer.alert('你点击了'+$(this).innerText);
var deviceName = $(this).find("#chinese").text();
var deviceFun = $(this).children("b").text();
parent.layui.notice.remove();
parent.layui.notice.warning('正在删除总设备:' + deviceName, '操作提示:', parent.noticeOpt3);
layer.confirm('真的要删除 ' + deviceName + ' 吗?', {
shade: [0.6, '#dc7069'],
btn: ['我确定', '再想想'],
icon: 0,
closeBtn: 0,
title: '请谨慎执行此操作'
}, function () {
// obj.del();
layer.confirm('请再次确认是否要删除 ' + deviceName, {
shade: [0.7, '#8c261f'],
anim: 6,
btn: ['心意已决', '还是算了吧'],
icon: 3,
title: '此操作不可逆转'
},
function (index) {
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Tools/device_delete",
data: {
function: deviceFun,
deviceName: deviceName
},
success: function (msg) {
layer.close(load);
parent.layui.notice.remove();
if (msg === 'ok') {
parent.layui.notice.success('总设备'+deviceName+'删除成功', '操作完成', parent.noticeOpt4);
layer.msg('总设备'+deviceName+'删除成功', {time: 1500, icon: 1});
setTimeout(function () {
parent.location.reload();
}, 1600);
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.msg(msg, {time: 1000});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据传输失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据传输失败,请联系后台管理员!', {icon: 2})
}
});
layer.close(index);
},
function () {
layer.msg('您取消了操作', {time: 600});
// location.reload();
}
);
},
function () {
layer.msg('您取消了操作', {time: 600});
// location.reload();
}
);
});
//监听提交
form.on('submit(add)', function (data) {
// console.log(data.field.devname);
// console.log(data.field.title);
//使用ajax传递数据
// layer.msg('添加中……',{time:600});
var load = layer.load();
$.ajax({
type: "POST",
url: "/index/Tools/device_insert",
data: {
chinese: data.field.devname,
function: data.field.title,
icon: data.field.iconpick,
unit: data.field.unit,
},
success: function (msg) {
//发异步,把数据提交给php
// console.log(msg);
layer.close(load);
parent.layui.notice.remove();
if (msg === 'ok') {
// parent.location.reload();
// 获得frame索引
// var index = parent.layer.getFrameIndex(window.name);
parent.layui.notice.success(data.field.devname+'设备新增成功!', '操作完成', parent.noticeOpt4);
parent.layer.msg(data.field.devname+'设备新增成功!', {
icon: 6,
time: 1600
});
setTimeout(function () {
parent.location.reload();
}, 1700);
//关闭并刷新页面
// setTimeout(function () {
// parent.layer.close(index);
// }, 1000);
// parent.location.reload();
} else {
parent.layui.notice.error(msg, '操作异常', parent.noticeOpt5);
layer.alert(msg, {icon: 7});
}
},
error: function () {
layer.close(load);
parent.layui.notice.remove();
parent.layui.notice.error('数据提交失败,请联系后台管理员', '操作异常', parent.noticeOpt5);
layer.alert('数据提交失败,请联系后台管理员!', {icon: 2})
}
});
return false;
});
});
</script>
</body>
</html>

1070
application/index/view/tools/getData.html

File diff suppressed because it is too large

1211
application/index/view/tools/icon.html

File diff suppressed because it is too large

443
application/index/view/tools/show_detail.html

@ -0,0 +1,443 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>{$devName}&#xe602;设备ID:{$serial_num} &#xe617;&#xe617;&#xe617;</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<script type="text/javascript" src="/js/echarts.min.js"></script>
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.layui-card-header{
border-bottom: 0px solid #f6f6f6;
}
.layui-table thead span {
/*background-color: #acd3ed;*/
font-size: 15px;
}
.layui-table tbody tr td div {
font-size: 14px;
}
.layui-table tbody tr:hover {
background-color: #ffe6cc;
}
.layui-table tbody tr:hover td div {
font-size: 18px;
}
</style>
</head>
<body class="layui-anim layui-anim-scale flag" style="display: none"><br/>
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div style="background-image: linear-gradient(rgb(255,255,255),rgba(255,255,255,0));margin-bottom: 12px">
<fieldset class="layui-elem-field layui-field-title">
<legend class="layui-icon">{$devName}&#xe602;设备ID:{$serial_num} &#xe617;&#xe617;&#xe617;</legend>
</fieldset>
</div>
<div class="layui-col-sm12 layui-col-md12" >
<div class="layui-card">
<div class="layui-card-header" style="background-image: linear-gradient(to right , #94df9a , #abffb1);color: #070707">设置数据刷新频率(默认为3s)</div>
<div class="layui-card-body" style="background-image: linear-gradient(to right, #abffb1 , #4acc5c);">
<button id="up1" class="layui-btn layui-btn-radius"
style="width: 120px;height: 40px;font-size: 20px;margin-bottom: 7px;margin-left: 10px">1s
</button>
<button id="up2" class="layui-btn layui-btn-radius"
style="width: 120px;height: 40px;font-size: 20px;margin-bottom: 7px">3s
</button>
<button id="up3" class="layui-btn layui-btn-radius"
style="width: 120px;height: 40px;font-size: 20px;margin-bottom: 7px">7s
</button>
<button id="up4" class="layui-btn layui-btn-radius"
style="width: 120px;height: 40px;font-size: 20px;margin-bottom: 7px">60s
</button>
</div>
</div>
</div>
<div class="layui-col-sm12 layui-col-md4">
<div class="layui-card">
<div class="layui-card-header"style="background-image: linear-gradient(#c9bbdd , #ffffff);">实时数据</div>
<div class="layui-card-body" style="min-height: 280px;">
<div id="main1" class="layui-col-sm12" style="height: 300px"></div>
</div>
</div>
</div>
<div class="layui-col-sm12 layui-col-md8">
<div class="layui-card">
<div class="layui-card-header" style="background-image: linear-gradient(#7da9dd , #ffffff);">最近数据</div>
<div class="layui-card-body" style="min-height: 280px;">
<div id="main2" class="layui-col-sm12" style="height: 300px;"></div>
</div>
</div>
</div>
<div class="layui-col-sm12 layui-col-md12" style="min-height: 837px">
<div class="layui-card" >
<div class="layui-card-header" style="background-image: linear-gradient(#ffe6cc , #ffffff);">历史数据
<button class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:6px;float:right"
id="refresh" title="刷新">
<i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
</button>
</div>
<div class="layui-card-body" style="background-image: linear-gradient(#ffffff , #ffe6cc);">
<form class="layui-form layui-col-space5" action="" id="myForm">
<div class="layui-inline">
<label class="layui-form-label" style="padding: 5px ;width: 90px">日期范围查询</label>
<div class="layui-input-inline">
<input style="width: 260px" type="text" id="selectDate" name="selectDate"
lay-verify="selectDate" placeholder="请选择要查询数据的日期范围" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-inline layui-show-xs-block">
<button class="layui-btn" lay-submit="" lay-filter="search">
<i class="layui-icon">&#xe615;</i>查找
</button>
</div>
</form>
<table id="demo" lay-filter="demo"></table>
</div>
</div>
</div>
</div>
</div>
<script type="text/html" id="toolbarDemo">
<div class="layui-btn-container">
<button class="layui-btn layui-btn-radius layui-btn-lg" lay-event="optimize_sql"
style="background-color: #57ddc2">
<i class="layui-icon layui-icon-senior"></i>优化数据库
</button>
</div>
</script>
<script type="text/javascript">
var deviceName = '{$devName}';
var serial_num = '{$serial_num}';
layui.use(['table', 'form', 'layer', 'jquery', 'laydate'], function () {
var table = layui.table;
var form = layui.form;
var $ = layui.jquery;
var layer = layui.layer;
var laydate = layui.laydate
var updateTime = 3000;
//动态显示
parent.layui.notice.remove();
parent.layui.notice.info('序列号为:' + serial_num + '的' + deviceName + '实时动态界面界面', '已进入', parent.noticeOpt1);
// setTimeout(function () {
// $('.flag').show();
// myChart1.resize();
// myChart2.resize();
// }, 30);
$('.flag').show();
// myChart1.resize();
// myChart2.resize();
$("#refresh").click(function () {
$("#myForm")[0].reset();
layui.form.render();
parent.layui.notice.remove();
parent.layui.notice.success("历史数据列表已校准", "<div class = 'layui-icon layui-icon-heart-fill'> 同步成功</div>", parent.noticeOpt6);
table.render({
elem: '#demo'
// , toolbar: '#toolbarDemo' //开启头部工具栏,并为其绑定左侧模板
, url: '/index/Tools/device_detailMsg?deviceName=' + deviceName + '&serial_num=' + serial_num //数据接口
, loading: true
, size: 'sm'
, page: {
curr: 1
, layout: ['limit', 'prev', 'page', 'next', 'skip']//自定义布局顺序
, limit: 20 //初始 每页几条数据
, groups: 5 //最多几个跳页按钮
, prev: '上一页'
, next: '下一页'
// , first: false //不显示首页
// , last: false //不显示尾页
}
, cols: [[ //表头
{field: 'time', title: '时间', align: 'center', minWidth: 120}
, {field: 'data', title: '数据', minWidth: 120, align: 'center'}
]]
});
});
//日期时间初始化
laydate.render({
elem: '#selectDate'
, trigger: 'click' //采用click弹出
, type: 'datetime'
, range: '~'
, format: 'yyyy-MM-dd HH:mm:ss'
, theme: 'grid'
});
// 自定义验证规则
form.verify({
selectDate: function (value) {
if (!value) {
// console.log(value);
parent.layui.notice.remove();
parent.layui.notice.error('请选择要查询数据的日期范围', '操作异常', parent.noticeOpt5);
return '请选择要查询数据的日期范围!';
}
if (value.length !== 41) {
parent.layui.notice.remove();
parent.layui.notice.error('格式错误,请在日期选择框中选择日期范围,不要手动输入!', '操作异常', parent.noticeOpt5);
return '格式错误,请在日期选择框中选择日期范围,不要手动输入!'
}
// console.log(value.length);
},
});
//搜索历史数据
form.on('submit(search)', function (data) {
// console.log(data.field.selectDate.split(' ~ '));
var selectDate = data.field.selectDate.split(' ~ ');
// console.log(selectDate[0]);
// console.log(selectDate[1]);
layer.msg('搜索中', {time: 500});
var load = layer.load();
tableIns.reload({
where: { //设定异步数据接口的额外参数,任意设
// deviceName: deviceName
// ,serial_num: serial_num
startDate: selectDate[0]
, endDate: selectDate[1]
}
, page: {
curr: 1 //重新从第 1 页开始
}
, done: function (res, curr, count) {
layer.close(load);
parent.layui.notice.remove();
if (count === 0) {
parent.layui.notice.success(res.msg, '搜索完成', parent.noticeOpt4);
layer.msg('搜索完成,' + res.msg, {time: 1500});
} else {
parent.layui.notice.success('找到' + count + '条数据', '搜索完成', parent.noticeOpt4);
layer.msg('搜索完成,找到' + count + '条数据', {time: 1500});
}
}
});
return false;
});
//设置刷新图标的时间间隔
$("#up1").click(function () {
updateTime = 1000;
clearInterval(interval1);
interval1 = setInterval(update, updateTime);
layer.msg('已重新设置间隔为1s', {icon: 6, time: 1000});
update();
});
$("#up2").click(function () {
updateTime = 3000;
clearInterval(interval1);
interval1 = setInterval(update, updateTime);
layer.msg('已重新设置间隔为3s', {icon: 6, time: 1000});
update();
});
$("#up3").click(function () {
updateTime = 7000;
clearInterval(interval1);
interval1 = setInterval(update, updateTime);
layer.msg('已重新设置间隔为7s', {icon: 6, time: 1000});
update();
});
$("#up4").click(function () {
updateTime = 60000;
clearInterval(interval1);
interval1 = setInterval(update, updateTime);
layer.msg('已重新设置间隔为60s', {icon: 6, time: 1000});
update();
});
//当前数据
var myChart1 = echarts.init(document.getElementById('main1'));
var option1 = {
tooltip: {
formatter: "{a} <br/>{b} : {c}{$unit}"
},
toolbox: {
feature: {
saveAsImage: {}
}
},
series: [
{
name: '当前数据',
type: 'gauge',
detail: {formatter: '{value}{$unit}'},
data: [{value: 0}],
splitNumber: 10
}
]
};
//近期数据
var myChart2 = echarts.init(document.getElementById('main2'));
var option2 = {
tooltip: {
trigger: 'axis',
showContent: true,
formatter: "{a} <br/>{b} : {c}{$unit}"
},
toolbox: {
feature: {
saveAsImage: {}
}
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['loading...', 'loading...', 'loading...', 'loading...', 'loading...', 'loading...', 'loading...']
},
yAxis: {
type: 'value',
splitLine: {show: true}
},
series: [
{
name: '近期数据',
data: [0, 0, 0, 0, 0, 0, 0],
type: 'line',
itemStyle: {normal: {label: {show: true}}},
areaStyle: {}
}
],
color: '#93ccff'
};
// 使用刚指定的配置项和数据显示图表。
myChart1.setOption(option1);
myChart2.setOption(option2);
update();
layer.msg('当前数据更新间隔为3s', {icon: 6, time: 2000});
var interval1 = setInterval(update, updateTime);
function update() {
// var timestamp = Date.parse(new Date());
$.ajax({
type: "POST",
url: "/index/Tools/echarts",
data: {
deviceName: deviceName,
serial_num: serial_num,
},
success: function (msg) {
// console.log(timestampToTime(msg[1].time));
option1.series[0].data[0].value = msg[0].data;
// console.log(msg);
for (var i = 0; i < 7; i++) {
msg[i].time = timestampToTime(msg[i].time);
}
option2.series[0].data[6] = msg[0].data;
option2.xAxis.data[6] = msg[0].time;
option2.series[0].data[5] = msg[1].data;
option2.xAxis.data[5] = msg[1].time;
option2.series[0].data[4] = msg[2].data;
option2.xAxis.data[4] = msg[2].time;
option2.series[0].data[3] = msg[3].data;
option2.xAxis.data[3] = msg[3].time;
option2.series[0].data[2] = msg[4].data;
option2.xAxis.data[2] = msg[4].time;
option2.series[0].data[1] = msg[5].data;
option2.xAxis.data[1] = msg[5].time;
option2.series[0].data[0] = msg[6].data;
option2.xAxis.data[0] = msg[6].time;
myChart1.setOption(option1);
myChart2.setOption(option2);
},
error: function () {
layer.alert('数据传输失败,请联系后台管理员!', {icon: 5})
}
});
}
//根据窗口的大小变动图表 --- 重点
window.onresize = function () {
myChart1.resize();
myChart2.resize();
};
//时间戳转换成时间
function timestampToTime(timestamp) {
var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
var Y = date.getFullYear() + '-';
var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' ';
var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
var s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
return h + m + s;
}
// 初始化历史数据表
var tableIns = table.render({
elem: '#demo'
// , toolbar: '#toolbarDemo' //开启头部工具栏,并为其绑定左侧模板
, url: '/index/Tools/device_detailMsg?deviceName=' + deviceName + '&serial_num=' + serial_num //数据接口
, loading: true
, size: 'sm'
, page: {
curr: 1
, layout: ['limit', 'prev', 'page', 'next', 'skip']//自定义布局顺序
, limit: 20 //初始 每页几条数据
, groups: 5 //最多几个跳页按钮
, prev: '上一页'
, next: '下一页'
// , first: false //不显示首页
// , last: false //不显示尾页
}
, cols: [[ //表头
{field: 'time', title: '时间', align: 'center', minWidth: 120}
, {field: 'data', title: '数据', minWidth: 120, align: 'center'}
]]
// , done: function (res, curr, count) {
// //如果是异步请求数据方式,res即为你接口返回的信息。
// //如果是直接赋值的方式,res即为:{data: [], count: 99} data为当前页数据、count为数据总长度
// // console.log(res.data);
//
// //得到数据总量
// // console.log(count);
// }
});
table.on('toolbar(demo)', function (obj) {
if (obj.event === 'refresh') {
location.reload();
}
});
});
</script>
</body>
</html>

183
application/index/view/tools/user_add.html

@ -0,0 +1,183 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>新增用户</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
body {
background-image: url("/images/wallhaven.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #e4eaf1;
background-position: center;
}
</style>
</head>
<body>
<div class="layui-fluid" style="background-color:rgba(255,255,255,0.3);min-height: 427px">
<div class="layui-row">
<form class="layui-form">
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">用户名</label>
<div class="layui-input-block">
<input id="username" type="text" name="username" lay-verify="username" autocomplete="off"
placeholder="请输入用户名" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">&#12288;</label>
<div class="layui-input-block">
<input id="passwd" type="password" name="passwd" lay-verify="passwd" autocomplete="off"
placeholder="请输入密码" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">重复密码</label>
<div class="layui-input-block">
<input id="repasswd" type="password" name="repasswd" lay-verify="repasswd" autocomplete="off"
placeholder="请再次输入密码" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">手机号</label>
<div class="layui-input-block">
<input id="phone" type="text" name="phone" lay-verify="phone2" autocomplete="off"
placeholder="请输入手机号" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">邮箱地址</label>
<div class="layui-input-block">
<input id="email" type="text" name="email" lay-verify="email2|email" autocomplete="off"
placeholder="请输入邮件地址" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<button lay-filter="edit" lay-submit="" class="layui-btn layui-btn-fluid"
style="font-family:黑体;font-size:20px;height: 50px;border-radius: 15px">添加用户
</button>
</div>
</form>
</div>
</div>
<script>layui.use(['form', 'layer'],
function () {
$ = layui.jquery;
var form = layui.form,
layer = layui.layer;
//自定义验证规则
form.verify({
username: function (value) {
if (value.length === 0) {
return '请输入用户名!';
} else if (value.length < 2) {
return '长度需大于等于2位'
}
},
passwd: function (value) {
if (value.length === 0) {
return '请输入密码';
} else if (value.length < 4) {
return '密码长度应大于等于4位'
}
},
repasswd: function (value) {
if (value.length === 0) {
return '请确认密码';
} else if ($('#passwd').val() !== $('#repasswd').val()) {
return '两次密码不相同!'
}
},
email2: function (value) {
if (value.length === 0) {
return '请输入邮箱!';
}
},
phone2: function (value) {
if (value.length === 0) {
return '请输入手机号!';
}
}
});
//监听提交
form.on('submit(edit)',
function (data) {
// console.log(data.field);
layer.msg('正在添加……', {time: 600});
var load = layer.load();
//使用ajax传递数据
senddata = $.ajax({
type: "POST",
url: "/index/Tools/user_insert",
data: {
username: data.field.username,
passwd: data.field.passwd,
phone: data.field.phone,
email: data.field.email
},
success: function (msg) {
layer.close(load);
parent.parent.layui.notice.remove();
if (msg === 'ok') {
parent.parent.layui.notice.success('用户:' + data.field.username + '新增成功!', '操作完成', parent.parent.noticeOpt4);
parent.layer.msg('新增用户成功!', {
icon: 6,
time: 1200
});
// 获得frame索引
var index = parent.layer.getFrameIndex(window.name);
//刷新页面
setTimeout(function () {
parent.layer.close(index);
// parent.location.reload();
parent.$("#refresh").click();
}, 1000);
} else {
parent.parent.layui.notice.error(msg, '操作异常', parent.parent.noticeOpt5);
layer.alert(msg, {icon: 7});
}
},
error: function () {
layer.close(load);
parent.parent.layui.notice.remove();
parent.parent.layui.notice.error('数据提交失败,请联系后台管理员', '操作异常', parent.parent.noticeOpt5);
layer.alert('数据提交失败,请联系后台管理员!', {icon: 2})
}
});
return false;
});
});</script>
</body>
</html>

191
application/index/view/tools/user_edit.html

@ -0,0 +1,191 @@
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>编辑用户信息</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
<link rel="stylesheet" href="/css/font.css">
<link rel="stylesheet" href="/css/xadmin.css">
<script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
body {
background-image: url("/images/wallhaven.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #e4eaf1;
background-position: center;
}
</style>
</head>
<body>
<div class="layui-fluid" style="background-color:rgba(255,255,255,0.3);min-height: 427px">
<div class="layui-row">
<form class="layui-form">
<input type="hidden" name="id" value="{$data.id}"/>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">用户名</label>
<div class="layui-input-block">
<input id="username" type="text" name="username" value="{$data.uid}" lay-verify="username"
autocomplete="off"
placeholder="请输入用户名" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">&#12288;</label>
<div class="layui-input-block">
<input id="passwd" type="password" name="passwd" value="{$data.password}" lay-verify="passwd"
autocomplete="off"
placeholder="请输入新密码" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">重复密码</label>
<div class="layui-input-block">
<input id="repasswd" type="password" name="repasswd" value="{$data.password}"
lay-verify="repasswd" autocomplete="off"
placeholder="请再次输入密码" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">手机号</label>
<div class="layui-input-block">
<input id="phone" type="text" name="phone" value="{$data.tel}" lay-verify="phone2"
autocomplete="off"
placeholder="请输入手机号" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-form-item">
<label class="layui-form-label">邮箱地址</label>
<div class="layui-input-block">
<input id="email" type="text" name="email" value="{$data.email}" lay-verify="email2|email"
autocomplete="off"
placeholder="请输入邮件地址" class="layui-input">
</div>
</div>
</div>
<div class="layui-form-item">
<button lay-filter="edit" lay-submit="" class="layui-btn layui-btn-fluid"
style="font-family:黑体;font-size:20px;height: 50px;border-radius: 15px">修改用户:{$data.uid}的信息
</button>
</div>
</form>
</div>
</div>
<script>layui.use(['form', 'layer'],
function () {
$ = layui.jquery;
var form = layui.form,
layer = layui.layer;
//自定义验证规则
form.verify({
username: function (value) {
if (value.length === 0) {
return '请输入用户名!';
} else if (value.length < 2) {
return '长度需大于等于2位'
}
},
passwd: function (value) {
if (value.length === 0) {
return '请输入密码';
} else if (value.length < 4) {
return '密码长度应大于等于4位'
}
},
repasswd: function (value) {
if (value.length === 0) {
return '请确认密码';
} else if ($('#passwd').val() !== $('#repasswd').val()) {
return '两次密码不相同!'
}
},
email2: function (value) {
if (value.length === 0) {
return '请输入邮箱!';
}
},
phone2: function (value) {
if (value.length === 0) {
return '请输入手机号!';
}
}
});
//监听提交
form.on('submit(edit)',
function (data) {
// console.log(data.field);
layer.msg('修改中……', {time: 600});
var load = layer.load();
//使用ajax传递数据
senddata = $.ajax({
type: "POST",
url: "/index/Tools/user_update",
data: {
id: data.field.id,
uid: data.field.username,
passwd: data.field.passwd,
phone: data.field.phone,
email: data.field.email
},
success: function (msg) {
layer.close(load);
parent.parent.layui.notice.remove();
if (msg === 'ok') {
parent.parent.layui.notice.success('用户:' + data.field.username + ' 的信息修改成功!', '操作完成', parent.parent.noticeOpt4);
parent.layer.msg('用户:' + data.field.username + ' 的信息修改成功!', {
icon: 6,
time: 1200
});
// 获得frame索引
var index = parent.layer.getFrameIndex(window.name);
//刷新页面
setTimeout(function () {
parent.layer.close(index);
// parent.location.reload();
parent.$("#refresh").click();
}, 1200);
} else {
parent.parent.layui.notice.error(msg, '操作异常', parent.parent.noticeOpt5);
layer.alert(msg, {icon: 7});
}
},
error: function () {
layer.close(load);
parent.parent.layui.notice.remove();
parent.parent.layui.notice.error('数据提交失败,请联系后台管理员', '操作异常', parent.parent.noticeOpt5);
layer.alert('数据提交失败,请联系后台管理员!', {icon: 2})
}
});
return false;
});
});</script>
</body>
</html>

21
application/route.php

@ -0,0 +1,21 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
return [
'__pattern__' => [
'name' => '\w+',
],
'[hello]' => [
':id' => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
':name' => ['index/hello', ['method' => 'post']],
],
];

28
application/tags.php

@ -0,0 +1,28 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// 应用行为扩展定义文件
return [
// 应用初始化
'app_init' => [],
// 应用开始
'app_begin' => [],
// 模块初始化
'module_init' => [],
// 操作开始执行
'action_begin' => [],
// 视图内容过滤
'view_filter' => [],
// 日志写入
'log_write' => [],
// 应用结束
'app_end' => [],
];

25
build.php

@ -0,0 +1,25 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
return [
// 生成应用公共文件
'__file__' => ['common.php', 'config.php', 'database.php'],
// 定义demo模块的自动生成 (按照实际定义的文件名生成)
'demo' => [
'__file__' => ['common.php'],
'__dir__' => ['behavior', 'controller', 'model', 'view'],
'controller' => ['Index', 'Test', 'UserType'],
'model' => ['User', 'UserType'],
'view' => ['index/index'],
],
// 其他更多的模块定义
];

33
composer.json

@ -0,0 +1,33 @@
{
"name": "topthink/think",
"description": "the new thinkphp framework",
"type": "project",
"keywords": [
"framework",
"thinkphp",
"ORM"
],
"homepage": "http://thinkphp.cn/",
"license": "Apache-2.0",
"authors": [
{
"name": "liu21st",
"email": "liu21st@gmail.com"
}
],
"require": {
"php": ">=5.4.0",
"topthink/framework": "5.0.*"
},
"autoload": {
"psr-4": {
"app\\": "application"
}
},
"extra": {
"think-path": "thinkphp"
},
"config": {
"preferred-install": "dist"
}
}

528
composer.lock

@ -0,0 +1,528 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "57513f5dbb6f43960ca2e4899015c52d",
"packages": [
{
"name": "topthink/framework",
"version": "v5.0.21",
"source": {
"type": "git",
"url": "https://github.com/top-think/framework.git",
"reference": "ab826da071a7a47116a7f1d01f72228d6bcf212a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/framework/zipball/ab826da071a7a47116a7f1d01f72228d6bcf212a",
"reference": "ab826da071a7a47116a7f1d01f72228d6bcf212a",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=5.4.0",
"topthink/think-installer": "~1.0"
},
"require-dev": {
"johnkary/phpunit-speedtrap": "^1.0",
"mikey179/vfsstream": "~1.6",
"phpdocumentor/reflection-docblock": "^2.0",
"phploc/phploc": "2.*",
"phpunit/phpunit": "4.8.*",
"sebastian/phpcpd": "2.*"
},
"type": "think-framework",
"autoload": {
"psr-4": {
"think\\": "library/think"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "liu21st@gmail.com"
}
],
"description": "the new thinkphp framework",
"homepage": "http://thinkphp.cn/",
"keywords": [
"framework",
"orm",
"thinkphp"
],
"time": "2018-09-04T09:18:48+00:00"
},
{
"name": "topthink/think-captcha",
"version": "v1.0.7",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-captcha.git",
"reference": "0c55455df26a1626a60d0dc35d2d89002b741d44"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-captcha/zipball/0c55455df26a1626a60d0dc35d2d89002b741d44",
"reference": "0c55455df26a1626a60d0dc35d2d89002b741d44",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"type": "library",
"autoload": {
"psr-4": {
"think\\captcha\\": "src/"
},
"files": [
"src/helper.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "yunwuxin",
"email": "448901948@qq.com"
}
],
"description": "captcha package for thinkphp5",
"time": "2016-07-06T01:47:11+00:00"
},
{
"name": "topthink/think-helper",
"version": "v1.0.6",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-helper.git",
"reference": "0c99dc625b0d2d4124e1b6ca15a3ad6f0125963f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-helper/zipball/0c99dc625b0d2d4124e1b6ca15a3ad6f0125963f",
"reference": "0c99dc625b0d2d4124e1b6ca15a3ad6f0125963f",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"type": "library",
"autoload": {
"psr-4": {
"think\\helper\\": "src"
},
"files": [
"src/helper.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "yunwuxin",
"email": "448901948@qq.com"
}
],
"description": "The ThinkPHP5 Helper Package",
"time": "2017-04-05T07:15:37+00:00"
},
{
"name": "topthink/think-image",
"version": "v1.0.7",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-image.git",
"reference": "8586cf47f117481c6d415b20f7dedf62e79d5512"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-image/zipball/8586cf47f117481c6d415b20f7dedf62e79d5512",
"reference": "8586cf47f117481c6d415b20f7dedf62e79d5512",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"ext-gd": "*"
},
"require-dev": {
"phpunit/phpunit": "4.8.*",
"topthink/framework": "^5.0"
},
"type": "library",
"autoload": {
"psr-4": {
"think\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "yunwuxin",
"email": "448901948@qq.com"
}
],
"description": "The ThinkPHP5 Image Package",
"time": "2016-09-29T06:05:43+00:00"
},
{
"name": "topthink/think-installer",
"version": "v1.0.12",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-installer.git",
"reference": "1be326e68f63de4e95977ed50f46ae75f017556d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-installer/zipball/1be326e68f63de4e95977ed50f46ae75f017556d",
"reference": "1be326e68f63de4e95977ed50f46ae75f017556d",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"composer-plugin-api": "^1.0"
},
"require-dev": {
"composer/composer": "1.0.*@dev"
},
"type": "composer-plugin",
"extra": {
"class": "think\\composer\\Plugin"
},
"autoload": {
"psr-4": {
"think\\composer\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "yunwuxin",
"email": "448901948@qq.com"
}
],
"time": "2017-05-27T06:58:09+00:00"
},
{
"name": "topthink/think-migration",
"version": "v1.1.1",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-migration.git",
"reference": "8e489f8d38a39876690c0e00fcf9a54ae92c4d3d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-migration/zipball/8e489f8d38a39876690c0e00fcf9a54ae92c4d3d",
"reference": "8e489f8d38a39876690c0e00fcf9a54ae92c4d3d",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require-dev": {
"topthink/framework": "^5.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Phinx\\": "phinx/src/Phinx",
"think\\migration\\": "src"
},
"files": [
"src/config.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "yunwuxin",
"email": "448901948@qq.com"
}
],
"time": "2017-03-31T06:33:23+00:00"
},
{
"name": "topthink/think-mongo",
"version": "v1.8.5",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-mongo.git",
"reference": "657cc79bd5f090a58b0cc83776073dd69c83a3d1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-mongo/zipball/657cc79bd5f090a58b0cc83776073dd69c83a3d1",
"reference": "657cc79bd5f090a58b0cc83776073dd69c83a3d1",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"type": "library",
"autoload": {
"psr-4": {
"think\\mongo\\": "src"
},
"files": []
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "liu21st@gmail.com"
}
],
"description": "mongodb driver for thinkphp5",
"time": "2018-06-03T01:51:27+00:00"
},
{
"name": "topthink/think-oracle",
"version": "v1.3",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-oracle.git",
"reference": "89a049e876167030b489322f691aed00799fd68f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-oracle/zipball/89a049e876167030b489322f691aed00799fd68f",
"reference": "89a049e876167030b489322f691aed00799fd68f",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"topthink/framework": "~5.0.17"
},
"type": "library",
"autoload": {
"psr-4": {
"think\\oracle\\": "src"
},
"files": []
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "liu21st@gmail.com"
}
],
"description": "Oracle driver for thinkphp5",
"time": "2018-04-14T00:52:34+00:00"
},
{
"name": "topthink/think-queue",
"version": "v1.1.5",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-queue.git",
"reference": "465320c9cb7811df22d4ff8f29f58ead7d104348"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-queue/zipball/465320c9cb7811df22d4ff8f29f58ead7d104348",
"reference": "465320c9cb7811df22d4ff8f29f58ead7d104348",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"topthink/think-helper": ">=1.0.4",
"topthink/think-installer": ">=1.0.10"
},
"type": "think-extend",
"extra": {
"think-config": {
"queue": "src/config.php"
}
},
"autoload": {
"psr-4": {
"think\\": "src"
},
"files": [
"src/common.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "yunwuxin",
"email": "448901948@qq.com"
}
],
"description": "The ThinkPHP5 Queue Package",
"time": "2018-05-04T05:29:53+00:00"
},
{
"name": "topthink/think-worker",
"version": "v1.0.1",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-worker.git",
"reference": "b609ff5e38dbb7194aab027d2b2c6b31a7ed1bd1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-worker/zipball/b609ff5e38dbb7194aab027d2b2c6b31a7ed1bd1",
"reference": "b609ff5e38dbb7194aab027d2b2c6b31a7ed1bd1",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"workerman/workerman": "^3.3.0"
},
"type": "library",
"autoload": {
"psr-4": {
"think\\worker\\": "src"
},
"files": []
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "liu21st@gmail.com"
}
],
"description": "workerman extend for thinkphp5",
"time": "2016-10-08T06:07:03+00:00"
},
{
"name": "workerman/workerman",
"version": "v3.5.14",
"source": {
"type": "git",
"url": "https://github.com/walkor/Workerman.git",
"reference": "6d70996b2b4ec94000e807246aca0e861c9601d8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/walkor/Workerman/zipball/6d70996b2b4ec94000e807246aca0e861c9601d8",
"reference": "6d70996b2b4ec94000e807246aca0e861c9601d8",
"shasum": "",
"mirrors": [
{
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=5.3"
},
"suggest": {
"ext-event": "For better performance. "
},
"type": "library",
"autoload": {
"psr-4": {
"Workerman\\": "./"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "walkor",
"email": "walkor@workerman.net",
"homepage": "http://www.workerman.net",
"role": "Developer"
}
],
"description": "An asynchronous event driven PHP framework for easily building fast, scalable network applications.",
"homepage": "http://www.workerman.net",
"keywords": [
"asynchronous",
"event-loop"
],
"time": "2018-08-04T12:41:54+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"php": ">=5.4.0"
},
"platform-dev": []
}

5695
data.sql

File diff suppressed because it is too large

2
extend/.gitignore

@ -0,0 +1,2 @@
*
!.gitignore

12
public/.htaccess

@ -0,0 +1,12 @@
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
# 本地调试重定向URL地址
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
#部署环境重定向URL设置
# RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

16
public/css/font.css

@ -0,0 +1,16 @@
@font-face {
font-family: 'iconfont';
src: url('../fonts/iconfont.eot');
src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/iconfont.woff') format('woff'),
url('../fonts/iconfont.ttf') format('truetype'),
url('../fonts/iconfont.svg#iconfont') format('svg');
}
.iconfont{
font-family:"iconfont" !important;
font-size:16px;font-style:normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}

123
public/css/login.css

@ -0,0 +1,123 @@
/*
* @Author: zengjianqi
* @Date: 2020-02-26 08:30:12
* @Last Modified by: zengjianqi
* @Last Modified time: 2020-03-16 10:37:17
*/
.login-bg {
/*background: url(../images/work.jpg) no-repeat center;*/
/*background-size: cover;*/
/*overflow: hidden;*/
background-image: url(../images/work.jpg);
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
background-size:cover;
/*height:100%;*/
background-color: #b9c8ff;
}
.login {
margin: 12vh auto 12vh auto;
min-height: 420px;
max-width: 420px;
padding: 40px;
background-color: rgba(255, 255, 255, 0.31);
margin-left: auto;
margin-right: auto;
border-radius: 4px;
/* overflow-x: hidden; */
box-sizing: border-box;
}
.login a.logo {
display: block;
height: 58px;
width: 167px;
margin: 0 auto 30px auto;
background-size: 167px 42px;
}
.login .message {
margin: 10px 0 0 -58px;
padding: 18px 10px 18px 60px;
background: #4079d1;
position: relative;
color: #fff;
font-size: 40px;
font-family: "华文行楷";
}
.login #darkbannerwrap {
background: url(../images/aiwrap.png);
width: 18px;
height: 10px;
margin: 0 0 20px -58px;
position: relative;
}
.login input[type=text],
.login input[type=file],
.login input[type=password],
.login input[type=email], select {
border: 1px solid #DCDEE0;
vertical-align: middle;
border-radius: 3px;
height: 50px;
padding: 0px 16px;
font-size: 14px;
color: #555555;
outline: none;
width: 100%;
box-sizing: border-box;
}
.login input[type=text]:focus,
.login input[type=file]:focus,
.login input[type=password]:focus,
.login input[type=email]:focus, select:focus {
border: 1px solid #27A9E3;
}
.login input[type=submit],
.login input[type=button] {
display: inline-block;
vertical-align: middle;
padding: 12px 24px;
margin: 0px;
font-size: 18px;
line-height: 24px;
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
color: #ffffff;
background-color: #9f4546;
border-radius: 3px;
border: none;
-webkit-appearance: none;
outline: none;
width: 100%;
}
.login hr {
/*background: #fff url("../images") 0 0 no-repeat;*/
background-color: transparent;
}
.login hr.hr15 {
height: 15px;
border: none;
margin: 0px;
padding: 0px;
width: 100%;
}
.login hr.hr20 {
height: 20px;
border: none;
margin: 0px;
padding: 0px;
width: 100%;
}

21
public/css/theme1.css

@ -0,0 +1,21 @@
body{
background:#F2F1F2;
}
.container{
background:#1A1B20;
}
.left-nav{
background:#1A1B20;
}
.left-nav a{
color:rgba(255,255,255,.7);
}
..left-nav a.active{
background: #009688 !important;
color: #fff;
}
.left-nav a:hover{
background: #009688 !important;
color: #fff;
}

21
public/css/theme2.css

@ -0,0 +1,21 @@
body{
background:#EEF5F9;
}
.container{
background:#323640;
}
.left-nav{
background:#fff;
}
.left-nav a{
color:#686a76;
}
.left-nav a.active{
background: #786AED !important;
color: #fff;
}
.left-nav a:hover{
background: #786AED !important;
color: #fff;
}

22
public/css/theme3.css

@ -0,0 +1,22 @@
body{
background:#E8E8E8;
}
.container{
background:#F34743;
}
.left-nav{
background:#F4F4F4;
}
.left-nav a{
color:#686a76;
}
.left-nav a.active{
background: #FEFEFE !important;
color: #F34743;
}
.left-nav a:hover{
background: #FEFEFE !important;
color: #F34743;
}

21
public/css/theme4.css

@ -0,0 +1,21 @@
body{
background:#E4E4E4;
}
.container{
background:#019587;
}
.left-nav{
background:#263035;
}
.left-nav a{
color:#fff;
}
.left-nav a.active{
background: #212525 !important;
color: #fff !important;
}
.left-nav a:hover{
background: #212525 !important;
color: #fff !important;
}

27
public/css/theme5.css

@ -0,0 +1,27 @@
body{
background:#EEF5F9 !important;
}
.container{
background:linear-gradient(to left, #7b4397, #2196f3);
}
.left-nav{
background:#fff !important;
}
.left-nav a{
color:#686a76 !important;
}
.left-nav a.active{
background: linear-gradient(to left, #7c8ce4, #2196f3) !important;
color: #fff !important;
border-color: #7b4397 !important;
}
.left-nav a:hover{
background: linear-gradient(to left, #7c8ce4, #2196f3) !important;
color: #fff !important;
border-color: #7b4397 !important;
}
.container .logo a{
background: rgba(0,0,0,0) !important;
}

633
public/css/xadmin.css

@ -0,0 +1,633 @@
@charset "utf-8";
@import url(../lib/layui/css/layui.css);
*{
margin: 0px;
padding: 0px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a{
text-decoration: none;
}
html{
width: 100%;
height: auto;
overflow-x:hidden;
overflow-y:auto;
}
body{
width: 100%;
/*min-height: 100%;*/
/*background-image: url("../images/wallhaven.jpg");*/
/*background-position: center;*/
/*background-size:100% 100%;*/
/*background-repeat: no-repeat;*/
/*background-attachment: fixed;*/
background-color: rgba(228, 234, 241, 0);
/*background: #fff;*/
}
.index{
background-image: url("../images/wallhaven.jpg");
/*background-position: center;*/
/*background-size:100% 100%;*/
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #e4eaf1;
background-position: center;
background-size:cover;
}
.layui-card-body{
background-color: rgba(255, 255, 255, 0.67);
}
.x-red{
color: red;
}
.layui-form-switch{
margin-top: 0px;
}
.layui-input:focus, .layui-textarea:focus {
border-color: #189f92!important;
}
.layui-fluid{
padding:15px;
}
.layui-form-label{
font-weight: 700;
font-size: 14px;
}
.x-nav{
padding: 0 20px;
position: relative;
z-index: 99;
/*border-bottom: 1px solid #e5e5e5;*/
line-height: 39px;
height: 39px;
overflow: hidden;
/*background: rgba(168, 168, 168, 0.46);*/
background-image: linear-gradient(rgba(213, 213, 213, 0.37), rgba(168, 168, 168, 0));
/*-moz-border-radius:50px 0 0 0;*/
/*-webkit-border-radius:50px 0 0 0;*/
/*border-radius:50px 0 0 0;*/
-moz-border-radius:25px 25px 0 0;
-webkit-border-radius:25px 25px 0 0;
border-radius:25px 25px 0 0;
/*background-color: rgb(242, 255, 253);*/
}
.layui-breadcrumb span[lay-separator] {
color: #282c93;
}
.layui-breadcrumb a {
color: #e8f1ff !important;
}
.page{
text-align: center;
}
.page a{
display: inline-block;
background: #fff;
color: #888;
padding: 5px;
min-width: 15px;
border: 1px solid #E2E2E2;
}
.page span{
display: inline-block;
padding: 5px;
min-width: 15px;
border: 1px solid #E2E2E2;
}
.page span.current{
display: inline-block;
background: #009688;
color: #fff;
padding: 5px;
min-width: 15px;
border: 1px solid #009688;
}
.page .pagination li{
display: inline-block;
margin-right: 5px;
text-align: center;
}
.page .pagination li.active span{
background: #009688;
color: #fff;
border: 1px solid #009688;
}
/*登录样式*/
/*头部*/
.container{
width: 100%;
height: 45px;
/*background-color: #222;*/
background-color: rgba(0, 0, 0, 0.38);
border-radius: 10px;
}
.container a,.layui-nav .layui-nav-item a{
color: #fff;
}
.container .logo a{
background-color: rgba(0,0,0,0);
}
.container .logo a{
float: left;
font-size: 18px;
padding-left: 20px;
line-height: 45px;
width: 200px;
}
.container .right{
background-color:rgba(0,0,0,0);
float: right;
}
.container .left_open{
height: 45px;
float: left;
margin-left: 10px;
}
.container .left_open i{
display: block;
background: rgba(255,255,255,0.1);
width: 32px;
height: 32px;
line-height: 32px;
border-radius: 3px;
text-align: center;
margin-top: 7px;
cursor: pointer;
}
.container .left_open i:hover{
background: rgba(255,255,255,0.3);
}
.container .left{
background-color:rgba(0,0,0,0);
float: left;
}
.container .layui-nav-item{
line-height: 45px;
}
.container .layui-nav-more{
top: 20px;
}
.container .layui-nav-child{
top: 50px;
}
.container .layui-nav-child i{
margin-right: 10px;
}
.layui-nav .layui-nav-item a{
cursor: pointer;
}
.layui-nav .layui-nav-child a{
color: #333;
cursor: pointer;
}
.left-nav{
position: absolute;
top: 45px;
bottom: 0px;
/*bottom: 42px;*/
left: 0;
z-index: 2;
padding-top: 10px;
/*background-color: rgba(242, 255, 253, 0.65);*/
background-image: linear-gradient(rgba(242, 255, 253, 1), rgba(242, 255, 253, 0));
border-radius: 10px;
/*background-image: url(../images/buildings.jpg);*/
width: 220px;
max-width: 220px;
overflow: auto;
/*overflow-x:hidden;*/
/*overflow: hidden;*/
/*width: 0px;*/
}
#side-nav{
width: 220px;
}
.left-nav #nav li:hover > a{
/*color: blue;*/
}
.left-nav #nav .current{
background-color: rgba(0, 0, 0, 0.3);
}
.left-nav #nav li a{
font-size: 14px;
padding: 10px 15px 10px 15px;
display: block;
cursor: pointer;
border-left: 4px solid transparent;
transition: all 0.3s;
}
.left-nav a:hover{
background: #009688 !important;
color: #fff;
border-color: #04564e !important;
}
.left-nav a.active{
background: #009688 !important;
color: #fff;
border-color: #04564e !important;
}
.left-nav #nav li a cite{
font-size: 14px;
}
.left-nav #nav li .sub-menu{
display: none;
}
.left-nav #nav li .opened{
display: block;
}
.left-nav #nav li .opened:hover{
/*background: #fff ;*/
}
.left-nav #nav li .opened .current{
}
.left-nav #nav li .sub-menu li:hover{
/*color: blue;*/
/*background: #fff ;*/
}
.left-nav #nav li .sub-menu li a{
padding: 12px 15px 12px 30px;
font-size: 14px;
cursor: pointer;
}
.left-nav #nav li .sub-menu li .sub-menu li a{
padding-left: 45px;
}
/*.left-nav #nav li .sub-menu li a:hover{
color: #148cf1;
}*/
.left-nav #nav li .sub-menu li a i{
font-size: 12px;
}
.left-nav #nav li a i{
padding-right: 10px;
line-height: 14px;
}
.left-nav #nav li .nav_right{
float: right;
font-size: 16px;
}
.x-slide_left {
width: 17px;
height: 61px;
/*background: url(../images/bg.png) 0 0 no-repeat;*/
position: absolute;
top: 200px;
left: 220px;
cursor: pointer;
z-index: 3;
}
.page-content{
position: absolute;
top: 45px;
right: 0;
/*bottom: 42px;*/
bottom: 0px;
left: 220px;
overflow: hidden;
z-index: 1;
}
.page-content-bg{
position: absolute;
top: 45px;
right: 0;
/*bottom: 42px;*/
bottom: 0px;
left: 220px;
background: rgba(0,0,0,0.5);
overflow: hidden;
z-index: 100;
display: none;
}
.page-content .tab{
height: 100%;
width: 100%;
/*background: #EFEEF0;*/
margin: 0px;
}
.page-content .layui-tab-title{
/*padding-top: 5px;*/
height: 35px;
/*background: #EFEEF0 ;*/
background-color: rgba(255, 255, 253, 0.65);
position: relative;
z-index: 100;
width:100%;
border-radius: 10px;
/*-moz-border-radius:0 0 50px 50px;*/
/*-webkit-border-radius:0 0 50px 50px;*/
/*border-radius:0 0 50px 50px;*/
/*-moz-border-radius:40px/20px;*/
/*-webkit-border-radius:40px/20px;*/
/*border-radius:40px/20px;*/
/*-moz-border-radius:50px 0 0 50px;*/
/*-webkit-border-radius:50px 0 0 50px;*/
/*border-radius:50px 0 0 50px;*/
/*-moz-border-radius:50px 50px 0 0;*/
/*-webkit-border-radius:50px 50px 0 0;*/
/*border-radius:50px 50px 0 0;*/
}
.page-content .layui-tab-title li.home i{
padding-right: 5px;
}
.page-content .layui-tab-title li.home .layui-tab-close{
display: none;
}
.page-content .layui-tab-title li{
line-height: 35px;
}
.page-content .layui-tab-title .layui-this:after{
height: 36px;
font-weight: 900;
}
.page-content .layui-tab-title li .layui-tab-close{
border-radius: 50%;
color: #1886bb;
font-weight: 800;
}
.page-content .layui-tab-title .layui-this{
background: #fff ;
font-weight: 700;
}
.page-content .layui-tab-bar{
height:34px;
line-height: 35px;
}
.page-content .layui-tab-content{
position: absolute;
top: 36px;
bottom: 0px;
width: 100%;
padding: 0px;
overflow: hidden;
}
.page-content .layui-tab-content .layui-tab-item{
width: 100%;
height: 100%;
}
.page-content .layui-tab-content .layui-tab-item iframe{
width: 100%;
height: 100%;
}
.x-admin-carousel,.layui-carousel,.x-admin-carousel>[carousel-item]>* {
background-color:#fff
}
.x-admin-backlog .x-admin-backlog-body {
display:block;
padding:10px 15px;
background-color:#f8f8f8;
color:#999;
border-radius:2px;
transition:all .3s;
-webkit-transition:all .3s
}
.x-admin-backlog-body h3 {
padding-bottom:10px;
font-size:12px
}
.x-admin-backlog-body p cite {
font-style:normal;
font-size:30px;
font-weight:300;
color:#009688
}
.x-admin-backlog-body:hover {
background-color:#CFCFCF;
color:#888
}
table th, table td {
word-break: break-all;
}
/*404页面样式*/
.fly-panel {
margin-bottom: 15px;
border-radius: 2px;
/*background-color: #fff;*/
box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}
.fly-none {
min-height: 600px;
text-align: center;
padding-top: 50px;
color: #999;
}
.fly-none .layui-icon {
line-height: 300px;
font-size: 300px;
color: #393D49;
}
.fly-none p {
margin-top: 50px;
padding: 0 15px;
font-size: 20px;
color: #999;
font-weight: 300;
}
#tab_right{
display: none;
width: 80px;
position: absolute;
top: 35px;
left: 0px;
}
#tab_right dl{
top: 0px;
}
#tab_show{
position: absolute;
top: 36px;
bottom: 0px;
width: 100%;
background:rgb(255, 255, 255);
padding: 0px;
overflow: hidden;
display: none;
}
@media screen and (max-width: 768px){
.fast-add{
display: none;
}
.layui-nav .to-index{
display: none;
}
.container .logo a{
width: 140px;
}
.container .left_open {
/*float: right;*/
}
.left-nav{
width: 60px;
}
.left-nav #nav li a i{
font-size: 18px;
}
.left-nav cite,.left-nav .nav_right{
display: none;
}
.page-content{
left: 60px;
}
.page-content .layui-tab-content .layui-tab-item{
-webkit-overflow-scrolling: touch;
overflow-y: scroll;
}
.x-so input.layui-input{
width: 100%;
margin: 10px;
}
}
/*精细版样式*/
.x-admin-sm{
font-size: 12px;
}
.x-admin-sm body{
font-size: 12px;
}
/*滚动条样式*/
.x-admin-sm body::-webkit-scrollbar {/*滚动条整体样式*/
width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
height: 20px;
border-radius: 8px;
}
.x-admin-sm body::-moz-scrollbar {/*滚动条整体样式*/
width: 8px; /*高宽分别对应横竖滚动条的尺寸*/
height: 20px;
border-radius: 8px;
}
.x-admin-sm body::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
-webkit-box-shadow: inset 0 0 5px #3384ff;
background: rgba(1,187,218,0.2);
border-radius: 8px;
}
.x-admin-sm body::-moz-scrollbar-thumb {/*滚动条里面小方块*/
-webkit-box-shadow: inset 0 0 5px #3384ff;
background: rgba(1,187,218,0.2);
border-radius: 8px;
}
.x-admin-sm body::-webkit-scrollbar-track {/*滚动条里面轨道*/
-webkit-box-shadow: inset 0 0 5px rgba(4,231,250,0.6);
border-radius: 0;
background: rgba(3,10,28,0.6);
}
.x-admin-sm body::-moz-scrollbar-track {/*滚动条里面轨道*/
-webkit-box-shadow: inset 0 0 5px rgba(4,231,250,0.6);
border-radius: 0;
background: rgba(3,10,28,0.6);
}
/*登录页面样式*/
.x-admin-sm .login input[type=submit],.x-admin-sm .login input[type=button]{
font-size: 14px;
}
.x-admin-sm .login input[type=text],
.x-admin-sm .login input[type=file],
.x-admin-sm .login input[type=password],
.x-admin-sm .login input[type=email], .x-admin-sm select {
font-size: 12px;
}
.x-admin-sm .login .message{
font-size: 14px;
}
.x-admin-sm .layui-table td, .x-admin-sm .layui-table th{
font-size: 12px;
}
.x-admin-sm .layui-elem-field legend{
font-size: 18px;
}
.x-admin-sm .x-admin-backlog-body p cite{
font-size: 24px;
}
.x-admin-sm .left-nav #nav li a cite{
font-size: 12px;
}
.x-admin-sm .iconfont{
font-size: 14px;
}
.x-admin-sm .layui-tab-title li{
font-size: 14px;
}
.x-admin-sm .layui-icon{
font-size: 14px;
}
.x-admin-sm .layui-nav *{
font-size: 12px;
}
.x-admin-sm .layui-breadcrumb>*{
font-size: 12px;
}
.x-admin-sm .layui-btn,.x-admin-sm .layui-btn-xs,.x-admin-sm .layui-btn-sm{
font-size: 12px;
}
.x-admin-sm .layui-laydate{
font-size: 12px;
}
.x-admin-sm .layui-btn{
height: 30px;
line-height: 30px;
padding: 0 10px;
}
.x-admin-sm .layui-btn-lg{
height: 38px;
line-height: 38px;
padding: 0 18px;
font-size: 14px;
}
.x-admin-sm .layui-layer-title,.x-admin-sm .layui-layer-dialog .layui-layer-content{
font-size: 12px;
}
.x-admin-sm .layui-input,.x-admin-sm .layui-select,.x-admin-sm .layui-textarea{
height: 30px;
}
.x-admin-sm .layui-form-pane .layui-form-label{
height: 30px;
line-height: 14px;
}
.x-admin-sm .layui-form-checkbox span{
font-size: 12px;
}
.x-admin-sm .fly-none .layui-icon {
line-height: 300px;
font-size: 300px;
color: #393D49;
}

4020
public/dist/layarea.js

File diff suppressed because it is too large

228
public/dist/notice.css

@ -0,0 +1,228 @@
.toast-title {
font-weight: bold;
}
.toast-message {
-ms-word-wrap: break-word;
word-wrap: break-word;
}
.toast-message a,
.toast-message label {
color: #FFFFFF;
}
.toast-message a:hover {
color: #CCCCCC;
text-decoration: none;
}
.toast-close-button {
position: relative;
right: -0.3em;
top: -0.3em;
float: right;
font-size: 20px;
font-weight: bold;
color: #FFFFFF;
-webkit-text-shadow: 0 1px 0 #ffffff;
text-shadow: 0 1px 0 #ffffff;
opacity: 0.8;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
filter: alpha(opacity=80);
line-height: 1;
}
.toast-close-button:hover,
.toast-close-button:focus {
color: #000000;
text-decoration: none;
cursor: pointer;
opacity: 0.4;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
filter: alpha(opacity=40);
}
.rtl .toast-close-button {
left: -0.3em;
float: left;
right: 0.3em;
}
/*Additional properties for button version
iOS requires the button element instead of an anchor tag.
If you want the anchor version, it requires `href="#"`.*/
button.toast-close-button {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
.toast-top-center {
top: 0;
right: 0;
width: 100%;
}
.toast-bottom-center {
bottom: 0;
right: 0;
width: 100%;
}
.toast-top-full-width {
top: 0;
right: 0;
width: 100%;
}
.toast-bottom-full-width {
bottom: 0;
right: 0;
width: 100%;
}
.toast-top-left {
top: 12px;
left: 12px;
}
.toast-top-right {
top: 12px;
right: 12px;
}
.toast-bottom-right {
right: 12px;
bottom: 12px;
}
.toast-bottom-left {
bottom: 12px;
left: 12px;
}
#toast-container {
position: fixed;
z-index: 999999;
pointer-events: none;
/*overrides*/
}
#toast-container * {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
#toast-container > div {
position: relative;
pointer-events: auto;
overflow: hidden;
margin: 0 0 6px;
padding: 15px 15px 15px 50px;
width: 300px;
-moz-border-radius: 3px 3px 3px 3px;
-webkit-border-radius: 3px 3px 3px 3px;
border-radius: 3px 3px 3px 3px;
background-position: 15px center;
background-repeat: no-repeat;
-moz-box-shadow: 0 0 12px #999999;
-webkit-box-shadow: 0 0 12px #999999;
box-shadow: 0 0 12px #999999;
color: #FFFFFF;
opacity: 0.8;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
filter: alpha(opacity=80);
}
#toast-container > div.rtl {
direction: rtl;
padding: 15px 50px 15px 15px;
background-position: right 15px center;
}
#toast-container > div:hover {
-moz-box-shadow: 0 0 12px #000000;
-webkit-box-shadow: 0 0 12px #000000;
box-shadow: 0 0 12px #000000;
opacity: 1;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
filter: alpha(opacity=100);
cursor: pointer;
}
#toast-container > .toast-info {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=") !important;
}
#toast-container > .toast-error {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=") !important;
}
#toast-container > .toast-success {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important;
}
#toast-container > .toast-warning {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=") !important;
}
#toast-container.toast-top-center > div,
#toast-container.toast-bottom-center > div {
width: 300px;
margin-left: auto;
margin-right: auto;
}
#toast-container.toast-top-full-width > div,
#toast-container.toast-bottom-full-width > div {
width: 96%;
margin-left: auto;
margin-right: auto;
}
.toast {
background-color: #030303;
}
.toast-success {
background-color: #51A351;
}
.toast-error {
background-color: #BD362F;
}
.toast-info {
background-color: #2F96B4;
}
.toast-warning {
background-color: #F89406;
}
.toast-progress {
position: absolute;
left: 0;
bottom: 0;
height: 4px;
background-color: #000000;
opacity: 0.4;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
filter: alpha(opacity=40);
}
/*Responsive Design*/
@media all and (max-width: 240px) {
#toast-container > div {
padding: 8px 8px 8px 50px;
width: 11em;
}
#toast-container > div.rtl {
padding: 8px 50px 8px 8px;
}
#toast-container .toast-close-button {
right: -0.2em;
top: -0.2em;
}
#toast-container .rtl .toast-close-button {
left: -0.2em;
right: 0.2em;
}
}
@media all and (min-width: 241px) and (max-width: 480px) {
#toast-container > div {
padding: 8px 8px 8px 50px;
width: 18em;
}
#toast-container > div.rtl {
padding: 8px 50px 8px 8px;
}
#toast-container .toast-close-button {
right: -0.2em;
top: -0.2em;
}
#toast-container .rtl .toast-close-button {
left: -0.2em;
right: 0.2em;
}
}
@media all and (min-width: 481px) and (max-width: 768px) {
#toast-container > div {
padding: 15px 15px 15px 50px;
width: 25em;
}
#toast-container > div.rtl {
padding: 15px 50px 15px 15px;
}
}

486
public/dist/notice.js

File diff suppressed because one or more lines are too long

1
public/dist/sliderVerify/sliderVerify.js

@ -0,0 +1 @@
layui.define(["jquery","layer","form"],function(s){var d=layui.jquery,b=layui.form,r=layui.layer,k=layui.device(),h={read:(function(){var u=".slider-item{height:38px;line-height:38px;background-color:#d0d0d0;position:relative;border: 1px solid white;}.slider-bg{position:absolute;width:40px;height:100%;z-index:100}.slider-btn{width:40px;height:96%;position:absolute;border:1px solid #ccc;cursor:move;text-align:center;background-color:#fff;user-select:none;color:#666;z-index:120}.slider-btn-success{font-size:26px}.slider-text{position:absolute;text-align:center;width:100%;height:100%;user-select:none;font-size:14px;color:#fff;z-index:120}.slider-error{animation:glow 800ms ease-out infinite alternate;}@keyframes glow{0%{border-color:#e6e6e6}100%{border-color:#ff5722}}",v=document.createElement("style");v.innerHTML=u;v.type="text/css";(d("head link:last")[0]&&d("head link:last").after(v))||d("head").append(v)})()},m=function(u){return u[0]},o=function(){var u=this;return{isOk:function(){return u.isOk.call(u)},reset:function(){return u.reset.call(u)},version:"1.6"}},g="sliderVerify",i="slider-btn",j="slider-bg",q="slider-text",a="layui-icon-next",t="layui-icon-ok-circle",f="slider-btn-success",n="layui-bg-green",c="slider-error",p="请拖动滑块验证",e="验证通过",l=function(u){var v=this;v.config=d.extend({},v.config,u);v.render()};l.prototype.config={elem:"",onOk:null,isOk:false,isAutoVerify:true,bg:n,text:p};l.prototype.render=function(){var w=this,u=w.config,v=d(u.elem);if(!v[0]){return}if(u.domid){u.domid.remove()}u.domid=w.createIdNum();var x=d(['<div id="'+u.domid+'"'+(u.isAutoVerify?'lay-verify="sliderVerify"':"")+'class="slider-item">','<div class="'+j+" "+u.bg+'"></div>','<div class="'+q+'">'+u.text+"</div>",'<div class="'+i+' layui-icon layui-icon-next"></div>'].join(""));v.hide().after(x);u.domid=d("#"+u.domid);w.events();if(u.isAutoVerify){b.verify({sliderVerify:function(y,z){if(!y){z.classList.add(c);return u.text}}})}};l.prototype.isMobile=function(){return(k.os=="ios"||k.os=="android"||k.android||k.ios)||(k.weixin&&typeof k.weixin===Boolean)};l.prototype.createIdNum=function(){return(g+(+new Date()).toString()+Math.random().toString().substr(2,7))};l.prototype.isOk=function(){return this.config.isOk};l.prototype.error=function(u){return r.msg(u,{icon:5})};l.prototype.distance=function(){var u=this.config.container;return u.box.offsetWidth-u.btn.offsetWidth};l.prototype.reset=function(){this.config.isOk=false;return this.render()};l.prototype.resize=function(w){var v=this,u=v.config.container;var w=w||v.distance();u.btn.style.left=w+"px";u.bg.style.width=w+"px"};l.prototype.cancelTransition=function(){var u=this.config.container;this.config.domid[0].classList.remove(c);u.btn.style.transition="";u.bg.style.transition=""};l.prototype.down=function(y){var x=this,w=x.config,v=w.container,y=y||window.event,z=y.clientX||y.touches[0].clientX;x.cancelTransition();var u=function(A){x.move(z,A)};x.events.move=u;if(x.isMobile()){document.addEventListener("touchmove",x.events.move)}else{document.onmousemove=u}if(navigator.userAgent.indexOf("UCBrowser")>-1){y.preventDefault()}};l.prototype.move=function(B,z){var y=this,x=y.config,v=x.container;var z=z||window.event;let moveX=z.clientX||z.touches[0].clientX;var u=moveX-B;if(u>v.distance){u=v.distance}else{if(u<0){u=0}}v.btn.style.left=u+"px";v.bg.style.width=u+"px";if(u==v.distance){v.text.innerHTML=e;var w=window.getComputedStyle?window.getComputedStyle(v.bg,null):v.bg.currentStyle;v.btn.style.border="1px solid "+w.backgroundColor;v.btn.style.color=w.backgroundColor;v.btn.classList.remove(a);v.btn.classList.add(t,f);x.isOk=true;v.box.value=true;if(y.isMobile()){v.btn.removeEventListener("touchstart",y.events.down,false);document.removeEventListener("touchmove",y.events.move,false)}else{v.btn.onmousedown=null;document.onmousemove=null}x.onOk&&typeof x.onOk=="function"&&x.onOk();return}var A=function(C){y.stop(C)};y.events.seup=A;if(y.isMobile()){document.addEventListener("touchend",A)}else{document.onmouseup=A}};l.prototype.stop=function(x){var w=this,v=w.config,u=v.container;if(w.isOk()){return}else{u.btn.style.left=0;u.bg.style.width=0;u.btn.style.transition="left 1s";u.bg.style.transition="width 1s"}document.onmousemove=null;document.onmouseup=null;if(w.isMobile()){document.removeEventListener("touchmove",w.events.move,false);document.removeEventListener("touchend",w.events.seup,false)}};l.prototype.events=function(){var z=this,y=z.config;if(!y.domid){return z.error("创建滑块验证失败")}var x=y.domid.find("."+i),w=y.domid.find("."+j),A=y.domid.find("."+q),v={box:m(y.domid),btn:m(x),bg:m(w),text:m(A)};y.container=v;v.distance=z.distance();var B=function(C){z.down(C)};z.events.down=B;if(z.isMobile()){v.btn.addEventListener("touchstart",z.events.down)}else{v.btn.onmousedown=B}var u=d(window);u.on("resize",y.domid,function(){if(z.config.isOk){z.resize()}})};h.render=function(u){var v=new l(u);return o.call(v)};s(g,h)});

8
public/dist/xm-select.js

File diff suppressed because one or more lines are too long

BIN
public/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
public/favicon1.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
public/fonts/iconfont.eot

Binary file not shown.

477
public/fonts/iconfont.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 315 KiB

BIN
public/fonts/iconfont.ttf

Binary file not shown.

BIN
public/fonts/iconfont.woff

Binary file not shown.

1
public/icon.json

File diff suppressed because one or more lines are too long

BIN
public/images/aiwrap.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
public/images/handsome.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
public/images/start.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 KiB

BIN
public/images/wallhaven.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 KiB

BIN
public/images/work.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

17
public/index.php

@ -0,0 +1,17 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// [ 应用入口文件 ]
// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');
// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';

492
public/js/china.js

@ -0,0 +1,492 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['exports', 'echarts'], factory);
} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
// CommonJS
factory(exports, require('echarts'));
} else {
// Browser globals
factory({}, root.echarts);
}
}(this, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
}
}
if (!echarts) {
log('ECharts is not Loaded');
return;
}
if (!echarts.registerMap) {
log('ECharts Map is not loaded')
return;
}
echarts.registerMap('china', {
"type": "FeatureCollection",
"features": [{
"id": "710000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@°Ü¯Û"], ["@@ƛĴÕƊÉɼģºðʀ\\ƎsÆNŌÔĚäœnÜƤɊĂǀĆĴžĤNJŨxĚĮǂƺòƌ‚–âÔ®ĮXŦţƸZûЋƕƑGđ¨ĭMó·ęcëƝɉlÝƯֹÅŃ^Ó·śŃNjƏďíåɛGɉ™¿@ăƑŽ¥ĘWǬÏĶŁâ"], ["@@\\p|WoYG¿¥I†j@¢"], ["@@…¡‰@ˆV^RqˆBbAŒnTXeRz¤Lž«³I"], ["@@ÆEE—„kWqë @œ"], ["@@fced"]],
"encodeOffsets": [[[122886, 24033]], [[123335, 22980]], [[122375, 24193]], [[122518, 24117]], [[124427, 22618]], [[124862, 26043]]]
},
"properties": {
"cp": [121.509062, 24.044332],
"name": "台湾",
"childNum": 6
}
}, {
"id": "130000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@o~†Z]‚ªr‰ºc_ħ²G¼s`jΟnüsœłNX_“M`ǽÓnUK…Ĝēs¤­©yrý§uģŒc†JŠ›e"], ["@@U`Ts¿m‚"], ["@@oºƋÄd–eVŽDJj£€J|Ådz•Ft~žKŨ¸IÆv|”‡¢r}膎onb˜}`RÎÄn°ÒdÞ²„^®’lnÐèĄlðӜ×]ªÆ}LiĂ±Ö`^°Ç¶p®đDcœŋ`–ZÔ’¶êqvFƚ†N®ĆTH®¦O’¾ŠIbÐã´BĐɢŴÆíȦp–ĐÞXR€·nndOž¤’OÀĈƒ­Qg˜µFo|gȒęSWb©osx|hYh•gŃfmÖĩnº€T̒Sp›¢dYĤ¶UĈjl’ǐpäìë|³kÛfw²Xjz~ÂqbTŠÑ„ěŨ@|oM‡’zv¢ZrÃVw¬ŧˏfŒ°ÐT€ªqŽs{Sž¯r æÝlNd®²Ğ džiGʂJ™¼lr}~K¨ŸƐÌWö€™ÆŠzRš¤lêmĞL΄’@¡|q]SvK€ÑcwpÏρ†ĿćènĪWlĄkT}ˆJ”¤~ƒÈT„d„™pddʾĬŠ”ŽBVt„EÀ¢ôPĎƗè@~‚k–ü\\rÊĔÖæW_§¼F˜†´©òDòj’ˆYÈrbĞāøŀG{ƀ|¦ðrb|ÀH`pʞkv‚GpuARhÞÆǶgƊTǼƹS£¨¡ù³ŘÍ]¿Ây™ôEP xX¶¹܇O¡“gÚ¡IwÃ鑦ÅB‡Ï|ǰ…N«úmH¯‹âŸDùŽyŜžŲIÄuШDž•¸dɂ‡‚FŸƒ•›Oh‡đ©OŸ›iÃ`ww^ƒÌkŸ‘ÑH«ƇǤŗĺtFu…{Z}Ö@U‡´…ʚLg®¯Oı°ÃwŸ ^˜—€VbÉs‡ˆmA…ê]]w„§›RRl£‡ȭµu¯b{ÍDěïÿȧŽuT£ġƒěŗƃĝ“Q¨fV†Ƌ•ƅn­a@‘³@šď„yýIĹÊKšŭfċŰóŒxV@tˆƯŒJ”]eƒR¾fe|rHA˜|h~Ėƍl§ÏŠlTíb ØoˆÅbbx³^zÃ͚¶Sj®A”yÂhðk`š«P€”ˈµEF†Û¬Y¨Ļrõqi¼‰Wi°§’б´°^[ˆÀ|ĠO@ÆxO\\tŽa\\tĕtû{ġŒȧXýĪÓjùÎRb›š^ΛfK[ݏděYfíÙTyŽuUSyŌŏů@Oi½’éŅ­aVcř§ax¹XŻác‡žWU£ôãºQ¨÷Ñws¥qEH‰Ù|‰›šYQoŕÇyáĂ£MðoťÊ‰P¡mšWO¡€v†{ôvîēÜISpÌhp¨ ‘j†deŔQÖj˜X³à™Ĉ[n`Yp@Už–cM`’RKhŒEbœ”pŞlNut®Etq‚nsÁŠgA‹iú‹oH‡qCX‡”hfgu“~ϋWP½¢G^}¯ÅīGCŸÑ^ãziMáļMTÃƘrMc|O_ž¯Ŏ´|‡morDkO\\mĆJfl@c̬¢aĦtRıҙ¾ùƀ^juųœK­ƒUFy™—Ɲ…›īÛ÷ąV×qƥV¿aȉd³B›qPBm›aËđŻģm“Å®Vйd^K‡KoŸnYg“¯Xhqa”Ldu¥•ÍpDž¡KąÅƒkĝęěhq‡}HyÓ]¹ǧ£…Í÷¿qáµ§š™g‘¤o^á¾ZE‡¤i`ij{n•ƒOl»ŸWÝĔįhg›F[¿¡—ßkOüš_‰€ū‹i„DZàUtėGylƒ}ŒÓM}€jpEC~¡FtoQi‘šHkk{Ãmï‚"]],
"encodeOffsets": [[[119712, 40641]], [[121616, 39981]], [[116462, 37237]]]
},
"properties": {
"cp": [114.502461, 38.045474],
"name": "河北",
"childNum": 3
}
}, {
"id": "140000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@Þĩ҃S‰ra}Á€yWix±Üe´lè“ßÓǏok‘ćiµVZģ¡coœ‘TS˹ĪmnÕńe–hZg{gtwªpXaĚThȑp{¶Eh—®RćƑP¿£‘Pmc¸mQÝW•ďȥoÅîɡųAďä³aωJ‘½¥PG­ąSM­™…EÅruµé€‘Yӎ•Ō_d›ĒCo­Èµ]¯_²ÕjāŽK~©ÅØ^ԛkïçămϑk]­±ƒcݯÑÃmQÍ~_a—pm…~ç¡q“ˆu{JÅŧ·Ls}–EyÁÆcI{¤IiCfUc•ƌÃp§]웫vD@¡SÀ‘µM‚ÅwuŽYY‡¡DbÑc¡hƒ×]nkoQdaMç~eD•ÛtT‰©±@¥ù@É¡‰ZcW|WqOJmĩl«ħşvOÓ«IqăV—¥ŸD[mI~Ó¢cehiÍ]Ɠ~ĥqXŠ·eƷœn±“}v•[ěďŽŕ]_‘œ•`‰¹ƒ§ÕōI™o©b­s^}Ét±ū«³p£ÿ·Wµ|¡¥ăFÏs׌¥ŅxŸÊdÒ{ºvĴÎêÌɊ²¶€ü¨|ÞƸµȲ‘LLúÉƎ¤ϊęĔV`„_bª‹S^|ŸdŠzY|dz¥p†ZbÆ£¶ÒK}tĦÔņƠ‚PYzn€ÍvX¶Ěn ĠÔ„zý¦ª˜÷žÑĸَUȌ¸‚dòÜJð´’ìúNM¬ŒXZ´‘¤ŊǸ_tldIš{¦ƀðĠȤ¥NehXnYG‚‡R° ƬDj¬¸|CĞ„Kq‚ºfƐiĺ©ª~ĆOQª ¤@ìǦɌ²æBŒÊ”TœŸ˜ʂōĖ’šĴŞ–ȀœÆÿȄlŤĒö„t”νî¼ĨXhŒ‘˜|ªM¤Ðz"],
"encodeOffsets": [[116874, 41716]]
},
"properties": {
"cp": [111.849248, 36.857014],
"name": "山西",
"childNum": 1
}
}, {
"id": "150000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@Č^â£Ăh–šĖMÈÄw‚\\fŦ°W ¢¾luŸD„wŠ\\̀ʉÌÛM…Ā[bӞEn}¶Vc…ê“sƒ–›¯PqƒFB…‰|S•³C|kñ•H‹d‘iÄ¥sˆʼnő…PóÑÑE^‘ÅPpy_YtS™hQ·aHwsOnʼnÚs©iqj›‰€USiº]ïWš‰«gW¡A–R붛ijʕ…Œů`çõh]y»ǃŸǛҤxÒm~zf}pf|ÜroÈzrKÈĵSƧ„ż؜Ġu¦ö"], ["@@sKCš…GS|úþX”gp›{ÁX¿Ÿć{ƱȏñZáĔyoÁhA™}ŅĆfdʼn„_¹„Y°ėǩÑ¡H¯¶oMQqð¡Ë™|‘Ñ`ƭŁX½·óۓxğįÅcQ‡ˆ“ƒs«tȋDžF“Ÿù^i‘t«Č¯[›hAi©á¥ÇĚ×l|¹y¯YȵƓ‹ñǙµï‚ċ™Ļ|Dœ™üȭ¶¡˜›oŽäÕG\\ďT¿Òõr¯œŸLguÏYęRƩšɷŌO\\İТæ^Ŋ IJȶȆbÜGŽĝ¬¿ĚVĎgª^íu½jÿĕęjık@Ľƒ]ėl¥Ë‡ĭûÁ„ƒėéV©±ćn©­ȇžÍq¯½•YÃÔʼn“ÉNѝÅÝy¹NqáʅDǡËñ­ƁYÅy̱os§ȋµʽǘǏƬɱà‘ưN¢ƔÊuľýľώȪƺɂļžxœZĈ}ÌʼnŪ˜ĺœŽĭFЛĽ̅ȣͽÒŵìƩÇϋÿȮǡŏçƑůĕ~Ǎ›¼ȳÐUf†dIxÿ\\G ˆzâɏÙOº·pqy£†@ŒŠqþ@Ǟ˽IBäƣzsÂZ†ÁàĻdñ°ŕzéØűzșCìDȐĴĺf®ŽÀľưø@ɜÖÞKĊŇƄ§‚͑těï͡VAġÑÑ»d³öǍÝXĉĕÖ{þĉu¸ËʅğU̎éhɹƆ̗̮ȘNJ֥ड़ࡰţાíϲäʮW¬®ҌeרūȠkɬɻ̼ãüfƠSצɩςåȈHϚÎKdzͲOðÏȆƘ¼CϚǚ࢚˼ФԂ¤ƌžĞ̪Qʤ´¼mȠJˀŸƲÀɠmǐnǔĎȆÞǠN~€ʢĜ‚¶ƌĆĘźʆȬ˪ĚǏĞGȖƴƀj`ĢçĶāàŃºē̃ĖćšYŒÀŎüôQÐÂŎŞdžŞêƖš˜oˆDĤÕºÑǘÛˤ³̀gńƘĔÀ^žªƂ`ªt¾äƚêĦĀ¼Ð€Ĕǎ¨Ȕ»͠^ˮÊȦƤøxRrŜH¤¸ÂxDĝŒ|ø˂˜ƮÐ¬ɚwɲFjĔ²Äw°dždÀɞ_ĸdîàŎjʜêTĞªŌ‡ŜWÈ|tqĢUB~´°ÎFC•ŽU¼pĀēƄN¦¾O¶ŠłKĊOj“Ě”j´ĜYp˜{¦„ˆSĚÍ\\Tš×ªV–÷Ší¨ÅDK°ßtŇĔKš¨ǵÂcḷ̌ĚǣȄĽF‡lġUĵœŇ‹ȣFʉɁƒMğįʏƶɷØŭOǽ«ƽū¹Ʊő̝Ȩ§ȞʘĖiɜɶʦ}¨֪ࠜ̀ƇǬ¹ǨE˦ĥªÔêFŽxúQ„Er´W„rh¤Ɛ \\talĈDJ˜Ü|[Pll̚¸ƎGú´Pž¬W¦†^¦–H]prR“n|or¾wLVnÇIujkmon£cX^Bh`¥V”„¦U¤¸}€xRj–[^xN[~ªŠxQ„‚[`ªHÆÂExx^wšN¶Ê˜|¨ì†˜€MrœdYp‚oRzNy˜ÀDs~€bcfÌ`L–¾n‹|¾T‚°c¨È¢a‚r¤–`[|òDŞĔöxElÖdH„ÀI`„Ď\\Àì~ƎR¼tf•¦^¢ķ¶e”ÐÚMŒptgj–„ɡČÅyġLû™ŇV®ŠÄÈƀ†Ď°P|ªVV†ªj–¬ĚÒêp¬–E|ŬÂc|ÀtƐK fˆ{ĘFǜƌXƲąo½Ę‘\\¥–o}›Ûu£ç­kX‘{uĩ«āíÓUŅßŢq€Ť¥lyň[€oi{¦‹L‡ń‡ðFȪȖ”ĒL„¿Ì‹ˆfŒ£K£ʺ™oqNŸƒwğc`ue—tOj×°KJ±qƒÆġm‰Ěŗos¬…qehqsuœƒH{¸kH¡Š…ÊRǪÇƌbȆ¢´ä܍¢NìÉʖ¦â©Ż؛Ç@Vu»A—ylßí¹ĵê…ÝlISò³C¹Ìâ„²i¶’Ìoú^H“²CǜңDŽ z¼g^èöŰ_‹‚–†IJĕꄜ}gÁnUI«m‰…„‹]j‡vV¼euhwqA„aW˜ƒ_µj…»çjioQR¹ēÃßt@r³[ÛlćË^ÍÉáG“›OUۗOB±•XŸkŇ¹£k|e]ol™ŸkVͼÕqtaÏõjgÁ£§U^Œ”RLˆËnX°Ç’Bz†^~wfvˆypV ¯„ƫĉ˭ȫƗŷɿÿĿƑ˃ĝÿÃǃßËőó©ǐȍŒĖM×ÍEyx‹þp]Évïè‘vƀnÂĴÖ@‚‰†V~Ĉ™Š³MEˆĸÅĖt—ējyÄDXÄxGQuv_›i¦aBçw‘˛wD™©{ŸtāmQ€{EJ§KPśƘƿ¥@‰sCT•É}ɃwˆƇy±ŸgÑ“}T[÷kÐ禫…SÒ¥¸ëBX½‰HáŵÀğtSÝÂa[ƣ°¯¦P]£ġ“–“Òk®G²„èQ°óMq}EŠóƐÇ\\ƒ‡@áügQ͋u¥Fƒ“T՛¿Jû‡]|mvāÎYua^WoÀa·­ząÒot×¶CLƗi¯¤mƎHNJ¤îìɾŊìTdåwsRÖgĒųúÍġäÕ}Q¶—ˆ¿A•†‹[¡Œ{d×uQAƒ›M•xV‹vMOmăl«ct[wº_šÇʊŽŸjb£ĦS_é“QZ“_lwgOiýe`YYLq§IÁˆdz£ÙË[ÕªuƏ³ÍT—s·bÁĽäė[›b[ˆŗfãcn¥îC¿÷µ[ŏÀQ­ōšĉm¿Á^£mJVm‡—L[{Ï_£›F¥Ö{ŹA}…×Wu©ÅaųijƳhB{·TQqÙIķˑZđ©Yc|M¡…L•eVUóK_QWk’_ĥ‘¿ãZ•»X\\ĴuUƒè‡lG®ěłTĠğDєOrÍd‚ÆÍz]‹±…ŭ©ŸÅ’]ŒÅÐ}UË¥©Tċ™ïxgckfWgi\\ÏĒ¥HkµE˜ë{»ÏetcG±ahUiñiWsɁˆ·c–C‚Õk]wȑ|ća}w…VaĚ᠞ŒG°ùnM¬¯†{ÈˆÐÆA’¥ÄêJxÙ¢”hP¢Ûˆº€µwWOŸóFŽšÁz^ÀŗÎú´§¢T¤ǻƺSė‰ǵhÝÅQgvBHouʝl_o¿Ga{ïq{¥|ſĿHĂ÷aĝÇq‡Z‘ñiñC³ª—…»E`¨åXēÕqÉû[l•}ç@čƘóO¿¡ƒFUsA‰“ʽīccšocƒ‚ƒÇS}„“£‡IS~ălkĩXçmĈ…ŀЂoÐdxÒuL^T{r@¢‘žÍƒĝKén£kQ™‰yšÅõËXŷƏL§~}kqš»IHėDžjĝŸ»ÑÞoŸå°qTt|r©ÏS‹¯·eŨĕx«È[eMˆ¿yuˆ‘pN~¹ÏyN£{©’—g‹ħWí»Í¾s“əšDž_ÃĀɗ±ą™ijĉʍŌŷ—S›É“A‹±åǥɋ@럣R©ąP©}ĹªƏj¹erƒLDĝ·{i«ƫC£µ"]],
"encodeOffsets": [[[127444, 52594]], [[113793, 40312]]]
},
"properties": {
"cp": [111.670801, 41.818311],
"name": "内蒙古",
"childNum": 2
}
}, {
"id": "210000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@L–Ž@@s™a"], ["@@MnNm"], ["@@d‚c"], ["@@eÀ‚C@b‚“‰"], ["@@f‡…Xwkbr–Ä`qg"], ["@@^jtW‘Q"], ["@@~ Y]c"], ["@@G`ĔN^_¿Z‚ÃM"], ["@@iX¶B‹Y"], ["@@„YƒZ"], ["@@L_{Epf"], ["@@^WqCT\\"], ["@@\\[“‹§t|”¤_"], ["@@m`n_"], ["@@Ïxnj{q_×^Giip"], ["@@@œé^B†‡ntˆaÊU—˜Ÿ]x ¯ÄPIJ­°h€ʙK³†VˆÕ@Y~†|EvĹsDŽ¦­L^p²ŸÒG ’Ël]„xxÄ_˜fT¤Ď¤cŽœP„–C¨¸TVjbgH²sdÎdHt`Bˆ—²¬GJję¶[ÐhjeXdlwhšðSȦªVÊπ‹Æ‘Z˜ÆŶ®²†^ŒÎyÅÎcPqń“ĚDMħĜŁH­ˆk„çvV[ij¼W–‚YÀäĦ’‘`XlžR`žôLUVžfK–¢†{NZdĒª’YĸÌÚJRr¸SA|ƴgŴĴÆbvªØX~†źBŽ|¦ÕœEž¤Ð`\\|Kˆ˜UnnI]¤ÀÂĊnŎ™R®Ő¿¶\\ÀøíDm¦ÎbŨab‰œaĘ\\ľã‚¸a˜tÎSƐ´©v\\ÖÚÌǴ¤Â‡¨JKr€Z_Z€fjþhPkx€`Y”’RIŒjJcVf~sCN¤ ˆE‚œhæm‰–sHy¨SðÑÌ\\\\ŸĐRZk°IS§fqŒßýáЍÙÉÖ[^¯ǤŲ„ê´\\¦¬ĆPM¯£Ÿˆ»uïpùzEx€žanµyoluqe¦W^£ÊL}ñrkqWňûP™‰UP¡ôJŠoo·ŒU}£Œ„[·¨@XŒĸŸ“‹‹DXm­Ûݏº‡›GU‹CÁª½{íĂ^cj‡k“¶Ã[q¤“LÉö³cux«zZfƒ²BWÇ®Yß½ve±ÃC•ý£W{Ú^’q^sÑ·¨‹ÍOt“¹·C¥‡GD›rí@wÕKţ݋˜Ÿ«V·i}xËÍ÷‘i©ĝ‡ɝǡ]ƒˆ{c™±OW‹³Ya±Ÿ‰_穂Hžĕoƫ€Ňqƒr³‰Lys[„ñ³¯OS–ďOMisZ†±ÅFC¥Pq{‚Ã[Pg}\\—¿ghćO…•k^ģÁFıĉĥM­oEqqZûěʼn³F‘¦oĵ—hŸÕP{¯~TÍlª‰N‰ßY“Ð{Ps{ÃVU™™eĎwk±ʼnVÓ½ŽJãÇÇ»Jm°dhcÀff‘dF~ˆ€ĀeĖ€d`sx² šƒ®EżĀdQ‹Âd^~ăÔHˆ¦\\›LKpĄVez¤NP ǹӗR™ÆąJSh­a[¦´Âghwm€BÐ¨źhI|žVVŽ—Ž|p] Â¼èNä¶ÜBÖ¼“L`‚¼bØæŒKV”ŸpoœúNZÞÒKxpw|ÊEMnzEQšŽIZ”ŽZ‡NBˆčÚFÜçmĩ‚WĪñt‘ÞĵÇñZ«uD‚±|Əlij¥ãn·±PmÍa‰–da‡ CL‡Ǒkùó¡³Ï«QaċϑOÃ¥ÕđQȥċƭy‹³ÃA"]],
"encodeOffsets": [[[123686, 41445]], [[126019, 40435]], [[124393, 40128]], [[126117, 39963]], [[125322, 40140]], [[126686, 40700]], [[126041, 40374]], [[125584, 40168]], [[125453, 40165]], [[125362, 40214]], [[125280, 40291]], [[125774, 39997]], [[125976, 40496]], [[125822, 39993]], [[125509, 40217]], [[122731, 40949]]]
},
"properties": {
"cp": [123.429096, 41.796767],
"name": "辽宁",
"childNum": 16
}
}, {
"id": "220000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@‘p䔳PClƒFbbÍzš€wBG’ĭ€Z„Åi“»ƒlY­ċ²SgŽkÇ£—^S‰“qd¯•‹R…©éŽ£¯S†\\cZ¹iűƏCuƍÓX‡oR}“M^o•£…R}oªU­F…uuXHlEŕ‡€Ï©¤ÛmTŽþ¤D–²ÄufàÀ­XXȱAe„yYw¬dvõ´KÊ£”\\rµÄl”iˆdā]|DÂVŒœH¹ˆÞ®ÜWnŒC”Œķ W‹§@\\¸‹ƒ~¤‹Vp¸‰póIO¢ŠVOšŇürXql~òÉK]¤¥Xrfkvzpm¶bwyFoúvð‡¼¤ N°ąO¥«³[ƒéǡű_°Õ\\ÚÊĝŽþâőàerR¨­JYlďQ[ ÏYëЧTGz•tnŠß¡gFkMŸāGÁ¤ia É‰™È¹`\\xs€¬dĆkNnuNUŠ–užP@‚vRY¾•–\\¢…ŒGªóĄ~RãÖÎĢù‚đŴÕhQŽxtcæëSɽʼníëlj£ƍG£nj°KƘµDsØÑpyƸ®¿bXp‚]vbÍZuĂ{nˆ^IüœÀSք”¦EŒvRÎûh@℈[‚Əȉô~FNr¯ôçR±ƒ­HÑl•’Ģ–^¤¢‚OðŸŒævxsŒ]ÞÁTĠs¶¿âƊGW¾ìA¦·TѬ†è¥€ÏÐJ¨¼ÒÖ¼ƒƦɄxÊ~S–tD@ŠĂ¼Ŵ¡jlºWžvЉˆzƦZЎ²CH— „Axiukd‹ŒGgetqmcžÛ£Ozy¥cE}|…¾cZ…k‚‰¿uŐã[oxGikfeäT@…šSUwpiÚFM©’£è^ڟ‚`@v¶eň†f h˜eP¶žt“äOlÔUgƒÞzŸU`lœ}ÔÆUvØ_Ō¬Öi^ĉi§²ÃŠB~¡Ĉ™ÚEgc|DC_Ȧm²rBx¼MÔ¦ŮdĨÃâYx‘ƘDVÇĺĿg¿cwÅ\\¹˜¥Yĭlœ¤žOv†šLjM_a W`zļMž·\\swqÝSA‡š—q‰Śij¯Š‘°kŠRē°wx^Đkǂғ„œž“œŽ„‹\\]˜nrĂ}²ĊŲÒøãh·M{yMzysěnĒġV·°“G³¼XÀ““™¤¹i´o¤ŃšŸÈ`̃DzÄUĞd\\i֚ŒˆmÈBĤÜɲDEh LG¾ƀľ{WaŒYÍȏĢĘÔRîĐj‹}Ǟ“ccj‡oUb½š{“h§Ǿ{K‹ƖµÎ÷žGĀÖŠåưÎs­l›•yiē«‹`姝H¥Ae^§„GK}iã\\c]v©ģZ“mÃ|“[M}ģTɟĵ‘Â`À–çm‰‘FK¥ÚíÁbXš³ÌQґHof{‰]e€pt·GŋĜYünĎųVY^’˜ydõkÅZW„«WUa~U·Sb•wGçǑ‚“iW^q‹F‚“›uNĝ—·Ew„‹UtW·Ýďæ©PuqEzwAV•—XR‰ãQ`­©GŒM‡ehc›c”ďϝd‡©ÑW_ϗYƅŒ»…é\\ƒɹ~ǙG³mØ©BšuT§Ĥ½¢Ã_ý‘L¡‘ýŸqT^rme™\\Pp•ZZbƒyŸ’uybQ—efµ]UhĿDCmûvašÙNSkCwn‰cćfv~…Y‹„ÇG"],
"encodeOffsets": [[130196, 42528]]
},
"properties": {
"cp": [125.3245, 43.886841],
"name": "吉林",
"childNum": 1
}
}, {
"id": "230000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@ƨƒĶTLÇyqpÇÛqe{~oyen}s‰`q‡iXG”ù]Ëp½“©lɇÁp]Þñ´FÔ^f‘äîºkà˜z¼BUvÈ@"], ["@@UƒµNÿ¥īè灋•HÍøƕ¶LŒǽ|g¨|”™Ža¾pViˆdd”~ÈiŒíďÓQġėǐZ΋ŽXb½|ſÃH½ŸKFgɱCģÛÇA‡n™‹jÕc[VĝDZÃ˄Ç_™ £ń³pŽj£º”š¿”»WH´¯”U¸đĢmžtĜyzzNN|g¸÷äűѱĉā~mq^—Œ[ƒ”››”ƒǁÑďlw]¯xQĔ‰¯l‰’€°řĴrŠ™˜BˆÞTxr[tޏĻN_yŸX`biN™Ku…P›£k‚ZĮ—¦[ºxÆÀdhŽĹŀUÈƗCw’áZħÄŭcÓ¥»NAw±qȥnD`{ChdÙFćš}¢‰A±Äj¨]ĊÕjŋ«×`VuÓś~_kŷVÝyh„“VkÄãPs”Oµ—fŸge‚Ň…µf@u_Ù ÙcŸªNªÙEojVx™T@†ãSefjlwH\\pŏäÀvŠŽlY†½d{†F~¦dyz¤PÜndsrhf‹HcŒvlwjFœ£G˜±DύƥY‡yϊu¹XikĿ¦ÏqƗǀOŜ¨LI|FRĂn sª|Cš˜zxAè¥bœfudTrFWÁ¹Am|˜ĔĕsķÆF‡´Nš‰}ć…UŠÕ@Áijſmužç’uð^ÊýowŒFzØÎĕNőžǏȎôªÌŒDŽàĀÄ˄ĞŀƒʀĀƘŸˮȬƬĊ°ƒUŸzou‡xe]}Ž…AyȑW¯ÌmK‡“Q]‹Īºif¸ÄX|sZt|½ÚUΠlkš^p{f¤lˆºlÆW –€A²˜PVܜPH”Êâ]ÎĈÌÜk´\\@qàsĔÄQºpRij¼èi†`¶—„bXƒrBgxfv»ŽuUiˆŒ^v~”J¬mVp´£Œ´VWrnP½ì¢BX‚¬h™ŠðX¹^TjVœŠriªj™tŊÄm€tPGx¸bgRšŽsT`ZozÆO]’ÒFô҆Oƒ‡ŊŒvŞ”p’cGŒêŠsx´DR–Œ{A†„EOr°Œ•žx|íœbˆ³Wm~DVjºéNN†Ëܲɶ­GƒxŷCStŸ}]ûō•SmtuÇÃĕN•™āg»šíT«u}ç½BĵÞʣ¥ëÊ¡Mێ³ãȅ¡ƋaǩÈÉQ‰†G¢·lG|›„tvgrrf«†ptęŘnŠÅĢr„I²¯LiØsPf˜_vĠd„xM prʹšL¤‹¤‡eˌƒÀđK“žïÙVY§]I‡óáĥ]ķ†Kˆ¥Œj|pŇ\\kzţ¦šnņäÔVĂîά|vW’®l¤èØr‚˜•xm¶ă~lÄƯĄ̈́öȄEÔ¤ØQĄ–Ą»ƢjȦOǺ¨ìSŖÆƬy”Qœv`–cwƒZSÌ®ü±DŽ]ŀç¬B¬©ńzƺŷɄeeOĨS’Œfm Ċ‚ƀP̎ēz©Ċ‚ÄÕÊmgŸÇsJ¥ƔˆŊśæ’΁Ñqv¿íUOµª‰ÂnĦÁ_½ä@ê텣P}Ġ[@gġ}g“ɊדûÏWXá¢užƻÌsNͽƎÁ§č՛AēeL³àydl›¦ĘVçŁpśdžĽĺſʃQíÜçÛġԏsĕ¬—Ǹ¯YßċġHµ ¡eå`ļƒrĉŘóƢFì“ĎWøxÊk†”ƈdƬv|–I|·©NqńRŀƒ¤é”eŊœŀ›ˆàŀU²ŕƀB‚Q£Ď}L¹Îk@©ĈuǰųǨ”Ú§ƈnTËÇéƟÊcfčŤ^Xm‡—HĊĕË«W·ċëx³ǔķÐċJā‚wİ_ĸ˜Ȁ^ôWr­°oú¬Ħ…ŨK~”ȰCĐ´Ƕ£’fNÎèâw¢XnŮeÂÆĶŽ¾¾xäLĴĘlļO¤ÒĨA¢Êɚ¨®‚ØCÔ ŬGƠ”ƦYĜ‡ĘÜƬDJ—g_ͥœ@čŅĻA“¶¯@wÎqC½Ĉ»NŸăëK™ďÍQ“Ùƫ[«Ãí•gßÔÇOÝáW‘ñuZ“¯ĥ€Ÿŕā¡ÑķJu¤E Ÿå¯°WKɱ_d_}}vyŸõu¬ï¹ÓU±½@gÏ¿rýD‰†g…Cd‰µ—°MFYxw¿CG£‹Rƛ½Õ{]L§{qqąš¿BÇƻğëšܭNJË|c²}Fµ}›ÙRsÓpg±ŠQNqǫŋRwŕnéÑÉKŸ†«SeYR…ŋ‹@{¤SJ}šD Ûǖ֍Ÿ]gr¡µŷjqWÛham³~S«“„›Þ]"]],
"encodeOffsets": [[[127123, 51780]], [[134456, 44547]]]
},
"properties": {
"cp": [128.642464, 46.756967],
"name": "黑龙江",
"childNum": 2
}
}, {
"id": "320000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@cþÅPiŠ`ZŸRu¥É\\]~°ŽY`µ†Óƒ^phÁbnÀşúŽòa–ĬºTÖŒb‚˜e¦¦€{¸ZâćNpŒ©žHr|^ˆmjhŠSEb\\afv`sz^lkŽlj‹Ätg‹¤D˜­¾Xš¿À’|ДiZ„ȀåB·î}GL¢õcßjaŸyBFµÏC^ĭ•cÙt¿sğH]j{s©HM¢ƒQnDÀ©DaÜތ·jgàiDbPufjDk`dPOîƒhw¡ĥ‡¥šG˜ŸP²ĐobºrY†„î¶aHŢ´ ]´‚rılw³r_{£DB_Ûdåuk|ˆŨ¯F Cºyr{XFy™e³Þċ‡¿Â™kĭB¿„MvÛpm`rÚã”@ƹhågËÖƿxnlč¶Åì½Ot¾dJlŠVJʜǀœŞqvnOŠ^ŸJ”Z‘ż·Q}ê͎ÅmµÒ]Žƍ¦Dq}¬R^èĂ´ŀĻĊIԒtžIJyQŐĠMNtœR®òLh‰›Ěs©»œ}OӌGZz¶A\\jĨFˆäOĤ˜HYš†JvÞHNiÜaϚɖnFQlšNM¤ˆB´ĄNöɂtp–Ŭdf先‹qm¿QûŠùއÚb¤uŃJŴu»¹Ą•lȖħŴw̌ŵ²ǹǠ͛hĭłƕrçü±Y™xci‡tğ®jű¢KOķ•Coy`å®VTa­_Ā]ŐÝɞï²ʯÊ^]afYǸÃĆēĪȣJđ͍ôƋĝÄ͎ī‰çÛɈǥ£­ÛmY`ó£Z«§°Ó³QafusNıDž_k}¢m[ÝóDµ—¡RLčiXy‡ÅNïă¡¸iĔϑNÌŕoēdōîåŤûHcs}~Ûwbù¹£¦ÓCt‹OPrƒE^ÒoŠg™ĉIµžÛÅʹK…¤½phMŠü`o怆ŀ"],
"encodeOffsets": [[121740, 32276]]
},
"properties": {
"cp": [119.767413, 33.041544],
"name": "江苏",
"childNum": 1
}
}, {
"id": "330000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@E^dQ]K"], ["@@jX^j‡"], ["@@sfŠbU‡"], ["@@qP\\xz[ck"], ["@@‘Rƒ¢‚FX}°[s_"], ["@@Cbœ\\—}"], ["@@e|v\\la{u"], ["@@v~u}"], ["@@QxÂF¯}"], ["@@¹nŒvÞs¯o"], ["@@rSkUEj"], ["@@bi­ZŒP"], ["@@p[}INf"], ["@@À¿€"], ["@@¹dnbŒ…"], ["@@rSŸBnR"], ["@@g~h}"], ["@@FlEk"], ["@@OdPc"], ["@@v[u\\"], ["@@FjâL~wyoo~›sµL–\\"], ["@@¬e¹aNˆ"], ["@@\\nÔ¡q]L³ë\\ÿ®ŒQ֎"], ["@@ÊA­©[¬"], ["@@KxŒv­"], ["@@@hlIk]"], ["@@pW{o||j"], ["@@Md|_mC"], ["@@¢…X£ÏylD¼XˆtH"], ["@@hlÜ[LykAvyfw^Ež›¤"], ["@@fp¤Mus“R"], ["@@®_ma~•LÁ¬šZ"], ["@@iM„xZ"], ["@@ZcYd"], ["@@Z~dOSo|A¿qZv"], ["@@@`”EN¡v"], ["@@|–TY{"], ["@@@n@m"], ["@@XWkCT\\"], ["@@ºwšZRkĕWO¢"], ["@@™X®±Grƪ\\ÔáXq{‹"], ["@@ůTG°ĄLHm°UC‹"], ["@@¤Ž€aÜx~}dtüGæţŎíĔcŖpMËВj碷ðĄÆMzˆjWKĎ¢Q¶˜À_꒔_Bı€i«pZ€gf€¤Nrq]§ĂN®«H±‡yƳí¾×ŸīàLłčŴǝĂíÀBŖÕªˆŠÁŖHŗʼnåqûõi¨hÜ·ƒñt»¹ýv_[«¸m‰YL¯‰Qª…mĉÅdMˆ•gÇjcº«•ęœ¬­K­´ƒB«Âącoċ\\xKd¡gěŧ«®á’[~ıxu·Å”KsËɏc¢Ù\\ĭƛëbf¹­ģSƒĜkáƉÔ­ĈZB{ŠaM‘µ‰fzʼnfåÂŧįƋǝÊĕġć£g³ne­ą»@­¦S®‚\\ßðCšh™iqªĭiAu‡A­µ”_W¥ƣO\\lċĢttC¨£t`ˆ™PZäuXßBs‡Ļyek€OđġĵHuXBšµ]׌‡­­\\›°®¬F¢¾pµ¼kŘó¬Wät’¸|@ž•L¨¸µr“ºù³Ù~§WI‹ŸZWŽ®’±Ð¨ÒÉx€`‰²pĜ•rOògtÁZ}þÙ]„’¡ŒŸFK‚wsPlU[}¦Rvn`hq¬\\”nQ´ĘRWb”‚_ rtČFI֊kŠŠĦPJ¶ÖÀÖJĈĄTĚòžC ²@Pú…Øzœ©PœCÈÚœĒ±„hŖ‡l¬â~nm¨f©–iļ«m‡nt–u†ÖZÜÄj“ŠLŽ®E̜Fª²iÊxبžIÈhhst"], ["@@o\\V’zRZ}y"], ["@@†@°¡mۛGĕ¨§Ianá[ýƤjfæ‡ØL–•äGr™"]],
"encodeOffsets": [[[125592, 31553]], [[125785, 31436]], [[125729, 31431]], [[125513, 31380]], [[125223, 30438]], [[125115, 30114]], [[124815, 29155]], [[124419, 28746]], [[124095, 28635]], [[124005, 28609]], [[125000, 30713]], [[125111, 30698]], [[125078, 30682]], [[125150, 30684]], [[124014, 28103]], [[125008, 31331]], [[125411, 31468]], [[125329, 31479]], [[125626, 30916]], [[125417, 30956]], [[125254, 30976]], [[125199, 30997]], [[125095, 31058]], [[125083, 30915]], [[124885, 31015]], [[125218, 30798]], [[124867, 30838]], [[124755, 30788]], [[124802, 30809]], [[125267, 30657]], [[125218, 30578]], [[125200, 30562]], [[124968, 30474]], [[125167, 30396]], [[124955, 29879]], [[124714, 29781]], [[124762, 29462]], [[124325, 28754]], [[123990, 28459]], [[125366, 31477]], [[125115, 30363]], [[125369, 31139]], [[122495, 31878]], [[125329, 30690]], [[125192, 30787]]]
},
"properties": {
"cp": [120.153576, 29.287459],
"name": "浙江",
"childNum": 45
}
}, {
"id": "340000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@^iuLX^"], ["@@‚e©Ehl"], ["@@°ZÆëϵmkǀwÌÕæhºgBĝâqÙĊz›ÖgņtÀÁÊÆá’hEz|WzqD¹€Ÿ°E‡ŧl{ævÜcA`¤C`|´qžxIJkq^³³ŸGšµbƒíZ…¹qpa±ď OH—¦™Ħˆx¢„gPícOl_iCveaOjCh߸i݋bÛªCC¿€m„RV§¢A|t^iĠGÀtÚs–d]ĮÐDE¶zAb àiödK¡~H¸íæAžǿYƒ“j{ď¿‘™À½W—®£ChŒÃsiŒkkly]_teu[bFa‰Tig‡n{]Gqªo‹ĈMYá|·¥f¥—őaSÕė™NµñĞ«ImŒ_m¿Âa]uĜp …Z_§{Cƒäg¤°r[_Yj‰ÆOdý“[ŽI[á·¥“Q_n‡ùgL¾mv™ˊBÜÆ¶ĊJhšp“c¹˜O]iŠ]œ¥ jtsggJǧw×jÉ©±›EFˍ­‰Ki”ÛÃÕYv…s•ˆm¬njĻª•§emná}k«ŕˆƒgđ²Ù›DǤ›í¡ªOy›†×Où±@DŸñSęćăÕIÕ¿IµĥO‰‰jNÕËT¡¿tNæŇàåyķrĕq§ÄĩsWÆßŽF¶žX®¿‰mŒ™w…RIޓfßoG‘³¾©uyH‘į{Ɓħ¯AFnuP…ÍÔzšŒV—dàôº^Ðæd´€‡oG¤{S‰¬ćxã}›ŧ×Kǥĩ«žÕOEзÖdÖsƘѨ[’Û^Xr¢¼˜§xvěƵ`K”§ tÒ´Cvlo¸fzŨð¾NY´ı~ÉĔē…ßúLÃϖ_ÈÏ|]ÂÏFl”g`bšežž€n¾¢pU‚h~ƴ˶_‚r sĄ~cž”ƈ]|r c~`¼{À{ȒiJjz`îÀT¥Û³…]’u}›f…ïQl{skl“oNdŸjŸäËzDvčoQŠďHI¦rb“tHĔ~BmlRš—V_„ħTLnñH±’DžœL‘¼L˜ªl§Ťa¸ŒĚlK²€\\RòvDcÎJbt[¤€D@®hh~kt°ǾzÖ@¾ªdb„YhüóZ ň¶vHrľ\\ʗJuxAT|dmÀO„‹[ÃԋG·ĚąĐlŪÚpSJ¨ĸˆLvÞcPæķŨŽ®mАˆálŸwKhïgA¢ųƩޖ¤OȜm’°ŒK´"]],
"encodeOffsets": [[[121722, 32278]], [[119475, 30423]], [[119168, 35472]]]
},
"properties": {
"cp": [117.283042, 31.26119],
"name": "安徽",
"childNum": 3
}
}, {
"id": "350000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@“zht´‡]"], ["@@aj^~ĆG—©O"], ["@@ed¨„C}}i"], ["@@@vˆPGsQ"], ["@@‰sBz‚ddW]Q"], ["@@SލQ“{"], ["@@NŽVucW"], ["@@qptBAq"], ["@@‰’¸[mu"], ["@@Q\\pD]_"], ["@@jSwUadpF"], ["@@eXª~ƒ•"], ["@@AjvFso"], ["@@fT–›_Çí\\Ÿ™—v|ba¦jZÆy€°"], ["@@IjJi"], ["@@wJI€ˆxš«¼AoNe{M­"], ["@@K‰±¡Óˆ”ČäeZ"], ["@@k¡¹Eh~c®wBk‹UplÀ¡I•~Māe£bN¨gZý¡a±Öcp©PhžI”Ÿ¢Qq…ÇGj‹|¥U™ g[Ky¬ŏ–v@OpˆtÉEŸF„\\@ åA¬ˆV{Xģ‰ĐBy…cpě…¼³Ăp·¤ƒ¥o“hqqÚ¡ŅLsƒ^ᗞ§qlŸÀhH¨MCe»åÇGD¥zPO£čÙkJA¼ß–ėu›ĕeûҍiÁŧSW¥˜QŠûŗ½ùěcݧSùĩąSWó«íęACµ›eR—åǃRCÒÇZÍ¢‹ź±^dlsŒtjD¸•‚ZpužÔâÒH¾oLUêÃÔjjēò´ĄW‚ƛ…^Ñ¥‹ĦŸ@Çò–ŠmŒƒOw¡õyJ†yD}¢ďÑÈġfŠZd–a©º²z£šN–ƒjD°Ötj¶¬ZSÎ~¾c°¶Ðm˜x‚O¸¢Pl´žSL|¥žA†ȪĖM’ņIJg®áIJČĒü` ŽQF‡¬h|ÓJ@zµ |ê³È ¸UÖŬŬÀEttĸr‚]€˜ðŽM¤ĶIJHtÏ A’†žĬkvsq‡^aÎbvŒd–™fÊòSD€´Z^’xPsÞrv‹ƞŀ˜jJd×ŘÉ ®A–ΦĤd€xĆqAŒ†ZR”ÀMźŒnĊ»ŒİÐZ— YX–æJŠyĊ²ˆ·¶q§·–K@·{s‘Xãô«lŗ¶»o½E¡­«¢±¨Yˆ®Ø‹¶^A™vWĶGĒĢžPlzfˆļŽtàAvWYãšO_‡¤sD§ssČġ[kƤPX¦Ž`¶“ž®ˆBBvĪjv©šjx[L¥àï[F…¼ÍË»ğV`«•Ip™}ccÅĥZE‹ãoP…´B@ŠD—¸m±“z«Ƴ—¿å³BRضˆœWlâþäą`“]Z£Tc— ĹGµ¶H™m@_©—kŒ‰¾xĨ‡ôȉðX«½đCIbćqK³Á‹Äš¬OAwã»aLʼn‡ËĥW[“ÂGI—ÂNxij¤D¢ŽîĎÎB§°_JœGsƒ¥E@…¤uć…P‘å†cuMuw¢BI¿‡]zG¹guĮck\\_"]],
"encodeOffsets": [[[123250, 27563]], [[122541, 27268]], [[123020, 27189]], [[122916, 27125]], [[122887, 26845]], [[122808, 26762]], [[122568, 25912]], [[122778, 26197]], [[122515, 26757]], [[122816, 26587]], [[123388, 27005]], [[122450, 26243]], [[122578, 25962]], [[121255, 25103]], [[120987, 24903]], [[122339, 25802]], [[121042, 25093]], [[122439, 26024]]]
},
"properties": {
"cp": [118.306239, 26.075302],
"name": "福建",
"childNum": 18
}
}, {
"id": "360000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@ĢĨƐgÂMD~ņªe^\\^§„ý©j׍cZ†Ø¨zdÒa¶ˆlҍJŒìõ`oz÷@¤u޸´†ôęöY¼‰HČƶajlÞƩ¥éZ[”|h}^U Œ ¥p„ĄžƦO lt¸Æ €Q\\€ŠaÆ|CnÂOjt­ĚĤd’ÈŒF`’¶„@Ð딠¦ōҞ¨Sêv†HĢûXD®…QgėWiØPÞìºr¤dž€NĠ¢l–•ĄtZoœCƞÔºCxrpĠV®Ê{f_Y`_ƒeq’’®Aot`@o‚DXfkp¨|Šs¬\\D‘ÄSfè©Hn¬…^DhÆyøJh“ØxĢĀLʈ„ƠPżċĄwȠ̦G®ǒĤäTŠÆ~ĦwŠ«|TF¡Šn€c³Ïå¹]ĉđxe{ÎӐ†vOEm°BƂĨİ|G’vz½ª´€H’àp”eJ݆Qšxn‹ÀŠW­žEµàXÅĪt¨ÃĖrÄwÀFÎ|ňÓMå¼ibµ¯»åDT±m[“r«_gŽmQu~¥V\\OkxtL E¢‹ƒ‘Ú^~ýê‹Pó–qo슱_Êw§ÑªåƗ⼋mĉŹ‹¿NQ“…YB‹ąrwģcÍ¥B•Ÿ­ŗÊcØiI—žƝĿuŒqtāwO]‘³YCñTeɕš‹caub͈]trlu€ī…B‘ПGsĵıN£ï—^ķqss¿FūūV՟·´Ç{éĈý‰ÿ›OEˆR_ŸđûIċâJh­ŅıN‘ȩĕB…¦K{Tk³¡OP·wn—µÏd¯}½TÍ«YiµÕsC¯„iM•¤™­•¦¯P|ÿUHv“he¥oFTu‰õ\\ŽOSs‹MòđƇiaºćXŸĊĵà·çhƃ÷ǜ{‘ígu^›đg’m[×zkKN‘¶Õ»lčÓ{XSƉv©_ÈëJbVk„ĔVÀ¤P¾ºÈMÖxlò~ªÚàGĂ¢B„±’ÌŒK˜y’áV‡¼Ã~­…`g›ŸsÙfI›Ƌlę¹e|–~udjˆuTlXµf`¿JdŠ[\\˜„L‚‘²"],
"encodeOffsets": [[116689, 26234]]
},
"properties": {
"cp": [115.592151, 27.676493],
"name": "江西",
"childNum": 1
}
}, {
"id": "370000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@Xjd]{K"], ["@@itbFHy"], ["@@HlGk"], ["@@T‚ŒGŸy"], ["@@K¬˜•‹U"], ["@@WdXc"], ["@@PtOs"], ["@@•LnXhc"], ["@@ppVƒu]Or"], ["@@cdzAUa"], ["@@udRhnCI‡"], ["@@ˆoIƒpR„"], ["@@Ľč{fzƤî’Kš–ÎMĮ]†—ZFˆ½Y]â£ph’™š¶¨râøÀ†ÎǨ¤^ºÄ”Gzˆ~grĚĜlĞÆ„LĆdž¢Îo¦–cv“Kb€gr°Wh”mZp ˆL]LºcU‰Æ­n”żĤÌǜbAnrOAœ´žȊcÀbƦUØrĆUÜøœĬƞ†š˜Ez„VL®öØBkŖÝĐ˹ŧ̄±ÀbÎɜnb²ĦhņBĖ›žįĦåXćì@L¯´ywƕCéõė ƿ¸‘lµ¾Z|†ZWyFYŸ¨Mf~C¿`€à_RÇzwƌfQnny´INoƬˆèôº|sT„JUš›‚L„îVj„ǎ¾Ē؍‚Dz²XPn±ŴPè¸ŔLƔÜƺ_T‘üÃĤBBċȉöA´fa„˜M¨{«M`‡¶d¡ô‰Ö°šmȰBÔjjŒ´PM|”c^d¤u•ƒ¤Û´Œä«ƢfPk¶Môlˆ]Lb„}su^ke{lC‘…M•rDŠÇ­]NÑFsmoõľH‰yGă{{çrnÓE‰‹ƕZGª¹Fj¢ïW…uøCǷ돡ąuhÛ¡^Kx•C`C\\bÅxì²ĝÝ¿_N‰īCȽĿåB¥¢·IŖÕy\\‡¹kx‡Ã£Č×GDyÕ¤ÁçFQ¡„KtŵƋ]CgÏAùSed‡cÚź—ŠuYfƒyMmhUWpSyGwMPqŀ—›Á¼zK›¶†G•­Y§Ëƒ@–´śÇµƕBmœ@Io‚g——Z¯u‹TMx}C‘‰VK‚ï{éƵP—™_K«™pÛÙqċtkkù]gŽ‹Tğwo•ɁsMõ³ă‡AN£™MRkmEʕč™ÛbMjÝGu…IZ™—GPģ‡ãħE[iµBEuŸDPԛ~ª¼ętŠœ]ŒûG§€¡QMsğNPŏįzs£Ug{đJĿļā³]ç«Qr~¥CƎÑ^n¶ÆéÎR~ݏY’I“] P‰umŝrƿ›‰›Iā‹[x‰edz‹L‘¯v¯s¬ÁY…~}…ťuٌg›ƋpÝĄ_ņī¶ÏSR´ÁP~ž¿Cyžċßdwk´Ss•X|t‰`Ä Èð€AªìÎT°¦Dd–€a^lĎDĶÚY°Ž`ĪŴǒˆ”àŠv\\ebŒZH„ŖR¬ŢƱùęO•ÑM­³FۃWp[ƒ"]],
"encodeOffsets": [[[123806, 39303]], [[123821, 39266]], [[123742, 39256]], [[123702, 39203]], [[123649, 39066]], [[123847, 38933]], [[123580, 38839]], [[123894, 37288]], [[123043, 36624]], [[123344, 38676]], [[123522, 38857]], [[123628, 38858]], [[118260, 36742]]]
},
"properties": {
"cp": [118.000923, 36.275807],
"name": "山东",
"childNum": 13
}
}, {
"id": "410000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@•ýL™ùµP³swIÓxcŢĞð†´E®žÚPt†ĴXØx¶˜@«ŕŕQGƒ‹Yfa[şu“ßǩ™đš_X³ijÕčC]kbc•¥CS¯ëÍB©÷‹–³­Siˆ_}m˜YTtž³xlàcȂzÀD}ÂOQ³ÐTĨ¯†ƗòËŖ[hœł‹Ŧv~††}ÂZž«¤lPǕ£ªÝŴÅR§ØnhcŒtâk‡nύ­ľŹUÓÝdKuķ‡I§oTũÙďkęĆH¸ÓŒ\\ăŒ¿PcnS{wBIvɘĽ[GqµuŸŇôYgûƒZcaŽ©@½Õǽys¯}lgg@­C\\£as€IdÍuCQñ[L±ęk·‹ţb¨©kK—’»›KC²‘òGKmĨS`ƒ˜UQ™nk}AGē”sqaJ¥ĐGR‰ĎpCuÌy ã iMc”plk|tRk†ðœev~^‘´†¦ÜŽSí¿_iyjI|ȑ|¿_»d}qŸ^{“Ƈdă}Ÿtqµ`Ƴĕg}V¡om½fa™Ço³TTj¥„tĠ—Ry”K{ùÓjuµ{t}uËR‘iŸvGŠçJFjµŠÍyqΘàQÂFewixGw½Yŷpµú³XU›½ġy™łå‰kÚwZXˆ·l„¢Á¢K”zO„Λ΀jc¼htoDHr…|­J“½}JZ_¯iPq{tę½ĕ¦Zpĵø«kQ…Ťƒ]MÛfaQpě±ǽ¾]u­Fu‹÷nƒ™čįADp}AjmcEǒaª³o³ÆÍSƇĈÙDIzˑ赟^ˆKLœ—i—Þñ€[œƒaA²zz‰Ì÷Dœ|[šíijgf‚ÕÞd®|`ƒĆ~„oĠƑô³Ŋ‘D×°¯CsŠøÀ«ì‰UMhTº¨¸ǡîS–Ô„DruÂÇZ•ÖEŽ’vPZ„žW”~؋ÐtĄE¢¦Ðy¸bŠô´oŬ¬Ž²Ês~€€]®tªašpŎJ¨Öº„_ŠŔ–`’Ŗ^Ѝ\\Ĝu–”~m²Ƹ›¸fW‰ĦrƔ}Î^gjdfÔ¡J}\\n C˜¦þWxªJRÔŠu¬ĨĨmF†dM{\\d\\ŠYÊ¢ú@@¦ª²SŠÜsC–}fNècbpRmlØ^g„d¢aÒ¢CZˆZxvÆ¶N¿’¢T@€uCœ¬^ĊðÄn|žlGl’™Rjsp¢ED}€Fio~ÔNŽ‹„~zkĘHVsDzßjƒŬŒŠŢ`Pûàl¢˜\\ÀœEhŽİgÞē X¼Pk–„|m"],
"encodeOffsets": [[118256, 37017]]
},
"properties": {
"cp": [113.665412, 33.757975],
"name": "河南",
"childNum": 1
}
}, {
"id": "420000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@AB‚"], ["@@lskt"], ["@@¾«}{ra®pîÃ\\™›{øCŠËyyB±„b\\›ò˜Ý˜jK›‡L ]ĎĽÌ’JyÚCƈćÎT´Å´pb©È‘dFin~BCo°BĎĚømvŒ®E^vǾ½Ĝ²Ro‚bÜeNŽ„^ĺ£R†¬lĶ÷YoĖ¥Ě¾|sOr°jY`~I”¾®I†{GqpCgyl{‡£œÍƒÍyPL“¡ƒ¡¸kW‡xYlÙæŠšŁĢzœ¾žV´W¶ùŸo¾ZHxjwfx„GNÁ•³Xéæl¶‰EièIH‰ u’jÌQ~v|sv¶Ôi|ú¢Fh˜Qsğ¦ƒSiŠBg™ÐE^ÁÐ{–čnOÂȞUÎóĔ†ÊēIJ}Z³½Mŧïeyp·uk³DsѨŸL“¶_œÅuèw»—€¡WqÜ]\\‘Ò§tƗcÕ¸ÕFÏǝĉăxŻČƟO‡ƒKÉġÿ×wg”÷IÅzCg†]m«ªGeçÃTC’«[‰t§{loWeC@ps_Bp‘­r‘„f_``Z|ei¡—oċMqow€¹DƝӛDYpûs•–‹Ykıǃ}s¥ç³[§ŸcYЧHK„«Qy‰]¢“wwö€¸ïx¼ņ¾Xv®ÇÀµRĠЋžHMž±cÏd„ƒǍũȅȷ±DSyúĝ£ŤĀàtÖÿï[îb\\}pĭÉI±Ñy…¿³x¯N‰o‰|¹H™ÏÛm‹júË~Tš•u˜ęjCöAwě¬R’đl¯ Ñb­‰ŇT†Ŀ_[Œ‘IčĄʿnM¦ğ\\É[T·™k¹œ©oĕ@A¾w•ya¥Y\\¥Âaz¯ãÁ¡k¥ne£Ûw†E©Êō¶˓uoj_Uƒ¡cF¹­[Wv“P©w—huÕyBF“ƒ`R‹qJUw\\i¡{jŸŸEPïÿ½fć…QÑÀQ{ž‚°‡fLԁ~wXg—ītêݾ–ĺ‘Hdˆ³fJd]‹HJ²…E€ƒoU¥†HhwQsƐ»Xmg±çve›]Dm͂PˆoCc¾‹_h”–høYrŊU¶eD°Č_N~øĹĚ·`z’]Äþp¼…äÌQŒv\\rCŒé¾TnkžŐڀÜa‡“¼ÝƆ̶Ûo…d…ĔňТJq’Pb ¾|JŒ¾fXŠƐîĨ_Z¯À}úƲ‹N_ĒĊ^„‘ĈaŐyp»CÇĕKŠšñL³ŠġMŒ²wrIÒŭxjb[œžn«øœ˜—æˆàƒ ^²­h¯Ú€ŐªÞ¸€Y²ĒVø}Ā^İ™´‚LŠÚm„¥ÀJÞ{JVŒųÞŃx×sxxƈē ģMř–ÚðòIf–Ċ“Œ\\Ʈ±ŒdʧĘD†vČ_Àæ~DŒċ´A®µ†¨ØLV¦êHÒ¤"]],
"encodeOffsets": [[[113712, 34000]], [[115612, 30507]], [[113649, 34054]]]
},
"properties": {
"cp": [113.298572, 30.684355],
"name": "湖北",
"childNum": 3
}
}, {
"id": "430000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@—n„FTs"], ["@@ßÅÆá‰½ÔXr—†CO™“…ËR‘ïÿĩ­TooQyšÓ[‹ŅBE¬–ÎÓXa„į§Ã¸G °ITxp‰úxÚij¥Ïš–̾ŠedžÄ©ĸG…œàGh‚€M¤–Â_U}Ċ}¢pczfŠþg¤€”ÇòAV‘‹M"], ["@@©K—ƒA·³CQ±Á«³BUŠƑ¹AŠtćOw™D]ŒJiØSm¯b£‘ylƒ›X…HËѱH•«–‘C^õľA–Å§¤É¥„ïyuǙuA¢^{ÌC´­¦ŷJ£^[†“ª¿‡ĕ~•Ƈ…•N… skóā‡¹¿€ï]ă~÷O§­@—Vm¡‹Qđ¦¢Ĥ{ºjԏŽŒª¥nf´•~ÕoŸž×Ûą‹MąıuZœmZcÒ IJβSÊDŽŶ¨ƚƒ’CÖŎªQؼrŭŽ­«}NÏürʬŒmjr€@ĘrTW ­SsdHzƓ^ÇÂyUi¯DÅYlŹu{hTœ}mĉ–¹¥ě‰Dÿë©ıÓ[Oº£ž“¥ót€ł¹MՄžƪƒ`Pš…Di–ÛUоÅ‌ìˆU’ñB“È£ýhe‰dy¡oċ€`pfmjP~‚kZa…ZsÐd°wj§ƒ@€Ĵ®w~^‚kÀÅKvNmX\\¨a“”сqvíó¿F„¤¡@ũÑVw}S@j}¾«pĂr–ªg àÀ²NJ¶¶Dô…K‚|^ª†Ž°LX¾ŴäPᜣEXd›”^¶›IJÞܓ~‘u¸ǔ˜Ž›MRhsR…e†`ÄofIÔ\\Ø  i”ćymnú¨cj ¢»–GČìƊÿШXeĈ¾Oð Fi ¢|[jVxrIQŒ„_E”zAN¦zLU`œcªx”OTu RLÄ¢dV„i`p˔vŎµªÉžF~ƒØ€d¢ºgİàw¸Áb[¦Zb¦–z½xBĖ@ªpº›šlS¸Ö\\Ĕ[N¥ˀmĎă’J\\‹ŀ`€…ňSڊĖÁĐiO“Ĝ«BxDõĚiv—ž–S™Ì}iùŒžÜnšÐºGŠ{Šp°M´w†ÀÒzJ²ò¨ oTçüöoÛÿñŽőФ‚ùTz²CȆȸǎۃƑÐc°dPÎŸğ˶[Ƚu¯½WM¡­Éž“’B·rížnZŸÒ `‡¨GA¾\\pē˜XhÆRC­üWGġu…T靧Ŏѝ©ò³I±³}_‘‹EÃħg®ęisÁPDmÅ{‰b[Rşs·€kPŸŽƥƒóRo”O‹ŸVŸ~]{g\\“êYƪ¦kÝbiċƵŠGZ»Ěõ…ó·³vŝž£ø@pyö_‹ëŽIkѵ‡bcѧy…×dY؎ªiþž¨ƒ[]f]Ņ©C}ÁN‡»hĻħƏ’ĩ"]],
"encodeOffsets": [[[115640, 30489]], [[112543, 27312]], [[116690, 26230]]]
},
"properties": {
"cp": [111.782279, 28.09409],
"name": "湖南",
"childNum": 3
}
}, {
"id": "440000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@QdˆAua"], ["@@ƒlxDLo"], ["@@sbhNLo"], ["@@Ă āŸ"], ["@@WltO[["], ["@@Krœ]S"], ["@@e„„I]y"], ["@@I|„Mym"], ["@@ƒÛ³LSŒž¼Y"], ["@@nvºB–ëui©`¾"], ["@@zdšÛ›Jw®"], ["@@†°…¯"], ["@@a yAª¸ËJIx،@€ĀHAmßV¡o•fu•o"], ["@@šs‰ŗÃÔėAƁ›ZšÄ ~°ČP‚‹äh"], ["@@‹¶Ý’Ì‚vmĞh­ı‡Q"], ["@@HœŠdSjĒ¢D}war…“u«ZqadYM"], ["@@elŒ\\LqqU"], ["@@~rMo\\"], ["@@f„^ƒC"], ["@@øPªoj÷ÍÝħXČx”°Q¨ıXNv"], ["@@gÇƳˆŽˆ”oˆŠˆ[~tly"], ["@@E–ÆC¿‘"], ["@@OŽP"], ["@@w‹†đóg‰™ĝ—[³‹¡VÙæÅöM̳¹pÁaËýý©D©Ü“JŹƕģGą¤{Ùū…ǘO²«BƱéA—Ò‰ĥ‡¡«BhlmtÃPµyU¯uc“d·w_bŝcīímGOŽ|KP’ȏ‡ŹãŝIŕŭŕ@Óoo¿ē‹±ß}Ž…ŭ‚ŸIJWÈCőâUâǙI›ğʼn©I›ijEׅÁ”³Aó›wXJþ±ÌŒÜӔĨ£L]ĈÙƺZǾĆĖMĸĤfŒÎĵl•ŨnȈ‘ĐtF”Š–FĤ–‚êk¶œ^k°f¶gŠŽœ}®Fa˜f`vXŲxl˜„¦–ÔÁ²¬ÐŸ¦pqÊ̲ˆi€XŸØRDÎ}†Ä@ZĠ’s„x®AR~®ETtĄZ†–ƈfŠŠHâÒÐA†µ\\S¸„^wĖkRzŠalŽŜ|E¨ÈNĀňZTŒ’pBh£\\ŒĎƀuXĖtKL–¶G|Ž»ĺEļĞ~ÜĢÛĊrˆO˜Ùîvd]nˆ¬VœÊĜ°R֟pM††–‚ƂªFbwžEÀˆ˜©Œž\\…¤]ŸI®¥D³|ˎ]CöAŤ¦…æ’´¥¸Lv¼€•¢ĽBaô–F~—š®²GÌҐEY„„œzk¤’°ahlV՞I^‹šCxĈPŽsB‰ƒºV‰¸@¾ªR²ĨN]´_eavSi‡vc•}p}Đ¼ƌkJœÚe thœ†_¸ ºx±ò_xN›Ë‹²‘@ƒă¡ßH©Ùñ}wkNÕ¹ÇO½¿£ĕ]ly_WìIžÇª`ŠuTÅxYĒÖ¼k֞’µ‚MžjJÚwn\\h‘œĒv]îh|’È›Ƅøègž¸Ķß ĉĈWb¹ƀdéƌNTtP[ŠöSvrCZžžaGuœbo´ŖÒÇА~¡zCI…özx¢„Pn‹•‰Èñ @ŒĥÒ¦†]ƞŠV}³ăĔñiiÄÓVépKG½Ä‘ÓávYo–C·sit‹iaÀy„ŧΡÈYDÑům}‰ý|m[węõĉZÅxUO}÷N¹³ĉo_qtă“qwµŁYلǝŕ¹tïÛUïmRCº…ˆĭ|µ›ÕÊK™½R‘ē ó]‘–GªęAx–»HO£|ām‡¡diď×YïYWªʼnOeÚtĐ«zđ¹T…ā‡úE™á²\\‹ķÍ}jYàÙÆſ¿Çdğ·ùTßÇţʄ¡XgWÀLJğ·¿ÃˆOj YÇ÷Qě‹i"]],
"encodeOffsets": [[[117381, 22988]], [[116552, 22934]], [[116790, 22617]], [[116973, 22545]], [[116444, 22536]], [[116931, 22515]], [[116496, 22490]], [[116453, 22449]], [[113301, 21439]], [[118726, 21604]], [[118709, 21486]], [[113210, 20816]], [[115482, 22082]], [[113171, 21585]], [[113199, 21590]], [[115232, 22102]], [[115739, 22373]], [[115134, 22184]], [[113056, 21175]], [[119573, 21271]], [[119957, 24020]], [[115859, 22356]], [[116561, 22649]], [[116285, 22746]]]
},
"properties": {
"cp": [113.280637, 23.125178],
"name": "广东",
"childNum": 24
}
}, {
"id": "450000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@H– TQ§•A"], ["@@ĨʪƒLƒƊDÎĹĐCǦė¸zÚGn£¾›rªŀÜt¬@֛ڈSx~øOŒ˜ŶÐÂæȠ\\„ÈÜObĖw^oބLf¬°bI lTØB̈F£Ć¹gñĤaY“t¿¤VSñœK¸¤nM†¼‚JE±„½¸šŠño‹ÜCƆæĪ^ŠĚQÖ¦^‡ˆˆf´Q†üÜʝz¯šlzUĺš@쇀p¶n]sxtx¶@„~ÒĂJb©gk‚{°‚~c°`ԙ¬rV\\“la¼¤ôá`¯¹LC†ÆbŒxEræO‚v[H­˜„[~|aB£ÖsºdAĐzNÂðsŽÞƔ…Ĥªbƒ–ab`ho¡³F«èVloޤ™ÔRzpp®SŽĪº¨ÖƒºN…ij„d`’a”¦¤F³ºDÎńĀìŠCžĜº¦Ċ•~nS›|gźvZkCÆj°zVÈÁƔ]LÊFZg…čP­kini«‹qǀcz͔Y®¬Ů»qR×ō©DՄ‘§ƙǃŵTÉĩ±ŸıdÑnYY›IJvNĆÌØÜ Öp–}e³¦m‹©iÓ|¹Ÿħņ›|ª¦QF¢Â¬ʖovg¿em‡^ucà÷gՎuŒíÙćĝ}FϼĹ{µHK•sLSđƃr‹č¤[Ag‘oS‹ŇYMÿ§Ç{Fśbky‰lQxĕƒ]T·¶[B…ÑÏGáşşƇe€…•ăYSs­FQ}­Bƒw‘tYğÃ@~…C̀Q ×W‡j˱rÉ¥oÏ ±«ÓÂ¥•ƒ€k—ŽwWűŒmcih³K›~‰µh¯e]lµ›él•E쉕E“ďs‡’mǖŧē`ãògK_ÛsUʝ“ćğ¶hŒöŒO¤Ǜn³Žc‘`¡y‹¦C‘ez€YŠwa™–‘[ďĵűMę§]X˜Î_‚훘Û]é’ÛUćİÕBƣ±…dƒy¹T^džûÅÑŦ·‡PĻþÙ`K€¦˜…¢ÍeœĥR¿Œ³£[~Œäu¼dl‰t‚†W¸oRM¢ď\\zœ}Æzdvň–{ÎXF¶°Â_„ÒÂÏL©Ö•TmuŸ¼ãl‰›īkiqéfA„·Êµ\\őDc¥ÝF“y›Ôć˜c€űH_hL܋êĺШc}rn`½„Ì@¸¶ªVLŒŠhŒ‹\\•Ţĺk~ŽĠið°|gŒtTĭĸ^x‘vK˜VGréAé‘bUu›MJ‰VÃO¡…qĂXËS‰ģãlýàŸ_ju‡YÛÒB†œG^˜é֊¶§ŽƒEG”ÅzěƒƯ¤Ek‡N[kdåucé¬dnYpAyČ{`]þ¯T’bÜÈk‚¡Ġ•vŒàh„ÂƄ¢Jî¶²"]],
"encodeOffsets": [[[111707, 21520]], [[107619, 25527]]]
},
"properties": {
"cp": [108.320004, 22.82402],
"name": "广西",
"childNum": 2
}
}, {
"id": "460000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@š¦Ŝil¢”XƦ‘ƞò–ïè§ŞCêɕrŧůÇąĻõ™·ĉ³œ̅kÇm@ċȧƒŧĥ‰Ľʉ­ƅſ“ȓÒ˦ŝE}ºƑ[ÍĜȋ gÎfǐÏĤ¨êƺ\\Ɔ¸ĠĎvʄȀœÐ¾jNðĀÒRŒšZdž™zÐŘΰH¨Ƣb²_Ġ "],
"encodeOffsets": [[112750, 20508]]
},
"properties": {
"cp": [109.83119, 19.031971],
"name": "海南",
"childNum": 1
}
}, {
"id": "510000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@LqKr"], ["@@Š[ĻéV£ž_ţġñpG •réÏ·~ąSfy×͂·ºſƽiÍıƣıĻmHH}siaX@iǰÁÃ×t«ƒ­Tƒ¤J–JJŒyJ•ÈŠ`Ohߦ¡uËhIyCjmÿw…ZG……Ti‹SˆsO‰žB²ŸfNmsPaˆ{M{ŠõE‘^Hj}gYpaeuž¯‘oáwHjÁ½M¡pM“–uå‡mni{fk”\\oƒÎqCw†EZ¼K›ĝŠƒAy{m÷L‡wO×SimRI¯rK™õBS«sFe‡]fµ¢óY_ÆPRcue°Cbo׌bd£ŌIHgtrnyPt¦foaXďx›lBowz‹_{ÊéWiêE„GhܸºuFĈIxf®Ž•Y½ĀǙ]¤EyŸF²ċ’w¸¿@g¢§RGv»–áŸW`ÃĵJwi]t¥wO­½a[׈]`Ãi­üL€¦LabbTÀå’c}Íh™Æhˆ‹®BH€î|Ék­¤S†y£„ia©taį·Ɖ`ō¥Uh“O…ƒĝLk}©Fos‰´›Jm„µlŁu—…ø–nÑJWΪ–YÀïAetTžŅ‚ӍG™Ë«bo‰{ıwodƟ½ƒžOġܑµxàNÖ¾P²§HKv¾–]|•B‡ÆåoZ`¡Ø`ÀmºĠ~ÌЧnDž¿¤]wğ@sƒ‰rğu‰~‘Io”[é±¹ ¿žſđӉ@q‹gˆ¹zƱřaí°KtǤV»Ã[ĩǭƑ^ÇÓ@ỗs›Zϕ‹œÅĭ€Ƌ•ěpwDóÖሯneQˌq·•GCœýS]xŸ·ý‹q³•O՜Œ¶Qzßti{ř‰áÍÇWŝŭñzÇW‹pç¿JŒ™‚Xœĩè½cŒF–ÂLiVjx}\\N†ŇĖ¥Ge–“JA¼ÄHfÈu~¸Æ«dE³ÉMA|b˜Ò…˜ćhG¬CM‚õŠ„ƤąAvƒüV€éŀ‰_V̳ĐwQj´·ZeÈÁ¨X´Æ¡Qu·»Ÿ“˜ÕZ³ġqDo‰y`L¬gdp°şŠp¦ėìÅĮZްIä”h‚‘ˆzŠĵœf²å ›ĚрKp‹IN|‹„Ñz]ń……·FU×é»R³™MƒÉ»GM«€ki€™ér™}Ã`¹ăÞmȝnÁîRǀ³ĜoİzŔwǶVÚ£À]ɜ»ĆlƂ²Ġ…þTº·àUȞÏʦ¶†I’«dĽĢdĬ¿–»Ĕ׊h\\c¬†ä²GêëĤł¥ÀǿżÃÆMº}BÕĢyFVvw–ˆxBèĻĒ©Ĉ“tCĢɽŠȣ¦āæ·HĽî“ôNԓ~^¤Ɗœu„œ^s¼{TA¼ø°¢İªDè¾Ň¶ÝJ‘®Z´ğ~Sn|ªWÚ©òzPOȸ‚bð¢|‹øĞŠŒœŒQìÛÐ@Ğ™ǎRS¤Á§d…i“´ezÝúØã]Hq„kIŸþËQǦÃsǤ[E¬ÉŪÍxXƒ·ÖƁİlƞ¹ª¹|XÊwn‘ÆƄmÀêErĒtD®ċæcQƒ”E®³^ĭ¥©l}äQto˜ŖÜqƎkµ–„ªÔĻĴ¡@Ċ°B²Èw^^RsºT£ڿœQP‘JvÄz„^Đ¹Æ¯fLà´GC²‘dt˜­ĀRt¼¤ĦOðğfÔðDŨŁĞƘïžPȆ®âbMüÀXZ ¸£@Ś›»»QÉ­™]d“sÖ×_͖_ÌêŮPrĔĐÕGĂeZÜîĘqBhtO ¤tE[h|Y‹Ô‚ZśÎs´xº±UŒ’ñˆt|O’ĩĠºNbgþŠJy^dÂY Į„]Řz¦gC‚³€R`Šz’¢AjŒ¸CL„¤RÆ»@­Ŏk\\Ç´£YW}z@Z}‰Ã¶“oû¶]´^N‡Ò}èN‚ª–P˜Íy¹`S°´†ATe€VamdUĐwʄvĮÕ\\ƒu‹Æŗ¨Yp¹àZÂm™Wh{á„}WØǍ•Éüw™ga§áCNęÎ[ĀÕĪgÖɪX˜øx¬½Ů¦¦[€—„NΆL€ÜUÖ´òrÙŠxR^–†J˜k„ijnDX{Uƒ~ET{ļº¦PZc”jF²Ė@Žp˜g€ˆ¨“B{ƒu¨ŦyhoÚD®¯¢˜ WòàFΤ¨GDäz¦kŮPœġq˚¥À]€Ÿ˜eŽâÚ´ªKxī„Pˆ—Ö|æ[xäJÞĥ‚s’NÖ½ž€I†¬nĨY´®Ð—ƐŠ€mD™ŝuäđđEb…e’e_™v¡}ìęNJē}q”É埁T¯µRs¡M@}ůa†a­¯wvƉåZwž\\Z{åû^›"]],
"encodeOffsets": [[[108815, 30935]], [[110617, 31811]]]
},
"properties": {
"cp": [104.065735, 30.659462],
"name": "四川",
"childNum": 2
}
}, {
"id": "520000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@†G\\†lY£‘in"], ["@@q‚|ˆ‚mc¯tχVSÎ"], ["@@hÑ£Is‡NgßH†›HªķÃh_¹ƒ¡ĝħń¦uيùŽgS¯JHŸ|sÝÅtÁïyMDč»eÕtA¤{b\\}—ƒG®u\\åPFq‹wÅaD…žK°ºâ_£ùbµ”mÁ‹ÛœĹM[q|hlaªāI}тƒµ@swtwm^oµˆD鼊yV™ky°ÉžûÛR…³‚‡eˆ‡¥]RՋěħ[ƅåÛDpŒ”J„iV™™‰ÂF²I…»mN·£›LbÒYb—WsÀbŽ™pki™TZĄă¶HŒq`……ĥ_JŸ¯ae«ƒKpÝx]aĕÛPƒÇȟ[ÁåŵÏő—÷Pw}‡TœÙ@Õs«ĿÛq©½œm¤ÙH·yǥĘĉBµĨÕnđ]K„©„œá‹ŸG纍§Õßg‡ǗĦTèƤƺ{¶ÉHÎd¾ŚÊ·OÐjXWrãLyzÉAL¾ę¢bĶėy_qMĔąro¼hĊžw¶øV¤w”²Ĉ]ʚKx|`ź¦ÂÈdr„cȁbe¸›`I¼čTF´¼Óýȃr¹ÍJ©k_șl³´_pН`oÒh޶pa‚^ÓĔ}D»^Xyœ`d˜[Kv…JPhèhCrĂĚÂ^Êƌ wˆZL­Ġ£šÁbrzOIl’MM”ĪŐžËr×ÎeŦŽtw|Œ¢mKjSǘňĂStÎŦEtqFT†¾†E쬬ôxÌO¢Ÿ KгŀºäY†„”PVgŎ¦Ŋm޼VZwVlŒ„z¤…ž£Tl®ctĽÚó{G­A‡ŒÇgeš~Αd¿æaSba¥KKûj®_ć^\\ؾbP®¦x^sxjĶI_Ä X‚⼕Hu¨Qh¡À@Ëô}ޱžGNìĎlT¸ˆ…`V~R°tbÕĊ`¸úÛtπFDu€[ƒMfqGH·¥yA‰ztMFe|R‚_Gk†ChZeÚ°to˜v`x‹b„ŒDnÐ{E}šZ˜è€x—†NEފREn˜[Pv@{~rĆAB§‚EO¿|UZ~ì„Uf¨J²ĂÝÆ€‚sª–B`„s¶œfvö¦ŠÕ~dÔq¨¸º»uù[[§´sb¤¢zþFœ¢Æ…Àhˆ™ÂˆW\\ıŽËI݊o±ĭŠ£þˆÊs}¡R]ŒěƒD‚g´VG¢‚j±®è†ºÃmpU[Á›‘Œëº°r›ÜbNu¸}Žº¼‡`ni”ºÔXĄ¤¼Ôdaµ€Á_À…†ftQQgœR—‘·Ǔ’v”}Ýלĵ]µœ“Wc¤F²›OĩųãW½¯K‚©…]€{†LóµCIµ±Mß¿hŸ•©āq¬o‚½ž~@i~TUxŪÒ¢@ƒ£ÀEîôruń‚”“‚b[§nWuMÆLl¿]x}ij­€½"]],
"encodeOffsets": [[[112158, 27383]], [[112105, 27474]], [[112095, 27476]]]
},
"properties": {
"cp": [106.713478, 26.578343],
"name": "贵州",
"childNum": 3
}
}, {
"id": "530000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@[„ùx½}ÑRH‘YīĺûsÍn‘iEoã½Ya²ė{c¬ĝg•ĂsA•ØÅwď‚õzFjw}—«Dx¿}UũlŸê™@•HÅ­F‰¨ÇoJ´Ónũuą¡Ã¢pÒŌ“Ø TF²‚xa²ËX€‚cʋlHîAßËŁkŻƑŷÉ©h™W­æßU‡“Ës¡¦}•teèÆ¶StǀÇ}Fd£j‹ĈZĆÆ‹¤T‚č\\Dƒ}O÷š£Uˆ§~ŃG™‚åŃDĝ¸œTsd¶¶Bªš¤u¢ŌĎo~t¾ÍŶÒtD¦Ú„iôö‰€z›ØX²ghįh½Û±¯€ÿm·zR¦Ɵ`ªŊÃh¢rOԍ´£Ym¼èêf¯ŪĽn„†cÚbŒw\\zlvWžªâˆ ¦g–mĿBş£¢ƹřbĥkǫßeeZkÙIKueT»sVesb‘aĕ  ¶®dNœĄÄpªyސ¼—„³BE˜®l‡ŽGœŭCœǶwêżĔÂe„pÍÀQƞpC„–¼ŲÈ­AÎô¶R„ä’Q^Øu¬°š_Èôc´¹ò¨P΢hlϦ´Ħ“Æ´sâDŽŲPnÊD^¯°’Upv†}®BP̪–jǬx–Söwlfòªv€qĸ|`H€­viļ€ndĜ­Ćhň•‚em·FyށqóžSᝑ³X_ĞçêtryvL¤§z„¦c¦¥jnŞk˜ˆlD¤øz½ĜàžĂŧMÅ|áƆàÊcðÂF܎‚áŢ¥\\\\º™İøÒÐJĴ‡„îD¦zK²ǏÎEh~’CD­hMn^ÌöÄ©ČZÀžaü„fɭyœpį´ěFűk]Ôě¢qlÅĆÙa¶~Äqššê€ljN¬¼H„ÊšNQ´ê¼VظE††^ŃÒyŒƒM{ŒJLoÒœęæŸe±Ķ›y‰’‡gã“¯JYÆĭĘëo¥Š‰o¯hcK«z_pŠrC´ĢÖY”—¼ v¸¢RŽÅW³Â§fǸYi³xR´ďUˊ`êĿU„û€uĆBƒƣö‰N€DH«Ĉg†——Ñ‚aB{ÊNF´¬c·Åv}eÇÃGB»”If•¦HňĕM…~[iwjUÁKE•Ž‹¾dĪçW›šI‹èÀŒoÈXòyŞŮÈXâÎŚŠj|àsRy‹µÖ›–Pr´þŒ ¸^wþTDŔ–Hr¸‹žRÌmf‡żÕâCôox–ĜƌÆĮŒ›Ð–œY˜tâŦÔ@]ÈǮƒ\\μģUsȯLbîƲŚºyh‡rŒŠ@ĒԝƀŸÀ²º\\êp“’JŠ}ĠvŠqt„Ġ@^xÀ£È†¨mËÏğ}n¹_¿¢×Y_æpˆÅ–A^{½•Lu¨GO±Õ½ßM¶w’ÁĢۂP‚›Ƣ¼pcIJxŠ|ap̬HšÐŒŊSfsðBZ¿©“XÏÒK•k†÷Eû¿‰S…rEFsÕūk”óVǥʼniTL‚¡n{‹uxţÏh™ôŝ¬ğōN“‘NJkyPaq™Âğ¤K®‡YŸxÉƋÁ]āęDqçgOg†ILu—\\_gz—]W¼ž~CÔē]bµogpў_oď`´³Țkl`IªºÎȄqÔþž»E³ĎSJ»œ_f·‚adÇqƒÇc¥Á_Źw{™L^ɱćx“U£µ÷xgĉp»ĆqNē`rĘzaĵĚ¡K½ÊBzyäKXqiWPÏɸ½řÍcÊG|µƕƣG˛÷Ÿk°_^ý|_zċBZocmø¯hhcæ\\lˆMFlư£Ĝ„ÆyH“„F¨‰µêÕ]—›HA…àӄ^it `þßäkŠĤÎT~Wlÿ¨„ÔPzUC–NVv [jâôDôď[}ž‰z¿–msSh‹¯{jïğl}šĹ[–őŒ‰gK‹©U·µË@¾ƒm_~q¡f¹…ÅË^»‘f³ø}Q•„¡Ö˳gͱ^ǁ…\\ëÃA_—¿bW›Ï[¶ƛ鏝£F{īZgm@|kHǭƁć¦UĔťƒ×ë}ǝƒeďºȡȘÏíBə£āĘPªij¶“ʼnÿ‡y©n‰ď£G¹¡I›Š±LÉĺÑdĉ܇W¥˜‰}g˜Á†{aqÃ¥aŠıęÏZ—ï`"],
"encodeOffsets": [[104636, 22969]]
},
"properties": {
"cp": [101.512251, 24.740609],
"name": "云南",
"childNum": 1
}
}, {
"id": "540000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@hžľxŽŖ‰xƒÒVކºÅâAĪÝȆµę¯Ňa±r_w~uSÕň‘qOj]ɄQ…£Z……UDûoY’»©M[‹L¼qãË{V͕çWViŽ]ë©Ä÷àyƛh›ÚU°ŒŒa”d„cQƒ~Mx¥™cc¡ÙaSyF—ցk­ŒuRýq¿Ôµ•QĽ³aG{¿FµëªéĜÿª@¬·–K‰·àariĕĀ«V»Ŷ™Ĵū˜gèLǴŇƶaf‹tŒèBŚ£^Šâ†ǐÝ®–šM¦ÁǞÿ¬LhŸŽJ¾óƾƺcxw‹f]Y…´ƒ¦|œQLn°aœdĊ…œ\\¨o’œǀÍŎœ´ĩĀd`tÊQŞŕ|‚¨C^©œĈ¦„¦ÎJĊ{ŽëĎjª²rЉšl`¼Ą[t|¦St辉PŒÜK¸€d˜Ƅı]s¤—î_v¹ÎVòŦj˜£Əsc—¬_Ğ´|٘¦Avަw`ăaÝaa­¢e¤ı²©ªSªšÈMĄwžÉØŔì@T‘¤—Ę™\\õª@”þo´­xA s”ÂtŎKzó´ÇĊµ¢rž^nĊ­Æ¬×üGž¢‚³ {âĊ]š™G‚~bÀgVjzlhǶf€žOšfdЉªB]pj„•TO–tĊ‚n¤}®¦ƒČ¥d¢¼»ddš”Y¼Žt—¢eȤJ¤}Ǿ¡°§¤AГlc@ĝ”sªćļđAç‡wx•UuzEÖġ~AN¹ÄÅȀݦ¿ģŁéì±H…ãd«g[؉¼ēÀ•cīľġ¬cJ‘µ…ÐʥVȝ¸ßS¹†ý±ğkƁ¼ą^ɛ¤Ûÿ‰b[}¬ōõÃ]ËNm®g@•Bg}ÍF±ǐyL¥íCˆƒIij€Ï÷њį[¹¦[⚍EÛïÁÉdƅß{âNÆāŨߝ¾ě÷yC£‡k­´ÓH@¹†TZ¥¢įƒ·ÌAЧ®—Zc…v½ŸZ­¹|ŕWZqgW“|ieZÅYVӁqdq•bc²R@†c‡¥Rã»Ge†ŸeƃīQ•}J[ғK…¬Ə|o’ėjġĠÑN¡ð¯EBčnwôɍėªƒ²•CλŹġǝʅįĭạ̃ūȹ]ΓͧgšsgȽóϧµǛ†ęgſ¶ҍć`ĘąŌJޚä¤rÅň¥ÖÁUětęuůÞiĊÄÀ\\Æs¦ÓRb|Â^řÌkÄŷ¶½÷‡f±iMݑ›‰@ĥ°G¬ÃM¥n£Øą‚ğ¯ß”§aëbéüÑOčœk£{\\‘eµª×M‘šÉfm«Ƒ{Å׃Gŏǩãy³©WÑăû‚··‘Q—òı}¯ã‰I•éÕÂZ¨īès¶ZÈsŽæĔTŘvŽgÌsN@îá¾ó@‰˜ÙwU±ÉT廣TđŸWxq¹Zo‘b‹s[׌¯cĩv‡Œėŧ³BM|¹k‰ªħ—¥TzNYnݍßpęrñĠĉRS~½ŠěVVе‚õ‡«ŒM££µB•ĉ¥áºae~³AuĐh`Ü³ç@BۘïĿa©|z²Ý¼D”£à貋ŸƒIƒû›I ā€óK¥}rÝ_Á´éMaň¨€~ªSĈ½Ž½KÙóĿeƃÆBŽ·¬ën×W|Uº}LJrƳ˜lŒµ`bÔ`QˆˆÐÓ@s¬ñIŒÍ@ûws¡åQÑßÁ`ŋĴ{Ī“T•ÚÅTSij‚‹Yo|Ç[ǾµMW¢ĭiÕØ¿@˜šMh…pÕ]j†éò¿OƇĆƇp€êĉâlØw–ěsˆǩ‚ĵ¸c…bU¹ř¨WavquSMzeo_^gsÏ·¥Ó@~¯¿RiīB™Š\\”qTGªÇĜçPoŠÿfñòą¦óQīÈáP•œābß{ƒZŗĸIæÅ„hnszÁCËìñšÏ·ąĚÝUm®ó­L·ăU›Èíoù´Êj°ŁŤ_uµ^‘°Œìǖ@tĶĒ¡Æ‡M³Ģ«˜İĨÅ®ğ†RŽāð“ggheÆ¢z‚Ê©Ô\\°ÝĎz~ź¤Pn–MĪÖB£Ÿk™n鄧żćŠ˜ĆK„ǰ¼L¶è‰âz¨u¦¥LDĘz¬ýÎmĘd¾ß”Fz“hg²™Fy¦ĝ¤ċņbΛ@y‚Ąæm°NĮZRÖíŽJ²öLĸÒ¨Y®ƌÐV‰à˜tt_ڀÂyĠzž]Ţh€zĎ{†ĢX”ˆc|šÐqŽšfO¢¤ög‚ÌHNŽ„PKŖœŽ˜Uú´xx[xˆvĐCûŠìÖT¬¸^}Ìsòd´_އKgžLĴ…ÀBon|H@–Êx˜—¦BpŰˆŌ¿fµƌA¾zLjRxжF”œkĄźRzŀˆ~¶[”´Hnª–VƞuĒ­È¨ƎcƽÌm¸ÁÈM¦x͊ëÀxdžB’šú^´W†£–d„kɾĬpœw‚˂ØɦļĬIŚœÊ•n›Ŕa¸™~J°î”lɌxĤÊÈðhÌ®‚g˜T´øŽàCˆŽÀ^ªerrƘdž¢İP|Ė ŸWœªĦ^¶´ÂL„aT±üWƜ˜ǀRšŶUńšĖ[QhlLüA†‹Ü\\†qR›Ą©"],
"encodeOffsets": [[90849, 37210]]
},
"properties": {
"cp": [89.132212, 30.860361],
"name": "西藏",
"childNum": 1
}
}, {
"id": "610000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@˜p¢—ȮµšûG™Ħ}Ħšðǚ¶òƄ€jɂz°{ºØkÈęâ¦jª‚Bg‚\\œċ°s¬Ž’]jžú ‚E”Ȍdž¬s„t‡”RˆÆdĠݎwܔ¸ôW¾ƮłÒ_{’Ìšû¼„jº¹¢GǪÒ¯ĘƒZ`ºŊƒecņąš~BÂgzpâēòYǠȰÌTΨÂWœ|fcŸă§uF—Œ@NŸ¢XLƒŠRMº[ğȣſï|¥J™kc`sʼnǷ’Y¹‹W@µ÷K…ãï³ÛIcñ·VȋڍÒķø©—þ¥ƒy‚ÓŸğęmWµÎumZyOŅƟĥÓ~sÑL¤µaŅY¦ocyZ{‰y c]{ŒTa©ƒ`U_Ěē£ωÊƍKù’K¶ȱÝƷ§{û»ÅÁȹÍéuij|¹cÑd‘ŠìUYƒŽO‘uF–ÕÈYvÁCqӃT•Ǣí§·S¹NgŠV¬ë÷Át‡°Dد’C´ʼnƒópģ}„ċcE˅FŸŸéGU¥×K…§­¶³B‹Č}C¿åċ`wġB·¤őcƭ²ő[Å^axwQO…ÿEËߌ•ĤNĔŸwƇˆÄŠńwĪ­Šo[„_KÓª³“ÙnK‰Çƒěœÿ]ď€ă_d©·©Ýŏ°Ù®g]±„Ÿ‡ß˜å›—¬÷m\\›iaǑkěX{¢|ZKlçhLt€Ňîŵ€œè[€É@ƉĄEœ‡tƇÏ˜³­ħZ«mJ…›×¾‘MtÝĦ£IwÄå\\Õ{‡˜ƒOwĬ©LÙ³ÙgBƕŀr̛ĢŭO¥lãyC§HÍ£ßEñŸX¡—­°ÙCgpťz‘ˆb`wI„vA|§”‡—hoĕ@E±“iYd¥OϹS|}F@¾oAO²{tfžÜ—¢Fǂ҈W²°BĤh^Wx{@„¬‚­F¸¡„ķn£P|ŸªĴ@^ĠĈæb–Ôc¶l˜Yi…–^Mi˜cϰÂ[ä€vï¶gv@À“Ĭ·lJ¸sn|¼u~a]’ÆÈtŌºJp’ƒþ£KKf~ЦUbyäIšĺãn‡Ô¿^­žŵMT–hĠܤko¼Ŏìąǜh`[tŒRd²IJ_œXPrɲ‰l‘‚XžiL§àƒ–¹ŽH˜°Ȧqº®QC—bA†„ŌJ¸ĕÚ³ĺ§ `d¨YjžiZvRĺ±öVKkjGȊĐePОZmļKÀ€‚[ŠŽ`ösìh†ïÎoĬdtKÞ{¬èÒÒBŒÔpIJÇĬJŊ¦±J«ˆY§‹@·pH€µàåVKe›pW†ftsAÅqC·¬ko«pHÆuK@oŸHĆۄķhx“e‘n›S³àǍrqƶRbzy€¸ËАl›¼EºpĤ¼Œx¼½~Ğ’”à@†ÚüdK^ˆmÌSj"],
"encodeOffsets": [[110234, 38774]]
},
"properties": {
"cp": [108.948024, 34.263161],
"name": "陕西",
"childNum": 1
}
}, {
"id": "620000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@VuUv"], ["@@ũ‹EĠtt~nkh`Q‰¦ÅÄÜdw˜Ab×ĠąJˆ¤DüègĺqBqœj°lI¡ĨÒ¤úSHbš‡ŠjΑBаaZˆ¢KJŽ’O[|A£žDx}Nì•HUnrk„ kp€¼Y kMJn[aG‚áÚÏ[½rc†}aQxOgsPMnUs‡nc‹Z…ž–sKúvA›t„Þġ’£®ĀYKdnFwš¢JE°”Latf`¼h¬we|€Æ‡šbj}GA€·~WŽ”—`†¢MC¤tL©IJ°qdf”O‚“bÞĬ¹ttu`^ZúE`Œ[@„Æsîz®¡’C„ƳƜG²“R‘¢R’m”fŽwĸg܃‚ą G@pzJM½mŠhVy¸uÈÔO±¨{LfæU¶ßGĂq\\ª¬‡²I‚¥IʼnÈīoı‹ÓÑAçÑ|«LÝcspīðÍg…të_õ‰\\ĉñLYnĝg’ŸRǡÁiHLlõUĹ²uQjYi§Z_c¨Ÿ´ĹĖÙ·ŋI…ƒaBD˜­R¹ȥr—¯G•ºß„K¨jWk’ɱŠOq›Wij\\a­‹Q\\sg_ĆǛōëp»£lğۀgS•ŶN®À]ˆÓäm™ĹãJaz¥V}‰Le¤L„ýo‘¹IsŋÅÇ^‘Žbz…³tmEÁ´aйcčecÇN•ĊãÁ\\蝗dNj•]j†—ZµkÓda•ćå]ğij@ ©O{¤ĸm¢ƒE·®ƒ«|@Xwg]A챝‡XǁÑdzªc›wQÚŝñsÕ³ÛV_ýƒ˜¥\\ů¥©¾÷w—Ž©WÕÊĩhÿÖÁRo¸V¬âDb¨šhûx–Ê×nj~Zâƒg|šXÁnßYoº§ZÅŘvŒ[„ĭÖʃuďxcVbnUSf…B¯³_Tzº—ΕO©çMÑ~Mˆ³]µ^püµ”ŠÄY~y@X~¤Z³€[Èōl@®Å¼£QKƒ·Di‹¡By‘ÿ‰Q_´D¥hŗyƒ^ŸĭÁZ]cIzý‰ah¹MĪğP‘s{ò‡‹‘²Vw¹t³Ŝˁ[ŽÑ}X\\gsFŸ£sPAgěp×ëfYHāďÖqēŭOÏë“dLü•\\iŒ”t^c®šRʺ¶—¢H°mˆ‘rYŸ£BŸ¹čIoľu¶uI]vģSQ{ƒUŻ”Å}QÂ|̋°ƅ¤ĩŪU ęĄžÌZҞ\\v˜²PĔ»ƢNHƒĂyAmƂwVmž`”]ȏb•”H`‰Ì¢²ILvĜ—H®¤Dlt_„¢JJÄämèÔDëþgºƫ™”aʎÌrêYi~ ÎݤNpÀA¾Ĕ¼b…ð÷’Žˆ‡®‚”üs”zMzÖĖQdȨý†v§Tè|ªH’þa¸|šÐ ƒwKĢx¦ivr^ÿ ¸l öæfƟĴ·PJv}n\\h¹¶v†·À|\\ƁĚN´Ĝ€çèÁz]ġ¤²¨QÒŨTIl‡ªťØ}¼˗ƦvÄùØE‹’«Fï˛Iq”ōŒTvāÜŏ‚íÛߜÛV—j³âwGăÂíNOŠˆŠPìyV³ʼnĖýZso§HіiYw[߆\\X¦¥c]ÔƩÜ·«j‡ÐqvÁ¦m^ċ±R™¦΋ƈťĚgÀ»IïĨʗƮްƝ˜ĻþÍAƉſ±tÍEÕÞāNU͗¡\\ſčåÒʻĘm ƭÌŹöʥ’ëQ¤µ­ÇcƕªoIýˆ‰Iɐ_mkl³ă‰Ɠ¦j—¡Yz•Ňi–}Msßõ–īʋ —}ƒÁVmŸ_[n}eı­Uĥ¼‘ª•I{ΧDӜƻėoj‘qYhĹT©oūĶ£]ďxĩ‹ǑMĝ‰q`B´ƃ˺Ч—ç~™²ņj@”¥@đ´ί}ĥtPńǾV¬ufӃÉC‹tÓ̻‰…¹£G³€]ƖƾŎĪŪĘ̖¨ʈĢƂlɘ۪üºňUðǜȢƢż̌ȦǼ‚ĤŊɲĖ­Kq´ï¦—ºĒDzņɾªǀÞĈĂD†½ĄĎÌŗĞrôñnŽœN¼â¾ʄľԆ|DŽŽ֦ज़ȗlj̘̭ɺƅêgV̍ʆĠ·ÌĊv|ýĖÕWĊǎÞ´õ¼cÒÒBĢ͢UĜð͒s¨ňƃLĉÕÝ@ɛƯ÷¿Ľ­ĹeȏijëCȚDŲyê×Ŗyò¯ļcÂßY…tÁƤyAã˾J@ǝrý‹‰@¤…rz¸oP¹ɐÚyᐇHŸĀ[Jw…cVeȴϜ»ÈŽĖ}ƒŰŐèȭǢόĀƪÈŶë;Ñ̆ȤМľĮEŔ—ĹŊũ~ËUă{ŸĻƹɁύȩþĽvĽƓÉ@ē„ĽɲßǐƫʾǗĒpäWÐxnsÀ^ƆwW©¦cÅ¡Ji§vúF¶Ž¨c~c¼īŒeXǚ‹\\đ¾JŽwÀďksãA‹fÕ¦L}wa‚o”Z’‹D½†Ml«]eÒÅaɲáo½FõÛ]ĻÒ¡wYR£¢rvÓ®y®LF‹LzĈ„ôe]gx}•|KK}xklL]c¦£fRtív¦†PĤoH{tK"]],
"encodeOffsets": [[[108619, 36299]], [[108589, 36341]]]
},
"properties": {
"cp": [103.823557, 36.058039],
"name": "甘肃",
"childNum": 2
}
}, {
"id": "630000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@InJm"], ["@@CƒÆ½OŃĦsΰ~dz¦@@“Ņiš±è}ؘƄ˹A³r_ĞŠǒNΌĐw¤^ŬĵªpĺSZg’rpiƼĘԛ¨C|͖J’©Ħ»®VIJ~f\\m `Un„˜~ʌŸ•ĬàöNt•~ňjy–¢Zi˜Ɣ¥ĄŠk´nl`JʇŠJþ©pdƖ®È£¶ìRʦ‘źõƮËnŸʼėæÑƀĎ[‚˜¢VÎĂMÖÝÎF²sƊƀÎBļýƞ—¯ʘƭðħ¼Jh¿ŦęΌƇš¥²Q]Č¥nuÂÏriˆ¸¬ƪÛ^Ó¦d€¥[Wà…x\\ZŽjҕ¨GtpþYŊĕ´€zUO뇉P‰îMĄÁxH´á˜iÜUà›îÜՁĂÛSuŎ‹r“œJð̬EŒ‘FÁú×uÃÎkr“Ē{V}İ«O_ÌËĬ©ŽÓŧSRѱ§Ģ£^ÂyèçěM³Ƃę{[¸¿u…ºµ[gt£¸OƤĿéYŸõ·kŸq]juw¥Dĩƍ€õÇPéĽG‘ž©ã‡¤G…uȧþRcÕĕNy“yût“ˆ­‡ø‘†ï»a½ē¿BMoᣟÍj}éZËqbʍš“Ƭh¹ìÿÓAçãnIáI`ƒks£CG­ě˜Uy×Cy•…’Ÿ@¶ʡÊBnāzG„ơMē¼±O÷õJËĚăVŸĪũƆ£Œ¯{ËL½Ìzż“„VR|ĠTbuvJvµhĻĖH”Aëáa…­OÇðñęNw‡…œľ·L›mI±íĠĩPÉ×®ÿs—’cB³±JKßĊ«`…ađ»·QAmO’‘Vţéÿ¤¹SQt]]Çx€±¯A@ĉij¢Ó祖•ƒl¶ÅÛr—ŕspãRk~¦ª]Į­´“FR„åd­ČsCqđéFn¿Åƃm’Éx{W©ºƝºįkÕƂƑ¸wWūЩÈFž£\\tÈ¥ÄRÈýÌJ ƒlGr^×äùyÞ³fj”c†€¨£ÂZ|ǓMĝšÏ@ëÜőR‹›ĝ‰Œ÷¡{aïȷPu°ËXÙ{©TmĠ}Y³’­ÞIňµç½©C¡į÷¯B»|St»›]vƒųƒs»”}MÓ ÿʪƟǭA¡fs˜»PY¼c¡»¦c„ċ­¥£~msĉP•–Siƒ^o©A‰Šec‚™PeǵŽkg‚yUi¿h}aH™šĉ^|ᴟ¡HØûÅ«ĉ®]m€¡qĉ¶³ÈyôōLÁst“BŸ®wn±ă¥HSò뚣˜S’ë@לÊăxÇN©™©T±ª£IJ¡fb®ÞbŽb_Ą¥xu¥B—ž{łĝ³«`d˜Ɛt—¤ťiñžÍUuºí`£˜^tƃIJc—·ÛLO‹½Šsç¥Ts{ă\\_»™kϊ±q©čiìĉ|ÍIƒ¥ć¥›€]ª§D{ŝŖÉR_sÿc³Īō›ƿΑ›§p›[ĉ†›c¯bKm›R¥{³„Z†e^ŽŒwx¹dƽŽôIg §Mĕ ƹĴ¿—ǣÜ̓]‹Ý–]snåA{‹eŒƭ`ǻŊĿ\\ijŬű”YÂÿ¬jĖqŽßbЏ•L«¸©@ěĀ©ê¶ìÀEH|´bRľž–Ó¶rÀQþ‹vl®Õ‚E˜TzÜdb ˜hw¤{LR„ƒd“c‹b¯‹ÙVgœ‚ƜßzÃô쮍^jUèXΖ|UäÌ»rKŽ\\ŒªN‘¼pZCü†VY††¤ɃRi^rPҒTÖ}|br°qňb̰ªiƶGQ¾²„x¦PœmlŜ‘[Ĥ¡ΞsĦŸÔÏâ\\ªÚŒU\\f…¢N²§x|¤§„xĔsZPòʛ²SÐqF`ª„VƒÞŜĶƨVZŒÌL`ˆ¢dŐIqr\\oäõ–F礻Ŷ×h¹]Clـ\\¦ďÌį¬řtTӺƙgQÇÓHţĒ”´ÃbEÄlbʔC”|CˆŮˆk„Ʈ[ʼ¬ňœ´KŮÈΰÌζƶlð”ļA†TUvdTŠG†º̼ŠÔ€ŒsÊDԄveOg"]],
"encodeOffsets": [[[105308, 37219]], [[95370, 40081]]]
},
"properties": {
"cp": [96.778916, 35.623178],
"name": "青海",
"childNum": 2
}
}, {
"id": "640000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@KëÀęĞ«OęȿȕŸı]ʼn¡åįÕÔ«Ǵõƪ™ĚQÐZhv K°›öqÀѐS[ÃÖHƖčË‡nL]ûc…Ùß@‚“ĝ‘¾}w»»‹oģF¹œ»kÌÏ·{zPƒ§B­¢íyÅt@ƒ@áš]Yv_ssģ¼i߁”ĻL¾ġsKD£¡N_…“˜X¸}B~Haiˆ™Åf{«x»ge_bs“KF¯¡Ix™mELcÿZ¤­Ģ‘ƒÝœsuBLù•t†ŒYdˆmVtNmtOPhRw~bd…¾qÐ\\âÙH\\bImlNZŸ»loƒŸqlVm–Gā§~QCw¤™{A\\‘PKŸNY‡¯bF‡kC¥’sk‹Šs_Ã\\ă«¢ħkJi¯r›rAhĹûç£CU‡ĕĊ_ԗBixÅُĄnªÑaM~ħpOu¥sîeQ¥¤^dkKwlL~{L~–hw^‚ófćƒKyEŒ­K­zuÔ¡qQ¤xZÑ¢^ļöܾEpž±âbÊÑÆ^fk¬…NC¾‘Œ“YpxbK~¥Že֎ŒäBlt¿Đx½I[ĒǙŒWž‹f»Ĭ}d§dµùEuj¨‚IÆ¢¥dXªƅx¿]mtÏwßR͌X¢͎vÆzƂZò®ǢÌʆCrâºMÞzžÆMҔÊÓŊZľ–r°Î®Ȉmª²ĈUªĚøºˆĮ¦ÌĘk„^FłĬhĚiĀ˾iİbjÕ"], ["@@mfwěwMrŢªv@G‰"]],
"encodeOffsets": [[[109366, 40242]], [[108600, 36303]]]
},
"properties": {
"cp": [106.278179, 37.26637],
"name": "宁夏",
"childNum": 2
}
}, {
"id": "650000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@QØĔ²X¨”~ǘBºjʐߨvK”ƔX¨vĊOžÃƒ·¢i@~c—‡ĝe_«”Eš“}QxgɪëÏÃ@sÅyXoŖ{ô«ŸuX…ê•Îf`œC‚¹ÂÿÐGĮÕĞXŪōŸMźÈƺQèĽôe|¿ƸJR¤ĘEjcUóº¯Ĩ_ŘÁMª÷Ð¥Oéȇ¿ÖğǤǷÂF҇zÉx[]­Ĥĝ‰œ¦EP}ûƥé¿İƷTėƫœŕƅ™ƱB»Đ±’ēO…¦E–•}‘`cȺrĦáŖuҞª«IJ‡πdƺÏØZƴwʄ¤ĖGЙǂZ̓èH¶}ÚZצʥĪï|ÇĦMŔ»İĝLj‹ì¥Βœba­¯¥ǕǚkĆŵĦɑĺƯxūД̵nơʃĽá½M»›òmqóŘĝč˾ăC…ćāƿÝɽ©DZŅ¹đ¥˜³ðLrÁ®ɱĕģʼnǻ̋ȥơŻǛȡVï¹Ň۩ûkɗġƁ§ʇė̕ĩũƽō^ƕŠUv£ƁQï“Ƶkŏ½ΉÃŭdzLқʻ«ƭ\\lƒ‡ŭD‡“{ʓDkaFÃÄa“³ŤđÔGRÈƚhSӹŚsİ«ĐË[¥ÚDkº^Øg¼ŵ¸£EÍö•€ůʼnT¡c_‡ËKY‹ƧUśĵ„݃U_©rETÏʜ±OñtYw獃{£¨uM³x½şL©Ùá[ÓÐĥ Νtģ¢\\‚ś’nkO›w¥±ƒT»ƷFɯàĩÞáB¹Æ…ÑUw„੍žĽw[“mG½Èå~‡Æ÷QyŠěCFmĭZī—ŵVÁ™ƿQƛ—ûXS²‰b½KϽĉS›©ŷXĕŸ{ŽĕK·¥Ɨcqq©f¿]‡ßDõU³h—­gËÇïģÉɋw“k¯í}I·šœbmœÉ–ř›īJɥĻˁ×xo›ɹī‡l•c…¤³Xù]‘™DžA¿w͉ì¥wÇN·ÂËnƾƍdǧđ®Ɲv•Um©³G\\“}µĿ‡QyŹl㓛µEw‰LJQ½yƋBe¶ŋÀů‡ož¥A—˜Éw@•{Gpm¿Aij†ŽKLhˆ³`ñcËtW‚±»ÕS‰ëüÿďD‡u\\wwwù³—V›LŕƒOMËGh£õP¡™er™Ïd{“‡ġWÁ…č|yšg^ğyÁzÙs`—s|ÉåªÇ}m¢Ń¨`x¥’ù^•}ƒÌ¥H«‰Yªƅ”Aйn~Ꝛf¤áÀz„gŠÇDIԝ´AňĀ҄¶ûEYospõD[{ù°]u›Jq•U•|Soċxţ[õÔĥkŋÞŭZ˺óYËüċrw €ÞkrťË¿XGÉbřaDü·Ē÷Aê[Ää€I®BÕИÞ_¢āĠpŠÛÄȉĖġDKwbm‡ÄNô‡ŠfœƫVÉvi†dz—H‘‹QµâFšù­Âœ³¦{YGžƒd¢ĚÜO „€{Ö¦ÞÍÀPŒ^b–ƾŠlŽ[„vt×ĈÍE˨¡Đ~´î¸ùÎh€uè`¸ŸHÕŔVºwĠââWò‡@{œÙNÝ´ə²ȕn{¿¥{l—÷eé^e’ďˆXj©î\\ªÑò˜Üìc\\üqˆÕ[Č¡xoÂċªbØ­Œø|€¶ȴZdÆÂšońéŒGš\\”¼C°ÌƁn´nxšÊOĨ’ہƴĸ¢¸òTxÊǪMīИÖŲÃɎOvˆʦƢ~FއRěò—¿ġ~åŊœú‰Nšžš¸qŽ’Ę[Ĕ¶ÂćnÒPĒÜvúĀÊbÖ{Äî¸~Ŕünp¤ÂH¾œĄYÒ©ÊfºmԈĘcDoĬMŬ’˜S¤„s²‚”ʘچžȂVŦ –ŽèW°ªB|IJXŔþÈJĦÆæFĚêŠYĂªĂ]øªŖNÞüA€’fɨJ€˜¯ÎrDDšĤ€`€mz\\„§~D¬{vJÂ˜«lµĂb–¤p€ŌŰNĄ¨ĊXW|ų ¿¾ɄĦƐMT”‡òP˜÷fØĶK¢ȝ˔Sô¹òEð­”`Ɩ½ǒÂň×äı–§ĤƝ§C~¡‚hlå‚ǺŦŞkâ’~}ŽFøàIJaĞ‚fƠ¥Ž„Ŕdž˜®U¸ˆźXœv¢aƆúŪtŠųƠjd•ƺŠƺÅìnrh\\ĺ¯äɝĦ]èpĄ¦´LƞĬŠ´ƤǬ˼Ēɸ¤rºǼ²¨zÌPðŀbþ¹ļD¢¹œ\\ĜÑŚŸ¶ZƄ³àjĨoâŠȴLʉȮŒĐ­ĚăŽÀêZǚŐ¤qȂ\\L¢ŌİfÆs|zºeªÙæ§΢{Ā´ƐÚ¬¨Ĵà²łhʺKÞºÖTŠiƢ¾ªì°`öøu®Ê¾ãØ"],
"encodeOffsets": [[88824, 50096]]
},
"properties": {
"cp": [85.617733, 40.792818],
"name": "新疆",
"childNum": 1
}
}, {
"id": "110000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@ĽOÁ›ûtŷmiÍt_H»Ĩ±d`й­{bw…Yr“³S]§§o¹€qGtm_Sŧ€“oa›‹FLg‘QN_•dV€@Zom_ć\\ߚc±x¯oœRcfe…£’o§ËgToÛJíĔóu…|wP¤™XnO¢ÉˆŦ¯rNÄā¤zâŖÈRpŢZŠœÚ{GŠrFt¦Òx§ø¹RóäV¤XdˆżâºWbwڍUd®bêņ¾‘jnŎGŃŶŠnzÚSeîĜZczî¾i]͜™QaúÍÔiþĩȨWĢ‹ü|Ėu[qb[swP@ÅğP¿{\\‡¥A¨Ï‘Ѩj¯ŠX\\¯œMK‘pA³[H…īu}}"],
"encodeOffsets": [[120023, 41045]]
},
"properties": {
"cp": [116.405285, 39.904989],
"name": "北京",
"childNum": 1
}
}, {
"id": "120000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@ŬgX§Ü«E…¶Ḟ“¬O_™ïlÁg“z±AXe™µÄĵ{¶]gitgšIj·›¥îakS€‰¨ÐƎk}ĕ{gB—qGf{¿a†U^fI“ư‹³õ{YƒıëNĿžk©ïËZŏ‘R§òoY×Ógc…ĥs¡bġ«@dekąI[nlPqCnp{ˆō³°`{PNdƗqSÄĻNNâyj]äžÒD ĬH°Æ]~¡HO¾ŒX}ÐxŒgp“gWˆrDGˆŒpù‚Š^L‚ˆrzWxˆZ^¨´T\\|~@I‰zƒ–bĤ‹œjeĊªz£®Ĕvě€L†mV¾Ô_ȔNW~zbĬvG†²ZmDM~”~"],
"encodeOffsets": [[120237, 41215]]
},
"properties": {
"cp": [117.190182, 39.125596],
"name": "天津",
"childNum": 1
}
}, {
"id": "310000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@ɧư¬EpƸÁxc‡"], ["@@©„ªƒ"], ["@@”MA‹‘š"], ["@@Qp݁E§ÉC¾"], ["@@bŝՕÕEȣÚƥêImɇǦèÜĠŒÚžÃƌÃ͎ó"], ["@@ǜûȬɋŠŭ™×^‰sYŒɍDŋ‘ŽąñCG²«ªč@h–_p¯A{‡oloY€¬j@IJ`•gQڛhr|ǀ^MIJvtbe´R¯Ô¬¨YŽô¤r]ì†Ƭį"]],
"encodeOffsets": [[[124702, 32062]], [[124547, 32200]], [[124808, 31991]], [[124726, 32110]], [[124903, 32376]], [[124438, 32149]]]
},
"properties": {
"cp": [121.472644, 31.231706],
"name": "上海",
"childNum": 6
}
}, {
"id": "500000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@vjG~nGŘŬĶȂƀƾ¹¸ØÎezĆT¸}êЖqHŸðqĖ䒊¥^CƒIj–²p…\\_ æüY|[YxƊæuž°xb®…Űb@~¢NQt°¶‚S栓Ê~rljĔëĚ¢~šuf`‘‚†fa‚ĔJåĊ„nÖ]„jƎćÊ@Š£¾a®£Ű{ŶĕF‹ègLk{Y|¡ĜWƔtƬJÑxq‹±ĢN´‰òK‰™–LÈüD|s`ŋ’ć]ƒÃ‰`đŒMûƱ½~Y°ħ`ƏíW‰½eI‹½{aŸ‘OIrÏ¡ĕŇa†p†µÜƅġ‘œ^ÖÛbÙŽŏml½S‹êqDu[R‹ãË»†ÿw`»y‘¸_ĺę}÷`M¯ċfCVµqʼn÷Z•gg“Œ`d½pDO‡ÎCnœ^uf²ènh¼WtƏxRGg¦…pV„†FI±ŽG^ŒIc´ec‡’G•ĹÞ½sëĬ„h˜xW‚}Kӈe­Xsbk”F¦›L‘ØgTkïƵNï¶}Gy“w\\oñ¡nmĈzjŸ•@™Óc£»Wă¹Ój“_m»ˆ¹·~MvÛaqœ»­‰êœ’\\ÂoVnŽÓØÍ™²«‹bq¿efE „€‹Ĝ^Qž~ Évý‡ş¤²Į‰pEİ}zcĺƒL‹½‡š¿gņ›¡ýE¡ya£³t\\¨\\vú»¼§·Ñr_oÒý¥u‚•_n»_ƒ•At©Þűā§IVeëƒY}{VPÀFA¨ąB}q@|Ou—\\Fm‰QF݅Mw˜å}]•€|FmϋCaƒwŒu_p—¯sfÙgY…DHl`{QEfNysBЦzG¸rHe‚„N\\CvEsÐùÜ_·ÖĉsaQ¯€}_U‡†xÃđŠq›NH¬•Äd^ÝŰR¬ã°wećJEž·vÝ·Hgƒ‚éFXjÉê`|yŒpxkAwœWĐpb¥eOsmzwqChóUQl¥F^laf‹anòsr›EvfQdÁUVf—ÎvÜ^efˆtET¬ôA\\œ¢sJŽnQTjP؈xøK|nBz‰„œĞ»LY‚…FDxӄvr“[ehľš•vN”¢o¾NiÂxGp⬐z›bfZo~hGi’]öF|‰|Nb‡tOMn eA±ŠtPT‡LjpYQ|†SH††YĀxinzDJ€Ìg¢và¥Pg‰_–ÇzII‹€II•„£®S¬„Øs쐣ŒN"], ["@@ifjN@s"]],
"encodeOffsets": [[[109628, 30765]], [[111725, 31320]]]
},
"properties": {
"cp": [107.304962, 29.533155],
"name": "重庆",
"childNum": 2
}
}, {
"id": "810000",
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [["@@AlBk"], ["@@mŽn"], ["@@EpFo"], ["@@ea¢pl¸Eõ¹‡hj[ƒ]ÔCΖ@lj˜¡uBXŸ…•´‹AI¹…[‹yDUˆ]W`çwZkmc–…M›žp€Åv›}I‹oJlcaƒfёKްä¬XJmРđhI®æÔtSHn€Eˆ„ÒrÈc"], ["@@rMUw‡AS®€e"]],
"encodeOffsets": [[[117111, 23002]], [[117072, 22876]], [[117045, 22887]], [[116975, 23082]], [[116882, 22747]]]
},
"properties": {
"cp": [114.173355, 22.320048],
"name": "香港",
"childNum": 5
}
}, {
"id": "820000",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": ["@@kÊd°å§s"],
"encodeOffsets": [[116279, 22639]]
},
"properties": {
"cp": [113.54909, 22.198951],
"name": "澳门",
"childNum": 1
}
}],
"UTF8Encoding": true
});
}));

1
public/js/countUp.min.js

@ -0,0 +1 @@
var CountUp=function(target,startVal,endVal,decimals,duration,options){var self=this;self.version=function(){return"1.9.2"};self.options={useEasing:true,useGrouping:true,separator:",",decimal:".",easingFn:easeOutExpo,formattingFn:formatNumber,prefix:"",suffix:"",numerals:[]};if(options&&typeof options==="object"){for(var key in self.options){if(options.hasOwnProperty(key)&&options[key]!==null){self.options[key]=options[key]}}}if(self.options.separator===""){self.options.useGrouping=false}else{self.options.separator=""+self.options.separator}var lastTime=0;var vendors=["webkit","moz","ms","o"];for(var x=0;x<vendors.length&&!window.requestAnimationFrame;++x){window.requestAnimationFrame=window[vendors[x]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[vendors[x]+"CancelAnimationFrame"]||window[vendors[x]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame){window.requestAnimationFrame=function(callback,element){var currTime=new Date().getTime();var timeToCall=Math.max(0,16-(currTime-lastTime));var id=window.setTimeout(function(){callback(currTime+timeToCall)},timeToCall);lastTime=currTime+timeToCall;return id}}if(!window.cancelAnimationFrame){window.cancelAnimationFrame=function(id){clearTimeout(id)}}function formatNumber(num){num=num.toFixed(self.decimals);num+="";var x,x1,x2,x3,i,l;x=num.split(".");x1=x[0];x2=x.length>1?self.options.decimal+x[1]:"";if(self.options.useGrouping){x3="";for(i=0,l=x1.length;i<l;++i){if(i!==0&&((i%3)===0)){x3=self.options.separator+x3}x3=x1[l-i-1]+x3}x1=x3}if(self.options.numerals.length){x1=x1.replace(/[0-9]/g,function(w){return self.options.numerals[+w]});x2=x2.replace(/[0-9]/g,function(w){return self.options.numerals[+w]})}return self.options.prefix+x1+x2+self.options.suffix}function easeOutExpo(t,b,c,d){return c*(-Math.pow(2,-10*t/d)+1)*1024/1023+b}function ensureNumber(n){return(typeof n==="number"&&!isNaN(n))}self.initialize=function(){if(self.initialized){return true}self.error="";self.d=(typeof target==="string")?document.getElementById(target):target;if(!self.d){self.error="[CountUp] target is null or undefined";return false}self.startVal=Number(startVal);self.endVal=Number(endVal);if(ensureNumber(self.startVal)&&ensureNumber(self.endVal)){self.decimals=Math.max(0,decimals||0);self.dec=Math.pow(10,self.decimals);self.duration=Number(duration)*1000||2000;self.countDown=(self.startVal>self.endVal);self.frameVal=self.startVal;self.initialized=true;return true}else{self.error="[CountUp] startVal ("+startVal+") or endVal ("+endVal+") is not a number";return false}};self.printValue=function(value){var result=self.options.formattingFn(value);if(self.d.tagName==="INPUT"){this.d.value=result}else{if(self.d.tagName==="text"||self.d.tagName==="tspan"){this.d.textContent=result}else{this.d.innerHTML=result}}};self.count=function(timestamp){if(!self.startTime){self.startTime=timestamp}self.timestamp=timestamp;var progress=timestamp-self.startTime;self.remaining=self.duration-progress;if(self.options.useEasing){if(self.countDown){self.frameVal=self.startVal-self.options.easingFn(progress,0,self.startVal-self.endVal,self.duration)}else{self.frameVal=self.options.easingFn(progress,self.startVal,self.endVal-self.startVal,self.duration)}}else{if(self.countDown){self.frameVal=self.startVal-((self.startVal-self.endVal)*(progress/self.duration))}else{self.frameVal=self.startVal+(self.endVal-self.startVal)*(progress/self.duration)}}if(self.countDown){self.frameVal=(self.frameVal<self.endVal)?self.endVal:self.frameVal}else{self.frameVal=(self.frameVal>self.endVal)?self.endVal:self.frameVal}self.frameVal=Math.round(self.frameVal*self.dec)/self.dec;self.printValue(self.frameVal);if(progress<self.duration){self.rAF=requestAnimationFrame(self.count)}else{if(self.callback){self.callback()}}};self.start=function(callback){if(!self.initialize()){return}self.callback=callback;self.rAF=requestAnimationFrame(self.count)};self.pauseResume=function(){if(!self.paused){self.paused=true;cancelAnimationFrame(self.rAF)}else{self.paused=false;delete self.startTime;self.duration=self.remaining;self.startVal=self.frameVal;requestAnimationFrame(self.count)}};self.reset=function(){self.paused=false;delete self.startTime;self.initialized=false;if(self.initialize()){cancelAnimationFrame(self.rAF);self.printValue(self.startVal)}};self.update=function(newEndVal){if(!self.initialize()){return}newEndVal=Number(newEndVal);if(!ensureNumber(newEndVal)){self.error="[CountUp] update() - new endVal is not a number: "+newEndVal;return}self.error="";if(newEndVal===self.frameVal){return}cancelAnimationFrame(self.rAF);self.paused=false;delete self.startTime;self.startVal=self.frameVal;self.endVal=newEndVal;self.countDown=(self.startVal>self.endVal);self.rAF=requestAnimationFrame(self.count)};if(self.initialize()){self.printValue(self.startVal)}};

97412
public/js/echarts.js

File diff suppressed because it is too large

22
public/js/echarts.min.js

File diff suppressed because one or more lines are too long

4
public/js/jquery.min.js

File diff suppressed because one or more lines are too long

602
public/js/xadmin.js

@ -0,0 +1,602 @@
;!function (win) {
"use strict";
var doc = document
, Xadmin = function () {
this.v = '2.2'; //版本号
}
Xadmin.prototype.init = function () {
var tab_list = this.get_data();
for (var i in tab_list) {
this.add_lay_tab(tab_list[i].title, tab_list[i].url, i);
}
element.tabChange('xbs_tab', i);
};
/**
* [end 执行结束要做的]
* @return {[type]} [description]
*/
Xadmin.prototype.end = function () {
var cate_list = this.get_cate_data();
for (var i in cate_list) {
if (cate_list[i] != null) {
$('.left-nav #nav li').eq(cate_list[i]).click();
}
}
};
//添加标签
Xadmin.prototype.add_tab = function (title, url, is_refresh) {
var id = md5(url);//md5每个url
//重复点击
for (var i = 0; i < $('.x-iframe').length; i++) {
if ($('.x-iframe').eq(i).attr('tab-id') == id) {
element.tabChange('xbs_tab', id);
if (is_refresh)
$('.x-iframe').eq(i).attr("src", $('.x-iframe').eq(i).attr('src'));
return;
}
}
;
this.add_lay_tab(title, url, id);
this.set_data(title, url, id);
element.tabChange('xbs_tab', id);
};
Xadmin.prototype.del_tab = function (id) {
if (id) {
var id = md5(id);
console.log(88);
parent.element.tabDelete('xbs_tab', id);
} else {
var id = $(window.frameElement).attr('tab-id');
parent.element.tabDelete('xbs_tab', id);
}
};
Xadmin.prototype.add_lay_tab = function (title, url, id) {
element.tabAdd('xbs_tab', {
title: title
,
content: '<iframe tab-id="' + id + '" frameborder="0" src="' + url + '" scrolling="yes" class="x-iframe"></iframe>'
,
id: id
})
}
/**
* [open 打开弹出层]
* @param {[type]} title [弹出层标题]
* @param {[type]} url [弹出层地址]
* @param {[type]} w []
* @param {[type]} h []
* @param {[type]} h [自适应改变屏幕宽度取值]
* @param {Boolean} full [全屏]
* @return {[type]} [description]
*/
Xadmin.prototype.open = function (title, url, w, h, screenWidth, full) {
if (title == null || title == '') {
var title = false;
}
;
if (url == null || url == '') {
var url = "404.html";
}
;
if (w == null || w == '' || screenWidth < 700) {
var w = ($(window).width() * 0.9);
}
;
if (h == null || h == '') {
var h = ($(window).height() - 50);
}
;
var index = layer.open({
type: 2,
area: [w + 'px', h + 'px'],
fix: false, //不固定
maxmin: true,
shadeClose: true,
shade: 0.4,
title: title,
content: url,
});
if (full) {
layer.full(index);
}
}
/**
* [close 关闭弹出层]
* @return {[type]} [description]
*/
Xadmin.prototype.close = function () {
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
};
/**
* [close 关闭弹出层父窗口关闭]
* @return {[type]} [description]
*/
Xadmin.prototype.father_reload = function () {
parent.location.reload();
};
/**
* [get_data 获取所有项]
* @return {[type]} [description]
*/
Xadmin.prototype.get_data = function () {
if (typeof is_remember != "undefined")
return false;
return layui.data('tab_list')
}
/**
* [set_data 增加某一项]
* @param {[type]} id [description]
*/
Xadmin.prototype.set_data = function (title, url, id) {
if (typeof is_remember != "undefined")
return false;
layui.data('tab_list', {
key: id
, value: {title: title, url: url}
});
};
/**
* [get_data 获取所有项]
* @return {[type]} [description]
*/
Xadmin.prototype.get_cate_data = function () {
if (typeof is_remember != "undefined")
return false;
return layui.data('cate')
}
/**
* [set_data 增加某一项]
* @param {[type]} id [description]
*/
Xadmin.prototype.set_cate_data = function (data) {
if (typeof is_remember != "undefined")
return false;
layui.data('cate', data);
};
/**
* [del_data 删除某一项]
* @param {[type]} id [description]
* @return {[type]} [description]
*/
Xadmin.prototype.del_data = function (id) {
if (typeof is_remember != "undefined")
return false;
if (typeof id != "undefined") {
layui.data('tab_list', {
key: id
, remove: true
});
} else {
layui.data('tab_list', null);
}
};
/**
* [del_other_data 删除其它]
* @param {[type]} id [description]
* @return {[type]} [description]
*/
Xadmin.prototype.del_other_data = function (id) {
if (typeof is_remember != "undefined")
return false;
var tab_list = this.get_data();
layui.data('tab_list', null);
layui.data('tab_list', {
key: id
, value: tab_list[id]
});
};
win.xadmin = new Xadmin();
}(window);
layui.use(['layer', 'element', 'jquery'], function () {
layer = layui.layer;
element = layui.element;
$ = layui.jquery;
// 打开页面初始
xadmin.init();
//关闭tab清除记忆
element.on('tabDelete(xbs_tab)', function (data) {
var id = $(this).parent().attr('lay-id');
xadmin.del_data(id);
});
//左侧菜单
$('.left-nav #nav').on('click', 'li', function (event) {
if ($(this).parent().attr('id') == 'nav') {
xadmin.set_cate_data({key: 'f1', value: $('.left-nav #nav li').index($(this))})
xadmin.set_cate_data({key: 'f2', value: null})
xadmin.set_cate_data({key: 'f3', value: null})
}
if ($(this).parent().parent().parent().attr('id') == 'nav') {
xadmin.set_cate_data({key: 'f2', value: $('.left-nav #nav li').index($(this))})
xadmin.set_cate_data({key: 'f3', value: null})
}
if ($(this).parent().parent().parent().parent().parent().attr('id') == 'nav') {
xadmin.set_cate_data({key: 'f3', value: $('.left-nav #nav li').index($(this))})
}
if ($('.left-nav').css('width') == '60px') {
$('.left-nav').animate({width: '220px'}, 100);
$('.page-content').animate({left: '220px'}, 100);
$('.left-nav i').css('font-size', '14px');
$('.left-nav cite,.left-nav .nav_right').show();
}
if ($(window).width() < 768) {
$('.page-content-bg').show();
}
$('.left-nav').find('a').removeClass('active');
$(this).children('a').addClass('active');
if ($(this).children('.sub-menu').length) {
if ($(this).hasClass('open')) {
$(this).removeClass('open');
$(this).find('.nav_right').html('&#xe697;');
$(this).children('.sub-menu').stop(true, true).slideUp();
$(this).siblings().children('.sub-menu').slideUp();
} else {
$(this).addClass('open');
$(this).children('a').find('.nav_right').html('&#xe6a6;');
$(this).children('.sub-menu').stop(true, true).slideDown();
$(this).siblings().children('.sub-menu').stop(true, true).slideUp();
$(this).siblings().find('.nav_right').html('&#xe697;');
$(this).siblings().removeClass('open');
}
}
event.stopPropagation();
})
var left_tips_index = null;
$('.left-nav #nav').on('mouseenter', '.left-nav-li', function (event) {
if ($('.left-nav').css('width') != '220px') {
var tips = $(this).attr('lay-tips');
left_tips_index = layer.tips(tips, $(this));
}
})
$('.left-nav #nav').on('mouseout', '.left-nav-li', function (event) {
layer.close(left_tips_index);
})
// 隐藏左侧
$('.container .left_open i').click(function (event) {
if ($('.left-nav').css('width') == '220px') {
$('.left-nav .open').click();
$('.left-nav i').css('font-size', '18px');
$('.left-nav').animate({width: '60px'}, 100);
$('.left-nav cite,.left-nav .nav_right').hide();
$('.page-content').animate({left: '60px'}, 100);
$('.page-content-bg').hide();
} else {
$('.left-nav').animate({width: '220px'}, 100);
$('.page-content').animate({left: '220px'}, 100);
$('.left-nav i').css('font-size', '14px');
$('.left-nav cite,.left-nav .nav_right').show();
if ($(window).width() < 768) {
$('.page-content-bg').show();
}
}
});
$('.page-content-bg').click(function (event) {
$('.left-nav .open').click();
$('.left-nav i').css('font-size', '18px');
$('.left-nav').animate({width: '60px'}, 100);
$('.left-nav cite,.left-nav .nav_right').hide();
$('.page-content').animate({left: '60px'}, 100);
$(this).hide();
});
$(".layui-tab-title").on('contextmenu', 'li', function (event) {
var tab_left = $(this).position().left;
var tab_width = $(this).width();
var left = $(this).position().top;
var this_index = $(this).attr('lay-id');
$('#tab_right').css({'left': tab_left + tab_width / 2}).show().attr('lay-id', this_index);
$('#tab_show').show();
return false;
});
$('#tab_right').on('click', 'dd', function (event) {
var data_type = $(this).attr('data-type');
var lay_id = $(this).parents('#tab_right').attr('lay-id');
if (data_type == 'this') {
$('.layui-tab-title li[lay-id=' + lay_id + ']').find('.layui-tab-close').click();
} else if (data_type == 'other') {
$('.layui-tab-title li').eq(0).find('.layui-tab-close').remove();
$('.layui-tab-title li[lay-id!=' + lay_id + ']').find('.layui-tab-close').click();
} else if (data_type == 'all') {
$('.layui-tab-title li[lay-id]').find('.layui-tab-close').click();
}
$('#tab_right').hide();
$('#tab_show').hide();
})
$('.page-content,#tab_show,.container,.left-nav').click(function (event) {
$('#tab_right').hide();
$('#tab_show').hide();
});
// 页面加载完要做的
xadmin.end();
})
// md5-----------------------------------------------------------------------------------
/*
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
* to work around bugs in some JS interpreters.
*/
function safeAdd(x, y) {
var lsw = (x & 0xffff) + (y & 0xffff)
var msw = (x >> 16) + (y >> 16) + (lsw >> 16)
return (msw << 16) | (lsw & 0xffff)
}
/*
* Bitwise rotate a 32-bit number to the left.
*/
function bitRotateLeft(num, cnt) {
return (num << cnt) | (num >>> (32 - cnt))
}
/*
* These functions implement the four basic operations the algorithm uses.
*/
function md5cmn(q, a, b, x, s, t) {
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b)
}
function md5ff(a, b, c, d, x, s, t) {
return md5cmn((b & c) | (~b & d), a, b, x, s, t)
}
function md5gg(a, b, c, d, x, s, t) {
return md5cmn((b & d) | (c & ~d), a, b, x, s, t)
}
function md5hh(a, b, c, d, x, s, t) {
return md5cmn(b ^ c ^ d, a, b, x, s, t)
}
function md5ii(a, b, c, d, x, s, t) {
return md5cmn(c ^ (b | ~d), a, b, x, s, t)
}
/*
* Calculate the MD5 of an array of little-endian words, and a bit length.
*/
function binlMD5(x, len) {
/* append padding */
x[len >> 5] |= 0x80 << (len % 32)
x[((len + 64) >>> 9 << 4) + 14] = len
var i
var olda
var oldb
var oldc
var oldd
var a = 1732584193
var b = -271733879
var c = -1732584194
var d = 271733878
for (i = 0; i < x.length; i += 16) {
olda = a
oldb = b
oldc = c
oldd = d
a = md5ff(a, b, c, d, x[i], 7, -680876936)
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586)
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819)
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330)
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897)
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426)
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341)
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983)
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416)
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417)
c = md5ff(c, d, a, b, x[i + 10], 17, -42063)
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162)
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682)
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101)
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290)
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329)
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510)
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632)
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713)
b = md5gg(b, c, d, a, x[i], 20, -373897302)
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691)
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083)
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335)
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848)
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438)
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690)
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961)
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501)
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467)
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784)
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473)
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734)
a = md5hh(a, b, c, d, x[i + 5], 4, -378558)
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463)
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562)
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556)
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060)
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353)
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632)
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640)
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174)
d = md5hh(d, a, b, c, x[i], 11, -358537222)
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979)
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189)
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487)
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835)
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520)
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651)
a = md5ii(a, b, c, d, x[i], 6, -198630844)
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415)
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905)
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055)
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571)
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606)
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523)
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799)
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359)
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744)
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380)
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649)
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070)
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379)
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259)
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551)
a = safeAdd(a, olda)
b = safeAdd(b, oldb)
c = safeAdd(c, oldc)
d = safeAdd(d, oldd)
}
return [a, b, c, d]
}
/*
* Convert an array of little-endian words to a string
*/
function binl2rstr(input) {
var i
var output = ''
var length32 = input.length * 32
for (i = 0; i < length32; i += 8) {
output += String.fromCharCode((input[i >> 5] >>> (i % 32)) & 0xff)
}
return output
}
/*
* Convert a raw string to an array of little-endian words
* Characters >255 have their high-byte silently ignored.
*/
function rstr2binl(input) {
var i
var output = []
output[(input.length >> 2) - 1] = undefined
for (i = 0; i < output.length; i += 1) {
output[i] = 0
}
var length8 = input.length * 8
for (i = 0; i < length8; i += 8) {
output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << (i % 32)
}
return output
}
/*
* Calculate the MD5 of a raw string
*/
function rstrMD5(s) {
return binl2rstr(binlMD5(rstr2binl(s), s.length * 8))
}
/*
* Calculate the HMAC-MD5, of a key and some data (raw strings)
*/
function rstrHMACMD5(key, data) {
var i
var bkey = rstr2binl(key)
var ipad = []
var opad = []
var hash
ipad[15] = opad[15] = undefined
if (bkey.length > 16) {
bkey = binlMD5(bkey, key.length * 8)
}
for (i = 0; i < 16; i += 1) {
ipad[i] = bkey[i] ^ 0x36363636
opad[i] = bkey[i] ^ 0x5c5c5c5c
}
hash = binlMD5(ipad.concat(rstr2binl(data)), 512 + data.length * 8)
return binl2rstr(binlMD5(opad.concat(hash), 512 + 128))
}
/*
* Convert a raw string to a hex string
*/
function rstr2hex(input) {
var hexTab = '0123456789abcdef'
var output = ''
var x
var i
for (i = 0; i < input.length; i += 1) {
x = input.charCodeAt(i)
output += hexTab.charAt((x >>> 4) & 0x0f) + hexTab.charAt(x & 0x0f)
}
return output
}
/*
* Encode a string as utf-8
*/
function str2rstrUTF8(input) {
return unescape(encodeURIComponent(input))
}
/*
* Take string arguments and return either raw or hex encoded strings
*/
function rawMD5(s) {
return rstrMD5(str2rstrUTF8(s))
}
function hexMD5(s) {
return rstr2hex(rawMD5(s))
}
function rawHMACMD5(k, d) {
return rstrHMACMD5(str2rstrUTF8(k), str2rstrUTF8(d))
}
function hexHMACMD5(k, d) {
return rstr2hex(rawHMACMD5(k, d))
}
function md5(string, key, raw) {
if (!key) {
if (!raw) {
return hexMD5(string)
}
return rawMD5(string)
}
if (!raw) {
return hexHMACMD5(key, string)
}
return rawHMACMD5(key, string)
}

506
public/js/xcity.js

@ -0,0 +1,506 @@
$.fn.xcity = function(pName,cName,aName){
this.p = $(this).find('select[lay-filter=province]');
this.c = $(this).find('select[lay-filter=city]');
this.a = $(this).find('select[lay-filter=area]');
this.cityList = [];
this.reaList = [];
this.showP = function(provinceList) {
this.p.html('');
is_pName = false;
for (var i in provinceList) {
if(pName==provinceList[i].name){
is_pName = true;
this.cityList = provinceList[i].cityList;
this.p.append("<option selected value='"+provinceList[i].name+"'>"+provinceList[i].name+"</option>")
}else{
this.p.append("<option value='"+provinceList[i].name+"'>"+provinceList[i].name+"</option>")
}
}
if(!is_pName){
this.cityList = provinceList[0].cityList;
}
}
this.showC = function (cityList) {
this.c.html('');
is_cName = false;
for (var i in cityList) {
if(cName==cityList[i].name){
is_cName = true;
this.areaList = cityList[i].areaList;
this.c.append("<option selected value='"+cityList[i].name+"'>"+cityList[i].name+"</option>")
}else{
this.c.append("<option value='"+cityList[i].name+"'>"+cityList[i].name+"</option>")
}
}
if(!is_cName){
this.areaList = cityList[0].areaList;
}
}
this.showA = function (areaList) {
this.a.html('');
for (var i in areaList) {
if(aName==areaList[i]){
this.a.append("<option selected value='"+areaList[i]+"'>"+areaList[i]+"</option>")
}else{
this.a.append("<option value='"+areaList[i]+"'>"+areaList[i]+"</option>")
}
}
}
this.showP(provinceList);
this.showC(this.cityList);
this.showA(this.areaList);
form.render('select');
form.on('select(province)', function(data){
var pName = data.value;
$(data.elem).parents(".x-city").xcity(pName);
});
form.on('select(city)', function(data){
var cName = data.value;
var pName = $(data.elem).parents(".x-city").find('select[lay-filter=province]').val();
console.log(pName);
$(data.elem).parents(".x-city").xcity(pName,cName);
});
return this;
}
var provinceList = [
{name:'北京', cityList:[
{name:'市辖区', areaList:['东城区','西城区','崇文区','宣武区','朝阳区','丰台区','石景山区','海淀区','门头沟区','房山区','通州区','顺义区','昌平区','大兴区','怀柔区','平谷区']},
{name:'县', areaList:['密云县','延庆县']}
]},
{name:'上海', cityList:[
{name:'市辖区', areaList:['黄浦区','卢湾区','徐汇区','长宁区','静安区','普陀区','闸北区','虹口区','杨浦区','闵行区','宝山区','嘉定区','浦东新区','金山区','松江区','青浦区','南汇区','奉贤区']},
{name:'县', areaList:['崇明县']}
]},
{name:'天津', cityList:[
{name:'市辖区', areaList:['和平区','河东区','河西区','南开区','河北区','红桥区','塘沽区','汉沽区','大港区','东丽区','西青区','津南区','北辰区','武清区','宝坻区']},
{name:'县', areaList:['宁河县','静海县','蓟 县']}
]},
{name:'重庆', cityList:[
{name:'市辖区', areaList:['万州区','涪陵区','渝中区','大渡口区','江北区','沙坪坝区','九龙坡区','南岸区','北碚区','万盛区','双桥区','渝北区','巴南区','黔江区','长寿区']},
{name:'县', areaList:['綦江县','潼南县','铜梁县','大足县','荣昌县','璧山县','梁平县','城口县','丰都县','垫江县','武隆县','忠 县','开 县','云阳县','奉节县','巫山县','巫溪县','石柱土家族自治县','秀山土家族苗族自治县','酉阳土家族苗族自治县','彭水苗族土家族自治县']},
{name:'市', areaList:['江津市','合川市','永川市','南川市']}
]},
{name:'四川', cityList:[
{name:'成都市', areaList:['市辖区','锦江区','青羊区','金牛区','武侯区','成华区','龙泉驿区','青白江区','新都区','温江县','金堂县','双流县','郫 县','大邑县','蒲江县','新津县','都江堰市','彭州市','邛崃市','崇州市']},
{name:'自贡市', areaList:['市辖区','自流井区','贡井区','大安区','沿滩区','荣 县','富顺县']},
{name:'攀枝花市', areaList:['市辖区','东 区','西 区','仁和区','米易县','盐边县']},
{name:'泸州市', areaList:['市辖区','江阳区','纳溪区','龙马潭区','泸 县','合江县','叙永县','古蔺县']},
{name:'德阳市', areaList:['市辖区','旌阳区','中江县','罗江县','广汉市','什邡市','绵竹市']},
{name:'绵阳市', areaList:['市辖区','涪城区','游仙区','三台县','盐亭县','安 县','梓潼县','北川羌族自治县','平武县','江油市']},
{name:'广元市', areaList:['市辖区','市中区','元坝区','朝天区','旺苍县','青川县','剑阁县','苍溪县']},
{name:'遂宁市', areaList:['市辖区','船山区','安居区','蓬溪县','射洪县','大英县']},
{name:'内江市', areaList:['市辖区','市中区','东兴区','威远县','资中县','隆昌县']},
{name:'乐山市', areaList:['市辖区','市中区','沙湾区','五通桥区','金口河区','犍为县','井研县','夹江县','沐川县','峨边彝族自治县','马边彝族自治县','峨眉山市']},
{name:'南充市', areaList:['市辖区','顺庆区','高坪区','嘉陵区','南部县','营山县','蓬安县','仪陇县','西充县','阆中市']},
{name:'眉山市', areaList:['市辖区','东坡区','仁寿县','彭山县','洪雅县','丹棱县','青神县']},
{name:'宜宾市', areaList:['市辖区','翠屏区','宜宾县','南溪县','江安县','长宁县','高 县','珙 县','筠连县','兴文县','屏山县']},
{name:'广安市', areaList:['市辖区','广安区','岳池县','武胜县','邻水县','华莹市']},
{name:'达州市', areaList:['市辖区','通川区','达 县','宣汉县','开江县','大竹县','渠 县','万源市']},
{name:'雅安市', areaList:['市辖区','雨城区','名山县','荥经县','汉源县','石棉县','天全县','芦山县','宝兴县']},
{name:'巴中市', areaList:['市辖区','巴州区','通江县','南江县','平昌县']},
{name:'资阳市', areaList:['市辖区','雁江区','安岳县','乐至县','简阳市']},
{name:'阿坝藏族羌族自治州', areaList:['汶川县','理 县','茂 县','松潘县','九寨沟县','金川县','小金县','黑水县','马尔康县','壤塘县','阿坝县','若尔盖县','红原县']},
{name:'甘孜藏族自治州', areaList:['康定县','泸定县','丹巴县','九龙县','雅江县','道孚县','炉霍县','甘孜县','新龙县','德格县','白玉县','石渠县','色达县','理塘县','巴塘县','乡城县','稻城县','得荣县']},
{name:'凉山彝族自治州', areaList:['西昌市','木里藏族自治县','盐源县','德昌县','会理县','会东县','宁南县','普格县','布拖县','金阳县','昭觉县','喜德县','冕宁县','越西县','甘洛县','美姑县','雷波县']}
]},
{name:'贵州', cityList:[
{name:'贵阳市', areaList:['市辖区','南明区','云岩区','花溪区','乌当区','白云区','小河区','开阳县','息烽县','修文县','清镇市']},
{name:'六盘水市', areaList:['钟山区','六枝特区','水城县','盘 县']},
{name:'遵义市', areaList:['市辖区','红花岗区','汇川区','遵义县','桐梓县','绥阳县','正安县','道真仡佬族苗族自治县','务川仡佬族苗族自治县','凤冈县','湄潭县','余庆县','习水县','赤水市','仁怀市']},
{name:'安顺市', areaList:['市辖区','西秀区','平坝县','普定县','镇宁布依族苗族自治县','关岭布依族苗族自治县','紫云苗族布依族自治县']},
{name:'铜仁地区', areaList:['铜仁市','江口县','玉屏侗族自治县','石阡县','思南县','印江土家族苗族自治县','德江县','沿河土家族自治县','松桃苗族自治县','万山特区']},
{name:'黔西南布依族苗族自治州', areaList:['兴义市','兴仁县','普安县','晴隆县','贞丰县','望谟县','册亨县','安龙县']},
{name:'毕节地区', areaList:['毕节市','大方县','黔西县','金沙县','织金县','纳雍县','威宁彝族回族苗族自治县','赫章县']},
{name:'黔东南苗族侗族自治州', areaList:['凯里市','黄平县','施秉县','三穗县','镇远县','岑巩县','天柱县','锦屏县','剑河县','台江县','黎平县','榕江县','从江县','雷山县','麻江县','丹寨县']},
{name:'黔南布依族苗族自治州', areaList:['都匀市','福泉市','荔波县','贵定县','瓮安县','独山县','平塘县','罗甸县','长顺县','龙里县','惠水县','三都水族自治县']}
]},
{name:'云南', cityList:[
{name:'昆明市', areaList:['市辖区','五华区','盘龙区','官渡区','西山区','东川区','呈贡县','晋宁县','富民县','宜良县','石林彝族自治县','嵩明县','禄劝彝族苗族自治县','寻甸回族彝族自治县','安宁市']},
{name:'曲靖市', areaList:['市辖区','麒麟区','马龙县','陆良县','师宗县','罗平县','富源县','会泽县','沾益县','宣威市']},
{name:'玉溪市', areaList:['市辖区','红塔区','江川县','澄江县','通海县','华宁县','易门县','峨山彝族自治县','新平彝族傣族自治县','元江哈尼族彝族傣族自治县']},
{name:'保山市', areaList:['市辖区','隆阳区','施甸县','腾冲县','龙陵县','昌宁县']},
{name:'昭通市', areaList:['市辖区','昭阳区','鲁甸县','巧家县','盐津县','大关县','永善县','绥江县','镇雄县','彝良县','威信县','水富县']},
{name:'丽江市', areaList:['市辖区','古城区','玉龙纳西族自治县','永胜县','华坪县','宁蒗彝族自治县']},
{name:'思茅市', areaList:['市辖区','翠云区','普洱哈尼族彝族自治县','墨江哈尼族自治县','景东彝族自治县','景谷傣族彝族自治县','镇沅彝族哈尼族拉祜族自治县','江城哈尼族彝族自治县','孟连傣族拉祜族佤族自治县','澜沧拉祜族自治县','西盟佤族自治县']},
{name:'临沧市', areaList:['市辖区','临翔区','凤庆县','云 县','永德县','镇康县','双江拉祜族佤族布朗族傣族自治县','耿马傣族佤族自治县','沧源佤族自治县']},
{name:'楚雄彝族自治州', areaList:['楚雄市','双柏县','牟定县','南华县','姚安县','大姚县','永仁县','元谋县','武定县','禄丰县']},
{name:'红河哈尼族彝族自治州', areaList:['个旧市','开远市','蒙自县','屏边苗族自治县','建水县','石屏县','弥勒县','泸西县','元阳县','红河县','金平苗族瑶族傣族自治县','绿春县','河口瑶族自治县']},
{name:'文山壮族苗族自治州', areaList:['文山县','砚山县','西畴县','麻栗坡县','马关县','丘北县','广南县','富宁县']},
{name:'西双版纳傣族自治州', areaList:['景洪市','勐海县','勐腊县']},
{name:'大理白族自治州', areaList:['大理市','漾濞彝族自治县','祥云县','宾川县','弥渡县','南涧彝族自治县','巍山彝族回族自治县','永平县','云龙县','洱源县','剑川县','鹤庆县']},
{name:'德宏傣族景颇族自治州', areaList:['瑞丽市','潞西市','梁河县','盈江县','陇川县']},
{name:'怒江傈僳族自治州', areaList:['泸水县','福贡县','贡山独龙族怒族自治县','兰坪白族普米族自治县']},
{name:'迪庆藏族自治州', areaList:['香格里拉县','德钦县','维西傈僳族自治县']}
]},
{name:'西藏', cityList:[
{name:'拉萨市', areaList:['市辖区','城关区','林周县','当雄县','尼木县','曲水县','堆龙德庆县','达孜县','墨竹工卡县']},
{name:'昌都地区', areaList:['昌都县','江达县','贡觉县','类乌齐县','丁青县','察雅县','八宿县','左贡县','芒康县','洛隆县','边坝县']},
{name:'山南地区', areaList:['乃东县','扎囊县','贡嘎县','桑日县','琼结县','曲松县','措美县','洛扎县','加查县','隆子县','错那县','浪卡子县']},
{name:'日喀则地区', areaList:['日喀则市','南木林县','江孜县','定日县','萨迦县','拉孜县','昂仁县','谢通门县','白朗县','仁布县','康马县','定结县','仲巴县','亚东县','吉隆县','聂拉木县','萨嘎县','岗巴县']},
{name:'那曲地区', areaList:['那曲县','嘉黎县','比如县','聂荣县','安多县','申扎县','索 县','班戈县','巴青县','尼玛县']},
{name:'阿里地区', areaList:['普兰县','札达县','噶尔县','日土县','革吉县','改则县','措勤县']},
{name:'林芝地区', areaList:['林芝县','工布江达县','米林县','墨脱县','波密县','察隅县','朗 县']}
]},
{name:'河南', cityList:[
{name:'郑州市', areaList:['市辖区','中原区','二七区','管城回族区','金水区','上街区','邙山区','中牟县','巩义市','荥阳市','新密市','新郑市','登封市']},
{name:'开封市', areaList:['市辖区','龙亭区','顺河回族区','鼓楼区','南关区','郊 区','杞 县','通许县','尉氏县','开封县','兰考县']},
{name:'洛阳市', areaList:['市辖区','老城区','西工区','廛河回族区','涧西区','吉利区','洛龙区','孟津县','新安县','栾川县','嵩 县','汝阳县','宜阳县','洛宁县','伊川县','偃师市']},
{name:'平顶山市', areaList:['市辖区','新华区','卫东区','石龙区','湛河区','宝丰县','叶 县','鲁山县','郏 县','舞钢市','汝州市']},
{name:'安阳市', areaList:['市辖区','文峰区','北关区','殷都区','龙安区','安阳县','汤阴县','滑 县','内黄县','林州市']},
{name:'鹤壁市', areaList:['市辖区','鹤山区','山城区','淇滨区','浚 县','淇 县']},
{name:'新乡市', areaList:['市辖区','红旗区','卫滨区','凤泉区','牧野区','新乡县','获嘉县','原阳县','延津县','封丘县','长垣县','卫辉市','辉县市']},
{name:'焦作市', areaList:['市辖区','解放区','中站区','马村区','山阳区','修武县','博爱县','武陟县','温 县','济源市','沁阳市','孟州市']},
{name:'濮阳市', areaList:['市辖区','华龙区','清丰县','南乐县','范 县','台前县','濮阳县']},
{name:'许昌市', areaList:['市辖区','魏都区','许昌县','鄢陵县','襄城县','禹州市','长葛市']},
{name:'漯河市', areaList:['市辖区','源汇区','郾城区','召陵区','舞阳县','临颍县']},
{name:'三门峡市', areaList:['市辖区','湖滨区','渑池县','陕 县','卢氏县','义马市','灵宝市']},
{name:'南阳市', areaList:['市辖区','宛城区','卧龙区','南召县','方城县','西峡县','镇平县','内乡县','淅川县','社旗县','唐河县','新野县','桐柏县','邓州市']},
{name:'商丘市', areaList:['市辖区','梁园区','睢阳区','民权县','睢 县','宁陵县','柘城县','虞城县','夏邑县','永城市']},
{name:'信阳市', areaList:['市辖区','师河区','平桥区','罗山县','光山县','新 县','商城县','固始县','潢川县','淮滨县','息 县']},
{name:'周口市', areaList:['市辖区','川汇区','扶沟县','西华县','商水县','沈丘县','郸城县','淮阳县','太康县','鹿邑县','项城市']},
{name:'驻马店市', areaList:['市辖区','驿城区','西平县','上蔡县','平舆县','正阳县','确山县','泌阳县','汝南县','遂平县','新蔡县']}
]},
{name:'湖北', cityList:[
{name:'武汉市', areaList:['市辖区','江岸区','江汉区','乔口区','汉阳区','武昌区','青山区','洪山区','东西湖区','汉南区','蔡甸区','江夏区','黄陂区','新洲区']},
{name:'黄石市', areaList:['市辖区','黄石港区','西塞山区','下陆区','铁山区','阳新县','大冶市']},
{name:'十堰市', areaList:['市辖区','茅箭区','张湾区','郧 县','郧西县','竹山县','竹溪县','房 县','丹江口市']},
{name:'宜昌市', areaList:['市辖区','西陵区','伍家岗区','点军区','猇亭区','夷陵区','远安县','兴山县','秭归县','长阳土家族自治县','五峰土家族自治县','宜都市','当阳市','枝江市']},
{name:'襄樊市', areaList:['市辖区','襄城区','樊城区','襄阳区','南漳县','谷城县','保康县','老河口市','枣阳市','宜城市']},
{name:'鄂州市', areaList:['市辖区','梁子湖区','华容区','鄂城区']},
{name:'荆门市', areaList:['市辖区','东宝区','掇刀区','京山县','沙洋县','钟祥市']},
{name:'孝感市', areaList:['市辖区','孝南区','孝昌县','大悟县','云梦县','应城市','安陆市','汉川市']},
{name:'荆州市', areaList:['市辖区','沙市区','荆州区','公安县','监利县','江陵县','石首市','洪湖市','松滋市']},
{name:'黄冈市', areaList:['市辖区','黄州区','团风县','红安县','罗田县','英山县','浠水县','蕲春县','黄梅县','麻城市','武穴市']},
{name:'咸宁市', areaList:['市辖区','咸安区','嘉鱼县','通城县','崇阳县','通山县','赤壁市']},
{name:'随州市', areaList:['市辖区','曾都区','广水市']},
{name:'恩施土家族苗族自治州', areaList:['恩施市','利川市','建始县','巴东县','宣恩县','咸丰县','来凤县','鹤峰县']},
{name:'省直辖行政单位', areaList:['仙桃市','潜江市','天门市','神农架林区']}
]},
{name:'湖南', cityList:[
{name:'长沙市', areaList:['市辖区','芙蓉区','天心区','岳麓区','开福区','雨花区','长沙县','望城县','宁乡县','浏阳市']},
{name:'株洲市', areaList:['市辖区','荷塘区','芦淞区','石峰区','天元区','株洲县','攸 县','茶陵县','炎陵县','醴陵市']},
{name:'湘潭市', areaList:['市辖区','雨湖区','岳塘区','湘潭县','湘乡市','韶山市']},
{name:'衡阳市', areaList:['市辖区','珠晖区','雁峰区','石鼓区','蒸湘区','南岳区','衡阳县','衡南县','衡山县','衡东县','祁东县','耒阳市','常宁市']},
{name:'邵阳市', areaList:['市辖区','双清区','大祥区','北塔区','邵东县','新邵县','邵阳县','隆回县','洞口县','绥宁县','新宁县','城步苗族自治县','武冈市']},
{name:'岳阳市', areaList:['市辖区','岳阳楼区','云溪区','君山区','岳阳县','华容县','湘阴县','平江县','汨罗市','临湘市']},
{name:'常德市', areaList:['市辖区','武陵区','鼎城区','安乡县','汉寿县','澧 县','临澧县','桃源县','石门县','津市市']},
{name:'张家界市', areaList:['市辖区','永定区','武陵源区','慈利县','桑植县']},
{name:'益阳市', areaList:['市辖区','资阳区','赫山区','南 县','桃江县','安化县','沅江市']},
{name:'郴州市', areaList:['市辖区','北湖区','苏仙区','桂阳县','宜章县','永兴县','嘉禾县','临武县','汝城县','桂东县','安仁县','资兴市']},
{name:'永州市', areaList:['市辖区','芝山区','冷水滩区','祁阳县','东安县','双牌县','道 县','江永县','宁远县','蓝山县','新田县','江华瑶族自治县']},
{name:'怀化市', areaList:['市辖区','鹤城区','中方县','沅陵县','辰溪县','溆浦县','会同县','麻阳苗族自治县','新晃侗族自治县','芷江侗族自治县','靖州苗族侗族自治县','通道侗族自治县','洪江市']},
{name:'娄底市', areaList:['市辖区','娄星区','双峰县','新化县','冷水江市','涟源市']},
{name:'湘西土家族苗族自治州', areaList:['吉首市','泸溪县','凤凰县','花垣县','保靖县','古丈县','永顺县','龙山县']}
]},
{name:'广东', cityList:[
{name:'广州市', areaList:['市辖区','东山区','荔湾区','越秀区','海珠区','天河区','芳村区','白云区','黄埔区','番禺区','花都区','增城市','从化市']},
{name:'韶关市', areaList:['市辖区','武江区','浈江区','曲江区','始兴县','仁化县','翁源县','乳源瑶族自治县','新丰县','乐昌市','南雄市']},
{name:'深圳市', areaList:['市辖区','罗湖区','福田区','南山区','宝安区','龙岗区','盐田区']},
{name:'珠海市', areaList:['市辖区','香洲区','斗门区','金湾区']},
{name:'汕头市', areaList:['市辖区','龙湖区','金平区','濠江区','潮阳区','潮南区','澄海区','南澳县']},
{name:'佛山市', areaList:['市辖区','禅城区','南海区','顺德区','三水区','高明区']},
{name:'江门市', areaList:['市辖区','蓬江区','江海区','新会区','台山市','开平市','鹤山市','恩平市']},
{name:'湛江市', areaList:['市辖区','赤坎区','霞山区','坡头区','麻章区','遂溪县','徐闻县','廉江市','雷州市','吴川市']},
{name:'茂名市', areaList:['市辖区','茂南区','茂港区','电白县','高州市','化州市','信宜市']},
{name:'肇庆市', areaList:['市辖区','端州区','鼎湖区','广宁县','怀集县','封开县','德庆县','高要市','四会市']},
{name:'惠州市', areaList:['市辖区','惠城区','惠阳区','博罗县','惠东县','龙门县']},
{name:'梅州市', areaList:['市辖区','梅江区','梅 县','大埔县','丰顺县','五华县','平远县','蕉岭县','兴宁市']},
{name:'汕尾市', areaList:['市辖区','城 区','海丰县','陆河县','陆丰市']},
{name:'河源市', areaList:['市辖区','源城区','紫金县','龙川县','连平县','和平县','东源县']},
{name:'阳江市', areaList:['市辖区','江城区','阳西县','阳东县','阳春市']},
{name:'清远市', areaList:['市辖区','清城区','佛冈县','阳山县','连山壮族瑶族自治县','连南瑶族自治县','清新县','英德市','连州市']},
{name:'东莞市', areaList:['东莞市']},
{name:'中山市', areaList:['中山市']},
{name:'潮州市', areaList:['市辖区','湘桥区','潮安县','饶平县']},
{name:'揭阳市', areaList:['市辖区','榕城区','揭东县','揭西县','惠来县','普宁市']},
{name:'云浮市', areaList:['市辖区','云城区','新兴县','郁南县','云安县','罗定市']}
]},
{name:'广西', cityList:[
{name:'南宁市', areaList:['市辖区','兴宁区','青秀区','江南区','西乡塘区','良庆区','邕宁区','武鸣县','隆安县','马山县','上林县','宾阳县','横 县']},
{name:'柳州市', areaList:['市辖区','城中区','鱼峰区','柳南区','柳北区','柳江县','柳城县','鹿寨县','融安县','融水苗族自治县','三江侗族自治县']},
{name:'桂林市', areaList:['市辖区','秀峰区','叠彩区','象山区','七星区','雁山区','阳朔县','临桂县','灵川县','全州县','兴安县','永福县','灌阳县','龙胜各族自治县','资源县','平乐县','荔蒲县','恭城瑶族自治县']},
{name:'梧州市', areaList:['市辖区','万秀区','蝶山区','长洲区','苍梧县','藤 县','蒙山县','岑溪市']},
{name:'北海市', areaList:['市辖区','海城区','银海区','铁山港区','合浦县']},
{name:'防城港市', areaList:['市辖区','港口区','防城区','上思县','东兴市']},
{name:'钦州市', areaList:['市辖区','钦南区','钦北区','灵山县','浦北县']},
{name:'贵港市', areaList:['市辖区','港北区','港南区','覃塘区','平南县','桂平市']},
{name:'玉林市', areaList:['市辖区','玉州区','容 县','陆川县','博白县','兴业县','北流市']},
{name:'百色市', areaList:['市辖区','右江区','田阳县','田东县','平果县','德保县','靖西县','那坡县','凌云县','乐业县','田林县','西林县','隆林各族自治县']},
{name:'贺州市', areaList:['市辖区','八步区','昭平县','钟山县','富川瑶族自治县']},
{name:'河池市', areaList:['市辖区','金城江区','南丹县','天峨县','凤山县','东兰县','罗城仫佬族自治县','环江毛南族自治县','巴马瑶族自治县','都安瑶族自治县','大化瑶族自治县','宜州市']},
{name:'来宾市', areaList:['市辖区','兴宾区','忻城县','象州县','武宣县','金秀瑶族自治县','合山市']},
{name:'崇左市', areaList:['市辖区','江洲区','扶绥县','宁明县','龙州县','大新县','天等县','凭祥市']}
]},
{name:'陕西', cityList:[
{name:'西安市', areaList:['市辖区','新城区','碑林区','莲湖区','灞桥区','未央区','雁塔区','阎良区','临潼区','长安区','蓝田县','周至县','户 县','高陵县']},
{name:'铜川市', areaList:['市辖区','王益区','印台区','耀州区','宜君县']},
{name:'宝鸡市', areaList:['市辖区','渭滨区','金台区','陈仓区','凤翔县','岐山县','扶风县','眉 县','陇 县','千阳县','麟游县','凤 县','太白县']},
{name:'咸阳市', areaList:['市辖区','秦都区','杨凌区','渭城区','三原县','泾阳县','乾 县','礼泉县','永寿县','彬 县','长武县','旬邑县','淳化县','武功县','兴平市']},
{name:'渭南市', areaList:['市辖区','临渭区','华 县','潼关县','大荔县','合阳县','澄城县','蒲城县','白水县','富平县','韩城市','华阴市']},
{name:'延安市', areaList:['市辖区','宝塔区','延长县','延川县','子长县','安塞县','志丹县','吴旗县','甘泉县','富 县','洛川县','宜川县','黄龙县','黄陵县']},
{name:'汉中市', areaList:['市辖区','汉台区','南郑县','城固县','洋 县','西乡县','勉 县','宁强县','略阳县','镇巴县','留坝县','佛坪县']},
{name:'榆林市', areaList:['市辖区','榆阳区','神木县','府谷县','横山县','靖边县','定边县','绥德县','米脂县','佳 县','吴堡县','清涧县','子洲县']},
{name:'安康市', areaList:['市辖区','汉滨区','汉阴县','石泉县','宁陕县','紫阳县','岚皋县','平利县','镇坪县','旬阳县','白河县']},
{name:'商洛市', areaList:['市辖区','商州区','洛南县','丹凤县','商南县','山阳县','镇安县','柞水县']}
]},
{name:'甘肃', cityList:[
{name:'兰州市', areaList:['市辖区','城关区','七里河区','西固区','安宁区','红古区','永登县','皋兰县','榆中县']},
{name:'嘉峪关市', areaList:['市辖区']},
{name:'金昌市', areaList:['市辖区','金川区','永昌县']},
{name:'白银市', areaList:['市辖区','白银区','平川区','靖远县','会宁县','景泰县']},
{name:'天水市', areaList:['市辖区','秦城区','北道区','清水县','秦安县','甘谷县','武山县','张家川回族自治县']},
{name:'武威市', areaList:['市辖区','凉州区','民勤县','古浪县','天祝藏族自治县']},
{name:'张掖市', areaList:['市辖区','甘州区','肃南裕固族自治县','民乐县','临泽县','高台县','山丹县']},
{name:'平凉市', areaList:['市辖区','崆峒区','泾川县','灵台县','崇信县','华亭县','庄浪县','静宁县']},
{name:'酒泉市', areaList:['市辖区','肃州区','金塔县','安西县','肃北蒙古族自治县','阿克塞哈萨克族自治县','玉门市','敦煌市']},
{name:'庆阳市', areaList:['市辖区','西峰区','庆城县','环 县','华池县','合水县','正宁县','宁 县','镇原县']},
{name:'定西市', areaList:['市辖区','安定区','通渭县','陇西县','渭源县','临洮县','漳 县','岷 县']},
{name:'陇南市', areaList:['市辖区','武都区','成 县','文 县','宕昌县','康 县','西和县','礼 县','徽 县','两当县']},
{name:'临夏回族自治州', areaList:['临夏市','临夏县','康乐县','永靖县','广河县','和政县','东乡族自治县','积石山保安族东乡族撒拉族自治县']},
{name:'甘南藏族自治州', areaList:['合作市','临潭县','卓尼县','舟曲县','迭部县','玛曲县','碌曲县','夏河县']}
]},
{name:'青海', cityList:[
{name:'西宁市', areaList:['市辖区','城东区','城中区','城西区','城北区','大通回族土族自治县','湟中县','湟源县']},
{name:'海东地区', areaList:['平安县','民和回族土族自治县','乐都县','互助土族自治县','化隆回族自治县','循化撒拉族自治县']},
{name:'海北藏族自治州', areaList:['门源回族自治县','祁连县','海晏县','刚察县']},
{name:'黄南藏族自治州', areaList:['同仁县','尖扎县','泽库县','河南蒙古族自治县']},
{name:'海南藏族自治州', areaList:['共和县','同德县','贵德县','兴海县','贵南县']},
{name:'果洛藏族自治州', areaList:['玛沁县','班玛县','甘德县','达日县','久治县','玛多县']},
{name:'玉树藏族自治州', areaList:['玉树县','杂多县','称多县','治多县','囊谦县','曲麻莱县']},
{name:'海西蒙古族藏族自治州', areaList:['格尔木市','德令哈市','乌兰县','都兰县','天峻县']}
]},
{name:'宁夏', cityList:[
{name:'银川市', areaList:['市辖区','兴庆区','西夏区','金凤区','永宁县','贺兰县','灵武市']},
{name:'石嘴山市', areaList:['市辖区','大武口区','惠农区','平罗县']},
{name:'吴忠市', areaList:['市辖区','利通区','盐池县','同心县','青铜峡市']},
{name:'固原市', areaList:['市辖区','原州区','西吉县','隆德县','泾源县','彭阳县','海原县']},
{name:'中卫市', areaList:['市辖区','沙坡头区','中宁县']}
]},
{name:'新疆', cityList:[
{name:'乌鲁木齐市', areaList:['市辖区','天山区','沙依巴克区','新市区','水磨沟区','头屯河区','达坂城区','东山区','乌鲁木齐县']},
{name:'克拉玛依市', areaList:['市辖区','独山子区','克拉玛依区','白碱滩区','乌尔禾区']},
{name:'吐鲁番地区', areaList:['吐鲁番市','鄯善县','托克逊县']},
{name:'哈密地区', areaList:['哈密市','巴里坤哈萨克自治县','伊吾县']},
{name:'昌吉回族自治州', areaList:['昌吉市','阜康市','米泉市','呼图壁县','玛纳斯县','奇台县','吉木萨尔县','木垒哈萨克自治县']},
{name:'博尔塔拉蒙古自治州', areaList:['博乐市','精河县','温泉县']},
{name:'巴音郭楞蒙古自治州', areaList:['库尔勒市','轮台县','尉犁县','若羌县','且末县','焉耆回族自治县','和静县','和硕县','博湖县']},
{name:'阿克苏地区', areaList:['阿克苏市','温宿县','库车县','沙雅县','新和县','拜城县','乌什县','阿瓦提县','柯坪县']},
{name:'克孜勒苏柯尔克孜自治州', areaList:['阿图什市','阿克陶县','阿合奇县','乌恰县']},
{name:'喀什地区', areaList:['喀什市','疏附县','疏勒县','英吉沙县','泽普县','莎车县','叶城县','麦盖提县','岳普湖县','伽师县','巴楚县','塔什库尔干塔吉克自治县']},
{name:'和田地区', areaList:['和田市','和田县','墨玉县','皮山县','洛浦县','策勒县','于田县','民丰县']},
{name:'伊犁哈萨克自治州', areaList:['伊宁市','奎屯市','伊宁县','察布查尔锡伯自治县','霍城县','巩留县','新源县','昭苏县','特克斯县','尼勒克县']},
{name:'塔城地区', areaList:['塔城市','乌苏市','额敏县','沙湾县','托里县','裕民县','和布克赛尔蒙古自治县']},
{name:'阿勒泰地区', areaList:['阿勒泰市','布尔津县','富蕴县','福海县','哈巴河县','青河县','吉木乃县']},
{name:'省直辖行政单位', areaList:['石河子市','阿拉尔市','图木舒克市','五家渠市']}
]},
{name:'河北', cityList:[
{name:'石家庄市', areaList:['市辖区','长安区','桥东区','桥西区','新华区','井陉矿区','裕华区','井陉县','正定县','栾城县','行唐县','灵寿县','高邑县','深泽县','赞皇县','无极县','平山县','元氏县','赵 县','辛集市','藁城市','晋州市','新乐市','鹿泉市']},
{name:'唐山市', areaList:['市辖区','路南区','路北区','古冶区','开平区','丰南区','丰润区','滦 县','滦南县','乐亭县','迁西县','玉田县','唐海县','遵化市','迁安市']},
{name:'秦皇岛市', areaList:['市辖区','海港区','山海关区','北戴河区','青龙满族自治县','昌黎县','抚宁县','卢龙县']},
{name:'邯郸市', areaList:['市辖区','邯山区','丛台区','复兴区','峰峰矿区','邯郸县','临漳县','成安县','大名县','涉 县','磁 县','肥乡县','永年县','邱 县','鸡泽县','广平县','馆陶县','魏 县','曲周县','武安市']},
{name:'邢台市', areaList:['市辖区','桥东区','桥西区','邢台县','临城县','内丘县','柏乡县','隆尧县','任 县','南和县','宁晋县','巨鹿县','新河县','广宗县','平乡县','威 县','清河县','临西县','南宫市','沙河市']},
{name:'保定市', areaList:['市辖区','新市区','北市区','南市区','满城县','清苑县','涞水县','阜平县','徐水县','定兴县','唐 县','高阳县','容城县','涞源县','望都县','安新县','易 县','曲阳县','蠡 县','顺平县','博野县','雄 县','涿州市','定州市','安国市','高碑店市']},
{name:'张家口市', areaList:['市辖区','桥东区','桥西区','宣化区','下花园区','宣化县','张北县','康保县','沽源县','尚义县','蔚 县','阳原县','怀安县','万全县','怀来县','涿鹿县','赤城县','崇礼县']},
{name:'承德市', areaList:['市辖区','双桥区','双滦区','鹰手营子矿区','承德县','兴隆县','平泉县','滦平县','隆化县','丰宁满族自治县','宽城满族自治县','围场满族蒙古族自治县']},
{name:'沧州市', areaList:['市辖区','新华区','运河区','沧 县','青 县','东光县','海兴县','盐山县','肃宁县','南皮县','吴桥县','献 县','孟村回族自治县','泊头市','任丘市','黄骅市','河间市']},
{name:'廊坊市', areaList:['市辖区','安次区','广阳区','固安县','永清县','香河县','大城县','文安县','大厂回族自治县','霸州市','三河市']},
{name:'衡水市', areaList:['市辖区','桃城区','枣强县','武邑县','武强县','饶阳县','安平县','故城县','景 县','阜城县','冀州市','深州市']}
]},
{name:'山西', cityList:[
{name:'太原市', areaList:['市辖区','小店区','迎泽区','杏花岭区','尖草坪区','万柏林区','晋源区','清徐县','阳曲县','娄烦县','古交市']},
{name:'大同市', areaList:['市辖区','城 区','矿 区','南郊区','新荣区','阳高县','天镇县','广灵县','灵丘县','浑源县','左云县','大同县']},
{name:'阳泉市', areaList:['市辖区','城 区','矿 区','郊 区','平定县','盂 县']},
{name:'长治市', areaList:['市辖区','城 区','郊 区','长治县','襄垣县','屯留县','平顺县','黎城县','壶关县','长子县','武乡县','沁 县','沁源县','潞城市']},
{name:'晋城市', areaList:['市辖区','城 区','沁水县','阳城县','陵川县','泽州县','高平市']},
{name:'朔州市', areaList:['市辖区','朔城区','平鲁区','山阴县','应 县','右玉县','怀仁县']},
{name:'晋中市', areaList:['市辖区','榆次区','榆社县','左权县','和顺县','昔阳县','寿阳县','太谷县','祁 县','平遥县','灵石县','介休市']},
{name:'运城市', areaList:['市辖区','盐湖区','临猗县','万荣县','闻喜县','稷山县','新绛县','绛 县','垣曲县','夏 县','平陆县','芮城县','永济市','河津市']},
{name:'忻州市', areaList:['市辖区','忻府区','定襄县','五台县','代 县','繁峙县','宁武县','静乐县','神池县','五寨县','岢岚县','河曲县','保德县','偏关县','原平市']},
{name:'临汾市', areaList:['市辖区','尧都区','曲沃县','翼城县','襄汾县','洪洞县','古 县','安泽县','浮山县','吉 县','乡宁县','大宁县','隰 县','永和县','蒲 县','汾西县','侯马市','霍州市']},
{name:'吕梁市', areaList:['市辖区','离石区','文水县','交城县','兴 县','临 县','柳林县','石楼县','岚 县','方山县','中阳县','交口县','孝义市','汾阳市']}
]},
{name:'内蒙古', cityList:[
{name:'呼和浩特市', areaList:['市辖区','新城区','回民区','玉泉区','赛罕区','土默特左旗','托克托县','和林格尔县','清水河县','武川县']},
{name:'包头市', areaList:['市辖区','东河区','昆都仑区','青山区','石拐区','白云矿区','九原区','土默特右旗','固阳县','达尔罕茂明安联合旗']},
{name:'乌海市', areaList:['市辖区','海勃湾区','海南区','乌达区']},
{name:'赤峰市', areaList:['市辖区','红山区','元宝山区','松山区','阿鲁科尔沁旗','巴林左旗','巴林右旗','林西县','克什克腾旗','翁牛特旗','喀喇沁旗','宁城县','敖汉旗']},
{name:'通辽市', areaList:['市辖区','科尔沁区','科尔沁左翼中旗','科尔沁左翼后旗','开鲁县','库伦旗','奈曼旗','扎鲁特旗','霍林郭勒市']},
{name:'鄂尔多斯市', areaList:['东胜区','达拉特旗','准格尔旗','鄂托克前旗','鄂托克旗','杭锦旗','乌审旗','伊金霍洛旗']},
{name:'呼伦贝尔市', areaList:['市辖区','海拉尔区','阿荣旗','莫力达瓦达斡尔族自治旗','鄂伦春自治旗','鄂温克族自治旗','陈巴尔虎旗','新巴尔虎左旗','新巴尔虎右旗','满洲里市','牙克石市','扎兰屯市','额尔古纳市','根河市']},
{name:'巴彦淖尔市', areaList:['市辖区','临河区','五原县','磴口县','乌拉特前旗','乌拉特中旗','乌拉特后旗','杭锦后旗']},
{name:'乌兰察布市', areaList:['市辖区','集宁区','卓资县','化德县','商都县','兴和县','凉城县','察哈尔右翼前旗','察哈尔右翼中旗','察哈尔右翼后旗','四子王旗','丰镇市']},
{name:'兴安盟', areaList:['乌兰浩特市','阿尔山市','科尔沁右翼前旗','科尔沁右翼中旗','扎赉特旗','突泉县']},
{name:'锡林郭勒盟', areaList:['二连浩特市','锡林浩特市','阿巴嘎旗','苏尼特左旗','苏尼特右旗','东乌珠穆沁旗','西乌珠穆沁旗','太仆寺旗','镶黄旗','正镶白旗','正蓝旗','多伦县']},
{name:'阿拉善盟', areaList:['阿拉善左旗','阿拉善右旗','额济纳旗']}
]},
{name:'江苏', cityList:[
{name:'南京市', areaList:['市辖区','玄武区','白下区','秦淮区','建邺区','鼓楼区','下关区','浦口区','栖霞区','雨花台区','江宁区','六合区','溧水县','高淳县']},
{name:'无锡市', areaList:['市辖区','崇安区','南长区','北塘区','锡山区','惠山区','滨湖区','江阴市','宜兴市']},
{name:'徐州市', areaList:['市辖区','鼓楼区','云龙区','九里区','贾汪区','泉山区','丰 县','沛 县','铜山县','睢宁县','新沂市','邳州市']},
{name:'常州市', areaList:['市辖区','天宁区','钟楼区','戚墅堰区','新北区','武进区','溧阳市','金坛市']},
{name:'苏州市', areaList:['市辖区','沧浪区','平江区','金阊区','虎丘区','吴中区','相城区','常熟市','张家港市','昆山市','吴江市','太仓市']},
{name:'南通市', areaList:['市辖区','崇川区','港闸区','海安县','如东县','启东市','如皋市','通州市','海门市']},
{name:'连云港市', areaList:['市辖区','连云区','新浦区','海州区','赣榆县','东海县','灌云县','灌南县']},
{name:'淮安市', areaList:['市辖区','清河区','楚州区','淮阴区','清浦区','涟水县','洪泽县','盱眙县','金湖县']},
{name:'盐城市', areaList:['市辖区','亭湖区','盐都区','响水县','滨海县','阜宁县','射阳县','建湖县','东台市','大丰市']},
{name:'扬州市', areaList:['市辖区','广陵区','邗江区','郊 区','宝应县','仪征市','高邮市','江都市']},
{name:'镇江市', areaList:['市辖区','京口区','润州区','丹徒区','丹阳市','扬中市','句容市']},
{name:'泰州市', areaList:['市辖区','海陵区','高港区','兴化市','靖江市','泰兴市','姜堰市']},
{name:'宿迁市', areaList:['市辖区','宿城区','宿豫区','沭阳县','泗阳县','泗洪县']}
]},
{name:'浙江', cityList:[
{name:'杭州市', areaList:['市辖区','上城区','下城区','江干区','拱墅区','西湖区','滨江区','萧山区','余杭区','桐庐县','淳安县','建德市','富阳市','临安市']},
{name:'宁波市', areaList:['市辖区','海曙区','江东区','江北区','北仑区','镇海区','鄞州区','象山县','宁海县','余姚市','慈溪市','奉化市']},
{name:'温州市', areaList:['市辖区','鹿城区','龙湾区','瓯海区','洞头县','永嘉县','平阳县','苍南县','文成县','泰顺县','瑞安市','乐清市']},
{name:'嘉兴市', areaList:['市辖区','秀城区','秀洲区','嘉善县','海盐县','海宁市','平湖市','桐乡市']},
{name:'湖州市', areaList:['市辖区','吴兴区','南浔区','德清县','长兴县','安吉县']},
{name:'绍兴市', areaList:['市辖区','越城区','绍兴县','新昌县','诸暨市','上虞市','嵊州市']},
{name:'金华市', areaList:['市辖区','婺城区','金东区','武义县','浦江县','磐安县','兰溪市','义乌市','东阳市','永康市']},
{name:'衢州市', areaList:['市辖区','柯城区','衢江区','常山县','开化县','龙游县','江山市']},
{name:'舟山市', areaList:['市辖区','定海区','普陀区','岱山县','嵊泗县']},
{name:'台州市', areaList:['市辖区','椒江区','黄岩区','路桥区','玉环县','三门县','天台县','仙居县','温岭市','临海市']},
{name:'丽水市', areaList:['市辖区','莲都区','青田县','缙云县','遂昌县','松阳县','云和县','庆元县','景宁畲族自治县','龙泉市']}
]},
{name:'安徽', cityList:[
{name:'合肥市', areaList:['市辖区','瑶海区','庐阳区','蜀山区','包河区','长丰县','肥东县','肥西县']},
{name:'芜湖市', areaList:['市辖区','镜湖区','马塘区','新芜区','鸠江区','芜湖县','繁昌县','南陵县']},
{name:'蚌埠市', areaList:['市辖区','龙子湖区','蚌山区','禹会区','淮上区','怀远县','五河县','固镇县']},
{name:'淮南市', areaList:['市辖区','大通区','田家庵区','谢家集区','八公山区','潘集区','凤台县']},
{name:'马鞍山市', areaList:['市辖区','金家庄区','花山区','雨山区','当涂县']},
{name:'淮北市', areaList:['市辖区','杜集区','相山区','烈山区','濉溪县']},
{name:'铜陵市', areaList:['市辖区','铜官山区','狮子山区','郊 区','铜陵县']},
{name:'安庆市', areaList:['市辖区','迎江区','大观区','郊 区','怀宁县','枞阳县','潜山县','太湖县','宿松县','望江县','岳西县','桐城市']},
{name:'黄山市', areaList:['市辖区','屯溪区','黄山区','徽州区','歙 县','休宁县','黟 县','祁门县']},
{name:'滁州市', areaList:['市辖区','琅琊区','南谯区','来安县','全椒县','定远县','凤阳县','天长市','明光市']},
{name:'阜阳市', areaList:['市辖区','颍州区','颍东区','颍泉区','临泉县','太和县','阜南县','颍上县','界首市']},
{name:'宿州市', areaList:['市辖区','墉桥区','砀山县','萧 县','灵璧县','泗 县']},
{name:'巢湖市', areaList:['市辖区','居巢区','庐江县','无为县','含山县','和 县']},
{name:'六安市', areaList:['市辖区','金安区','裕安区','寿 县','霍邱县','舒城县','金寨县','霍山县']},
{name:'亳州市', areaList:['市辖区','谯城区','涡阳县','蒙城县','利辛县']},
{name:'池州市', areaList:['市辖区','贵池区','东至县','石台县','青阳县']},
{name:'宣城市', areaList:['市辖区','宣州区','郎溪县','广德县','泾 县','绩溪县','旌德县','宁国市']}
]},
{name:'福建', cityList:[
{name:'福州市', areaList:['市辖区','鼓楼区','台江区','仓山区','马尾区','晋安区','闽侯县','连江县','罗源县','闽清县','永泰县','平潭县','福清市','长乐市']},
{name:'厦门市', areaList:['市辖区','思明区','海沧区','湖里区','集美区','同安区','翔安区']},
{name:'莆田市', areaList:['市辖区','城厢区','涵江区','荔城区','秀屿区','仙游县']},
{name:'三明市', areaList:['市辖区','梅列区','三元区','明溪县','清流县','宁化县','大田县','尤溪县','沙 县','将乐县','泰宁县','建宁县','永安市']},
{name:'泉州市', areaList:['市辖区','鲤城区','丰泽区','洛江区','泉港区','惠安县','安溪县','永春县','德化县','金门县','石狮市','晋江市','南安市']},
{name:'漳州市', areaList:['市辖区','芗城区','龙文区','云霄县','漳浦县','诏安县','长泰县','东山县','南靖县','平和县','华安县','龙海市']},
{name:'南平市', areaList:['市辖区','延平区','顺昌县','浦城县','光泽县','松溪县','政和县','邵武市','武夷山市','建瓯市','建阳市']},
{name:'龙岩市', areaList:['市辖区','新罗区','长汀县','永定县','上杭县','武平县','连城县','漳平市']},
{name:'宁德市', areaList:['市辖区','蕉城区','霞浦县','古田县','屏南县','寿宁县','周宁县','柘荣县','福安市','福鼎市']}
]},
{name:'江西', cityList:[
{name:'南昌市', areaList:['市辖区','东湖区','西湖区','青云谱区','湾里区','青山湖区','南昌县','新建县','安义县','进贤县']},
{name:'景德镇市', areaList:['市辖区','昌江区','珠山区','浮梁县','乐平市']},
{name:'萍乡市', areaList:['市辖区','安源区','湘东区','莲花县','上栗县','芦溪县']},
{name:'九江市', areaList:['市辖区','庐山区','浔阳区','九江县','武宁县','修水县','永修县','德安县','星子县','都昌县','湖口县','彭泽县','瑞昌市']},
{name:'新余市', areaList:['市辖区','渝水区','分宜县']},
{name:'鹰潭市', areaList:['市辖区','月湖区','余江县','贵溪市']},
{name:'赣州市', areaList:['市辖区','章贡区','赣 县','信丰县','大余县','上犹县','崇义县','安远县','龙南县','定南县','全南县','宁都县','于都县','兴国县','会昌县','寻乌县','石城县','瑞金市','南康市']},
{name:'吉安市', areaList:['市辖区','吉州区','青原区','吉安县','吉水县','峡江县','新干县','永丰县','泰和县','遂川县','万安县','安福县','永新县','井冈山市']},
{name:'宜春市', areaList:['市辖区','袁州区','奉新县','万载县','上高县','宜丰县','靖安县','铜鼓县','丰城市','樟树市','高安市']},
{name:'抚州市', areaList:['市辖区','临川区','南城县','黎川县','南丰县','崇仁县','乐安县','宜黄县','金溪县','资溪县','东乡县','广昌县']},
{name:'上饶市', areaList:['市辖区','信州区','上饶县','广丰县','玉山县','铅山县','横峰县','弋阳县','余干县','鄱阳县','万年县','婺源县','德兴市']}
]},
{name:'山东', cityList:[
{name:'济南市', areaList:['市辖区','历下区','市中区','槐荫区','天桥区','历城区','长清区','平阴县','济阳县','商河县','章丘市']},
{name:'青岛市', areaList:['市辖区','市南区','市北区','四方区','黄岛区','崂山区','李沧区','城阳区','胶州市','即墨市','平度市','胶南市','莱西市']},
{name:'淄博市', areaList:['市辖区','淄川区','张店区','博山区','临淄区','周村区','桓台县','高青县','沂源县']},
{name:'枣庄市', areaList:['市辖区','市中区','薛城区','峄城区','台儿庄区','山亭区','滕州市']},
{name:'东营市', areaList:['市辖区','东营区','河口区','垦利县','利津县','广饶县']},
{name:'烟台市', areaList:['市辖区','芝罘区','福山区','牟平区','莱山区','长岛县','龙口市','莱阳市','莱州市','蓬莱市','招远市','栖霞市','海阳市']},
{name:'潍坊市', areaList:['市辖区','潍城区','寒亭区','坊子区','奎文区','临朐县','昌乐县','青州市','诸城市','寿光市','安丘市','高密市','昌邑市']},
{name:'济宁市', areaList:['市辖区','市中区','任城区','微山县','鱼台县','金乡县','嘉祥县','汶上县','泗水县','梁山县','曲阜市','兖州市','邹城市']},
{name:'泰安市', areaList:['市辖区','泰山区','岱岳区','宁阳县','东平县','新泰市','肥城市']},
{name:'威海市', areaList:['市辖区','环翠区','文登市','荣成市','乳山市']},
{name:'日照市', areaList:['市辖区','东港区','岚山区','五莲县','莒 县']},
{name:'莱芜市', areaList:['市辖区','莱城区','钢城区']},
{name:'临沂市', areaList:['市辖区','兰山区','罗庄区','河东区','沂南县','郯城县','沂水县','苍山县','费 县','平邑县','莒南县','蒙阴县','临沭县']},
{name:'德州市', areaList:['市辖区','德城区','陵 县','宁津县','庆云县','临邑县','齐河县','平原县','夏津县','武城县','乐陵市','禹城市']},
{name:'聊城市', areaList:['市辖区','东昌府区','阳谷县','莘 县','茌平县','东阿县','冠 县','高唐县','临清市']},
{name:'滨州市', areaList:['市辖区','滨城区','惠民县','阳信县','无棣县','沾化县','博兴县','邹平县']},
{name:'荷泽市', areaList:['市辖区','牡丹区','曹 县','单 县','成武县','巨野县','郓城县','鄄城县','定陶县','东明县']}
]},
{name:'辽宁', cityList:[
{name:'沈阳市', areaList:['市辖区','和平区','沈河区','大东区','皇姑区','铁西区','苏家屯区','东陵区','新城子区','于洪区','辽中县','康平县','法库县','新民市']},
{name:'大连市', areaList:['市辖区','中山区','西岗区','沙河口区','甘井子区','旅顺口区','金州区','长海县','瓦房店市','普兰店市','庄河市']},
{name:'鞍山市', areaList:['市辖区','铁东区','铁西区','立山区','千山区','台安县','岫岩满族自治县','海城市']},
{name:'抚顺市', areaList:['市辖区','新抚区','东洲区','望花区','顺城区','抚顺县','新宾满族自治县','清原满族自治县']},
{name:'本溪市', areaList:['市辖区','平山区','溪湖区','明山区','南芬区','本溪满族自治县','桓仁满族自治县']},
{name:'丹东市', areaList:['市辖区','元宝区','振兴区','振安区','宽甸满族自治县','东港市','凤城市']},
{name:'锦州市', areaList:['市辖区','古塔区','凌河区','太和区','黑山县','义 县','凌海市','北宁市']},
{name:'营口市', areaList:['市辖区','站前区','西市区','鲅鱼圈区','老边区','盖州市','大石桥市']},
{name:'阜新市', areaList:['市辖区','海州区','新邱区','太平区','清河门区','细河区','阜新蒙古族自治县','彰武县']},
{name:'辽阳市', areaList:['市辖区','白塔区','文圣区','宏伟区','弓长岭区','太子河区','辽阳县','灯塔市']},
{name:'盘锦市', areaList:['市辖区','双台子区','兴隆台区','大洼县','盘山县']},
{name:'铁岭市', areaList:['市辖区','银州区','清河区','铁岭县','西丰县','昌图县','调兵山市','开原市']},
{name:'朝阳市', areaList:['市辖区','双塔区','龙城区','朝阳县','建平县','喀喇沁左翼蒙古族自治县','北票市','凌源市']},
{name:'葫芦岛市', areaList:['市辖区','连山区','龙港区','南票区','绥中县','建昌县','兴城市']}
]},
{name:'吉林', cityList:[
{name:'长春市', areaList:['市辖区','南关区','宽城区','朝阳区','二道区','绿园区','双阳区','农安县','九台市','榆树市','德惠市']},
{name:'吉林市', areaList:['市辖区','昌邑区','龙潭区','船营区','丰满区','永吉县','蛟河市','桦甸市','舒兰市','磐石市']},
{name:'四平市', areaList:['市辖区','铁西区','铁东区','梨树县','伊通满族自治县','公主岭市','双辽市']},
{name:'辽源市', areaList:['市辖区','龙山区','西安区','东丰县','东辽县']},
{name:'通化市', areaList:['市辖区','东昌区','二道江区','通化县','辉南县','柳河县','梅河口市','集安市']},
{name:'白山市', areaList:['市辖区','八道江区','抚松县','靖宇县','长白朝鲜族自治县','江源县','临江市']},
{name:'松原市', areaList:['市辖区','宁江区','前郭尔罗斯蒙古族自治县','长岭县','乾安县','扶余县']},
{name:'白城市', areaList:['市辖区','洮北区','镇赉县','通榆县','洮南市','大安市']},
{name:'延边朝鲜族自治州', areaList:['延吉市','图们市','敦化市','珲春市','龙井市','和龙市','汪清县','安图县']}
]},
{name:'黑龙江', cityList:[
{name:'哈尔滨市', areaList:['市辖区','道里区','南岗区','道外区','香坊区','动力区','平房区','松北区','呼兰区','依兰县','方正县','宾 县','巴彦县','木兰县','通河县','延寿县','阿城市','双城市','尚志市','五常市']},
{name:'齐齐哈尔市', areaList:['市辖区','龙沙区','建华区','铁锋区','昂昂溪区','富拉尔基区','碾子山区','梅里斯达斡尔族区','龙江县','依安县','泰来县','甘南县','富裕县','克山县','克东县','拜泉县','讷河市']},
{name:'鸡西市', areaList:['市辖区','鸡冠区','恒山区','滴道区','梨树区','城子河区','麻山区','鸡东县','虎林市','密山市']},
{name:'鹤岗市', areaList:['市辖区','向阳区','工农区','南山区','兴安区','东山区','兴山区','萝北县','绥滨县']},
{name:'双鸭山市', areaList:['市辖区','尖山区','岭东区','四方台区','宝山区','集贤县','友谊县','宝清县','饶河县']},
{name:'大庆市', areaList:['市辖区','萨尔图区','龙凤区','让胡路区','红岗区','大同区','肇州县','肇源县','林甸县','杜尔伯特蒙古族自治县']},
{name:'伊春市', areaList:['市辖区','伊春区','南岔区','友好区','西林区','翠峦区','新青区','美溪区','金山屯区','五营区','乌马河区','汤旺河区','带岭区','乌伊岭区','红星区','上甘岭区','嘉荫县','铁力市']},
{name:'佳木斯市', areaList:['市辖区','永红区','向阳区','前进区','东风区','郊 区','桦南县','桦川县','汤原县','抚远县','同江市','富锦市']},
{name:'七台河市', areaList:['市辖区','新兴区','桃山区','茄子河区','勃利县']},
{name:'牡丹江市', areaList:['市辖区','东安区','阳明区','爱民区','西安区','东宁县','林口县','绥芬河市','海林市','宁安市','穆棱市']},
{name:'黑河市', areaList:['市辖区','爱辉区','嫩江县','逊克县','孙吴县','北安市','五大连池市']},
{name:'绥化市', areaList:['市辖区','北林区','望奎县','兰西县','青冈县','庆安县','明水县','绥棱县','安达市','肇东市','海伦市']},
{name:'大兴安岭地区', areaList:['呼玛县','塔河县','漠河县']}
]},
{name:'海南', cityList:[
{name:'海口市', areaList:['市辖区','秀英区','龙华区','琼山区','美兰区']},
{name:'三亚市', areaList:['市辖区']},
{name:'省直辖县级行政单位', areaList:['五指山市','琼海市','儋州市','文昌市','万宁市','东方市','定安县','屯昌县','澄迈县','临高县','白沙黎族自治县','昌江黎族自治县','乐东黎族自治县','陵水黎族自治县','保亭黎族苗族自治县','琼中黎族苗族自治县','西沙群岛','南沙群岛','中沙群岛的岛礁及其海域']}
]},
{name:'台湾', cityList:[
{name:'台湾', areaList:['台湾']}
]},
{name:'香港', cityList:[
{name:'香港', areaList:['香港']}
]},
{name:'澳门', cityList:[
{name:'澳门', areaList:['澳门']}
]}
];

2
public/lib/layui/css/layui.css

File diff suppressed because one or more lines are too long

2
public/lib/layui/css/layui.mobile.css

File diff suppressed because one or more lines are too long

2
public/lib/layui/css/modules/code.css

@ -0,0 +1,2 @@
/** layui-v2.5.6 MIT License By https://www.layui.com */
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}

2
public/lib/layui/css/modules/laydate/default/laydate.css

File diff suppressed because one or more lines are too long

BIN
public/lib/layui/css/modules/layer/default/icon-ext.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
public/lib/layui/css/modules/layer/default/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

2
public/lib/layui/css/modules/layer/default/layer.css

File diff suppressed because one or more lines are too long

BIN
public/lib/layui/css/modules/layer/default/loading-0.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

BIN
public/lib/layui/css/modules/layer/default/loading-1.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

BIN
public/lib/layui/css/modules/layer/default/loading-2.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
public/lib/layui/font/iconfont.eot

Binary file not shown.

554
public/lib/layui/font/iconfont.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 299 KiB

BIN
public/lib/layui/font/iconfont.ttf

Binary file not shown.

BIN
public/lib/layui/font/iconfont.woff

Binary file not shown.

BIN
public/lib/layui/font/iconfont.woff2

Binary file not shown.

BIN
public/lib/layui/images/face/0.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

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

Loading…
Cancel
Save