Переглянути джерело

Merge branch 'master' of http://git.bocai108.com:10180/Ethan/Customer-Service

# Conflicts:
#	application/admin/view/kfnotice/add.html
vali 6 роки тому
батько
коміт
4612033aa8
50 змінених файлів з 4034 додано та 1816 видалено
  1. 0 674
      LICENSE
  2. 0 29
      README.md
  3. 10 11
      application/admin/controller/Accounts.php
  4. 8 2
      application/admin/controller/Admins.php
  5. 1 1
      application/admin/controller/Base.php
  6. 2 0
      application/admin/controller/Index.php
  7. 6 5
      application/admin/controller/Menu.php
  8. 21 0
      application/admin/controller/System.php
  9. 20 60
      application/admin/controller/Users.php
  10. 1 1
      application/admin/model/Groups.php
  11. 1 1
      application/admin/view/admins/addadmin.html
  12. 1 1
      application/admin/view/admins/addpower.html
  13. 18 1
      application/admin/view/admins/editadmin.html
  14. 2 2
      application/admin/view/admins/editpower.html
  15. 5 1
      application/admin/view/admins/index.html
  16. 8 4
      application/admin/view/admins/power.html
  17. 1 1
      application/admin/view/groups/addgroup.html
  18. 1 1
      application/admin/view/groups/editgroup.html
  19. 4 0
      application/admin/view/groups/index.html
  20. 3 3
      application/admin/view/index.html
  21. 265 129
      application/admin/view/index/index.html
  22. 5 5
      application/admin/view/kfnotice/add.html
  23. 4 0
      application/admin/view/kfnotice/index.html
  24. 4 4
      application/admin/view/login/index.html
  25. 1 1
      application/admin/view/menu/add.html
  26. 1 1
      application/admin/view/menu/edit.html
  27. 4 0
      application/admin/view/menu/index.html
  28. 4 0
      application/admin/view/robot/index.html
  29. 4 0
      application/admin/view/sensitivec/index.html
  30. 0 150
      application/admin/view/server/index.html
  31. 14 5
      application/admin/view/system/detail.html
  32. 8 2
      application/admin/view/users/adduser.html
  33. 13 29
      application/admin/view/users/edituser.html
  34. 4 0
      application/admin/view/users/index.html
  35. 1 1
      application/admin/view/words/addword.html
  36. 1 1
      application/admin/view/words/editword.html
  37. 6 2
      application/admin/view/words/index.html
  38. 1 1
      application/index/controller/Common.php
  39. 0 56
      application/index/view/index/chat.html
  40. 0 331
      application/index/view/index/index.html
  41. 0 58
      application/index/view/index/mobile.html
  42. 4 3
      application/service/controller/Login.php
  43. 0 159
      application/service/view/index/index.html
  44. 0 75
      application/service/view/login/index.html
  45. 3560 0
      public/static/admin/js/layui/css/myLayui.css
  46. 1 1
      public/static/customer/js/whisper-tool.js
  47. BIN
      public/uploads/20190710/1eb365abe937b3fb5b8b942f39280fd3.jpg
  48. BIN
      public/uploads/20190710/a3e8d4459b52936b0fd485d1c9bc34a9.jpg
  49. BIN
      public/uploads/20190710/ec3cbab461a84c1f6405d0c64fee66b5.jpg
  50. 16 4
      vendor/GatewayWorker_windows/Applications/whisper/Events.php

+ 0 - 674
LICENSE

@@ -1,674 +0,0 @@
-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}  {fullname}
-
-    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:
-
-    whisper_tp5  Copyright (C) 2017  白云飞
-    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].

+ 0 - 29
README.md

@@ -1,29 +0,0 @@
-## whsiper
-whisper客服系统,是采用thinkphp5+Gatewayworker开的高性能客服系统  
-欢迎您给我打星,更多的内容请进入官网查看
-
-***
-## whisper客服系统交流群 
-QQ: 345146554
-
-***
-## 打赏作者  
-支付宝
-![支付宝](https://images.gitee.com/uploads/images/2019/0522/142641_89579267_552304.png)  
-微信
-![微信](https://images.gitee.com/uploads/images/2019/0522/142636_9476f13d_552304.png) 
-
-***  
-## 重要通知
-vendor下放了两套环境的 gatewayworker (因为开发的时候用的gatewayworker还没合并两个版本)  
-gatewayworker_windows 是windows下用的  
-gatewayworker_linux 是linux环境下用的  
-
-多看看文档,不会的,欢迎入群讨论。
-
-***
-## 官网:
-[whisper官网](http://whisper.baiyf.com)  
-[whisper文档](https://www.kancloud.cn/nickbai/whisper/552736)
-
-### 很重要的一点,开源版本仅供学习参考使用,切勿商用(包括但不限于在自己的网站上使用,二次开发出售等),商用请授权!

+ 10 - 11
application/admin/controller/Accounts.php

@@ -53,28 +53,27 @@ class Accounts extends Base
         if(request()->isAjax()){
 
             $param = input('post.');
-
-            $addar = array();
-            $where = array();
-            $where['id'] = $param['id'];
+            $info = array();
             $rules = '/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/';
 
             if(!preg_match($rules,$param['account_email'])){
                 return json(['code' => -9, 'data' => '', 'msg' => '请输入正确的邮箱']);
             }
 
-            if(!preg_match("/^1[34578]\d{9}$/", $param['phone'])){
+            if(!preg_match("/^1[34578]\d{9}$/", $param['account_phone'])){
                 return json(['code' => -10, 'data' => '', 'msg' => '请输入正确的手机号码']);
             }
 
-            $addar['user_email'] = $param['account_email'];
-            $addar['phone'] = $param['phone'];
-            $addar['signature'] = $param['signature'];
-            $addar['group_id'] = $param['group_id'];
-            $addar['status'] = $param['status'];
+            $info['account_email'] = $param['account_email'];
+            $info['account_phone'] = $param['account_phone'];
+            $info['address'] = $param['address'];
+            $info['label'] = $param['label'];
+            $info['remark'] = $param['remark'];
+            $info['status'] = $param['status'];
+            $info['user_id'] = $param['user_id'];
 
             try{
-                db('account')->where('id', $param['id'])->update($addar);
+                db('accounts')->where('id', $param['id'])->update($info);
             }catch(\Exception $e){
                 return json(['code' => -6, 'data' => '', 'msg' => $e->getMessage()]);
             }

+ 8 - 2
application/admin/controller/Admins.php

@@ -112,6 +112,10 @@ class Admins extends Base
                 return json(['code' => -1, 'data' => '', 'msg' => '该管理员已经存在']);
             }
 
+            if ($param['group_id'] == 0) {
+                return json(['code' => -2, 'data' => '', 'msg' => '请选择分组']);
+            }
+
             // 修改用户密码
             if (empty($param['password'])) {
                 unset($param['password']);
@@ -122,7 +126,7 @@ class Admins extends Base
             try {
                 db('admins')->where('id', $param['id'])->update($param);
             } catch (\Exception $e) {
-                return json(['code' => -2, 'data' => '', 'msg' => $e->getMessage()]);
+                return json(['code' => -3, 'data' => '', 'msg' => $e->getMessage()]);
             }
 
             return json(['code' => 1, 'data' => '', 'msg' => '编辑管理员成功']);
@@ -130,9 +134,11 @@ class Admins extends Base
 
         $id = input('param.id/d');
         $info = db('admins')->where('id', $id)->find();
+        $admingroup = db('admingroup')->select();
 
         $this->assign([
             'info' => $info,
+            'admingroup' => $admingroup,
             'status' => config('kf_status')
         ]);
         return $this->fetch('editadmin');
@@ -178,7 +184,7 @@ class Admins extends Base
                 $result[$key]['addtime'] = date('Y-m-d H:i:s', $vo['addtime']);
 
                 // 生成操作按钮
-                if (0 != $vo['group_id']) {
+                if (1 != $vo['group_id']) {
                     $result[$key]['operate'] = $this->makeBtnPower($vo['group_id']);
                 }
             }

+ 1 - 1
application/admin/controller/Base.php

@@ -7,7 +7,7 @@ class Base extends Controller
 {
     public function _initialize()
     {
-        if (!session('user_id')) {
+        if (!session('user_id') || !session('token')) {
             $this->redirect('admin/login/index');
         }
         $admin = db('admins')->where('id',session('user_id'))->find();

+ 2 - 0
application/admin/controller/Index.php

@@ -12,9 +12,11 @@ class Index extends Base
     // 后台默认首页
     public function indexPage()
     {
+        $groups = model('Groups')->selectGroups();
         $this->assign([
             'socket' => config('socket'),
             'token' => session('token'),
+            'groups' => $groups,
         ]);
 
 

+ 6 - 5
application/admin/controller/Menu.php

@@ -65,6 +65,7 @@ class Menu extends Base
                 return json(['code' => -2, 'data' => '', 'msg' => '请选择父级菜单']);
             }
             $info = array();
+            $powerinfo = array();
             $info['name_cn'] = $param['name'];
             $info['p_id'] = $param['p_id'];
             $info['sort'] = $param['sort'];
@@ -73,22 +74,22 @@ class Menu extends Base
             }else{
                 $info['url'] = $param['url'];
             }
+            $admingroup = db('admingroup')->where('group_name', '超级管理员')->find();
             try {
-                db('menu')->insert($info);
+                $menu_id = db('menu')->insertGetId($info);
+                $powerinfo['group_id'] = $admingroup['group_id'];
+                $powerinfo['menu_id'] = $menu_id;
+                db('admingrouppower')->insert($powerinfo);
             } catch (\Exception $e) {
                 return json(['code' => -3, 'data' => '', 'msg' => $e->getMessage()]);
             }
-
             return json(['code' => 1, 'data' => '', 'msg' => '添加菜单成功']);
         }
-
         $pmenu = db('menu')->where('p_id',0)->select();
-
         $this->assign([
             'pmenu' => $pmenu,
             'status' => config('kf_status')
         ]);
-
         return $this->fetch();
     }
 

+ 21 - 0
application/admin/controller/System.php

@@ -300,10 +300,31 @@ class System extends Base
         $evaluate = db('evaluate')->where('evaluate_id',$servicelog['evaluate_id'])->find();
         $evaluate = $evaluate['evaluate_name'];
 
+        //$alarm报警信息
+        $alarm =  db('alarm')->where('servicelog_id',$id)->find();
+        $ul = '';
+        if(!empty($alarm)){
+            $ul = $ul . '<ul class="alarm"><li>触犯警报</li>';
+            if($alarm['alarm_userSensitive'] != 0){
+                $ul = $ul . '<li class="alarm_info">访客敏感词</li>';
+            }
+            if($alarm['alarm_serverSensitive'] != 0){
+                $ul = $ul . '<li class="alarm_info">客服敏感词</li>';
+            }
+            if($alarm['alarm_corresponding'] != 0){
+                $ul = $ul . '<li class="alarm_info">相应超时</li>';
+            }
+            if($alarm['alarm_cvtOvertime'] != 0){
+                $ul = $ul . '<li class="alarm_info">会话超时</li>';
+            }
+            $ul = $ul . '</ul>';
+        }
+
         //用户信息
         $account = db('accounts')->where('id',$servicelog['user_id'])->find();
         $this->assign([
             'html' => $html,
+            'ul' => $ul,
             'evaluate' => $evaluate,
             'servicelog' => $servicelog,
             'account' => $account

+ 20 - 60
application/admin/controller/Users.php

@@ -66,37 +66,36 @@ class Users extends Base
 
             $param = input('post.');
             unset($param['file']); // 删除layui头像上传隐藏字段
-            // 检测头像
-            if(empty($param['user_avatar'])){
-                return json(['code' => -1, 'data' => '', 'msg' => '请上传头像']);
-            }
 
-            if(empty($param['group_id'])){
-                return json(['code' => -4, 'data' => '', 'msg' => '请选择分组']);
+            // 检测账号
+            if(!empty($param['user_account'])){
+                $user = db('users')->where('user_account', $param['user_account'])->find();
+                if(!empty($user)){
+                    return json(['code' => -1, 'data' => '', 'msg' => '该账号已存在']);
+                }
             }
-
-            $has = db('users')->field('id')->where('user_name', $param['user_name'])->find();
-            if(!empty($has)){
-                return json(['code' => -2, 'data' => '', 'msg' => '该客服已经存在']);
+            // 检测客服工号
+            if(!empty($param['user_job_number'])){
+                $user_job_number = db('users')->where('user_job_number', $param['user_job_number'])->find();
+                if(!empty($user_job_number)){
+                    return json(['code' => -2, 'data' => '', 'msg' => '该工号已经存在']);
+                }
             }
-
-            $user_job_number = db('users')->field('id')->where('user_job_number', $param['user_job_number'])->find();
-            if(!empty($user_job_number)){
-                return json(['code' => -2, 'data' => '', 'msg' => '该工号已经存在']);
+            if(empty($param['group_id'])){
+                return json(['code' => -3, 'data' => '', 'msg' => '请选择分组']);
             }
-
-            $user_email = db('users')->field('id')->where('user_email', $param['user_email'])->find();
-            if(!empty($user_email)){
-                return json(['code' => -2, 'data' => '', 'msg' => '该邮箱已经存在']);
+            // 检测头像
+            if(empty($param['user_avatar'])){
+                return json(['code' => -4, 'data' => '', 'msg' => '请上传头像']);
             }
 
-            $param['user_pwd'] = md5($param['user_pwd'] . config('salt'));
+            $param['user_pwd'] = md5('123456' . config('salt'));
             $param['online'] = 2; // 离线状态
 
             try{
                 db('users')->insert($param);
             }catch(\Exception $e){
-                return json(['code' => -3, 'data' => '', 'msg' => $e->getMessage()]);
+                return json(['code' => -5, 'data' => '', 'msg' => $e->getMessage()]);
             }
 
             return json(['code' => 1, 'data' => '', 'msg' => '添加客服成功']);
@@ -124,44 +123,6 @@ class Users extends Base
             $addar = array();
             $where = array();
             $where['id'] = $param['id'];
-            $userspw = db('users')->where($where)->field("user_pwd")->find();
-            $newpwd = md5($param['new_pwd'] . config('salt'));//新密码
-            $oldpwd = md5($param['user_pwd'] . config('salt'));//旧密码
-            $rules = '/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/';
-            $useremail = $param['user_email'];
-            $phone = $param['phone'];
-            
-            // 检测用户新密码与原密码是否重复
-            if(!empty($param['new_pwd'])){
-                if($oldpwd != $userspw['user_pwd']){
-                    return json(['code' => -8, 'data' => '', 'msg' => '原密码不对']);
-                }
-
-                if($newpwd==$userspw['user_pwd']){
-                    return json(['code' => -3, 'data' => '', 'msg' => '新密码与原密码一致']);
-                }
-
-                if($param['renew_pwd'] != $param['new_pwd']){
-                    return json(['code' => -7, 'data' => '', 'msg' => '新密码与确认密码不一致']);
-                }
-                $addar['user_pwd'] = md5($param['new_pwd'] . config('salt'));
-            }
-
-            if(!preg_match($rules,$useremail)){
-                return json(['code' => -9, 'data' => '', 'msg' => '请输入正确的邮箱']);
-            }
-
-            if(!preg_match("/^1[34578]\d{9}$/", $phone)){
-                return json(['code' => -10, 'data' => '', 'msg' => '请输入正确的手机号码']);
-            }
-            
-            if(!empty($param['user_avatar'])){
-                $addar['user_avatar'] = $param['user_avatar'];
-            }
-            $addar['fullname'] = $param['fullname'];
-            $addar['user_email'] = $param['user_email'];
-            $addar['phone'] = $param['phone'];
-            $addar['signature'] = $param['signature'];
             $addar['group_id'] = $param['group_id'];
             $addar['status'] = $param['status'];
           
@@ -170,10 +131,8 @@ class Users extends Base
             }catch(\Exception $e){
                 return json(['code' => -6, 'data' => '', 'msg' => $e->getMessage()]);
             }
-
             return json(['code' => 1, 'data' => '', 'msg' => '编辑客服成功']);
         }
-
         $id = input('param.id/d');
         $info = db('users')->where('id', $id)->find();
 
@@ -185,6 +144,7 @@ class Users extends Base
         return $this->fetch('edituser');
     }
 
+    //重置密码为123456
     public function resetPwd(){
         if(request()->isAjax()){
             $id = input('param.id/d');

+ 1 - 1
application/admin/model/Groups.php

@@ -17,7 +17,7 @@ class Groups extends Model
      * @param mixed $where 条件
      * @return array 返回类型
      */
-    public function select($where=[])
+    public function selectGroups($where=[])
     {
         $result = $this;
         if (empty($where) === false) {

+ 1 - 1
application/admin/view/admins/addadmin.html

@@ -100,7 +100,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/admins/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 1 - 1
application/admin/view/admins/addpower.html

@@ -76,7 +76,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/admins/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 18 - 1
application/admin/view/admins/editadmin.html

@@ -34,6 +34,20 @@
                                 <input id="password" type="text" class="form-control" name="password" placeholder="重新输入则为修改">
                             </div>
                         </div>
+                        <div class="form-group">
+                            <label class="col-sm-3 control-label">选择角色:</label>
+                            <input type="hidden" id="group_id" name="group_id"/>
+                            <div class="input-group col-sm-4 layui-form">
+                                <select lay-verify="required" lay-filter="group">
+                                    <option value="0">请选择分组</option>
+                                    {if !empty($admingroup)}
+                                    {foreach name="admingroup" item="vo"}
+                                    <option value="{$vo['group_id']}" {if $vo['group_id'] eq $info['group_id']}selected{/if}>{$vo['group_name']}</option>
+                                    {/foreach}
+                                    {/if}
+                                </select>
+                            </div>
+                        </div>
                         <div class="form-group layui-form-item">
                             <label class="col-sm-3 control-label">是否启用:</label>
                             <div class="input-group col-sm-6">
@@ -68,6 +82,9 @@
 
     layui.use(['form', 'upload'], function(){
         var form = layui.form;
+        form.on('select(group)', function(value){
+            $("#group_id").val(value.value);
+        });
     });
 
     var index = '';
@@ -82,7 +99,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/admins/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 2 - 2
application/admin/view/admins/editpower.html

@@ -40,7 +40,7 @@
                             <div style="margin:5px 20px;">
                                 {foreach name="$vo['menulist']" item="vo" key="key"}
                                 <input type="hidden" name="{$vo['name_cn']}" value="0">
-                                <input class="menulist" type="checkbox" name="{$vo['name_cn']}" value="{$vo['id']}" {if$vo['power']==1} checked {/if} >{$vo['name_cn']}
+                                <input class="menulist"  type="checkbox" name="{$vo['name_cn']}" value="{$vo['id']}" {if$vo['power']==1} checked {/if} >{$vo['name_cn']}
                                 {/foreach}
                             </div>
                         </div>
@@ -85,7 +85,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/admins/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 5 - 1
application/admin/view/admins/index.html

@@ -19,6 +19,10 @@
             <h5>管理员列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/admins/addadmin.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">
@@ -39,7 +43,7 @@
                         <thead>
                         <th data-field="id">管理员ID</th>
                         <th data-field="user_name">管理员名称</th>
-                        <th data-field="group_name">管理员权限</th>
+                        <th data-field="group_name">管理员角色</th>
                         <th data-field="last_login_ip">上次登录ip</th>
                         <th data-field="last_login_time">上次登录时间</th>
                         <th data-field="status">状态</th>

+ 8 - 4
application/admin/view/admins/power.html

@@ -3,7 +3,7 @@
 <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>权限组列表</title>
+    <title>角色列表</title>
     <link rel="shortcut icon" href="favicon.ico">
     <link href="__CSS__/bootstrap.min.css?v=3.3.6" rel="stylesheet">
     <link href="__CSS__/font-awesome.min.css?v=4.4.0" rel="stylesheet">
@@ -16,15 +16,19 @@
     <!-- Panel Other -->
     <div class="ibox float-e-margins">
         <div class="ibox-title">
-            <h5>权限组列表</h5>
+            <h5>角色列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/admins/addpower.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <div class="example-wrap">
                 <div class="example">
                     <table id="cusTable">
                         <thead>
-                        <th data-field="group_id">权限组ID</th>
-                        <th data-field="group_name">权限组名称</th>
+                        <th data-field="group_id">角色ID</th>
+                        <th data-field="group_name">角色名称</th>
                         <th data-field="addtime">创建时间</th>
                         <th data-field="status">状态</th>
                         <th data-field="operate">操作</th>

+ 1 - 1
application/admin/view/groups/addgroup.html

@@ -76,7 +76,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/groups/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 1 - 1
application/admin/view/groups/editgroup.html

@@ -76,7 +76,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/groups/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 4 - 0
application/admin/view/groups/index.html

@@ -19,6 +19,10 @@
             <h5>分组列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/groups/addgroup.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 3 - 3
application/admin/view/index.html

@@ -4,7 +4,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="renderer" content="webkit">
     <meta http-equiv="Cache-Control" content="no-siteapp"/>
-    <title>whisper-{$version}管理后台</title>
+    <title>管理后台</title>
     <meta name="keywords" content="">
     <meta name="description" content="">
     <!--[if lt IE 9]>
@@ -117,8 +117,8 @@
                     data-id="index_v1.html" seamless></iframe>
         </div>
         <div class="footer">
-            <div class="pull-right">&copy; 2018-2020 {$version} <a href="http://baiyf.com" target="_blank">baiyf.com</a>
-            </div>
+            <!--<div class="pull-right">&copy; 2018-2020 {$version} <a href="http://baiyf.com" target="_blank">baiyf.com</a>
+            </div>-->
         </div>
     </div>
     <!--右侧部分结束-->

+ 265 - 129
application/admin/view/index/index.html

@@ -8,114 +8,153 @@
     <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
     <link href="https://cdn.staticfile.org/font-awesome/4.4.0/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
+    <link href="__CSS__/bootstrap.min.css?v=3.3.6" rel="stylesheet">
+    <link href="__CSS__/font-awesome.min.css?v=4.4.0" rel="stylesheet">
+    <link href="__CSS__/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
+    <link href="__CSS__/animate.min.css" rel="stylesheet">
     <link href="__CSS__/style.min.css?v=4.1.0" rel="stylesheet">
+    <link href="__JS__/layui/css/myLayui.css" rel="stylesheet">
 </head>
 <body class="gray-bg">
 <div class="wrapper wrapper-content">
     <div class="row">
         <div class="col-sm-2">
             <div class="ibox float-e-margins">
-                <div class="ibox-title">
-                    <span class="label label-primary pull-right">今天</span>
-                    <h5>正在咨询的人数</h5>
+                <div class="ibox-title" style="display: flex; justify-content: center;">
+                    <!--<span class="label label-primary pull-right">今天</span>-->
+                    <h3>敏感词报警</h3>
                 </div>
-                <div class="ibox-content">
-                    <h1 class="no-margins">{$data['is_talking']}</h1>
-                    <div class="stat-percent font-bold text-navy"></div>
+                <div class="ibox-content" style="text-align: center">
+                    <h1 class="no-margins"><span id="allSensitive">0</span><span style="font-size: 14px; margin-left: 10px">次</span></h1>
                     <small></small>
                 </div>
-            </div>
-        </div>
-        <div class="col-sm-2">
-            <div class="ibox float-e-margins">
-                <div class="ibox-title">
-                    <span class="label label-primary pull-right">今天</span>
-                    <h5>正在排队的用户</h5>
-                </div>
-                <div class="ibox-content">
-                    <h1 class="no-margins">{$data['in_queue']}</h1>
-                    <div class="stat-percent font-bold text-danger"></div>
-                    <small></small>
+                <div class="ibox-content" style="font-size: 12px; padding: 5px 20px 5px; height: 45px;">
+                    <div style="display: flex">
+                        <div style="width: 80px; text-align: right;">访客次数</div>
+                        <div style="margin-left: 20px; text-align: right;" id="userSensitive">0</div>
+                    </div>
+                    <div style="display: flex">
+                        <div style="width: 80px; text-align: right;">客服次数</div>
+                        <div style="margin-left: 20px; text-align: right;" id="serverSensitive">0</div>
+                    </div>
                 </div>
             </div>
         </div>
         <div class="col-sm-2">
             <div class="ibox float-e-margins">
-                <div class="ibox-title">
-                    <span class="label label-primary pull-right">今天</span>
-                    <h5>当前在线客服数</h5>
+                <div class="ibox-title" style="display: flex; justify-content: center;">
+                    <!--<span class="label label-primary pull-right">今天</span>-->
+                    <h3>平均响应超时</h3>
                 </div>
-                <div class="ibox-content">
-                    <h1 class="no-margins">{$data['online_kf']}</h1>
-                    <div class="stat-percent font-bold text-danger"></div>
+                <div class="ibox-content" style="text-align: center">
+                    <h1 class="no-margins"><span id="csdTime">0</span><span style="font-size: 14px; margin-left: 10px">秒</span></h1>
                     <small></small>
                 </div>
+                <div class="ibox-content" style="font-size: 12px; padding: 5px 20px 5px; height: 45px; line-height: 3;">
+                    <div style="display: flex">
+                        <div style="width: 80px; text-align: right;">响应超时次数</div>
+                        <div style="margin-left: 20px; text-align: right;" id="csdNumber">0</div>
+                    </div>
+                </div>
             </div>
         </div>
         <div class="col-sm-2">
             <div class="ibox float-e-margins">
-                <div class="ibox-title">
-                    <span class="label label-primary pull-right">今天</span>
-                    <h5>接入会话量</h5>
+                <div class="ibox-title" style="display: flex; justify-content: center;">
+                    <!--<span class="label label-primary pull-right">今天</span>-->
+                    <h3>平均会话超时</h3>
                 </div>
-                <div class="ibox-content">
-                    <h1 class="no-margins">{$data['success_in']}</h1>
-                    <div class="stat-percent font-bold text-danger"></div>
+                <div class="ibox-content" style="text-align: center">
+                    <h1 class="no-margins"><span id="overtimeTime">0</span><span style="font-size: 14px; margin-left: 10px">秒</span></h1>
                     <small></small>
                 </div>
+                <div class="ibox-content" style="font-size: 12px; padding: 5px 20px 5px; height: 45px; line-height: 3;">
+                    <div style="display: flex">
+                        <div style="width: 80px; text-align: right;">会话超时次数</div>
+                        <div style="margin-left: 20px; text-align: right;" id="overtimeNumber">0</div>
+                    </div>
+                </div>
             </div>
         </div>
         <div class="col-sm-2">
             <div class="ibox float-e-margins">
-                <div class="ibox-title">
-                    <span class="label label-primary pull-right">今天</span>
-                    <h5>总会话量</h5>
+                <div class="ibox-title" style="display: flex; justify-content: center;">
+                    <!--<span class="label label-primary pull-right">今天</span>-->
+                    <h3>满意度报警</h3>
                 </div>
-                <div class="ibox-content">
-                    <h1 class="no-margins">{$data['total_in']}</h1>
-                    <div class="stat-percent font-bold text-danger"></div>
+                <div class="ibox-content" style="text-align: center">
+                    <h1 class="no-margins"><span id="evaluateCount1">0</span><span style="font-size: 14px; margin-left: 10px">次</span></h1>
                     <small></small>
                 </div>
+                <div class="ibox-content" style="font-size: 12px; padding: 5px 20px 5px; height: 45px; line-height: 3;">
+                    <div style="display: flex">
+                        <div style="width: 80px; text-align: right;">不满意次数</div>
+                        <div style="margin-left: 20px; text-align: right;" id="evaluateCount2">0</div>
+                    </div>
+                </div>
             </div>
         </div>
     </div>
 
-    <div class="row">
-        <div class="col-sm-8">
-            <div class="ibox float-e-margins">
-                <div class="ibox-title">
-                    <h5>今日数据分析</h5>
-                </div>
-                <div class="ibox-content no-padding">
-                    <div class="ibox-content" style="height: 350px" id="main">
-
-                    </div>
-                </div>
-            </div>
+    <div class="ibox float-e-margins">
+        <div class="ibox-title">
+            <h5>会话监控</h5>
         </div>
-        <div class="col-sm-4">
-            <div class="ibox float-e-margins">
-                <div class="ibox-title">
-                    <h5>系统说明</h5>
-                </div>
-                <div class="ibox-content">
-                    <p>whisper客服系统:
-                       为了让更多的站长拥有自己可以控制的客服系统而开发的。
-                    </p>
-                    <div class="alert alert-info">
-                        您可以通过<a href="baiyf.com" target="_blank"> 这里 </a> 查看详细的文档,以及更新说明。
-                    </div>
-                    <p>
-                        whisper采取一次授权终身免费升级的策略。
-                    </p>
-                    <div class="alert alert-info">
-                        作者私人 QQ:876337011。 邮箱:  876337011@qq.com
+        <div class="ibox-content">
+            <!--搜索框开始-->
+            <form id='commentForm' role="form" method="post" class="form-inline">
+                <div class="content clearfix m-b">
+                    <div class="form-group">
+                        <label>分组名称:</label>
+                        <div class="input-group col-sm-4 layui-form" style="width: 120px;">
+                            <input type="hidden" id="group_id"/>
+                            <select lay-verify="required" lay-filter="group">
+                                <option value="">全部客服组</option>
+                                {if !empty($groups)}
+                                {foreach name="groups" item="vo"}
+                                <option value="{$vo['id']}">{$vo['name']}</option>
+                                {/foreach}
+                                {/if}
+                            </select>
+                        </div>
                     </div>
-                    <div class="alert alert-danger">
-                        一切未授权就使用的用户,本人保留追究责任的权利!
+                    <div class="form-group" style="margin-left: 40px">
+                        <label>报警状态:</label>
+                        <div class="input-group col-sm-4 layui-form" style="width: 120px;">
+                            <input type="hidden" id="alarm_id"/>
+                            <select lay-verify="required" lay-filter="alarm">
+                                <option value="">所有会话</option>
+                                <option value="1">正常会话</option>
+                                <option value="2">报警会话</option>
+                            </select>
+                        </div>
                     </div>
                 </div>
+            </form>
+            <!--搜索框结束-->
+            <div class="example-wrap">
+                <div class="example">
+                    <table id="cusTable" class="table table-hover table-striped">
+                        <thead>
+                        <tr>
+                            <th>会话ID</th>
+                            <th>访客进线时间</th>
+                            <th>接待客服</th>
+                            <th>访客名</th>
+                            <th>会话开始时间</th>
+                            <th>报警次数</th>
+                            <th>操作</th>
+                        </tr>
+                        </thead>
+                        <tbody id="table">
+                        <tr>
+                            <td colspan="999" style="text-align: center">暂无数据</td>
+                        </tr>
+                        </tbody>
+                    </table>
+                </div>
             </div>
+            <!-- End Example Pagination -->
         </div>
     </div>
 </div>
@@ -124,69 +163,33 @@
 <script src="https://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
 <script src="/static/admin/js/plugins/echarts/echarts.min.js"></script>
 <script src="/static/customer/js/md5.js"></script>
+<script src="__JS__/jquery.min.js?v=2.1.4"></script>
+<script src="__JS__/bootstrap.min.js?v=3.3.6"></script>
+<script src="__JS__/content.min.js?v=1.0.0"></script>
+<script src="__JS__/plugins/bootstrap-table/bootstrap-table.min.js"></script>
+<script src="__JS__/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
+<script src="__JS__/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
+<script src="__JS__/plugins/layer/layer.min.js"></script>
+<script src="__JS__/plugins/validate/jquery.validate.min.js"></script>
+<script src="__JS__/plugins/validate/messages_zh.min.js"></script>
+<script src="__JS__/layui/layui.js"></script>
+<script src="__JS__/jquery.form.js"></script>
 <script type="text/javascript">
-    var data = {$show_data};
-    // 基于准备好的dom,初始化echarts实例
-    var myChart = echarts.init(document.getElementById('main'));
 
-    // 指定图表的配置项和数据
-    var option = {
-        tooltip: {
-            trigger: 'axis'
-        },
-        legend: {
-            data:['正在咨询的会员','排队的会员','接入会话量','总会话量']
-        },
-        grid: {
-            left: '3%',
-            right: '4%',
-            bottom: '3%',
-            containLabel: true
-        },
-        toolbox: {
-            feature: {
-                saveAsImage: {}
-            }
-        },
-        xAxis: {
-            type: 'category',
-            boundaryGap: false,
-            data: ['08:00','09:00','10:00','11:00','12:00','13:00','14:00','15:00','16:00','17:00',
-                '18:00','19:00','20:00','21:00','22:00']
-        },
-        yAxis: {
-            type: 'value'
-        },
-        series: [
-            {
-                name:'正在咨询的会员',
-                type:'line',
-                stack: '总量',
-                data: data.is_talking
-            },
-            {
-                name:'排队的会员',
-                type:'line',
-                stack: '总量',
-                data: data.in_queue
-            },
-            {
-                name:'接入会话量',
-                type:'line',
-                stack: '总量',
-                data: data.success_in
-            },
-            {
-                name:'总会话量',
-                type:'line',
-                stack: '总量',
-                data: data.total_in
-            }
-        ]
-    };
+    layui.use(['form', 'upload'], function(){
+        var form = layui.form;
+
+        form.on('select(group)', function(value){
+            $("#group_id").val(value.value);
+            onSearch()
+        });
+
+        form.on('select(alarm)', function(value){
+            $("#alarm_id").val(value.value);
+            onSearch()
+        });
+    });
 
-    // 使用刚指定的配置项和数据显示图表。
-    myChart.setOption(option);
 </script>
 <!--webSocket-->
 <script>
@@ -194,6 +197,7 @@
         socket: '{$socket}',
         token: '{$token}',
     };
+    let myData = [];
     let date = new Date(new Date().setHours(0, 0, 0, 0)) / 1000;
     let getLocation = window.location.href;
     let host = getLocation.split('/admin')[0];
@@ -212,11 +216,143 @@
         var data = eval("("+res.data+")");
         switch(data['message_type']){
             // 服务端ping客户端
-            case 'helloMessage':
-                console.log(data);
+            case 'monitor':
+                myData = data.data.cvtList;
+                putMonitor(data.data);
                 break;
         }
     };
+    /**
+     * 时间戳转化为年 月 日 时 分 秒
+     * time: 传入时间戳
+     * format:返回格式,支持自定义,但参数必须与formateArr里保持一致
+     */
+    function customFormatDateTime(timeStamp,custom,isDtae) {
+        var date = new Date();
+        date.setTime(timeStamp * 1000);
+        var y = date.getFullYear();
+        var m = date.getMonth() + 1;
+        m = m < 10 ? ('0' + m) : m;
+        var d = date.getDate();
+        d = d < 10 ? ('0' + d) : d;
+        var h = date.getHours();
+        h = h < 10 ? ('0' + h) : h;
+        var minute = date.getMinutes();
+        var second = date.getSeconds();
+        minute = minute < 10 ? ('0' + minute) : minute;
+        second = second < 10 ? ('0' + second) : second;
+        if (isDtae == 0){
+            return y + custom + m //+'student';
+        }else if (isDtae ==1){
+            return y + custom + m + custom + d;
+        } else if (isDtae ==2) {
+            return h + ':' + minute;
+        } else {
+            return y + '-' + m + '-' + d + '-' + h + ':' + minute + ':' + second;
+        }
+    };
+    function onSearch() {
+        let table = "";
+        let cvtList = searchData();
+        for(key in cvtList){
+            let start_time = cvtList[key].start_time;
+            let intime = cvtList[key].intime
+            if (key != "length") {
+                table += "<tr>" +
+                            "<td>"+cvtList[key].servicelog_id+"</td>" +
+                            "<td>"+customFormatDateTime(intime,'',2)+"</td>" +
+                            "<td>"+cvtList[key].server_name+"</td>" +
+                            "<td>"+cvtList[key].user_name+"</td>" +
+                            "<td>"+customFormatDateTime(start_time,'',2)+"</td>" +
+                            "<td>"+cvtList[key].allCount+"</td>" +
+                            "<td>" +
+                                "<a href='/admin/system/detail/id/"+cvtList[key].servicelog_id+".html'>" +
+                                    "<button type='button' class='btn btn-primary btn-sm'>" +
+                                        "<i class='fa fa-paste'></i> 详情" +
+                                    "</button>" +
+                                "</a>" +
+                            "</td>" +
+                        "</tr>"
+            }
+        }
+        if (table) {
+            $("#table").html(table);
+        } else {
+            $("#table").html("<tr>" +
+                                    "<td colspan='6' style='text-align: center'>暂无数据</td>" +
+                            "</tr>");
+        }
+    }
+    function searchData() {
+        let group_id = $("#group_id").val();
+        let alarm_id = $("#alarm_id").val();
+        let newData = [];
+        if (group_id && alarm_id) {
+            if (alarm_id == 1) {
+                for (keys in myData) {
+                    if (group_id == myData[key].group_id && !myData[key].allCount) {
+                        newData.push(myData[key])
+                    }
+                }
+            } else if (alarm_id == 2) {
+                for (keys in myData) {
+                    if (group_id == myData[key].group_id && myData[key].allCount) {
+                        newData.push(myData[key])
+                    }
+                }
+            }
+        } else if(group_id) {
+            for (keys in myData) {
+                if (group_id == myData[key].group_id) {
+                    newData.push(myData[key])
+                }
+            }
+        } else if(alarm_id) {
+            if (alarm_id == 1) {
+                for (keys in myData) {
+                    if (!myData[key].allCount) {
+                        newData.push(myData[key])
+                    }
+                }
+            } else if (alarm_id == 2) {
+                for (keys in myData) {
+                    if (myData[key].allCount) {
+                        newData.push(myData[key])
+                    }
+                }
+            }
+        } else {
+            newData = myData
+        }
+        return newData;
+    }
+    // 渲染
+    function putMonitor(data) {
+        $("#allSensitive").html(data.userSensitive + data.serverSensitive);
+        $("#userSensitive").html(data.userSensitive);
+        $("#serverSensitive").html(data.serverSensitive);
+        $("#csdNumber").html(data.csdNumber);
+        $("#overtimeNumber").html(data.overtimeNumber);
+        $("#evaluateCount1").html(data.evaluateCount);
+        $("#evaluateCount2").html(data.evaluateCount);
+        // 响应超时.
+        let n = data.csdTime.length;
+        let csdTime = 0;
+        for(keys in data.csdTime){
+            csdTime += data.csdTime[keys]
+        }
+        csdTime = csdTime ? Math.ceil(csdTime/n) : 0;
+        $("#csdTime").html(csdTime);
+        // 会话超时.
+        let m = data.overtimeTime.length;
+        let overtimeTime = 0;
+        for(keys in data.overtimeTime){
+            overtimeTime += data.overtimeTime[keys]
+        }
+        overtimeTime = overtimeTime ? Math.ceil(overtimeTime/m) : 0;
+        $("#overtimeTime").html(overtimeTime);
+        onSearch();
+    }
 </script>
 </body>
 </html>

+ 5 - 5
application/admin/view/kfnotice/add.html

@@ -95,11 +95,11 @@
 
         layer.ready(function () {
             layer.close(index);
-            if (1 == res.code) {
-                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function () {
-                    window.location.href = res.data;
-                });
-            } else if (111 == res.code) {
+            if(1 == res.code){
+               layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
+                   window.location.href = '/admin/kfnotice/index.html';
+               });
+            }else if(111 == res.code){
                 window.location.reload();
             } else {
                 layer.msg(res.msg, {anim: 6});

+ 4 - 0
application/admin/view/kfnotice/index.html

@@ -20,6 +20,10 @@
             <h5>公告列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/kfnotice/add.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline">
                 <div class="content clearfix m-b">

+ 4 - 4
application/admin/view/login/index.html

@@ -5,13 +5,13 @@
     <meta http-equiv="Pragma" content="no-cache">
     <meta http-equiv="Cache-Control" content="no-cache">
     <meta http-equiv="Expires" content="0">
-    <title>whisper {$version} -- 后台登录</title>
+    <title>后台登录</title>
     <link href="__CSS__/login.css" type="text/css" rel="stylesheet">
 </head>
 <body>
 
 <div class="login">
-    <div class="message">whisper {$version}-管理登录</div>
+    <div class="message">管理登录</div>
     <div id="darkbannerwrap"></div>
     <input name="user_name" placeholder="用户名" type="text" id="user_name">
     <hr class="hr15">
@@ -20,7 +20,7 @@
     <input value="登录" style="width:100%;" type="button" id="login">
     <hr class="hr20">
 </div>
-<div class="copyright">© 2017-2018 whisper {$version} by<a href="http://baiyf.com/" target="_blank"> baiyf.com</a></div>
+<div class="copyright"></div>
 <script src="__JS__/jquery.min.js" type="text/javascript"></script>
 <script src="__JS__/layui/layui.js" type="text/javascript"></script>
 
@@ -71,4 +71,4 @@
     }
 </script>
 </body>
-</html>
+</html>

+ 1 - 1
application/admin/view/menu/add.html

@@ -103,7 +103,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/menu/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 1 - 1
application/admin/view/menu/edit.html

@@ -108,7 +108,7 @@
             layer.close(index);
             if(1 == res.code){
                 layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                    window.location.href = res.data;
+                    window.location.href = '/admin/menu/index.html';
                 });
             }else if(111 == res.code){
                 window.location.reload();

+ 4 - 0
application/admin/view/menu/index.html

@@ -19,6 +19,10 @@
             <h5>菜单列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/menu/add.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <div class="example-wrap">
                 <div class="example">
                     <table id="cusTable">

+ 4 - 0
application/admin/view/robot/index.html

@@ -19,6 +19,10 @@
             <h5>智能问答列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/robot/addword.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 4 - 0
application/admin/view/sensitivec/index.html

@@ -19,6 +19,10 @@
             <h5>敏感词列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/sensitivec/addsensitive.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 0 - 150
application/admin/view/server/index.html

@@ -1,150 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <title>whisper客服工作台</title>
-    <link rel="stylesheet" href="/static/service/js/layui/css/layui.css">
-    <link rel="stylesheet" href="/static/service/css/whisper.css">
-</head>
-<body class="layui-layout-body">
-<div class="layui-layout layui-layout-admin">
-    <div class="layui-header">
-        <div class="layui-logo" style="color: white">whisper客服【工作台】</div>
-        <ul class="layui-nav layui-layout-right">
-            <li style="margin-top: 10%">
-                <a href="javascript:;" onclick="loginOut();">
-                    <button class="layui-btn layui-bg-red">
-                        <i class="layui-icon">&#xe609;</i> 退出下班
-                    </button>
-                </a>
-            </li>
-        </ul>
-    </div>
-
-    <div class="layui-side" style="background:#f2f2f2">
-        <div class="layui-side-scroll">
-            <blockquote class="layui-elem-quote layui-bg-cyan" style="color: white">正在咨询的会员</blockquote>
-            <ul class="layui-unselect" id="user_list">
-
-            </ul>
-        </div>
-    </div>
-
-    <div class="layui-body" style="bottom:0">
-        <input type="hidden" id="active-user" data-avatar="" data-name="" data-id=""><!-- 当前对话的用户 -->
-        <div class="chat-left">
-            <div class="chat-box whisper-chat-main">
-
-            </div>
-            <div class="msg-send">
-                <div class="tools-bar">
-                    <i class="layui-icon" style="font-size: 30px;" id="face">&#xe60c;</i>
-                    <i class="layui-icon" style="font-size: 30px;" id="image">&#xe60d;</i>
-                    <i class="layui-icon" style="font-size: 30px;" id="file">&#xe61d;</i>
-                </div>
-                <div class="msg-box">
-                    <textarea class="msg-area" id="msg-area"></textarea>
-                </div>
-                <div class="send-area">
-                    <span style="margin-left:10px;color:gray">快捷键 Enter</span>
-                    <button class="layui-btn layui-btn-small layui-bg-cyan" style="float:right;margin-right:10px;height: 40px;padding: 0 15px;" id="send">
-                        <i class="layui-icon">&#xe609;</i>发送
-                    </button>
-                </div>
-            </div>
-        </div>
-
-        <div style="width:28%;height:100%;float:left;margin-left:1%">
-            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
-                <ul class="layui-tab-title">
-                    <li class="layui-this">访客信息</li>
-                    <li>常用语</li>
-                </ul>
-                <div class="layui-tab-content" style="height: 100px;">
-                    <div class="layui-tab-item layui-show">
-                        <div class="layui-form layui-form-pane">
-                            <div class="layui-form-item">
-                                <label class="layui-form-label">访客名</label>
-                                <div class="layui-input-block">
-                                    <input type="text" id="f-user" class="layui-input" readonly>
-                                </div>
-                            </div>
-                            <div class="layui-form-item">
-                                <label class="layui-form-label">IP</label>
-                                <div class="layui-input-block">
-                                    <input type="text" id="f-ip" class="layui-input" readonly>
-                                </div>
-                            </div>
-                            <div class="layui-form-item">
-                                <label class="layui-form-label">地区</label>
-                                <div class="layui-input-block">
-                                    <input type="text" id="f-area" class="layui-input" readonly>
-                                </div>
-                            </div>
-                            {if(1 == $status['change_status'])}
-                            <div class="layui-form-item">
-                                <label class="layui-form-label layui-bg-cyan" style="cursor: pointer;color:white" id="scroll-link">转接</label>
-                            </div>
-                            {/if}
-                        </div>
-                    </div>
-                    <div class="layui-tab-item">
-                        <div class="layui-form">
-                            <table class="layui-table">
-                                <thead>
-                                <tr>
-                                    <th>内容</th>
-                                    <th>操作</th>
-                                </tr>
-                                </thead>
-                                <tbody>
-                                {foreach name="word" item="vo"}
-                                <tr>
-                                    <td>{$vo.content}</td>
-                                    <td>
-                                        <a href="javascript:;" onclick="sendWord(this)" data-word="{$vo.content}" style="color:#009688">应用</a>
-                                    </td>
-                                </tr>
-                                {/foreach}
-                                </tbody>
-                            </table>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-
-<!-- 转接提示层 -->
-<div class="layui-form" id="change-box" style="display: none">
-    <div class="layui-form-item" style="margin-top: 20px">
-        <label class="layui-form-label">选择分组</label>
-        <div class="layui-input-block" style="width: 70%" >
-            <select lay-verify="required" lay-filter="group">
-                <option value=""></option>
-                {if !empty($groups)}
-                {foreach name="groups" item="vo"}
-                <option value="{$vo['id']}">{$vo['name']}</option>
-                {/foreach}
-                {/if}
-            </select>
-        </div>
-    </div>
-</div>
-<!-- 转接提示层 -->
-
-<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
-<script src="/static/service/js/layui/layui.js"></script>
-<script>
-    var uid = "{$uinfo['id']}";
-    var uname = "{$uinfo['user_name']}";
-    var avatar = "{$uinfo['user_avatar']}";
-    var group = "{$uinfo['group_id']}";
-    var socket_server = "{$socket}";
-</script>
-<script type="text/javascript" src="/static/service/js/functions.js"></script>
-<script type="text/javascript" src="/static/service/js/whisper.js"></script>
-</body>
-</html>

+ 14 - 5
application/admin/view/system/detail.html

@@ -46,6 +46,19 @@
         font-size: 15px;
         color: black;
     }
+    ul.alarm li.alarm_info{
+        background-color: #EC4859;
+        color: white;
+        margin-top: 20px;
+        margin-left: 5px;
+        float: left;
+        border-radius: 2px;
+        text-align: center;
+        height: 23px;
+        line-height: 23px;
+        font-size: 12px;
+        width: 65px;
+    }
 </style>
 <body class="gray-bg">
 <div class="wrapper wrapper-content animated fadeInRight">
@@ -64,11 +77,7 @@
                         <li>评价</li>
                         <li style="margin-left: 40px;">{$evaluate}</li>
                         <li style="margin-left: 50px;">
-                            <ul>
-                                <li>触犯警报</li>
-                                <li style="color: red;margin-top: 10px;">评价不满意1次 响应超时2次 会话超时1次</li>
-                                <li style="color: red;margin-top: 20px;">访客敏感词10次 客服敏感2次</li>
-                            </ul>
+                            {$ul}
                         </li>
                     </ul>
                 </div>

+ 8 - 2
application/admin/view/users/adduser.html

@@ -22,6 +22,12 @@
                 <div class="ibox-content">
                     <form class="form-horizontal m-t layui-form" id="commentForm" method="post" action="{:url('users/adduser')}">
 
+                        <div class="form-group">
+                            <label class="col-sm-3 control-label">客服账号:</label>
+                            <div class="input-group col-sm-4">
+                                <input id="useraccount" type="text" class="form-control" name="user_account" required="" aria-required="true">
+                            </div>
+                        </div>
                         <div class="form-group">
                             <label class="col-sm-3 control-label">客服名称:</label>
                             <div class="input-group col-sm-4">
@@ -49,7 +55,7 @@
                         <div class="form-group">
                             <label class="col-sm-3 control-label">登录密码:</label>
                             <div class="input-group col-sm-4">
-                                <input id="password" type="text" class="form-control" name="user_pwd" required="" aria-required="true">
+                                <input id="password" type="text" class="form-control" name="user_pwd" required="" aria-required="true" value="123456" disabled="disabled">
                             </div>
                         </div>
                         <div class="form-group">
@@ -149,7 +155,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/index/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 13 - 29
application/admin/view/users/edituser.html

@@ -25,16 +25,18 @@
                         <div class="form-group layui-form-item form-inline" style="height: 60px;">
                             <input type="hidden" name="user_avatar" id="user_avatar"/>
                             <label class="col-sm-3 control-label">客服头像:</label>
-                            <div class="input-group col-sm-2">
-                                <button type="button" class="layui-btn layui-btn-small" id="up-avatar">
-                                    <i class="layui-icon"></i>上传图片</button>
-                            </div>
                             <div class="input-group col-sm-3" id="avatar">
                                 <img src="{$info['user_avatar']}" width="40px" height="40px"/>
                             </div>
                         </div>
                         <div class="form-group">
                             <label class="col-sm-3 control-label">客服账号:</label>
+                            <div class="input-group col-sm-4">
+                                <input id="user_account" type="text" class="form-control" name="user_account" required="" aria-required="true" value="{$info['user_account']}" disabled="disabled">
+                            </div>
+                        </div>
+                        <div class="form-group">
+                            <label class="col-sm-3 control-label">客服名称:</label>
                             <div class="input-group col-sm-4">
                                 <input id="user_name" type="text" class="form-control" name="user_name" required="" aria-required="true" value="{$info['user_name']}" disabled="disabled">
                             </div>
@@ -48,43 +50,25 @@
                         <div class="form-group">
                             <label class="col-sm-3 control-label">客服邮箱:</label>
                             <div class="input-group col-sm-4">
-                                <input id="user_email" type="text" class="form-control" name="user_email" required="" aria-required="true" value="{$info['user_email']}">
+                                <input id="user_email" type="text" class="form-control" name="user_email" required="" aria-required="true" value="{$info['user_email']}" disabled="disabled">
                             </div>
                         </div>
                         <div class="form-group">
                             <label class="col-sm-3 control-label">客服电话:</label>
                             <div class="input-group col-sm-4">
-                                <input id="phone" type="text" class="form-control" name="phone" required="" aria-required="true" value="{$info['phone']}">
+                                <input id="phone" type="text" class="form-control" name="phone" required="" aria-required="true" value="{$info['phone']}" disabled="disabled">
                             </div>
                         </div>
                         <div class="form-group">
                             <label class="col-sm-3 control-label">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:</label>
                             <div class="input-group col-sm-4">
-                                <input id="fullname" type="text" class="form-control" name="fullname" required="" aria-required="true" value="{$info['fullname']}">
+                                <input id="fullname" type="text" class="form-control" name="fullname" required="" aria-required="true" value="{$info['fullname']}" disabled="disabled">
                             </div>
                         </div>
                         <div class="form-group">
                             <label class="col-sm-3 control-label">个性签名:</label>
                             <div class="input-group col-sm-4">
-                                <input id="signature" type="text" class="form-control" name="signature" required="" aria-required="true" value="{$info['signature']}">
-                            </div>
-                        </div>
-                        <div class="form-group">
-                            <label class="col-sm-3 control-label">原&nbsp;密&nbsp;码:</label>
-                            <div class="input-group col-sm-4">
-                                <input id="user_pwd" type="text" class="form-control" name="user_pwd" placeholder="请输入原密码">
-                            </div>
-                        </div>
-                        <div class="form-group">
-                            <label class="col-sm-3 control-label">新&nbsp;密&nbsp;码:</label>
-                            <div class="input-group col-sm-4">
-                                <input id="new_pwd" type="text" class="form-control" name="new_pwd" placeholder="请输入新密码">
-                            </div>
-                        </div>
-                        <div class="form-group">
-                            <label class="col-sm-3 control-label">确认密码:</label>
-                            <div class="input-group col-sm-4">
-                                <input id="renew_pwd" type="text" class="form-control" name="renew_pwd" placeholder="请再次输入新密码">
+                                <input id="signature" type="text" class="form-control" name="signature" required="" aria-required="true" value="{$info['signature']}" disabled="disabled">
                             </div>
                         </div>
                         <div class="form-group">
@@ -111,7 +95,7 @@
                                 {/if}
                             </div>
                         </div>
-                        
+
 
                         <div class="form-group">
                             <div class="col-sm-4 col-sm-offset-6" style="margin-left: 20%;">
@@ -139,7 +123,7 @@
     layui.use(['form', 'upload'], function(){
         var form = layui.form;
         var upload = layui.upload;
-        
+
         //执行实例
         var uploadInst = upload.render({
             elem: '#up-avatar' //绑定元素
@@ -176,7 +160,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   '/admin/index/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 4 - 0
application/admin/view/users/index.html

@@ -19,6 +19,10 @@
             <h5>客服列表</h5>
         </div>
         <div class="ibox-content">
+            <a href="/admin/users/adduser.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 1 - 1
application/admin/view/words/addword.html

@@ -82,7 +82,7 @@
             layer.close(index);
             if(1 == res.code){
                layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                   window.location.href = res.data;
+                   window.location.href = '/admin/words/index.html';
                });
             }else if(111 == res.code){
                 window.location.reload();

+ 1 - 1
application/admin/view/words/editword.html

@@ -82,7 +82,7 @@
             layer.close(index);
             if(1 == res.code){
                 layer.alert(res.msg, {title: '友情提示', icon: 1, closeBtn: 0}, function(){
-                    window.location.href = res.data;
+                    window.location.href = '/admin/words/index.html';
                 });
             }else if(111 == res.code){
                 window.location.reload();

+ 6 - 2
application/admin/view/words/index.html

@@ -16,7 +16,7 @@
     <input style="display:none;" type="text" value="1" id="type">
     <!-- Panel Other -->
     <div class="ibox float-e-margins">
-        <div style="display: flex;">
+        <!--<div style="display: flex;">
             <div class="ibox-title" style="width: 100px;" id="current1" onclick="current(1)">
                 <h5>系统常用语</h5>
             </div>
@@ -25,8 +25,12 @@
             </div>
             <div class="ibox-title" style="width: calc(100% - 200px); background: #eee;">
             </div>
-        </div>
+        </div>-->
         <div class="ibox-content" style="border-top: 0;">
+            <a href="/admin/words/addword.html">
+                <button class="btn btn-primary" type="button" style="margin-top:5px"><strong>新 增</strong>
+                </button>
+            </a>
             <!--搜索框开始-->
             <form id='commentForm' role="form" method="post" class="form-inline pull-right">
                 <div class="content clearfix m-b">

+ 1 - 1
application/index/controller/Common.php

@@ -24,7 +24,7 @@ class Common extends Controller
         $controller  = $request->controller();
         $module      = $request->module();
         $apiToken    = md5(strtolower($action.'Customer-Service'.$controller.strtotime(date('Y-m-d')).$module));
-        //print_r([$apiToken, $getApiToken]);die;
+        //print_r([strtolower($action.'Customer-Service'.$controller.strtotime(date('Y-m-d')).$module),$apiToken, $getApiToken]);die;
         if ($getApiToken === $apiToken) {
             return true;
         } else {

+ 0 - 56
application/index/view/index/chat.html

@@ -1,56 +0,0 @@
-<html>
-<head>
-    <title>whisper客服客户端</title>
-    <meta charset="utf-8"/>
-    <link href="/static/customer/css/whisper.css" rel="stylesheet" type="text/css" />
-    <link href="/static/service/js/layui/css/layui.css" rel="stylesheet" type="text/css"/>
-</head>
-<body>
-<div class="small-chat-box fadeInRight animated">
-    <div class="heading" draggable="true">
-        <small class="chat-date pull-right">
-            <a href="http://whisper.baiyf.com" target="_blank">whisper客服</a>
-        </small>
-        <span id="title">与 客服 交流中</span>
-    </div>
-    <div class="slimScrollDiv" style="position: relative; width: auto; height: 60%;" id="chat-content-box">
-        <div class="content" style="width: auto; height: 92%;overflow: auto" id="chat-list">
-
-        </div>
-    </div>
-    <div class="bar">
-        <div style="padding-left:15px;cursor:pointer;width:100px">
-            <i class="layui-icon" style="font-size: 30px;" id="up-face">&#xe60c;</i> &nbsp;
-            <i class="layui-icon" style="font-size: 30px;" id="up-image">&#xe60d;</i>
-        </div>
-    </div>
-    <div class="form-chat">
-        <textarea class="form-control chat-area" id="msg" style="width: 100%;height: 100px;resize: none"></textarea>
-        <div class="input-group" style="margin-top: 5px;width: 100%">
-            <span class="input-group-btn" style="float: right;">
-                <button class="btn btn-primary" type="button" id="send">发送</button>
-                <button class="btn btn-primary" type="button" onclick="aa()">机器人</button>
-            </span>
-        </div>
-        <button class="btn btn-primary" type="button" onclick="bb()">凭据</button>
-    </div>
-
-    <div class="face-box" style="display:none" id="face-box">
-
-    </div>
-</div>
-<script>
-    var config = {
-        uid: '{$id}',
-        name: '{$name}',
-        avatar: '{$avatar}',
-        group: '{$group}',
-        socket: '{$socket}'
-    };
-</script>
-<script src="/static/service/js/layui/layui.js"></script>
-<script src="/static/service/js/functions.js"></script>
-<script src="/static/customer/js/whisper-cli.js"></script>
-
-</body>
-</html>

+ 0 - 331
application/index/view/index/index.html

@@ -1,331 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>whisper客服测试页面</title>
-    <meta name="keywords" content="whisper客服">
-    <meta name="description" content="whisper客服">
-    <link rel="shortcut icon" href="favicon.ico">
-    <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
-    <link href="https://cdn.staticfile.org/font-awesome/4.4.0/css/font-awesome.css?v=4.4.0" rel="stylesheet">
-    <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
-    <link href="/static/admin/css/style.min.css?v=4.1.0" rel="stylesheet">
-    <link href="/static/demo/css/common.css" rel="stylesheet"  />
-</head>
-
-<body class="gray-bg">
-<div class="row">
-    <div class="wrapper wrapper-content animated fadeInRight">
-        <div class="row">
-            <div class="col-sm-12">
-                <div class="wrapper wrapper-content animated fadeInRight">
-
-                    <div class="ibox-content m-b-sm border-bottom">
-                        <div class="p-xs">
-                            <div class="pull-left m-r-md">
-                                <i class="fa fa-globe text-navy mid-icon"></i>
-                            </div>
-                            <h2><a href="http://whisper.baiyf.com">欢迎来到whisper商城</a></h2>
-                            <span>你可以自由选择你感兴趣的商品。</span>
-                        </div>
-                    </div>
-
-                    <div class="ibox-content forum-container">
-
-                        <div class="forum-title">
-                            <div class="pull-right forum-desc">
-                                <samll>总商品数: 320,800</samll>
-                            </div>
-                        </div>
-                        <div class="row">
-
-                            <div class="col-sm-4">
-                                <div class="contact-box">
-                                    <a href="javascript:;">
-                                        <div class="col-sm-4">
-                                            <div class="text-center">
-                                                <img alt="image" class="img-circle m-t-xs img-responsive" style="border-radius:0" src="//img13.360buyimg.com/n1/s450x450_jfs/t10675/253/1344769770/66891/92d54ca4/59df2e7fN86c99a27.jpg">
-                                            </div>
-                                        </div>
-                                    </a>
-                                    <div class="col-sm-8">
-                                        <a href="javascript:;">
-                                            <h2><strong>Apple iPhone X (A1865) 64GB 深空灰色 移动联通电信4G手机</strong></h2>
-                                            <h3 style="color: #e4393c">领券12期免息,每月仅需699!勾选[保障服务][原厂保2年],原厂延保更安心。点此领券
-                                                选下方移动联通电信优惠购,下单立减550元!</h3>
-                                            <h2>售价 <span style="color: red">¥8388.00</span></h2>
-                                        </a>
-                                    </div>
-                                    <div class="clearfix"></div>
-                                </div>
-                            </div>
-
-                            <div class="col-sm-4">
-                                <div class="contact-box">
-                                    <a href="javascript:;">
-                                        <div class="col-sm-4">
-                                            <div class="text-center">
-                                                <img alt="image" class="img-circle m-t-xs img-responsive" style="border-radius:0" src="//img13.360buyimg.com/n1/s450x450_jfs/t10675/253/1344769770/66891/92d54ca4/59df2e7fN86c99a27.jpg">
-                                            </div>
-                                        </div>
-                                    </a>
-                                    <div class="col-sm-8">
-                                        <a href="javascript:;">
-                                            <h2><strong>Apple iPhone X (A1865) 64GB 深空灰色 移动联通电信4G手机</strong></h2>
-                                            <h3 style="color: #e4393c">领券12期免息,每月仅需699!勾选[保障服务][原厂保2年],原厂延保更安心。点此领券
-                                                选下方移动联通电信优惠购,下单立减550元!</h3>
-                                            <h2>售价 <span style="color: red">¥8388.00</span></h2>
-                                        </a>
-                                    </div>
-                                    <div class="clearfix"></div>
-                                </div>
-                            </div>
-
-                            <div class="col-sm-4">
-                                <div class="contact-box">
-                                    <a href="javascript:;">
-                                        <div class="col-sm-4">
-                                            <div class="text-center">
-                                                <img alt="image" class="img-circle m-t-xs img-responsive" style="border-radius:0" src="//img13.360buyimg.com/n1/s450x450_jfs/t10675/253/1344769770/66891/92d54ca4/59df2e7fN86c99a27.jpg">
-                                            </div>
-                                        </div>
-                                    </a>
-                                    <div class="col-sm-8">
-                                        <a href="javascript:;">
-                                            <h2><strong>Apple iPhone X (A1865) 64GB 深空灰色 移动联通电信4G手机</strong></h2>
-                                            <h3 style="color: #e4393c">领券12期免息,每月仅需699!勾选[保障服务][原厂保2年],原厂延保更安心。点此领券
-                                                选下方移动联通电信优惠购,下单立减550元!</h3>
-                                            <h2>售价 <span style="color: red">¥8388.00</span></h2>
-                                        </a>
-                                    </div>
-                                    <div class="clearfix"></div>
-                                </div>
-                            </div>
-
-                            <div class="col-sm-4">
-                                <div class="contact-box">
-                                    <a href="javascript:;">
-                                        <div class="col-sm-4">
-                                            <div class="text-center">
-                                                <img alt="image" class="img-circle m-t-xs img-responsive" style="border-radius:0" src="//img13.360buyimg.com/n1/s450x450_jfs/t10675/253/1344769770/66891/92d54ca4/59df2e7fN86c99a27.jpg">
-                                            </div>
-                                        </div>
-                                    </a>
-                                    <div class="col-sm-8">
-                                        <a href="javascript:;">
-                                            <h2><strong>Apple iPhone X (A1865) 64GB 深空灰色 移动联通电信4G手机</strong></h2>
-                                            <h3 style="color: #e4393c">领券12期免息,每月仅需699!勾选[保障服务][原厂保2年],原厂延保更安心。点此领券
-                                                选下方移动联通电信优惠购,下单立减550元!</h3>
-                                            <h2>售价 <span style="color: red">¥8388.00</span></h2>
-                                        </a>
-                                    </div>
-                                    <div class="clearfix"></div>
-                                </div>
-                            </div>
-
-                            <div class="col-sm-4">
-                                <div class="contact-box">
-                                    <a href="javascript:;">
-                                        <div class="col-sm-4">
-                                            <div class="text-center">
-                                                <img alt="image" class="img-circle m-t-xs img-responsive" style="border-radius:0" src="//img13.360buyimg.com/n1/s450x450_jfs/t10675/253/1344769770/66891/92d54ca4/59df2e7fN86c99a27.jpg">
-                                            </div>
-                                        </div>
-                                    </a>
-                                    <div class="col-sm-8">
-                                        <a href="javascript:;">
-                                            <h2><strong>Apple iPhone X (A1865) 64GB 深空灰色 移动联通电信4G手机</strong></h2>
-                                            <h3 style="color: #e4393c">领券12期免息,每月仅需699!勾选[保障服务][原厂保2年],原厂延保更安心。点此领券
-                                                选下方移动联通电信优惠购,下单立减550元!</h3>
-                                            <h2>售价 <span style="color: red">¥8388.00</span></h2>
-                                        </a>
-                                    </div>
-                                    <div class="clearfix"></div>
-                                </div>
-                            </div>
-
-                            <div class="col-sm-4">
-                                <div class="contact-box">
-                                    <a href="javascript:;">
-                                        <div class="col-sm-4">
-                                            <div class="text-center">
-                                                <img alt="image" class="img-circle m-t-xs img-responsive" style="border-radius:0" src="//img13.360buyimg.com/n1/s450x450_jfs/t10675/253/1344769770/66891/92d54ca4/59df2e7fN86c99a27.jpg">
-                                            </div>
-                                        </div>
-                                    </a>
-                                    <div class="col-sm-8">
-                                        <a href="javascript:;">
-                                            <h2><strong>Apple iPhone X (A1865) 64GB 深空灰色 移动联通电信4G手机</strong></h2>
-                                            <h3 style="color: #e4393c">领券12期免息,每月仅需699!勾选[保障服务][原厂保2年],原厂延保更安心。点此领券
-                                                选下方移动联通电信优惠购,下单立减550元!</h3>
-                                            <h2>售价 <span style="color: red">¥8388.00</span></h2>
-                                        </a>
-                                    </div>
-                                    <div class="clearfix"></div>
-                                </div>
-                            </div>
-
-                            <div class="col-sm-4">
-                                <div class="contact-box">
-                                    <a href="javascript:;">
-                                        <div class="col-sm-4">
-                                            <div class="text-center">
-                                                <img alt="image" class="img-circle m-t-xs img-responsive" style="border-radius:0" src="//img13.360buyimg.com/n1/s450x450_jfs/t10675/253/1344769770/66891/92d54ca4/59df2e7fN86c99a27.jpg">
-                                            </div>
-                                        </div>
-                                    </a>
-                                    <div class="col-sm-8">
-                                        <a href="javascript:;">
-                                            <h2><strong>Apple iPhone X (A1865) 64GB 深空灰色 移动联通电信4G手机</strong></h2>
-                                            <h3 style="color: #e4393c">领券12期免息,每月仅需699!勾选[保障服务][原厂保2年],原厂延保更安心。点此领券
-                                                选下方移动联通电信优惠购,下单立减550元!</h3>
-                                            <h2>售价 <span style="color: red">¥8388.00</span></h2>
-                                        </a>
-                                    </div>
-                                    <div class="clearfix"></div>
-                                </div>
-                            </div>
-
-                            <div class="col-sm-4">
-                                <div class="contact-box">
-                                    <a href="javascript:;">
-                                        <div class="col-sm-4">
-                                            <div class="text-center">
-                                                <img alt="image" class="img-circle m-t-xs img-responsive" style="border-radius:0" src="//img13.360buyimg.com/n1/s450x450_jfs/t10675/253/1344769770/66891/92d54ca4/59df2e7fN86c99a27.jpg">
-                                            </div>
-                                        </div>
-                                    </a>
-                                    <div class="col-sm-8">
-                                        <a href="javascript:;">
-                                            <h2><strong>Apple iPhone X (A1865) 64GB 深空灰色 移动联通电信4G手机</strong></h2>
-                                            <h3 style="color: #e4393c">领券12期免息,每月仅需699!勾选[保障服务][原厂保2年],原厂延保更安心。点此领券
-                                                选下方移动联通电信优惠购,下单立减550元!</h3>
-                                            <h2>售价 <span style="color: red">¥8388.00</span></h2>
-                                        </a>
-                                    </div>
-                                    <div class="clearfix"></div>
-                                </div>
-                            </div>
-
-                            <div class="col-sm-4">
-                                <div class="contact-box">
-                                    <a href="javascript:;">
-                                        <div class="col-sm-4">
-                                            <div class="text-center">
-                                                <img alt="image" class="img-circle m-t-xs img-responsive" style="border-radius:0" src="//img13.360buyimg.com/n1/s450x450_jfs/t10675/253/1344769770/66891/92d54ca4/59df2e7fN86c99a27.jpg">
-                                            </div>
-                                        </div>
-                                    </a>
-                                    <div class="col-sm-8">
-                                        <a href="javascript:;">
-                                            <h2><strong>Apple iPhone X (A1865) 64GB 深空灰色 移动联通电信4G手机</strong></h2>
-                                            <h3 style="color: #e4393c">领券12期免息,每月仅需699!勾选[保障服务][原厂保2年],原厂延保更安心。点此领券
-                                                选下方移动联通电信优惠购,下单立减550元!</h3>
-                                            <h2>售价 <span style="color: red">¥8388.00</span></h2>
-                                        </a>
-                                    </div>
-                                    <div class="clearfix"></div>
-                                </div>
-                            </div>
-
-                        </div>
-
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-
-<!-- 右侧悬浮 -->
-<div id="service">
-    <ul>
-        <li>
-            <a href="javascript:;">
-                <div class="hides" style="width:161px;display:none;">
-                    <div class="hides p1">
-                        <img src="/static/demo/images/ll04.png">
-                    </div>
-                    <div class="hides p2" id="buy-1" data-group="1">
-                        <span style="color:#FFF;font-size:13px">售前客服</span>
-                    </div>
-                </div>
-                <img src="/static/demo/images/l04.png" width="47" height="49" class="shows" />
-            </a>
-        </li>
-
-        <li>
-            <a href="javascript:;">
-                <div class="hides" style="width:161px;display:none;">
-                    <div class="hides p1">
-                        <img src="/static/demo/images/ll04.png">
-                    </div>
-                    <div class="hides p2" id="buy-2" data-group="2">
-                        <span style="color:#FFF;font-size:13px">售后客服</span>
-                    </div>
-                </div>
-                <img src="/static/demo/images/l04.png" width="47" height="49" class="shows" />
-            </a>
-        </li>
-
-        <li id="btn">
-            <a id="top_btn">
-                <div class="hides" style="width:161px;display:none">
-                    <img src="/static/demo/images/ll06.png" width="161" height="49" />
-                </div>
-                <img src="/static/demo/images/l06.png" width="47" height="49" class="shows" />
-            </a>
-        </li>
-    </ul>
-</div>
-<!-- 右侧悬浮 -->
-
-<script src="https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script>
-<script src="https://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
-<script src="/static/admin/js/content.min.js?v=1.0.0"></script>
-<script src="/static/customer/js/layer/layer.js"></script>
-<script src="/static/customer/js/whisper-tool.js"></script>
-
-<script type="text/javascript">
-    $(function() {
-        $("#service a").hover(function() {
-            if ($(this).prop("className") == "weixin_area") {
-                $(this).children("img.hides").show();
-            } else {
-                $(this).children("div.hides").show();
-                $(this).children("img.shows").hide();
-                $(this).children("div.hides").animate({marginRight: '0px'}, '0');
-            }
-        }, function() {
-            if ($(this).prop("className") == "weixin_area") {
-                $(this).children("img.hides").hide();
-            } else {
-                $(this).children("div.hides").animate({marginRight: '-163px'}, 0, function() {
-                    $(this).hide();
-                    $(this).next("img.shows").show();
-                });
-            }
-        });
-
-        var ws = new whisper();
-        var uid = parseInt(Math.random() * 40) + 1;
-
-        $("#buy-1,#buy-2").click(function(){
-            var group = $(this).attr('data-group');
-            ws.init({
-                id: uid,
-                url: '/',
-                name: '会员' + uid,
-                avatar: 'http://wx2.sinaimg.cn/mw690/5db11ff4gy1flxmew7edlj203d03wt8n.jpg',
-                group: group
-            });
-        });
-
-        $("#top_btn").click(function() {
-            $("html,body").animate({scrollTop: 0}, 600);
-        });
-    });
-</script>
-</body>
-</html>

+ 0 - 58
application/index/view/index/mobile.html

@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <title>whisper客服移动端</title>
-    <link href="/static/service/js/layui/css/layui.mobile.css" rel="stylesheet"/>
-    <link href="/static/service/js/layui/css/modules/layim/mobile/layim.css" rel="stylesheet"/>
-</head>
-<body>
-<div class="layim-panel layui-m-anim-left">
-    <div class="layim-title" style="background-color: #36373C;">
-        <p><i class="layui-icon layim-chat-back" onclick="loginOut()">&#xe603;</i> <span id="title">客服</span></p>
-    </div>
-    <div class="layui-unselect layim-content">
-        <div class="layim-chat layim-chat-friend">
-            <div class="layim-chat-main">
-                <ul id="chat-list">
-
-                </ul>
-            </div>
-            <div class="layim-chat-footer">
-                <div class="layim-chat-send">
-                    <input type="text" autocomplete="off" id="msg"/>
-                    <button class="layim-send layui-disabled" id="send">发送</button>
-                </div>
-                <div class="layim-chat-tool">
-                    <span class="layui-icon layim-tool-face" title="选择表情" id="up-face">&#xe60c;</span>
-                    <span class="layui-icon layim-tool-image" title="上传图片" id="up-image">&#xe60d;</span>
-                    <!--<span class="layui-icon layim-tool-image" title="发送文件"></span>-->
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-
-<div class="layui-m-layerchild layim-layer layui-m-anim-scale">
-    <div class="layui-m-layercont" style="display:none;padding:0" id="face-box">
-
-    </div>
-</div>
-
-<script src="/static/service/js/jquery-1.9.0.min.js"></script>
-<script src="/static/service/js/jquery.cookie.js"></script>
-<script>
-    var config = {
-        uid: '{$id}',
-        name: '{$name}',
-        avatar: '{$avatar}',
-        group: '{$group}',
-        socket: '{$socket}'
-    };
-</script>
-<script src="/static/service/js/layui/layui.js"></script>
-<script src="/static/service/js/functions.js"></script>
-<script src="/static/customer/js/whisper-mobile.js"></script>
-</body>
-</html>

+ 4 - 3
application/service/controller/Login.php

@@ -17,10 +17,10 @@ class Login extends Controller
     public function doLogin()
     {
 
-        $userName = input('post.username');
+        $userAccount = input('post.username');
         $password = input('post.password');
 
-        $user = db('users')->where('user_name', $userName)->find();
+        $user = db('users')->where('user_account', $userAccount)->find();
         if(empty($user)){
             return json(['code' => -1, 'data' => '', 'msg' => '客服不存在']);
         }
@@ -46,7 +46,8 @@ class Login extends Controller
 
         $this->assign([
             'token' => $token,
-            'user_name' => $userName
+            'user_name' => $user[0]['user_name'],
+            'user_account' => $userAccount
         ]);
 
         return json(['code' => 1, 'data' => ['user' => $user[0]], 'msg' => '登录成功']);

+ 0 - 159
application/service/view/index/index.html

@@ -1,159 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <title>whisper客服工作台</title>
-    <link rel="stylesheet" href="/static/service/js/layui/css/layui.css">
-    <link rel="stylesheet" href="/static/service/css/whisper.css">
-</head>
-<body class="layui-layout-body">
-<div class="layui-layout layui-layout-admin">
-    <div class="layui-header">
-        <div class="layui-logo" style="color: white">whisper客服【工作台】</div>
-        <ul class="layui-nav layui-layout-right">
-            <li style="margin-top: 10%">
-                <a href="javascript:;" onclick="loginOut();">
-                    <button class="layui-btn layui-bg-red">
-                        <i class="layui-icon">&#xe609;</i> 退出下班
-                    </button>
-                </a>
-            </li>
-        </ul>
-    </div>
-
-    <div class="layui-side" style="background:#f2f2f2">
-        <div class="layui-side-scroll">
-            <blockquote class="layui-elem-quote layui-bg-cyan" style="color: white">正在咨询的会员</blockquote>
-            <ul class="layui-unselect" id="user_list">
-
-            </ul>
-        </div>
-    </div>
-
-    <div class="layui-body" style="bottom:0">
-        <input type="hidden" id="active-user" data-avatar="" data-name="" data-id=""><!-- 当前对话的用户 -->
-        <div class="chat-left">
-            <div class="chat-box whisper-chat-main">
-
-            </div>
-            <div class="msg-send">
-                <div class="tools-bar">
-                    <i class="layui-icon" style="font-size: 30px;" id="face">&#xe60c;</i>
-                    <i class="layui-icon" style="font-size: 30px;" id="image">&#xe60d;</i>
-                    <i class="layui-icon" style="font-size: 30px;" id="file">&#xe61d;</i>
-                </div>
-                <div class="msg-box">
-                    <textarea class="msg-area" id="msg-area"></textarea>
-                </div>
-                <div class="send-area">
-                    <button class="layui-btn layui-btn-small layui-bg-cyan" style="float:right;margin-right:10px;height: 40px;padding: 0 15px;" onclick="dd()">
-                        <i class="layui-icon">&#xe609;</i>上线
-                    </button>
-                    <button class="layui-btn layui-btn-small layui-bg-cyan" style="float:right;margin-right:10px;height: 40px;padding: 0 15px;" onclick="ee()">
-                        <i class="layui-icon">&#xe609;</i>拒接
-                    </button>
-                    <span style="margin-left:10px;color:gray">快捷键 Enter</span>
-                    <button class="layui-btn layui-btn-small layui-bg-cyan" style="float:right;margin-right:10px;height: 40px;padding: 0 15px;" id="send">
-                        <i class="layui-icon">&#xe609;</i>发送
-                    </button>
-                    <button class="layui-btn layui-btn-small layui-bg-cyan" style="float:right;margin-right:10px;height: 40px;padding: 0 15px;" onclick="cc()">
-                        <i class="layui-icon">&#xe609;</i>关闭
-                    </button>
-                </div>
-            </div>
-        </div>
-
-        <div style="width:28%;height:100%;float:left;margin-left:1%">
-            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
-                <ul class="layui-tab-title">
-                    <li class="layui-this">访客信息</li>
-                    <li>常用语</li>
-                </ul>
-                <div class="layui-tab-content" style="height: 100px;">
-                    <div class="layui-tab-item layui-show">
-                        <div class="layui-form layui-form-pane">
-                            <div class="layui-form-item">
-                                <label class="layui-form-label">访客名</label>
-                                <div class="layui-input-block">
-                                    <input type="text" id="f-user" class="layui-input" readonly>
-                                </div>
-                            </div>
-                            <div class="layui-form-item">
-                                <label class="layui-form-label">IP</label>
-                                <div class="layui-input-block">
-                                    <input type="text" id="f-ip" class="layui-input" readonly>
-                                </div>
-                            </div>
-                            <div class="layui-form-item">
-                                <label class="layui-form-label">地区</label>
-                                <div class="layui-input-block">
-                                    <input type="text" id="f-area" class="layui-input" readonly>
-                                </div>
-                            </div>
-                            {if(1 == $status['change_status'])}
-                            <div class="layui-form-item">
-                                <label class="layui-form-label layui-bg-cyan" style="cursor: pointer;color:white" id="scroll-link">转接</label>
-                            </div>
-                            {/if}
-                        </div>
-                    </div>
-                    <div class="layui-tab-item">
-                        <div class="layui-form">
-                            <table class="layui-table">
-                                <thead>
-                                <tr>
-                                    <th>内容</th>
-                                    <th>操作</th>
-                                </tr>
-                                </thead>
-                                <tbody>
-                                {foreach name="word" item="vo"}
-                                <tr>
-                                    <td>{$vo.content}</td>
-                                    <td>
-                                        <a href="javascript:;" onclick="sendWord(this)" data-word="{$vo.content}" style="color:#009688">应用</a>
-                                    </td>
-                                </tr>
-                                {/foreach}
-                                </tbody>
-                            </table>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-
-<!-- 转接提示层 -->
-<div class="layui-form" id="change-box" style="display: none">
-    <div class="layui-form-item" style="margin-top: 20px">
-        <label class="layui-form-label">选择分组</label>
-        <div class="layui-input-block" style="width: 70%" >
-            <select lay-verify="required" lay-filter="group">
-                <option value=""></option>
-                {if !empty($groups)}
-                {foreach name="groups" item="vo"}
-                <option value="{$vo['id']}">{$vo['name']}</option>
-                {/foreach}
-                {/if}
-            </select>
-        </div>
-    </div>
-</div>
-<!-- 转接提示层 -->
-
-<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
-<script src="/static/service/js/layui/layui.js"></script>
-<script>
-    var uid = "{$uinfo['id']}";
-    var uname = "{$uinfo['user_name']}";
-    var avatar = "{$uinfo['user_avatar']}";
-    var group = "{$uinfo['group_id']}";
-    var socket_server = "{$socket}";
-</script>
-<script type="text/javascript" src="/static/service/js/functions.js"></script>
-<script type="text/javascript" src="/static/service/js/whisper.js"></script>
-</body>
-</html>

+ 0 - 75
application/service/view/login/index.html

@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-    <meta http-equiv="Pragma" content="no-cache">
-    <meta http-equiv="Cache-Control" content="no-cache">
-    <meta http-equiv="Expires" content="0">
-    <title>whisper {$version}客服登录页面</title>
-    <script type="text/javascript" src="/static/service/js/jquery-1.9.0.min.js"></script>
-    <script type="text/javascript" src="/static/service/js/layui/layui.js"></script>
-    <link href="/static/service/css/login.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
-<div class="login_box">
-    <div class="login_l_img"><img src="/static/service/images/login-img.png" /></div>
-    <div class="login">
-        <div class="login_logo"><a href="javascript:;"><img src="/static/service/images/login_logo.png" /></a></div>
-        <div class="login_name">
-            <p>whisper 登录页面</p>
-        </div>
-        <div class="login-form">
-            <input name="username" type="text" placeholder="用户名" id="u" >
-            <input name="password" type="password" id="p" placeholder="密码"/>
-            <input value="登录" style="width:100%;" type="button" id="btn">
-        </div>
-    </div>
-    <div class="copyright"><a href="http://baiyf.com" target="_blank" style="color:white;">whisper</a> 版权所有 ©2018-2019 </div>
-</div>
-<script>
-    document.onkeydown=function(event){
-        var e = event || window.event || arguments.callee.caller.arguments[0];
-        if(e && e.keyCode==13){ // enter 键
-            doLogin();
-        }
-    };
-
-    $(function(){
-        $("#btn").click(function(){
-            doLogin();
-        });
-    });
-
-    function doLogin(){
-        layui.use(['layer'], function(){
-            var layer = layui.layer;
-            layer.ready(function(){
-                var user_name = $("#u").val();
-                var password = $("#p").val();
-
-                if('' == user_name){
-                    layer.tips('请输入用户名', '#u');
-                    return false;
-                }
-
-                if('' == password){
-                    layer.tips('请输入密码', '#p');
-                    return false;
-                }
-
-                var index = layer.load(0, {shade: false});
-                $.post('/service/login/doLogin', {username: user_name, password: password}, function(res){
-                    layer.close(index);
-                    if(1 == res.code){
-                        window.location.href = res.data;
-                    }else{
-                        return layer.msg(res.msg, {icon: 2, anim: 6});
-                    }
-                }, 'json');
-            });
-        });
-    }
-</script>
-</body>
-</html>

+ 3560 - 0
public/static/admin/js/layui/css/myLayui.css

@@ -0,0 +1,3560 @@
+
+
+.layui-icon {
+    font-family: layui-icon !important;
+    font-size: 16px;
+    font-style: normal;
+    -webkit-font-smoothing: antialiased;
+    -moz-osx-font-smoothing: grayscale
+}
+
+body {
+    line-height: 24px;
+    font: 14px Helvetica Neue, Helvetica, PingFang SC, \5FAE\8F6F\96C5\9ED1, Tahoma, Arial, sans-serif
+}
+
+hr {
+    height: 1px;
+    margin: 10px 0;
+    border: 0;
+    background-color: #e2e2e2;
+    clear: both
+}
+
+a {
+    color: #333;
+    text-decoration: none
+}
+
+a:hover {
+    color: #777
+}
+
+a cite {
+    font-style: normal;
+    *cursor: pointer
+}
+
+.layui-border-box, .layui-border-box * {
+    box-sizing: border-box
+}
+
+.layui-box, .layui-box * {
+    box-sizing: content-box
+}
+
+.layui-clear {
+    clear: both;
+    *zoom: 1
+}
+
+.layui-clear:after {
+    content: '\20';
+    clear: both;
+    *zoom: 1;
+    display: block;
+    height: 0
+}
+
+.layui-btn, .layui-btn-group, .layui-inline {
+    display: inline-block
+}
+
+.layui-inline {
+    position: relative;
+    *display: inline;
+    *zoom: 1
+}
+
+.layui-edge {
+    position: absolute;
+    width: 0;
+    height: 0;
+    border-style: dashed;
+    border-color: transparent;
+    overflow: hidden
+}
+
+.layui-elip {
+    text-overflow: ellipsis;
+    overflow: hidden;
+    white-space: nowrap
+}
+
+.layui-disabled, .layui-disabled:hover {
+    color: #d2d2d2 !important;
+    cursor: not-allowed !important
+}
+
+.layui-circle {
+    border-radius: 100%
+}
+
+.layui-show {
+    display: block !important
+}
+
+.layui-hide {
+    display: none !important
+}
+
+.layui-main {
+    position: relative;
+    width: 1140px;
+    margin: 0 auto
+}
+
+.layui-header {
+    position: relative;
+    z-index: 1000;
+    height: 60px
+}
+
+.layui-header a:hover {
+    transition: all .5s;
+    -webkit-transition: all .5s
+}
+
+.layui-side {
+    position: fixed;
+    top: 0;
+    bottom: 0;
+    z-index: 999;
+    width: 200px;
+    overflow-x: hidden
+}
+
+.layui-side-scroll {
+    width: 220px;
+    height: 100%;
+    overflow-x: hidden
+}
+
+.layui-body {
+    position: absolute;
+    left: 200px;
+    right: 0;
+    top: 0;
+    bottom: 0;
+    z-index: 998;
+    width: auto;
+    overflow: hidden;
+    overflow-y: auto;
+    box-sizing: border-box
+}
+
+.layui-layout-admin .layui-header {
+    background-color: #23262E
+}
+
+.layui-layout-admin .layui-side {
+    top: 60px;
+    width: 200px;
+    overflow-x: hidden
+}
+
+.layui-layout-admin .layui-body {
+    top: 60px;
+    bottom: 44px
+}
+
+.layui-layout-admin .layui-main {
+    width: auto;
+    margin: 0 15px
+}
+
+.layui-layout-admin .layui-footer {
+    position: fixed;
+    left: 200px;
+    right: 0;
+    bottom: 0;
+    height: 44px;
+    line-height: 44px;
+    padding: 0 15px;
+    background-color: #eee
+}
+
+.layui-layout-admin .layui-logo {
+    position: absolute;
+    left: 0;
+    top: 0;
+    width: 200px;
+    height: 100%;
+    line-height: 60px;
+    text-align: center;
+    color: #009688;
+    font-size: 16px
+}
+
+.layui-layout-admin .layui-header .layui-nav {
+    background: 0 0
+}
+
+.layui-layout-left {
+    position: absolute !important;
+    left: 200px;
+    top: 0
+}
+
+.layui-layout-right {
+    position: absolute !important;
+    right: 0;
+    top: 0
+}
+
+.layui-container {
+    position: relative;
+    margin: 0 auto;
+    padding: 0 15px;
+    box-sizing: border-box
+}
+
+.layui-fluid {
+    position: relative;
+    margin: 0 auto;
+    padding: 0 15px
+}
+
+.layui-row:after, .layui-row:before {
+    content: '';
+    display: block;
+    clear: both
+}
+
+.layui-col-lg1, .layui-col-lg10, .layui-col-lg11, .layui-col-lg12, .layui-col-lg2, .layui-col-lg3, .layui-col-lg4, .layui-col-lg5, .layui-col-lg6, .layui-col-lg7, .layui-col-lg8, .layui-col-lg9, .layui-col-md1, .layui-col-md10, .layui-col-md11, .layui-col-md12, .layui-col-md2, .layui-col-md3, .layui-col-md4, .layui-col-md5, .layui-col-md6, .layui-col-md7, .layui-col-md8, .layui-col-md9, .layui-col-sm1, .layui-col-sm10, .layui-col-sm11, .layui-col-sm12, .layui-col-sm2, .layui-col-sm3, .layui-col-sm4, .layui-col-sm5, .layui-col-sm6, .layui-col-sm7, .layui-col-sm8, .layui-col-sm9, .layui-col-xs1, .layui-col-xs10, .layui-col-xs11, .layui-col-xs12, .layui-col-xs2, .layui-col-xs3, .layui-col-xs4, .layui-col-xs5, .layui-col-xs6, .layui-col-xs7, .layui-col-xs8, .layui-col-xs9 {
+    position: relative;
+    display: block;
+    box-sizing: border-box
+}
+
+.layui-col-xs1, .layui-col-xs10, .layui-col-xs11, .layui-col-xs12, .layui-col-xs2, .layui-col-xs3, .layui-col-xs4, .layui-col-xs5, .layui-col-xs6, .layui-col-xs7, .layui-col-xs8, .layui-col-xs9 {
+    float: left
+}
+
+.layui-col-xs1 {
+    width: 8.33333333%
+}
+
+.layui-col-xs2 {
+    width: 16.66666667%
+}
+
+.layui-col-xs3 {
+    width: 25%
+}
+
+.layui-col-xs4 {
+    width: 33.33333333%
+}
+
+.layui-col-xs5 {
+    width: 41.66666667%
+}
+
+.layui-col-xs6 {
+    width: 50%
+}
+
+.layui-col-xs7 {
+    width: 58.33333333%
+}
+
+.layui-col-xs8 {
+    width: 66.66666667%
+}
+
+.layui-col-xs9 {
+    width: 75%
+}
+
+.layui-col-xs10 {
+    width: 83.33333333%
+}
+
+.layui-col-xs11 {
+    width: 91.66666667%
+}
+
+.layui-col-xs12 {
+    width: 100%
+}
+
+.layui-col-xs-offset1 {
+    margin-left: 8.33333333%
+}
+
+.layui-col-xs-offset2 {
+    margin-left: 16.66666667%
+}
+
+.layui-col-xs-offset3 {
+    margin-left: 25%
+}
+
+.layui-col-xs-offset4 {
+    margin-left: 33.33333333%
+}
+
+.layui-col-xs-offset5 {
+    margin-left: 41.66666667%
+}
+
+.layui-col-xs-offset6 {
+    margin-left: 50%
+}
+
+.layui-col-xs-offset7 {
+    margin-left: 58.33333333%
+}
+
+.layui-col-xs-offset8 {
+    margin-left: 66.66666667%
+}
+
+.layui-col-xs-offset9 {
+    margin-left: 75%
+}
+
+.layui-col-xs-offset10 {
+    margin-left: 83.33333333%
+}
+
+.layui-col-xs-offset11 {
+    margin-left: 91.66666667%
+}
+
+.layui-col-xs-offset12 {
+    margin-left: 100%
+}
+
+@media screen and (max-width: 768px) {
+    .layui-hide-xs {
+        display: none !important
+    }
+
+    .layui-show-xs-block {
+        display: block !important
+    }
+
+    .layui-show-xs-inline {
+        display: inline !important
+    }
+
+    .layui-show-xs-inline-block {
+        display: inline-block !important
+    }
+}
+
+@media screen and (min-width: 768px) {
+    .layui-container {
+        width: 750px
+    }
+
+    .layui-hide-sm {
+        display: none !important
+    }
+
+    .layui-show-sm-block {
+        display: block !important
+    }
+
+    .layui-show-sm-inline {
+        display: inline !important
+    }
+
+    .layui-show-sm-inline-block {
+        display: inline-block !important
+    }
+
+    .layui-col-sm1, .layui-col-sm10, .layui-col-sm11, .layui-col-sm12, .layui-col-sm2, .layui-col-sm3, .layui-col-sm4, .layui-col-sm5, .layui-col-sm6, .layui-col-sm7, .layui-col-sm8, .layui-col-sm9 {
+        float: left
+    }
+
+    .layui-col-sm1 {
+        width: 8.33333333%
+    }
+
+    .layui-col-sm2 {
+        width: 16.66666667%
+    }
+
+    .layui-col-sm3 {
+        width: 25%
+    }
+
+    .layui-col-sm4 {
+        width: 33.33333333%
+    }
+
+    .layui-col-sm5 {
+        width: 41.66666667%
+    }
+
+    .layui-col-sm6 {
+        width: 50%
+    }
+
+    .layui-col-sm7 {
+        width: 58.33333333%
+    }
+
+    .layui-col-sm8 {
+        width: 66.66666667%
+    }
+
+    .layui-col-sm9 {
+        width: 75%
+    }
+
+    .layui-col-sm10 {
+        width: 83.33333333%
+    }
+
+    .layui-col-sm11 {
+        width: 91.66666667%
+    }
+
+    .layui-col-sm12 {
+        width: 100%
+    }
+
+    .layui-col-sm-offset1 {
+        margin-left: 8.33333333%
+    }
+
+    .layui-col-sm-offset2 {
+        margin-left: 16.66666667%
+    }
+
+    .layui-col-sm-offset3 {
+        margin-left: 25%
+    }
+
+    .layui-col-sm-offset4 {
+        margin-left: 33.33333333%
+    }
+
+    .layui-col-sm-offset5 {
+        margin-left: 41.66666667%
+    }
+
+    .layui-col-sm-offset6 {
+        margin-left: 50%
+    }
+
+    .layui-col-sm-offset7 {
+        margin-left: 58.33333333%
+    }
+
+    .layui-col-sm-offset8 {
+        margin-left: 66.66666667%
+    }
+
+    .layui-col-sm-offset9 {
+        margin-left: 75%
+    }
+
+    .layui-col-sm-offset10 {
+        margin-left: 83.33333333%
+    }
+
+    .layui-col-sm-offset11 {
+        margin-left: 91.66666667%
+    }
+
+    .layui-col-sm-offset12 {
+        margin-left: 100%
+    }
+}
+
+@media screen and (min-width: 992px) {
+    .layui-container {
+        width: 970px
+    }
+
+    .layui-hide-md {
+        display: none !important
+    }
+
+    .layui-show-md-block {
+        display: block !important
+    }
+
+    .layui-show-md-inline {
+        display: inline !important
+    }
+
+    .layui-show-md-inline-block {
+        display: inline-block !important
+    }
+
+    .layui-col-md1, .layui-col-md10, .layui-col-md11, .layui-col-md12, .layui-col-md2, .layui-col-md3, .layui-col-md4, .layui-col-md5, .layui-col-md6, .layui-col-md7, .layui-col-md8, .layui-col-md9 {
+        float: left
+    }
+
+    .layui-col-md1 {
+        width: 8.33333333%
+    }
+
+    .layui-col-md2 {
+        width: 16.66666667%
+    }
+
+    .layui-col-md3 {
+        width: 25%
+    }
+
+    .layui-col-md4 {
+        width: 33.33333333%
+    }
+
+    .layui-col-md5 {
+        width: 41.66666667%
+    }
+
+    .layui-col-md6 {
+        width: 50%
+    }
+
+    .layui-col-md7 {
+        width: 58.33333333%
+    }
+
+    .layui-col-md8 {
+        width: 66.66666667%
+    }
+
+    .layui-col-md9 {
+        width: 75%
+    }
+
+    .layui-col-md10 {
+        width: 83.33333333%
+    }
+
+    .layui-col-md11 {
+        width: 91.66666667%
+    }
+
+    .layui-col-md12 {
+        width: 100%
+    }
+
+    .layui-col-md-offset1 {
+        margin-left: 8.33333333%
+    }
+
+    .layui-col-md-offset2 {
+        margin-left: 16.66666667%
+    }
+
+    .layui-col-md-offset3 {
+        margin-left: 25%
+    }
+
+    .layui-col-md-offset4 {
+        margin-left: 33.33333333%
+    }
+
+    .layui-col-md-offset5 {
+        margin-left: 41.66666667%
+    }
+
+    .layui-col-md-offset6 {
+        margin-left: 50%
+    }
+
+    .layui-col-md-offset7 {
+        margin-left: 58.33333333%
+    }
+
+    .layui-col-md-offset8 {
+        margin-left: 66.66666667%
+    }
+
+    .layui-col-md-offset9 {
+        margin-left: 75%
+    }
+
+    .layui-col-md-offset10 {
+        margin-left: 83.33333333%
+    }
+
+    .layui-col-md-offset11 {
+        margin-left: 91.66666667%
+    }
+
+    .layui-col-md-offset12 {
+        margin-left: 100%
+    }
+}
+
+@media screen and (min-width: 1200px) {
+    .layui-container {
+        width: 1170px
+    }
+
+    .layui-hide-lg {
+        display: none !important
+    }
+
+    .layui-show-lg-block {
+        display: block !important
+    }
+
+    .layui-show-lg-inline {
+        display: inline !important
+    }
+
+    .layui-show-lg-inline-block {
+        display: inline-block !important
+    }
+
+    .layui-col-lg1, .layui-col-lg10, .layui-col-lg11, .layui-col-lg12, .layui-col-lg2, .layui-col-lg3, .layui-col-lg4, .layui-col-lg5, .layui-col-lg6, .layui-col-lg7, .layui-col-lg8, .layui-col-lg9 {
+        float: left
+    }
+
+    .layui-col-lg1 {
+        width: 8.33333333%
+    }
+
+    .layui-col-lg2 {
+        width: 16.66666667%
+    }
+
+    .layui-col-lg3 {
+        width: 25%
+    }
+
+    .layui-col-lg4 {
+        width: 33.33333333%
+    }
+
+    .layui-col-lg5 {
+        width: 41.66666667%
+    }
+
+    .layui-col-lg6 {
+        width: 50%
+    }
+
+    .layui-col-lg7 {
+        width: 58.33333333%
+    }
+
+    .layui-col-lg8 {
+        width: 66.66666667%
+    }
+
+    .layui-col-lg9 {
+        width: 75%
+    }
+
+    .layui-col-lg10 {
+        width: 83.33333333%
+    }
+
+    .layui-col-lg11 {
+        width: 91.66666667%
+    }
+
+    .layui-col-lg12 {
+        width: 100%
+    }
+
+    .layui-col-lg-offset1 {
+        margin-left: 8.33333333%
+    }
+
+    .layui-col-lg-offset2 {
+        margin-left: 16.66666667%
+    }
+
+    .layui-col-lg-offset3 {
+        margin-left: 25%
+    }
+
+    .layui-col-lg-offset4 {
+        margin-left: 33.33333333%
+    }
+
+    .layui-col-lg-offset5 {
+        margin-left: 41.66666667%
+    }
+
+    .layui-col-lg-offset6 {
+        margin-left: 50%
+    }
+
+    .layui-col-lg-offset7 {
+        margin-left: 58.33333333%
+    }
+
+    .layui-col-lg-offset8 {
+        margin-left: 66.66666667%
+    }
+
+    .layui-col-lg-offset9 {
+        margin-left: 75%
+    }
+
+    .layui-col-lg-offset10 {
+        margin-left: 83.33333333%
+    }
+
+    .layui-col-lg-offset11 {
+        margin-left: 91.66666667%
+    }
+
+    .layui-col-lg-offset12 {
+        margin-left: 100%
+    }
+}
+
+.layui-col-space1 {
+    margin: -.5px
+}
+
+.layui-col-space1 > * {
+    padding: .5px
+}
+
+.layui-col-space3 {
+    margin: -1.5px
+}
+
+.layui-col-space3 > * {
+    padding: 1.5px
+}
+
+.layui-col-space5 {
+    margin: -2.5px
+}
+
+.layui-col-space5 > * {
+    padding: 2.5px
+}
+
+.layui-col-space8 {
+    margin: -3.5px
+}
+
+.layui-col-space8 > * {
+    padding: 3.5px
+}
+
+.layui-col-space10 {
+    margin: -5px
+}
+
+.layui-col-space10 > * {
+    padding: 5px
+}
+
+.layui-col-space12 {
+    margin: -6px
+}
+
+.layui-col-space12 > * {
+    padding: 6px
+}
+
+.layui-col-space15 {
+    margin: -7.5px
+}
+
+.layui-col-space15 > * {
+    padding: 7.5px
+}
+
+.layui-col-space18 {
+    margin: -9px
+}
+
+.layui-col-space18 > * {
+    padding: 9px
+}
+
+.layui-col-space20 {
+    margin: -10px
+}
+
+.layui-col-space20 > * {
+    padding: 10px
+}
+
+.layui-col-space22 {
+    margin: -11px
+}
+
+.layui-col-space22 > * {
+    padding: 11px
+}
+
+.layui-col-space25 {
+    margin: -12.5px
+}
+
+.layui-col-space25 > * {
+    padding: 12.5px
+}
+
+.layui-col-space30 {
+    margin: -15px
+}
+
+.layui-col-space30 > * {
+    padding: 15px
+}
+
+.layui-btn, .layui-input, .layui-select, .layui-textarea, .layui-upload-button {
+    outline: 0;
+    transition: all .3s;
+    -webkit-transition: all .3s;
+    box-sizing: border-box
+}
+
+.layui-elem-quote {
+    margin-bottom: 10px;
+    padding: 15px;
+    line-height: 22px;
+    border-left: 5px solid #009688;
+    border-radius: 0 2px 2px 0;
+    background-color: #f2f2f2
+}
+
+.layui-quote-nm {
+    border-color: #e2e2e2;
+    border-style: solid;
+    border-width: 1px 1px 1px 5px;
+    background: 0 0
+}
+
+.layui-elem-field {
+    margin-bottom: 10px;
+    padding: 0;
+    border: 1px solid #e2e2e2
+}
+
+.layui-elem-field legend {
+    margin-left: 20px;
+    padding: 0 10px;
+    font-size: 20px;
+    font-weight: 300
+}
+
+.layui-field-title {
+    margin: 10px 0 20px;
+    border: none;
+    border-top: 1px solid #e2e2e2
+}
+
+.layui-field-box {
+    padding: 10px 15px
+}
+
+.layui-field-title .layui-field-box {
+    padding: 10px 0
+}
+
+.layui-progress {
+    position: relative;
+    height: 6px;
+    border-radius: 20px;
+    background-color: #e2e2e2
+}
+
+.layui-progress-bar {
+    position: absolute;
+    width: 0;
+    max-width: 100%;
+    height: 6px;
+    border-radius: 20px;
+    text-align: right;
+    background-color: #5FB878;
+    transition: all .3s;
+    -webkit-transition: all .3s
+}
+
+.layui-progress-big, .layui-progress-big .layui-progress-bar {
+    height: 18px;
+    line-height: 18px
+}
+
+.layui-progress-text {
+    position: relative;
+    top: -18px;
+    line-height: 18px;
+    font-size: 12px;
+    color: #666
+}
+
+.layui-progress-big .layui-progress-text {
+    position: static;
+    padding: 0 10px;
+    color: #fff
+}
+
+.layui-collapse {
+    border: 1px solid #e2e2e2;
+    border-radius: 2px
+}
+
+.layui-colla-item {
+    border-top: 1px solid #e2e2e2
+}
+
+.layui-colla-item:first-child {
+    border-top: none
+}
+
+.layui-colla-title {
+    position: relative;
+    height: 42px;
+    line-height: 42px;
+    padding: 0 15px 0 35px;
+    color: #333;
+    background-color: #f2f2f2;
+    cursor: pointer
+}
+
+.layui-colla-content {
+    display: none;
+    padding: 10px 15px;
+    line-height: 22px;
+    border-top: 1px solid #e2e2e2;
+    color: #666
+}
+
+.layui-bg-black, .layui-bg-blue, .layui-bg-cyan, .layui-bg-green, .layui-bg-orange, .layui-bg-red {
+    color: #fff !important
+}
+
+.layui-colla-icon {
+    position: absolute;
+    left: 15px;
+    top: 0;
+    font-size: 14px
+}
+
+.layui-bg-red {
+    background-color: #FF5722 !important
+}
+
+.layui-bg-orange {
+    background-color: #FFB800 !important
+}
+
+.layui-bg-green {
+    background-color: #009688 !important
+}
+
+.layui-bg-cyan {
+    background-color: #2F4056 !important
+}
+
+.layui-bg-blue {
+    background-color: #1E9FFF !important
+}
+
+.layui-bg-black {
+    background-color: #393D49 !important
+}
+
+.layui-bg-gray {
+    background-color: #eee !important;
+    color: #666 !important
+}
+
+.layui-text {
+    line-height: 22px;
+    font-size: 14px;
+    color: #666
+}
+
+.layui-text h1, .layui-text h2, .layui-text h3 {
+    font-weight: 500;
+    color: #333
+}
+
+.layui-text h1 {
+    font-size: 30px
+}
+
+.layui-text h2 {
+    font-size: 24px
+}
+
+.layui-text h3 {
+    font-size: 18px
+}
+
+.layui-text a {
+    color: #01AAED
+}
+
+.layui-text a:hover {
+    text-decoration: underline
+}
+
+.layui-text ul {
+    padding: 5px 0 5px 15px
+}
+
+.layui-text ul li {
+    margin-top: 5px;
+    list-style-type: disc
+}
+
+.layui-text em, .layui-word-aux {
+    color: #999 !important;
+    padding: 0 5px !important
+}
+
+.layui-btn {
+    height: 38px;
+    line-height: 38px;
+    padding: 0 18px;
+    background-color: #009688;
+    color: #fff;
+    white-space: nowrap;
+    text-align: center;
+    font-size: 14px;
+    border: none;
+    border-radius: 2px;
+    cursor: pointer;
+    opacity: .9;
+    filter: alpha(opacity=90)
+}
+
+.layui-btn:hover {
+    opacity: .8;
+    filter: alpha(opacity=80);
+    color: #fff
+}
+
+.layui-btn:active {
+    opacity: 1;
+    filter: alpha(opacity=100)
+}
+
+.layui-btn + .layui-btn {
+    margin-left: 10px
+}
+
+.layui-btn-radius {
+    border-radius: 100px
+}
+
+.layui-btn .layui-icon {
+    margin-right: 3px;
+    font-size: 18px;
+    vertical-align: bottom;
+    vertical-align: middle \9
+}
+
+.layui-btn-primary {
+    line-height: 36px;
+    border: 1px solid #C9C9C9;
+    background-color: #fff;
+    color: #555
+}
+
+.layui-btn-primary:hover {
+    border-color: #009688;
+    color: #333
+}
+
+.layui-btn-normal {
+    background-color: #1E9FFF
+}
+
+.layui-btn-warm {
+    background-color: #FFB800
+}
+
+.layui-btn-danger {
+    background-color: #FF5722
+}
+
+.layui-btn-disabled, .layui-btn-disabled:active, .layui-btn-disabled:hover {
+    border: 1px solid #e6e6e6;
+    background-color: #FBFBFB;
+    color: #C9C9C9;
+    cursor: not-allowed;
+    opacity: 1
+}
+
+.layui-btn-big {
+    height: 44px;
+    line-height: 44px;
+    padding: 0 25px;
+    font-size: 16px
+}
+
+.layui-btn-small {
+    height: 30px;
+    line-height: 30px;
+    padding: 0 10px;
+    font-size: 12px
+}
+
+.layui-btn-small i {
+    font-size: 16px !important
+}
+
+.layui-btn-mini {
+    height: 22px;
+    line-height: 22px;
+    padding: 0 5px;
+    font-size: 12px
+}
+
+.layui-btn-mini i {
+    font-size: 14px !important
+}
+
+.layui-btn-group {
+    vertical-align: middle;
+    font-size: 0
+}
+
+.layui-btn-group .layui-btn {
+    margin-left: 0 !important;
+    margin-right: 0 !important;
+    border-left: 1px solid rgba(255, 255, 255, .5);
+    border-radius: 0
+}
+
+.layui-btn-group .layui-btn-primary {
+    border-left: none
+}
+
+.layui-btn-group .layui-btn-primary:hover {
+    border-color: #C9C9C9;
+    color: #009688
+}
+
+.layui-btn-group .layui-btn:first-child {
+    border-left: none;
+    border-radius: 2px 0 0 2px
+}
+
+.layui-btn-group .layui-btn-primary:first-child {
+    border-left: 1px solid #c9c9c9
+}
+
+.layui-btn-group .layui-btn:last-child {
+    border-radius: 0 2px 2px 0
+}
+
+.layui-btn-group .layui-btn + .layui-btn {
+    margin-left: 0
+}
+
+.layui-btn-group + .layui-btn-group {
+    margin-left: 10px
+}
+
+.layui-input, .layui-select, .layui-textarea {
+    height: 38px;
+    line-height: 36px \9;
+    border: 1px solid #e6e6e6;
+    background-color: #fff;
+    border-radius: 2px
+}
+
+.layui-form-label, .layui-form-mid, .layui-textarea {
+    line-height: 20px;
+    position: relative
+}
+
+.layui-input, .layui-textarea {
+    display: block;
+    width: 100%;
+    padding-left: 10px
+}
+
+.layui-input:hover, .layui-textarea:hover {
+    border-color: #D2D2D2 !important
+}
+
+.layui-input:focus, .layui-textarea:focus {
+    border-color: #C9C9C9 !important
+}
+
+.layui-textarea {
+    min-height: 100px;
+    height: auto;
+    padding: 6px 10px;
+    resize: vertical
+}
+
+.layui-select {
+    padding: 0 10px
+}
+
+.layui-form input[type=checkbox], .layui-form input[type=radio], .layui-form select {
+    display: none
+}
+
+.layui-form-item {
+    margin-bottom: 15px;
+    clear: both;
+    *zoom: 1
+}
+
+.layui-form-item:after {
+    content: '\20';
+    clear: both;
+    *zoom: 1;
+    display: block;
+    height: 0
+}
+
+.layui-form-label {
+    float: left;
+    display: block;
+    padding: 9px 15px;
+    width: 80px;
+    font-weight: 400;
+    text-align: right
+}
+
+.layui-form-item .layui-inline {
+    margin-bottom: 5px;
+    margin-right: 10px
+}
+
+.layui-input-block, .layui-input-inline {
+    position: relative
+}
+
+.layui-input-block {
+    margin-left: 110px;
+    min-height: 36px
+}
+
+.layui-input-inline {
+    display: inline-block;
+    vertical-align: middle
+}
+
+.layui-form-item .layui-input-inline {
+    float: left;
+    width: 190px;
+    margin-right: 10px
+}
+
+.layui-form-text .layui-input-inline {
+    width: auto
+}
+
+.layui-form-mid {
+    float: left;
+    display: block;
+    padding: 8px 0 !important;
+    margin-right: 10px
+}
+
+.layui-form-danger + .layui-form-select .layui-input, .layui-form-danger:focus {
+    border: 1px solid #FF5722 !important
+}
+
+.layui-form-select {
+    position: relative
+}
+
+.layui-form-select .layui-input {
+    padding-right: 30px;
+    cursor: pointer
+}
+
+.layui-form-select .layui-edge {
+    position: absolute;
+    right: 10px;
+    top: 50%;
+    margin-top: -3px;
+    cursor: pointer;
+    border-width: 6px;
+    border-top-color: #c2c2c2;
+    border-top-style: solid;
+    transition: all .3s;
+    -webkit-transition: all .3s
+}
+
+.layui-form-select dl {
+    display: none;
+    position: absolute;
+    left: 0;
+    top: 42px;
+    padding: 5px 0;
+    z-index: 999;
+    min-width: 100%;
+    border: 1px solid #d2d2d2;
+    max-height: 300px;
+    overflow-y: auto;
+    background-color: #fff;
+    border-radius: 2px;
+    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
+    box-sizing: border-box
+}
+
+.layui-form-select dl dd, .layui-form-select dl dt {
+    padding: 0 10px;
+    line-height: 36px;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis
+}
+
+.layui-form-select dl dt {
+    font-size: 12px;
+    color: #999
+}
+
+.layui-form-select dl dd {
+    cursor: pointer
+}
+
+.layui-form-select dl dd:hover {
+    background-color: #f2f2f2
+}
+
+.layui-form-select .layui-select-group dd {
+    padding-left: 20px
+}
+
+.layui-form-select dl dd.layui-select-tips {
+    padding-left: 10px !important;
+    color: #999
+}
+
+.layui-form-select dl dd.layui-this {
+    background-color: #5FB878;
+    color: #fff
+}
+
+.layui-form-checkbox, .layui-form-select dl dd.layui-disabled {
+    background-color: #fff
+}
+
+.layui-form-selected dl {
+    display: block
+}
+
+.layui-form-checkbox, .layui-form-checkbox *, .layui-form-radio, .layui-form-radio *, .layui-form-switch {
+    display: inline-block;
+    vertical-align: middle
+}
+
+.layui-form-selected .layui-edge {
+    margin-top: -9px;
+    -webkit-transform: rotate(180deg);
+    transform: rotate(180deg);
+    margin-top: -3px \9
+}
+
+:root .layui-form-selected .layui-edge {
+    margin-top: -9px \0/ IE9
+}
+
+.layui-form-selectup dl {
+    top: auto;
+    bottom: 42px
+}
+
+.layui-select-none {
+    margin: 5px 0;
+    text-align: center;
+    color: #999
+}
+
+.layui-select-disabled .layui-disabled {
+    border-color: #eee !important
+}
+
+.layui-select-disabled .layui-edge {
+    border-top-color: #d2d2d2
+}
+
+.layui-form-checkbox {
+    position: relative;
+    height: 30px;
+    line-height: 28px;
+    margin-right: 10px;
+    padding-right: 30px;
+    border: 1px solid #d2d2d2;
+    cursor: pointer;
+    font-size: 0;
+    border-radius: 2px;
+    -webkit-transition: .1s linear;
+    transition: .1s linear;
+    box-sizing: border-box
+}
+
+.layui-form-checkbox:hover {
+    border: 1px solid #c2c2c2
+}
+
+.layui-form-checkbox span {
+    padding: 0 10px;
+    height: 100%;
+    font-size: 14px;
+    background-color: #d2d2d2;
+    color: #fff;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis
+}
+
+.layui-form-checkbox:hover span {
+    background-color: #c2c2c2
+}
+
+.layui-form-checkbox i {
+    position: absolute;
+    right: 0;
+    width: 30px;
+    color: #fff;
+    font-size: 20px;
+    text-align: center
+}
+
+.layui-form-checkbox:hover i {
+    color: #c2c2c2
+}
+
+.layui-form-checked, .layui-form-checked:hover {
+    border-color: #5FB878
+}
+
+.layui-form-checked span, .layui-form-checked:hover span {
+    background-color: #5FB878
+}
+
+.layui-form-checked i, .layui-form-checked:hover i {
+    color: #5FB878
+}
+
+.layui-form-item .layui-form-checkbox {
+    margin-top: 4px
+}
+
+.layui-form-checkbox[lay-skin=primary] {
+    height: auto !important;
+    line-height: normal !important;
+    border: none !important;
+    margin-right: 0;
+    padding-right: 0;
+    background: 0 0
+}
+
+.layui-form-checkbox[lay-skin=primary] span {
+    float: right;
+    padding-right: 15px;
+    line-height: 18px;
+    background: 0 0;
+    color: #666
+}
+
+.layui-form-checkbox[lay-skin=primary] i {
+    position: relative;
+    top: 0;
+    width: 16px;
+    height: 16px;
+    line-height: 16px;
+    border: 1px solid #d2d2d2;
+    font-size: 12px;
+    border-radius: 2px;
+    background-color: #fff;
+    -webkit-transition: .1s linear;
+    transition: .1s linear
+}
+
+.layui-form-checkbox[lay-skin=primary]:hover i {
+    border-color: #5FB878;
+    color: #fff
+}
+
+.layui-form-checked[lay-skin=primary] i {
+    border-color: #5FB878;
+    background-color: #5FB878;
+    color: #fff
+}
+
+.layui-checkbox-disbaled[lay-skin=primary] span {
+    background: 0 0 !important
+}
+
+.layui-checkbox-disbaled[lay-skin=primary]:hover i {
+    border-color: #d2d2d2
+}
+
+.layui-form-item .layui-form-checkbox[lay-skin=primary] {
+    margin-top: 10px
+}
+
+.layui-form-switch {
+    position: relative;
+    height: 22px;
+    line-height: 22px;
+    width: 42px;
+    padding: 0 5px;
+    margin-top: 8px;
+    border: 1px solid #d2d2d2;
+    border-radius: 20px;
+    cursor: pointer;
+    background-color: #fff;
+    -webkit-transition: .1s linear;
+    transition: .1s linear
+}
+
+.layui-form-switch i {
+    position: absolute;
+    left: 5px;
+    top: 3px;
+    width: 16px;
+    height: 16px;
+    border-radius: 20px;
+    background-color: #d2d2d2;
+    -webkit-transition: .1s linear;
+    transition: .1s linear
+}
+
+.layui-form-switch em {
+    position: absolute;
+    right: 5px;
+    top: 0;
+    width: 25px;
+    padding: 0 !important;
+    text-align: center !important;
+    color: #999 !important;
+    font-style: normal !important;
+    font-size: 12px
+}
+
+.layui-form-onswitch {
+    border-color: #5FB878;
+    background-color: #5FB878
+}
+
+.layui-form-onswitch i {
+    left: 32px;
+    background-color: #fff
+}
+
+.layui-form-onswitch em {
+    left: 5px;
+    right: auto;
+    color: #fff !important
+}
+
+.layui-checkbox-disbaled {
+    border-color: #e2e2e2 !important
+}
+
+.layui-checkbox-disbaled span {
+    background-color: #e2e2e2 !important
+}
+
+.layui-checkbox-disbaled:hover i {
+    color: #fff !important
+}
+
+.layui-form-radio {
+    line-height: 28px;
+    margin: 6px 10px 0 0;
+    padding-right: 10px;
+    cursor: pointer;
+    font-size: 0
+}
+
+.layui-form-radio i {
+    margin-right: 8px;
+    font-size: 22px;
+    color: #c2c2c2
+}
+
+.layui-form-radio span {
+    font-size: 14px
+}
+
+.layui-form-radio i:hover, .layui-form-radioed i {
+    color: #5FB878
+}
+
+.layui-radio-disbaled i {
+    color: #e2e2e2 !important
+}
+
+.layui-form-pane .layui-form-label {
+    width: 110px;
+    padding: 8px 15px;
+    height: 38px;
+    line-height: 20px;
+    border: 1px solid #e6e6e6;
+    border-radius: 2px 0 0 2px;
+    text-align: center;
+    background-color: #FBFBFB;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
+    box-sizing: border-box
+}
+
+.layui-form-pane .layui-input-inline {
+    margin-left: -1px
+}
+
+.layui-form-pane .layui-input-block {
+    margin-left: 110px;
+    left: -1px
+}
+
+.layui-form-pane .layui-input {
+    border-radius: 0 2px 2px 0
+}
+
+.layui-form-pane .layui-form-text .layui-form-label {
+    float: none;
+    width: 100%;
+    border-right: 1px solid #e6e6e6;
+    border-radius: 2px;
+    box-sizing: border-box;
+    text-align: left
+}
+
+.layui-form-pane .layui-form-text .layui-input-inline {
+    display: block;
+    margin: 0;
+    top: -1px;
+    clear: both
+}
+
+.layui-form-pane .layui-form-text .layui-input-block {
+    margin: 0;
+    left: 0;
+    top: -1px
+}
+
+.layui-form-pane .layui-form-text .layui-textarea {
+    min-height: 100px;
+    border-radius: 0 0 2px 2px
+}
+
+.layui-form-pane .layui-form-checkbox {
+    margin: 4px 0 4px 10px
+}
+
+.layui-form-pane .layui-form-radio, .layui-form-pane .layui-form-switch {
+    margin-top: 6px;
+    margin-left: 10px
+}
+
+.layui-form-pane .layui-form-item[pane] {
+    position: relative;
+    border: 1px solid #e6e6e6
+}
+
+.layui-form-pane .layui-form-item[pane] .layui-form-label {
+    position: absolute;
+    left: 0;
+    top: 0;
+    height: 100%;
+    border-width: 0 1px 0 0
+}
+
+.layui-form-pane .layui-form-item[pane] .layui-input-inline {
+    margin-left: 110px
+}
+
+@media screen and (max-width: 450px) {
+    .layui-form-item .layui-form-label {
+        text-overflow: ellipsis;
+        overflow: hidden;
+        white-space: nowrap
+    }
+
+    .layui-form-item .layui-inline {
+        display: block;
+        margin-right: 0;
+        margin-bottom: 20px;
+        clear: both
+    }
+
+    .layui-form-item .layui-inline:after {
+        content: '\20';
+        clear: both;
+        display: block;
+        height: 0
+    }
+
+    .layui-form-item .layui-input-inline {
+        display: block;
+        float: none;
+        left: -3px;
+        width: auto;
+        margin: 0 0 10px 112px
+    }
+
+    .layui-form-item .layui-input-inline + .layui-form-mid {
+        margin-left: 110px;
+        top: -5px;
+        padding: 0
+    }
+
+    .layui-form-item .layui-form-checkbox {
+        margin-right: 5px;
+        margin-bottom: 5px
+    }
+}
+
+.layui-layedit {
+    border: 1px solid #d2d2d2;
+    border-radius: 2px
+}
+
+.layui-layedit-tool {
+    padding: 3px 5px;
+    border-bottom: 1px solid #e2e2e2;
+    font-size: 0
+}
+
+.layedit-tool-fixed {
+    position: fixed;
+    top: 0;
+    border-top: 1px solid #e2e2e2
+}
+
+.layui-layedit-tool .layedit-tool-mid, .layui-layedit-tool .layui-icon {
+    display: inline-block;
+    vertical-align: middle;
+    text-align: center;
+    font-size: 14px
+}
+
+.layui-layedit-tool .layui-icon {
+    position: relative;
+    width: 32px;
+    height: 30px;
+    line-height: 30px;
+    margin: 3px 5px;
+    color: #777;
+    cursor: pointer;
+    border-radius: 2px
+}
+
+.layui-layedit-tool .layui-icon:hover {
+    color: #393D49
+}
+
+.layui-layedit-tool .layui-icon:active {
+    color: #000
+}
+
+.layui-layedit-tool .layedit-tool-active {
+    background-color: #e2e2e2;
+    color: #000
+}
+
+.layui-layedit-tool .layui-disabled, .layui-layedit-tool .layui-disabled:hover {
+    color: #d2d2d2;
+    cursor: not-allowed
+}
+
+.layui-layedit-tool .layedit-tool-mid {
+    width: 1px;
+    height: 18px;
+    margin: 0 10px;
+    background-color: #d2d2d2
+}
+
+.layedit-tool-html {
+    width: 50px !important;
+    font-size: 30px !important
+}
+
+.layedit-tool-b, .layedit-tool-code, .layedit-tool-help {
+    font-size: 16px !important
+}
+
+.layedit-tool-d, .layedit-tool-face, .layedit-tool-image, .layedit-tool-unlink {
+    font-size: 18px !important
+}
+
+.layedit-tool-image input {
+    position: absolute;
+    font-size: 0;
+    left: 0;
+    top: 0;
+    width: 100%;
+    height: 100%;
+    opacity: .01;
+    filter: Alpha(opacity=1);
+    cursor: pointer
+}
+
+.layui-layedit-iframe iframe {
+    display: block;
+    width: 100%
+}
+
+#LAY_layedit_code {
+    overflow: hidden
+}
+
+.layui-laypage {
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+    vertical-align: middle;
+    margin: 10px 0;
+    font-size: 0
+}
+
+.layui-laypage > a:first-child, .layui-laypage > a:first-child em {
+    border-radius: 2px 0 0 2px
+}
+
+.layui-laypage > a:last-child, .layui-laypage > a:last-child em {
+    border-radius: 0 2px 2px 0
+}
+
+.layui-laypage > :first-child {
+    margin-left: 0 !important
+}
+
+.layui-laypage > :last-child {
+    margin-right: 0 !important
+}
+
+.layui-laypage a, .layui-laypage button, .layui-laypage input, .layui-laypage select, .layui-laypage span {
+    border: 1px solid #e2e2e2
+}
+
+.layui-laypage a, .layui-laypage span {
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+    vertical-align: middle;
+    padding: 0 15px;
+    height: 28px;
+    line-height: 28px;
+    margin: 0 -1px 5px 0;
+    background-color: #fff;
+    color: #333;
+    font-size: 12px
+}
+
+.layui-laypage a:hover {
+    color: #009688
+}
+
+.layui-laypage em {
+    font-style: normal
+}
+
+.layui-laypage .layui-laypage-spr {
+    color: #999;
+    font-weight: 700
+}
+
+.layui-laypage a {
+    text-decoration: none
+}
+
+.layui-laypage .layui-laypage-curr {
+    position: relative
+}
+
+.layui-laypage .layui-laypage-curr em {
+    position: relative;
+    color: #fff
+}
+
+.layui-laypage .layui-laypage-curr .layui-laypage-em {
+    position: absolute;
+    left: -1px;
+    top: -1px;
+    padding: 1px;
+    width: 100%;
+    height: 100%;
+    background-color: #009688
+}
+
+.layui-laypage-em {
+    border-radius: 2px
+}
+
+.layui-laypage-next em, .layui-laypage-prev em {
+    font-family: Sim sun;
+    font-size: 16px
+}
+
+.layui-laypage .layui-laypage-count, .layui-laypage .layui-laypage-limits, .layui-laypage .layui-laypage-skip {
+    margin-left: 10px;
+    margin-right: 10px;
+    padding: 0;
+    border: none
+}
+
+.layui-laypage .layui-laypage-limits {
+    vertical-align: top
+}
+
+.layui-laypage select {
+    height: 22px;
+    padding: 3px;
+    border-radius: 2px;
+    cursor: pointer
+}
+
+.layui-laypage .layui-laypage-skip {
+    height: 30px;
+    line-height: 30px;
+    color: #999
+}
+
+.layui-laypage button, .layui-laypage input {
+    height: 30px;
+    line-height: 30px;
+    border: 1px solid #e2e2e2;
+    border-radius: 2px;
+    vertical-align: top;
+    background-color: #fff;
+    box-sizing: border-box
+}
+
+.layui-laypage input {
+    display: inline-block;
+    width: 40px;
+    margin: 0 10px;
+    padding: 0 3px;
+    text-align: center
+}
+
+.layui-laypage input:focus, .layui-laypage select:focus {
+    border-color: #009688 !important
+}
+
+.layui-laypage button {
+    margin-left: 10px;
+    padding: 0 10px;
+    cursor: pointer
+}
+
+.layui-flow-more {
+    margin: 10px 0;
+    text-align: center;
+    color: #999;
+    font-size: 14px
+}
+
+.layui-flow-more a {
+    height: 32px;
+    line-height: 32px
+}
+
+.layui-flow-more a * {
+    display: inline-block;
+    vertical-align: top
+}
+
+.layui-flow-more a cite {
+    padding: 0 20px;
+    border-radius: 3px;
+    background-color: #eee;
+    color: #333;
+    font-style: normal
+}
+
+.layui-flow-more a cite:hover {
+    opacity: .8
+}
+
+.layui-flow-more a i {
+    font-size: 30px;
+    color: #737383
+}
+
+.layui-table {
+    width: 100%;
+    margin: 10px 0;
+    background-color: #fff
+}
+
+.layui-table tr {
+    transition: all .3s;
+    -webkit-transition: all .3s
+}
+
+.layui-table thead tr, .layui-table-fixed-l tr, .layui-table-header, .layui-table-mend, .layui-table-patch, .layui-table-tool {
+    background-color: #f2f2f2
+}
+
+.layui-table th {
+    text-align: left;
+    font-weight: 400
+}
+
+.layui-table td, .layui-table th, .layui-table-header, .layui-table-tool, .layui-table-view, .layui-table[lay-skin=row], .layui-table[lay-skin=line] {
+    border: 1px solid #e2e2e2
+}
+
+.layui-table td, .layui-table th {
+    position: relative;
+    padding: 9px 15px;
+    min-height: 20px;
+    line-height: 20px;
+    font-size: 14px
+}
+
+.layui-table[lay-even] tr:nth-child(even) {
+    background-color: #f8f8f8
+}
+
+.layui-table tbody tr:hover, .layui-table-hover {
+    background-color: #f2f2f2 !important
+}
+
+.layui-table-click {
+    background-color: #FFEEE8 !important
+}
+
+.layui-table[lay-skin=line] td, .layui-table[lay-skin=line] th {
+    border-width: 0 0 1px
+}
+
+.layui-table[lay-skin=row] td, .layui-table[lay-skin=row] th {
+    border-width: 0 1px 0 0
+}
+
+.layui-table[lay-skin=nob] td, .layui-table[lay-skin=nob] th {
+    border: none
+}
+
+.layui-table img {
+    max-width: 100px
+}
+
+.layui-table[lay-size=lg] td, .layui-table[lay-size=lg] th {
+    padding: 15px 30px
+}
+
+.layui-table-view .layui-table[lay-size=lg] .layui-table-cell {
+    height: 40px;
+    line-height: 40px
+}
+
+.layui-table[lay-size=sm] td, .layui-table[lay-size=sm] th {
+    font-size: 12px;
+    padding: 5px 10px
+}
+
+.layui-table-view .layui-table[lay-size=sm] .layui-table-cell {
+    height: 20px;
+    line-height: 20px
+}
+
+.layui-table[lay-data] {
+    display: none
+}
+
+.layui-table-view {
+    position: relative;
+    margin: 10px 0;
+    overflow: hidden
+}
+
+.layui-table-view .layui-table {
+    position: relative;
+    width: auto;
+    margin: 0
+}
+
+.layui-table-body, .layui-table-header .layui-table, .layui-table-tool {
+    margin-bottom: -1px
+}
+
+.layui-table-view .layui-table[lay-skin=line] {
+    border-width: 0 1px 0 0
+}
+
+.layui-table-view .layui-table[lay-skin=row] {
+    border-width: 0 0 1px
+}
+
+.layui-table-view .layui-table td, .layui-table-view .layui-table th {
+    padding: 5px 0;
+    border-top: none;
+    border-left: none
+}
+
+.layui-table-view .layui-table td {
+    cursor: default
+}
+
+.layui-table-view .layui-form-checkbox[lay-skin=primary] i {
+    width: 18px;
+    height: 18px
+}
+
+.layui-table-header {
+    border-width: 0 0 1px;
+    overflow: hidden
+}
+
+.layui-table-sort {
+    width: 20px;
+    height: 20px;
+    margin-left: 5px;
+    cursor: pointer !important
+}
+
+.layui-table-sort .layui-edge {
+    left: 5px;
+    border-width: 5px
+}
+
+.layui-table-sort .layui-table-sort-asc {
+    top: 4px;
+    border-top: none;
+    border-bottom-style: solid;
+    border-bottom-color: #b2b2b2
+}
+
+.layui-table-sort .layui-table-sort-asc:hover {
+    border-bottom-color: #666
+}
+
+.layui-table-sort .layui-table-sort-desc {
+    bottom: 4px;
+    border-bottom: none;
+    border-top-style: solid;
+    border-top-color: #b2b2b2
+}
+
+.layui-table-sort .layui-table-sort-desc:hover {
+    border-top-color: #666
+}
+
+.layui-table-sort[lay-sort=asc] .layui-table-sort-asc {
+    border-bottom-color: #000
+}
+
+.layui-table-sort[lay-sort=desc] .layui-table-sort-desc {
+    border-top-color: #000
+}
+
+.layui-table-cell {
+    height: 28px;
+    line-height: 28px;
+    padding: 0 15px;
+    position: relative;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    white-space: nowrap;
+    box-sizing: border-box
+}
+
+.layui-table-cell .layui-form-checkbox {
+    top: -1px
+}
+
+.layui-table-cell .layui-table-link {
+    color: #01AAED
+}
+
+.laytable-cell-space {
+    width: 15px;
+    padding: 0;
+    text-align: center
+}
+
+.layui-table-body {
+    position: relative;
+    overflow: auto;
+    margin-right: -1px
+}
+
+.layui-table-body .layui-none {
+    line-height: 40px;
+    text-align: center;
+    color: #999
+}
+
+.layui-table-fixed {
+    position: absolute;
+    left: 0;
+    top: 0
+}
+
+.layui-table-fixed .layui-table-body {
+    overflow: hidden
+}
+
+.layui-table-fixed-r {
+    left: auto;
+    right: -1px;
+    border-left: 1px solid #e2e2e2;
+    box-shadow: -1px 0 8px rgba(0, 0, 0, .1)
+}
+
+.layui-table-fixed-r .layui-table-header {
+    position: relative;
+    overflow: visible
+}
+
+.layui-table-mend {
+    position: absolute;
+    right: -49px;
+    top: 0;
+    height: 100%;
+    width: 50px
+}
+
+.layui-table-tool {
+    position: relative;
+    width: 100%;
+    padding: 7px 10px 0 0;
+    border-width: 1px 0 0;
+    height: 41px;
+    font-size: 12px;
+    white-space: nowrap
+}
+
+.layui-table-tool:hover {
+    overflow-x: auto
+}
+
+.layui-table-page {
+    height: 26px
+}
+
+.layui-table-tool .layui-laypage {
+    margin: 0
+}
+
+.layui-table-tool .layui-laypage a, .layui-table-tool .layui-laypage span {
+    height: 26px;
+    line-height: 26px;
+    border: none;
+    background: 0 0;
+    padding: 0 12px
+}
+
+.layui-table-tool .layui-laypage .layui-laypage-count, .layui-table-tool .layui-laypage .layui-laypage-limits, .layui-table-tool .layui-laypage .layui-laypage-skip {
+    margin-left: 0;
+    padding: 0
+}
+
+.layui-table-tool .layui-laypage .layui-laypage-total {
+    padding: 0 10px
+}
+
+.layui-table-tool .layui-laypage .layui-laypage-spr {
+    padding: 0
+}
+
+.layui-table-tool .layui-laypage button, .layui-table-tool .layui-laypage input {
+    height: 26px;
+    line-height: 26px
+}
+
+.layui-table-tool .layui-laypage input {
+    width: 40px
+}
+
+.layui-table-tool .layui-laypage button {
+    padding: 0 10px
+}
+
+.layui-table-view select[lay-ignore] {
+    display: inline-block
+}
+
+.layui-table-tool select {
+    height: 18px
+}
+
+.layui-table-patch .layui-table-cell {
+    padding: 0;
+    width: 30px
+}
+
+.layui-table-edit {
+    position: absolute;
+    left: 0;
+    top: 0;
+    width: 100%;
+    height: 100%;
+    padding: 0 15px 1px;
+    border: none
+}
+
+.layui-table-edit:focus {
+    background-color: #F0F9F2
+}
+
+body .layui-table-tips .layui-layer-content {
+    background: 0 0;
+    padding: 0;
+    box-shadow: 0 1px 6px rgba(0, 0, 0, .1)
+}
+
+.layui-table-tips-main {
+    margin: -44px 0 0 -1px;
+    max-height: 150px;
+    padding: 8px 15px;
+    font-size: 14px;
+    overflow-y: scroll;
+    background-color: #fff;
+    color: #333;
+    border: 1px solid #e2e2e2
+}
+
+.layui-code, .layui-upload-list {
+    margin: 10px 0
+}
+
+.layui-table-tips-c {
+    position: absolute;
+    right: -3px;
+    top: -12px;
+    width: 18px;
+    height: 18px;
+    padding: 3px;
+    text-align: center;
+    font-weight: 700;
+    border-radius: 100%;
+    font-size: 14px;
+    cursor: pointer;
+    background-color: #666
+}
+
+.layui-table-tips-c:hover {
+    background-color: #999
+}
+
+.layui-upload-file {
+    display: none !important;
+    opacity: .01;
+    filter: Alpha(opacity=1)
+}
+
+.layui-upload-drag, .layui-upload-form, .layui-upload-wrap {
+    display: inline-block
+}
+
+.layui-upload-choose {
+    padding: 0 10px;
+    color: #999
+}
+
+.layui-upload-drag {
+    position: relative;
+    padding: 30px;
+    border: 1px dashed #e2e2e2;
+    background-color: #fff;
+    text-align: center;
+    cursor: pointer;
+    color: #999
+}
+
+.layui-upload-drag .layui-icon {
+    font-size: 50px;
+    color: #009688
+}
+
+.layui-upload-drag[lay-over] {
+    border-color: #009688
+}
+
+.layui-upload-iframe {
+    position: absolute;
+    width: 0;
+    height: 0;
+    border: 0;
+    visibility: hidden
+}
+
+.layui-upload-wrap {
+    position: relative;
+    vertical-align: middle
+}
+
+.layui-upload-wrap .layui-upload-file {
+    display: block !important;
+    position: absolute;
+    left: 0;
+    top: 0;
+    z-index: 10;
+    font-size: 100px;
+    width: 100%;
+    height: 100%;
+    opacity: .01;
+    filter: Alpha(opacity=1);
+    cursor: pointer
+}
+
+.layui-code {
+    position: relative;
+    padding: 15px;
+    line-height: 20px;
+    border: 1px solid #ddd;
+    border-left-width: 6px;
+    background-color: #F2F2F2;
+    color: #333;
+    font-family: Courier New;
+    font-size: 12px
+}
+
+.layui-tree {
+    line-height: 26px
+}
+
+.layui-tree li {
+    text-overflow: ellipsis;
+    overflow: hidden;
+    white-space: nowrap
+}
+
+.layui-tree li .layui-tree-spread, .layui-tree li a {
+    display: inline-block;
+    vertical-align: top;
+    height: 26px;
+    *display: inline;
+    *zoom: 1;
+    cursor: pointer
+}
+
+.layui-tree li a {
+    font-size: 0
+}
+
+.layui-tree li a i {
+    font-size: 16px
+}
+
+.layui-tree li a cite {
+    padding: 0 6px;
+    font-size: 14px;
+    font-style: normal
+}
+
+.layui-tree li i {
+    padding-left: 6px;
+    color: #333;
+    -moz-user-select: none
+}
+
+.layui-tree li .layui-tree-check {
+    font-size: 13px
+}
+
+.layui-tree li .layui-tree-check:hover {
+    color: #009E94
+}
+
+.layui-tree li ul {
+    display: none;
+    margin-left: 20px
+}
+
+.layui-tree li .layui-tree-enter {
+    line-height: 24px;
+    border: 1px dotted #000
+}
+
+.layui-tree-drag {
+    display: none;
+    position: absolute;
+    left: -666px;
+    top: -666px;
+    background-color: #f2f2f2;
+    padding: 5px 10px;
+    border: 1px dotted #000;
+    white-space: nowrap
+}
+
+.layui-tree-drag i {
+    padding-right: 5px
+}
+
+.layui-nav {
+    position: relative;
+    padding: 0 20px;
+    background-color: #393D49;
+    color: #fff;
+    border-radius: 2px;
+    font-size: 0;
+    box-sizing: border-box
+}
+
+.layui-nav * {
+    font-size: 14px
+}
+
+.layui-nav .layui-nav-item {
+    position: relative;
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+    vertical-align: middle;
+    line-height: 60px
+}
+
+.layui-nav .layui-nav-item a {
+    display: block;
+    padding: 0 20px;
+    color: #fff;
+    color: rgba(255, 255, 255, .7);
+    transition: all .3s;
+    -webkit-transition: all .3s
+}
+
+.layui-nav .layui-this:after, .layui-nav-bar, .layui-nav-tree .layui-nav-itemed:after {
+    position: absolute;
+    left: 0;
+    top: 0;
+    width: 0;
+    height: 5px;
+    background-color: #5FB878;
+    transition: all .2s;
+    -webkit-transition: all .2s
+}
+
+.layui-nav-bar {
+    z-index: 1000
+}
+
+.layui-nav .layui-nav-item a:hover, .layui-nav .layui-this a {
+    color: #fff
+}
+
+.layui-nav .layui-this:after {
+    content: '';
+    top: auto;
+    bottom: 0;
+    width: 100%
+}
+
+.layui-nav-img {
+    width: 30px;
+    height: 30px;
+    margin-right: 10px;
+    border-radius: 50%
+}
+
+.layui-nav .layui-nav-more {
+    content: '';
+    width: 0;
+    height: 0;
+    border-style: solid dashed dashed;
+    border-color: #fff transparent transparent;
+    overflow: hidden;
+    cursor: pointer;
+    transition: all .2s;
+    -webkit-transition: all .2s;
+    position: absolute;
+    top: 28px;
+    right: 3px;
+    border-width: 6px;
+    border-top-color: rgba(255, 255, 255, .7)
+}
+
+.layui-nav .layui-nav-mored, .layui-nav-itemed .layui-nav-more {
+    top: 22px;
+    border-style: dashed dashed solid;
+    border-color: transparent transparent #fff
+}
+
+.layui-nav-child {
+    display: none;
+    position: absolute;
+    left: 0;
+    top: 65px;
+    min-width: 100%;
+    line-height: 36px;
+    padding: 5px 0;
+    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
+    border: 1px solid #d2d2d2;
+    background-color: #fff;
+    z-index: 100;
+    border-radius: 2px;
+    white-space: nowrap
+}
+
+.layui-nav .layui-nav-child a {
+    color: #333
+}
+
+.layui-nav .layui-nav-child a:hover {
+    background-color: #f2f2f2;
+    color: #000
+}
+
+.layui-nav-child dd {
+    position: relative
+}
+
+.layui-nav .layui-nav-child dd.layui-this a, .layui-nav-child dd.layui-this {
+    background-color: #5FB878;
+    color: #fff
+}
+
+.layui-nav-child dd.layui-this:after {
+    display: none
+}
+
+.layui-nav-tree {
+    width: 200px;
+    padding: 0
+}
+
+.layui-nav-tree .layui-nav-item {
+    display: block;
+    width: 100%;
+    line-height: 45px
+}
+
+.layui-nav-tree .layui-nav-item a {
+    height: 45px;
+    text-overflow: ellipsis;
+    overflow: hidden;
+    white-space: nowrap
+}
+
+.layui-nav-tree .layui-nav-item a:hover {
+    background-color: #4E5465
+}
+
+.layui-nav-tree .layui-nav-bar {
+    width: 5px;
+    height: 0;
+    background-color: #009688
+}
+
+.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this > a, .layui-nav-tree .layui-this > a:hover {
+    background-color: #009688;
+    color: #fff
+}
+
+.layui-nav-tree .layui-this:after {
+    display: none
+}
+
+.layui-nav-itemed > a, .layui-nav-tree .layui-nav-title a, .layui-nav-tree .layui-nav-title a:hover {
+    color: #fff !important
+}
+
+.layui-nav-tree .layui-nav-child {
+    position: relative;
+    z-index: 0;
+    top: 0;
+    border: none;
+    box-shadow: none
+}
+
+.layui-nav-tree .layui-nav-child a {
+    height: 40px;
+    line-height: 40px;
+    color: #fff;
+    color: rgba(255, 255, 255, .7)
+}
+
+.layui-nav-tree .layui-nav-child, .layui-nav-tree .layui-nav-child a:hover {
+    background: 0 0;
+    color: #fff
+}
+
+.layui-nav-tree .layui-nav-more {
+    top: 20px;
+    right: 10px
+}
+
+.layui-nav-itemed .layui-nav-more {
+    top: 14px
+}
+
+.layui-nav-itemed .layui-nav-child {
+    display: block;
+    padding: 0;
+    background-color: rgba(0, 0, 0, .3) !important
+}
+
+.layui-nav-side {
+    position: fixed;
+    top: 0;
+    bottom: 0;
+    left: 0;
+    overflow-x: hidden;
+    z-index: 999
+}
+
+.layui-bg-blue .layui-nav-bar, .layui-bg-blue .layui-nav-itemed:after, .layui-bg-blue .layui-this:after {
+    background-color: #93D1FF
+}
+
+.layui-bg-blue .layui-nav-child dd.layui-this {
+    background-color: #1E9FFF
+}
+
+.layui-bg-blue .layui-nav-itemed > a, .layui-nav-tree.layui-bg-blue .layui-nav-title a, .layui-nav-tree.layui-bg-blue .layui-nav-title a:hover {
+    background-color: #007DDB !important
+}
+
+.layui-breadcrumb {
+    visibility: hidden;
+    font-size: 0
+}
+
+.layui-breadcrumb a {
+    padding-right: 8px;
+    line-height: 22px;
+    font-size: 14px;
+    color: #333 !important
+}
+
+.layui-breadcrumb a:hover {
+    color: #01AAED !important
+}
+
+.layui-breadcrumb a cite, .layui-breadcrumb a span {
+    color: #666;
+    cursor: text;
+    font-style: normal
+}
+
+.layui-breadcrumb a span {
+    padding-left: 8px;
+    font-family: Sim sun
+}
+
+.layui-tab {
+    margin: 10px 0;
+    text-align: left !important
+}
+
+.layui-tab[overflow] > .layui-tab-title {
+    overflow: hidden
+}
+
+.layui-tab-title {
+    position: relative;
+    left: 0;
+    height: 40px;
+    white-space: nowrap;
+    font-size: 0;
+    border-bottom: 1px solid #e2e2e2;
+    transition: all .2s;
+    -webkit-transition: all .2s
+}
+
+.layui-tab-title li {
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+    vertical-align: middle;
+    font-size: 14px;
+    transition: all .2s;
+    -webkit-transition: all .2s;
+    position: relative;
+    line-height: 40px;
+    min-width: 65px;
+    padding: 0 15px;
+    text-align: center;
+    cursor: pointer
+}
+
+.layui-tab-title li a {
+    display: block
+}
+
+.layui-tab-title .layui-this {
+    color: #000
+}
+
+.layui-tab-title .layui-this:after {
+    position: absolute;
+    left: 0;
+    top: 0;
+    content: '';
+    width: 100%;
+    height: 41px;
+    border: 1px solid #e2e2e2;
+    border-bottom-color: #fff;
+    border-radius: 2px 2px 0 0;
+    box-sizing: border-box;
+    pointer-events: none
+}
+
+.layui-tab-bar {
+    position: absolute;
+    right: 0;
+    top: 0;
+    z-index: 10;
+    width: 30px;
+    height: 39px;
+    line-height: 39px;
+    border: 1px solid #e2e2e2;
+    border-radius: 2px;
+    text-align: center;
+    background-color: #fff;
+    cursor: pointer
+}
+
+.layui-tab-bar .layui-icon {
+    position: relative;
+    display: inline-block;
+    top: 3px;
+    transition: all .3s;
+    -webkit-transition: all .3s
+}
+
+.layui-tab-item {
+    display: none
+}
+
+.layui-tab-more {
+    padding-right: 30px;
+    height: auto !important;
+    white-space: normal !important
+}
+
+.layui-tab-more li.layui-this:after {
+    border-bottom-color: #e2e2e2;
+    border-radius: 2px
+}
+
+.layui-tab-more .layui-tab-bar .layui-icon {
+    top: -2px;
+    top: 3px \9;
+    -webkit-transform: rotate(180deg);
+    transform: rotate(180deg)
+}
+
+:root .layui-tab-more .layui-tab-bar .layui-icon {
+    top: -2px \0/ IE9
+}
+
+.layui-tab-content {
+    padding: 10px
+}
+
+.layui-tab-title li .layui-tab-close {
+    position: relative;
+    display: inline-block;
+    width: 18px;
+    height: 18px;
+    line-height: 20px;
+    margin-left: 8px;
+    top: 1px;
+    text-align: center;
+    font-size: 14px;
+    color: #c2c2c2;
+    transition: all .2s;
+    -webkit-transition: all .2s
+}
+
+.layui-tab-title li .layui-tab-close:hover {
+    border-radius: 2px;
+    background-color: #FF5722;
+    color: #fff
+}
+
+.layui-tab-brief > .layui-tab-title .layui-this {
+    color: #009688
+}
+
+.layui-tab-brief > .layui-tab-more li.layui-this:after, .layui-tab-brief > .layui-tab-title .layui-this:after {
+    border: none;
+    border-radius: 0;
+    border-bottom: 2px solid #5FB878
+}
+
+.layui-tab-brief[overflow] > .layui-tab-title .layui-this:after {
+    top: -1px
+}
+
+.layui-tab-card {
+    border: 1px solid #e2e2e2;
+    border-radius: 2px;
+    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1)
+}
+
+.layui-tab-card > .layui-tab-title {
+    background-color: #f2f2f2
+}
+
+.layui-tab-card > .layui-tab-title li {
+    margin-right: -1px;
+    margin-left: -1px
+}
+
+.layui-tab-card > .layui-tab-title .layui-this {
+    background-color: #fff
+}
+
+.layui-tab-card > .layui-tab-title .layui-this:after {
+    border-top: none;
+    border-width: 1px;
+    border-bottom-color: #fff
+}
+
+.layui-tab-card > .layui-tab-title .layui-tab-bar {
+    height: 40px;
+    line-height: 40px;
+    border-radius: 0;
+    border-top: none;
+    border-right: none
+}
+
+.layui-tab-card > .layui-tab-more .layui-this {
+    background: 0 0;
+    color: #5FB878
+}
+
+.layui-tab-card > .layui-tab-more .layui-this:after {
+    border: none
+}
+
+.layui-timeline {
+    padding-left: 5px
+}
+
+.layui-timeline-item {
+    position: relative;
+    padding-bottom: 20px
+}
+
+.layui-timeline-axis {
+    position: absolute;
+    left: -5px;
+    top: 0;
+    z-index: 10;
+    width: 20px;
+    height: 20px;
+    line-height: 20px;
+    background-color: #fff;
+    color: #5FB878;
+    border-radius: 50%;
+    text-align: center;
+    cursor: pointer
+}
+
+.layui-timeline-axis:hover {
+    color: #FF5722
+}
+
+.layui-timeline-item:before {
+    content: '';
+    position: absolute;
+    left: 5px;
+    top: 0;
+    z-index: 0;
+    width: 1px;
+    height: 100%;
+    background-color: #e2e2e2
+}
+
+.layui-timeline-item:last-child:before {
+    display: none
+}
+
+.layui-timeline-item:first-child:before {
+    display: block
+}
+
+.layui-timeline-content {
+    padding-left: 25px
+}
+
+.layui-badge, .layui-badge-rim {
+    line-height: 18px;
+    padding: 0 5px
+}
+
+.layui-timeline-title {
+    position: relative;
+    margin-bottom: 10px
+}
+
+.layui-badge, .layui-badge-dot, .layui-badge-rim {
+    position: relative;
+    display: inline-block;
+    font-size: 12px;
+    background-color: #FF5722;
+    color: #fff
+}
+
+.layui-badge {
+    min-width: 8px;
+    height: 18px;
+    text-align: center;
+    border-radius: 9px
+}
+
+.layui-badge-dot {
+    width: 8px;
+    height: 8px;
+    border-radius: 50%
+}
+
+.layui-badge-rim {
+    height: 18px;
+    border: 1px solid #e2e2e2;
+    border-radius: 3px;
+    background-color: #fff;
+    color: #666
+}
+
+.layui-btn .layui-badge, .layui-btn .layui-badge-dot {
+    margin-left: 5px
+}
+
+.layui-nav .layui-badge, .layui-nav .layui-badge-dot {
+    position: absolute;
+    top: 50%;
+    margin: -10px 6px 0
+}
+
+.layui-tab-title .layui-badge, .layui-tab-title .layui-badge-dot {
+    left: 5px;
+    top: -2px
+}
+
+.layui-carousel {
+    position: relative;
+    left: 0;
+    top: 0;
+    background-color: #f2f2f2
+}
+
+.layui-carousel > [carousel-item] {
+    position: relative;
+    width: 100%;
+    height: 100%;
+    overflow: hidden
+}
+
+.layui-carousel > [carousel-item]:before {
+    position: absolute;
+    content: '\e63d';
+    left: 50%;
+    top: 50%;
+    width: 100px;
+    line-height: 20px;
+    margin: -10px 0 0 -50px;
+    text-align: center;
+    color: #999;
+    font-family: layui-icon !important;
+    font-size: 20px;
+    font-style: normal;
+    -webkit-font-smoothing: antialiased;
+    -moz-osx-font-smoothing: grayscale
+}
+
+.layui-carousel > [carousel-item] > * {
+    display: none;
+    position: absolute;
+    left: 0;
+    top: 0;
+    width: 100%;
+    height: 100%;
+    background-color: #f2f2f2;
+    transition-duration: .3s;
+    -webkit-transition-duration: .3s
+}
+
+.layui-carousel-updown > * {
+    -webkit-transition: .3s ease-in-out up;
+    transition: .3s ease-in-out up
+}
+
+.layui-carousel-arrow {
+    display: none \9;
+    opacity: 0;
+    position: absolute;
+    left: 10px;
+    top: 50%;
+    margin-top: -18px;
+    width: 36px;
+    height: 36px;
+    line-height: 36px;
+    text-align: center;
+    font-size: 20px;
+    border: 0;
+    border-radius: 50%;
+    background-color: rgba(0, 0, 0, .2);
+    color: #fff;
+    -webkit-transition-duration: .3s;
+    transition-duration: .3s;
+    cursor: pointer
+}
+
+.layui-carousel-arrow[lay-type=add] {
+    left: auto !important;
+    right: 10px
+}
+
+.layui-carousel:hover .layui-carousel-arrow[lay-type=add], .layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add] {
+    right: 20px
+}
+
+.layui-carousel[lay-arrow=always] .layui-carousel-arrow {
+    opacity: 1;
+    left: 20px
+}
+
+.layui-carousel[lay-arrow=none] .layui-carousel-arrow {
+    display: none
+}
+
+.layui-carousel-arrow:hover, .layui-carousel-ind ul:hover {
+    background-color: rgba(0, 0, 0, .35)
+}
+
+.layui-carousel:hover .layui-carousel-arrow {
+    display: block \9;
+    opacity: 1;
+    left: 20px
+}
+
+.layui-carousel-ind {
+    position: relative;
+    top: -35px;
+    width: 100%;
+    line-height: 0 !important;
+    text-align: center;
+    font-size: 0
+}
+
+.layui-carousel[lay-indicator=outside] {
+    margin-bottom: 30px
+}
+
+.layui-carousel[lay-indicator=outside] .layui-carousel-ind {
+    top: 10px
+}
+
+.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul {
+    background-color: rgba(0, 0, 0, .5)
+}
+
+.layui-carousel[lay-indicator=none] .layui-carousel-ind {
+    display: none
+}
+
+.layui-carousel-ind ul {
+    display: inline-block;
+    padding: 5px;
+    background-color: rgba(0, 0, 0, .2);
+    border-radius: 10px;
+    -webkit-transition-duration: .3s;
+    transition-duration: .3s
+}
+
+.layui-carousel-ind li {
+    display: inline-block;
+    width: 10px;
+    height: 10px;
+    margin: 0 3px;
+    font-size: 14px;
+    background-color: #e2e2e2;
+    background-color: rgba(255, 255, 255, .5);
+    border-radius: 50%;
+    cursor: pointer;
+    -webkit-transition-duration: .3s;
+    transition-duration: .3s
+}
+
+.layui-carousel-ind li:hover {
+    background-color: rgba(255, 255, 255, .7)
+}
+
+.layui-carousel-ind li.layui-this {
+    background-color: #fff
+}
+
+.layui-carousel > [carousel-item] > .layui-carousel-next, .layui-carousel > [carousel-item] > .layui-carousel-prev, .layui-carousel > [carousel-item] > .layui-this {
+    display: block
+}
+
+.layui-carousel > [carousel-item] > .layui-this {
+    left: 0
+}
+
+.layui-carousel > [carousel-item] > .layui-carousel-prev {
+    left: -100%
+}
+
+.layui-carousel > [carousel-item] > .layui-carousel-next {
+    left: 100%
+}
+
+.layui-carousel > [carousel-item] > .layui-carousel-next.layui-carousel-left, .layui-carousel > [carousel-item] > .layui-carousel-prev.layui-carousel-right {
+    left: 0
+}
+
+.layui-carousel > [carousel-item] > .layui-this.layui-carousel-left {
+    left: -100%
+}
+
+.layui-carousel > [carousel-item] > .layui-this.layui-carousel-right {
+    left: 100%
+}
+
+.layui-carousel[lay-anim=updown] .layui-carousel-arrow {
+    left: 50% !important;
+    top: 20px;
+    margin: 0 0 0 -18px
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > *, .layui-carousel[lay-anim=fade] > [carousel-item] > * {
+    left: 0 !important
+}
+
+.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add] {
+    top: auto !important;
+    bottom: 20px
+}
+
+.layui-carousel[lay-anim=updown] .layui-carousel-ind {
+    position: absolute;
+    top: 50%;
+    right: 20px;
+    width: auto;
+    height: auto
+}
+
+.layui-carousel[lay-anim=updown] .layui-carousel-ind ul {
+    padding: 3px 5px
+}
+
+.layui-carousel[lay-anim=updown] .layui-carousel-ind li {
+    display: block;
+    margin: 6px 0
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-this {
+    top: 0
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-prev {
+    top: -100%
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-next {
+    top: 100%
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-next.layui-carousel-left, .layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-prev.layui-carousel-right {
+    top: 0
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-this.layui-carousel-left {
+    top: -100%
+}
+
+.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-this.layui-carousel-right {
+    top: 100%
+}
+
+.layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-next, .layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-prev {
+    opacity: 0
+}
+
+.layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-next.layui-carousel-left, .layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-prev.layui-carousel-right {
+    opacity: 1
+}
+
+.layui-carousel[lay-anim=fade] > [carousel-item] > .layui-this.layui-carousel-left, .layui-carousel[lay-anim=fade] > [carousel-item] > .layui-this.layui-carousel-right {
+    opacity: 0
+}
+
+.layui-fixbar {
+    position: fixed;
+    right: 15px;
+    bottom: 15px;
+    z-index: 9999
+}
+
+.layui-fixbar li {
+    width: 50px;
+    height: 50px;
+    line-height: 50px;
+    margin-bottom: 1px;
+    text-align: center;
+    cursor: pointer;
+    font-size: 30px;
+    background-color: #9F9F9F;
+    color: #fff;
+    border-radius: 2px;
+    opacity: .95
+}
+
+.layui-fixbar li:hover {
+    opacity: .85
+}
+
+.layui-fixbar li:active {
+    opacity: 1
+}
+
+.layui-fixbar .layui-fixbar-top {
+    display: none;
+    font-size: 40px
+}
+
+body .layui-util-face {
+    border: none;
+    background: 0 0
+}
+
+body .layui-util-face .layui-layer-content {
+    padding: 0;
+    background-color: #fff;
+    color: #666;
+    box-shadow: none
+}
+
+.layui-util-face .layui-layer-TipsG {
+    display: none
+}
+
+.layui-util-face ul {
+    position: relative;
+    width: 372px;
+    padding: 10px;
+    border: 1px solid #D9D9D9;
+    background-color: #fff;
+    box-shadow: 0 0 20px rgba(0, 0, 0, .2)
+}
+
+.layui-util-face ul li {
+    cursor: pointer;
+    float: left;
+    border: 1px solid #e8e8e8;
+    height: 22px;
+    width: 26px;
+    overflow: hidden;
+    margin: -1px 0 0 -1px;
+    padding: 4px 2px;
+    text-align: center
+}
+
+.layui-util-face ul li:hover {
+    position: relative;
+    z-index: 2;
+    border: 1px solid #eb7350;
+    background: #fff9ec
+}
+
+.layui-anim {
+    -webkit-animation-duration: .3s;
+    animation-duration: .3s;
+    -webkit-animation-fill-mode: both;
+    animation-fill-mode: both
+}
+
+.layui-anim.layui-icon {
+    display: inline-block
+}
+
+.layui-anim-loop {
+    -webkit-animation-iteration-count: infinite;
+    animation-iteration-count: infinite
+}
+
+@-webkit-keyframes layui-rotate {
+    from {
+        -webkit-transform: rotate(0)
+    }
+    to {
+        -webkit-transform: rotate(360deg)
+    }
+}
+
+@keyframes layui-rotate {
+    from {
+        transform: rotate(0)
+    }
+    to {
+        transform: rotate(360deg)
+    }
+}
+
+.layui-anim-rotate {
+    -webkit-animation-name: layui-rotate;
+    animation-name: layui-rotate;
+    -webkit-animation-duration: 1s;
+    animation-duration: 1s;
+    -webkit-animation-timing-function: linear;
+    animation-timing-function: linear
+}
+
+@-webkit-keyframes layui-up {
+    from {
+        -webkit-transform: translate3d(0, 100%, 0);
+        opacity: .3
+    }
+    to {
+        -webkit-transform: translate3d(0, 0, 0);
+        opacity: 1
+    }
+}
+
+@keyframes layui-up {
+    from {
+        transform: translate3d(0, 100%, 0);
+        opacity: .3
+    }
+    to {
+        transform: translate3d(0, 0, 0);
+        opacity: 1
+    }
+}
+
+.layui-anim-up {
+    -webkit-animation-name: layui-up;
+    animation-name: layui-up
+}
+
+@-webkit-keyframes layui-upbit {
+    from {
+        -webkit-transform: translate3d(0, 30px, 0);
+        opacity: .3
+    }
+    to {
+        -webkit-transform: translate3d(0, 0, 0);
+        opacity: 1
+    }
+}
+
+@keyframes layui-upbit {
+    from {
+        transform: translate3d(0, 30px, 0);
+        opacity: .3
+    }
+    to {
+        transform: translate3d(0, 0, 0);
+        opacity: 1
+    }
+}
+
+.layui-anim-upbit {
+    -webkit-animation-name: layui-upbit;
+    animation-name: layui-upbit
+}
+
+@-webkit-keyframes layui-scale {
+    0% {
+        opacity: .3;
+        -webkit-transform: scale(.5)
+    }
+    100% {
+        opacity: 1;
+        -webkit-transform: scale(1)
+    }
+}
+
+@keyframes layui-scale {
+    0% {
+        opacity: .3;
+        -ms-transform: scale(.5);
+        transform: scale(.5)
+    }
+    100% {
+        opacity: 1;
+        -ms-transform: scale(1);
+        transform: scale(1)
+    }
+}
+
+.layui-anim-scale {
+    -webkit-animation-name: layui-scale;
+    animation-name: layui-scale
+}
+
+@-webkit-keyframes layui-scale-spring {
+    0% {
+        opacity: .5;
+        -webkit-transform: scale(.5)
+    }
+    80% {
+        opacity: .8;
+        -webkit-transform: scale(1.1)
+    }
+    100% {
+        opacity: 1;
+        -webkit-transform: scale(1)
+    }
+}
+
+@keyframes layui-scale-spring {
+    0% {
+        opacity: .5;
+        transform: scale(.5)
+    }
+    80% {
+        opacity: .8;
+        transform: scale(1.1)
+    }
+    100% {
+        opacity: 1;
+        transform: scale(1)
+    }
+}
+
+.layui-anim-scaleSpring {
+    -webkit-animation-name: layui-scale-spring;
+    animation-name: layui-scale-spring
+}
+
+@-webkit-keyframes layui-fadein {
+    0% {
+        opacity: 0
+    }
+    100% {
+        opacity: 1
+    }
+}
+
+@keyframes layui-fadein {
+    0% {
+        opacity: 0
+    }
+    100% {
+        opacity: 1
+    }
+}
+
+.layui-anim-fadein {
+    -webkit-animation-name: layui-fadein;
+    animation-name: layui-fadein
+}
+
+@-webkit-keyframes layui-fadeout {
+    0% {
+        opacity: 1
+    }
+    100% {
+        opacity: 0
+    }
+}
+
+@keyframes layui-fadeout {
+    0% {
+        opacity: 1
+    }
+    100% {
+        opacity: 0
+    }
+}
+
+.layui-anim-fadeout {
+    -webkit-animation-name: layui-fadeout;
+    animation-name: layui-fadeout
+}

+ 1 - 1
public/static/customer/js/whisper-tool.js

@@ -4,7 +4,7 @@ var whisper = function(){
     var baseConfig = {
         id: 0
         ,whisper_domain: ''
-        ,title: 'whisper客服'
+        ,title: '客服'
         ,name: ''
         ,group: 0
         ,avatar: ''

BIN
public/uploads/20190710/1eb365abe937b3fb5b8b942f39280fd3.jpg


BIN
public/uploads/20190710/a3e8d4459b52936b0fd485d1c9bc34a9.jpg


BIN
public/uploads/20190710/ec3cbab461a84c1f6405d0c64fee66b5.jpg


+ 16 - 4
vendor/GatewayWorker_windows/Applications/whisper/Events.php

@@ -109,7 +109,7 @@ class Events
             });
 
             // 检查对话时效给出.
-            Timer::add(20, function () {
+            Timer::add(10, function () {
                 self::systemMonitoring();
             });
 
@@ -201,8 +201,8 @@ class Events
             //Gateway::sendToCurrentClient('{"type":"pong"}');
             return;
         } else {
-            echo "onMessage: " . $message . "\r\n";
-            print_r([self::$global->kfList, self::$global->userList, self::$global->uidSimpleList, self::$global->userToKf]);
+            //echo "onMessage: " . $message . "\r\n";
+            //print_r([self::$global->kfList, self::$global->userList, self::$global->uidSimpleList, self::$global->userToKf]);
         }
 
         $message = json_decode($message, true);
@@ -1687,7 +1687,11 @@ class Events
     private static function systemMonitoring()
     {
         // 查询未结束工单.
-        $serviceLog = self::$db->query("select * from `ws_service_log` join `ws_alarm` on ws_service_log.servicelog_id=ws_alarm.servicelog_id WHERE `status`='1' OR `status`='3'");
+        $serviceLog = self::$db->query("select ws_service_log.servicelog_id,ws_users.user_name as server_name,ws_service_log.user_name,kf_id,start_time,end_time,ws_service_log.group_id,evaluate_id,intime,ws_service_log.status,alarm_userSensitive,alarm_serverSensitive,alarm_corresponding
+          from `ws_service_log` 
+          join `ws_alarm` on ws_service_log.servicelog_id=ws_alarm.servicelog_id
+          join `ws_users` on ws_service_log.kf_id=ws_users.id 
+          WHERE ws_service_log.status='1' OR ws_service_log.status='3'");
         // 查询系统设置表.
         $systemconfig = self::$db->query("SELECT `systemconfig_data` FROM `ws_systemconfig` WHERE `systemconfig_enName`='verifyReturnTime' or `systemconfig_enName`='verifyAllTime'");
         $found_key = array_search('verifyReturnTime', array_column($systemconfig, 'systemconfig_enName'));
@@ -1707,24 +1711,32 @@ class Events
         $csdNumber = 0; // 响应超时次数.
         $csdTime = []; // 响应超时时间.
         foreach ($serviceLog  as $k => $v) {
+            // 工单报警总次数.
+            $allCount = 0;
             // 差评次数.
             if ($v['evaluate_id'] == 3) {
                 $evaluateCount++;
+                $allCount++;
             }
             $duration = time() - $v['start_time'];
             // 会话超时.
             if ($duration > $verifyAllTime) {
                 $overtimeNumber++;
+                $allCount++;
                 $overtimeTime[] = $duration;
             }
             // 敏感词报警.
             $userSensitive += $v['alarm_userSensitive'];
+            $allCount += $v['alarm_userSensitive'];
             $serverSensitive += $v['alarm_serverSensitive'];
+            $allCount += $v['alarm_serverSensitive'];
             // 响应超时.
             if ($v['alarm_corresponding'] > $verifyReturnTime) {
                 $csdTime[] = $v['alarm_corresponding'];
                 $csdNumber++;
+                $allCount++;
             }
+            $serviceLog[$k]['allCount'] = $allCount;
         }
         // 查询对话时效设置.
         $adminList = self::$global->adminList ?? [];