Explorar el Código

“项目初始化”

lsh hace 3 meses
commit
710dd92165
Se han modificado 53 ficheros con 25918 adiciones y 0 borrados
  1. 23 0
      .gitignore
  2. 661 0
      LICENSE
  3. 24 0
      README.md
  4. 5 0
      babel.config.js
  5. 19 0
      jsconfig.json
  6. 22066 0
      package-lock.json
  7. 53 0
      package.json
  8. BIN
      public/favicon.ico
  9. 28 0
      public/index.html
  10. 18 0
      public/ipConfig.js
  11. 54 0
      src/App.vue
  12. 70 0
      src/api/index.js
  13. BIN
      src/assets/font/Avenir-Medium-6.otf
  14. BIN
      src/assets/font/Avenir-Medium-6.ttf
  15. BIN
      src/assets/font/H-Avenir-2.ttf
  16. BIN
      src/assets/font/pingfangsc-medium.ttf
  17. BIN
      src/assets/font/pingfangsc-regular.ttf
  18. BIN
      src/assets/font/pingfangsc-semibold.ttf
  19. BIN
      src/assets/images/avatar.png
  20. BIN
      src/assets/images/closeEye.png
  21. BIN
      src/assets/images/date.png
  22. BIN
      src/assets/images/drugBack.png
  23. BIN
      src/assets/images/drugHead.png
  24. BIN
      src/assets/images/hospital.png
  25. BIN
      src/assets/images/index.png
  26. BIN
      src/assets/images/man.png
  27. BIN
      src/assets/images/open.png
  28. BIN
      src/assets/images/openEye.png
  29. BIN
      src/assets/images/quan.png
  30. BIN
      src/assets/images/quan2.png
  31. BIN
      src/assets/images/relative.png
  32. BIN
      src/assets/images/syIcon.png
  33. BIN
      src/assets/images/woman.png
  34. 32 0
      src/assets/style/font.scss
  35. 97 0
      src/assets/style/reset.scss
  36. 23 0
      src/main.js
  37. 53 0
      src/mixins/eye.js
  38. 72 0
      src/mixins/format.js
  39. 186 0
      src/router/index.js
  40. 32 0
      src/utils/aes.js
  41. 48 0
      src/utils/auth.js
  42. 83 0
      src/utils/request.js
  43. 33 0
      src/utils/sm2.js
  44. 113 0
      src/views/addError.vue
  45. 246 0
      src/views/addRelative.vue
  46. 99 0
      src/views/addSuccess.vue
  47. 168 0
      src/views/applyNotice.vue
  48. 391 0
      src/views/consultationRecord.vue
  49. 279 0
      src/views/drugTrace.vue
  50. 47 0
      src/views/index.vue
  51. 705 0
      src/views/prescriptionDetails.vue
  52. 185 0
      src/views/relativeInfo.vue
  53. 5 0
      vue.config.js

+ 23 - 0
.gitignore

@@ -0,0 +1,23 @@
+.DS_Store
+node_modules
+/dist
+
+
+# local env files
+.env.local
+.env.*.local
+
+# Log files
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?

+ 661 - 0
LICENSE

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

+ 24 - 0
README.md

@@ -0,0 +1,24 @@
+# sui-shen-ban
+
+## Project setup
+```
+npm install
+```
+
+### Compiles and hot-reloads for development
+```
+npm run serve
+```
+
+### Compiles and minifies for production
+```
+npm run build
+```
+
+### Lints and fixes files
+```
+npm run lint
+```
+
+### Customize configuration
+See [Configuration Reference](https://cli.vuejs.org/config/).

+ 5 - 0
babel.config.js

@@ -0,0 +1,5 @@
+module.exports = {
+  presets: [
+    '@vue/cli-plugin-babel/preset'
+  ]
+}

+ 19 - 0
jsconfig.json

@@ -0,0 +1,19 @@
+{
+  "compilerOptions": {
+    "target": "es5",
+    "module": "esnext",
+    "baseUrl": "./",
+    "moduleResolution": "node",
+    "paths": {
+      "@/*": [
+        "src/*"
+      ]
+    },
+    "lib": [
+      "esnext",
+      "dom",
+      "dom.iterable",
+      "scripthost"
+    ]
+  }
+}

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 22066 - 0
package-lock.json


+ 53 - 0
package.json

@@ -0,0 +1,53 @@
+{
+  "name": "sui-shen-ban",
+  "version": "0.1.0",
+  "private": true,
+  "scripts": {
+    "serve": "vue-cli-service serve",
+    "build": "vue-cli-service build",
+    "lint": "vue-cli-service lint"
+  },
+  "browser": {
+    "util": false
+  },
+  "dependencies": {
+    "axios": "^0.27.2",
+    "core-js": "^3.8.3",
+    "js-cookie": "^3.0.1",
+    "sm-crypto": "^0.3.8",
+    "vant": "^2.12.48",
+    "vue": "^2.6.14",
+    "vue-wechat-title": "^2.0.7"
+  },
+  "devDependencies": {
+    "@babel/core": "^7.12.16",
+    "@babel/eslint-parser": "^7.12.16",
+    "@vue/cli-plugin-babel": "~5.0.0",
+    "@vue/cli-service": "~5.0.0",
+    "crypto-js": "^4.1.1",
+    "eslint-plugin-vue": "^8.0.3",
+    "node-sass": "^7.0.1",
+    "sass-loader": "^13.0.0",
+    "vue-router": "^3.1.3",
+    "vue-template-compiler": "^2.6.14"
+  },
+  "eslintConfig": {
+    "root": true,
+    "env": {
+      "node": true
+    },
+    "extends": [
+      "plugin:vue/essential",
+      "eslint:recommended"
+    ],
+    "parserOptions": {
+      "parser": "@babel/eslint-parser"
+    },
+    "rules": {}
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions",
+    "not dead"
+  ]
+}

BIN
public/favicon.ico


+ 28 - 0
public/index.html

@@ -0,0 +1,28 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-15 17:41:58
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 12:54:28
+ * @FilePath: \zyypt-ssb-vue_app\public\index.html
+-->
+<!DOCTYPE html>
+<html lang="">
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <script src="./ipConfig.js"></script>
+    <!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
+    <title></title>
+  </head>
+  <body>
+    <noscript>
+      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
+    </noscript>
+    <div id="app"></div>
+    <!-- built files will be auto injected -->
+  </body>
+</html>

+ 18 - 0
public/ipConfig.js

@@ -0,0 +1,18 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-03-07 11:37:41
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-08-02 15:35:36
+ * @FilePath: \zyypt-ssb-vue_app\public\ipConfig.js
+ */
+// if(process.env.NODE_ENV === 'production'){
+//     process.env.VUE_APP_BASE_API = "http://172.203.199.134:8080"
+// }
+const ipConfig = {
+    baseURL: "https://zyaxd.wsjkw.sh.gov.cn/apiserver/",
+    userURL: "https://zyaxd.wsjkw.sh.gov.cn/getapp/",
+    logURL: "https://key.cnrailwaycloud.com:18182/log/logserver/",
+    // appCode:'qbJok20DgtRe0bcpen'
+}

+ 54 - 0
src/App.vue

@@ -0,0 +1,54 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-15 17:41:58
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 21:30:47
+ * @FilePath: \zyypt-ssb-vue_app\src\App.vue
+-->
+<template>
+  <div id="app">
+    <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
+    <keep-alive>
+      <router-view
+        v-if="$route.meta.keepAlive"
+        v-wechat-title="$route.meta.title"
+        class="Router"
+      ></router-view>
+    </keep-alive>
+    <router-view
+      v-if="!$route.meta.keepAlive"
+      v-wechat-title="$route.meta.title"
+      class="Router"
+    ></router-view>
+  </div>
+</template>
+
+<script>
+import { removeAllCookie } from "@/utils/auth";
+export default {
+  name: "App",
+  created() {
+    removeAllCookie();
+  },
+};
+</script>
+
+<style>
+#app {
+  height: 100%;
+  font-family: "PingFang SC-Semibold", "PingFang SC-Regular";
+  /* font-family: Avenir, Helvetica, Arial, sans-serif; */
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+  text-align: center;
+  /* color: #2c3e50; */
+  color: #000;
+  /* margin-top: 60px; */
+}
+.Router {
+  height: 100%;
+  /* background: #f6f6f6; */
+}
+</style>

+ 70 - 0
src/api/index.js

@@ -0,0 +1,70 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-21 09:51:15
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-08-02 15:36:11
+ * @FilePath: \zyypt-ssb-vue_app\src\api\index.js
+ */
+import request from '@/utils/request'
+
+
+// 日志锚点
+export function setParamLog(data) {
+    return request({
+        url: ipConfig.logURL+'setParamLog',
+        method: 'post',
+        data
+    })
+}
+// app端获取用户信息
+export function getAppUser(data) {
+    return request({
+        url: ipConfig.userURL + 'getAppUser',
+        method: 'post',
+        data
+    })
+}
+
+// app端获取信息
+export function getAppService(data) {
+    return request({
+        url: 'getAppService',
+        method: 'post',
+        data
+    })
+}
+
+// 获取亲属列表
+export function getRelatives(data) {
+    return request({
+        url: 'getRelatives',
+        method: 'post',
+        data
+    })
+}
+// 证件查询
+export function getDocument(data) {
+    return request({
+        url: 'getDocument',
+        method: 'post',
+        data
+    })
+}
+// 添加亲属信息
+export function AddRelatives(data) {
+    return request({
+        url: 'AddRelatives',
+        method: 'post',
+        data
+    })
+}
+// 亲属解除绑定
+export function UnbindRelatives(data) {
+    return request({
+        url: 'UnbindRelatives',
+        method: 'post',
+        data
+    })
+}

BIN
src/assets/font/Avenir-Medium-6.otf


BIN
src/assets/font/Avenir-Medium-6.ttf


BIN
src/assets/font/H-Avenir-2.ttf


BIN
src/assets/font/pingfangsc-medium.ttf


BIN
src/assets/font/pingfangsc-regular.ttf


BIN
src/assets/font/pingfangsc-semibold.ttf


BIN
src/assets/images/avatar.png


BIN
src/assets/images/closeEye.png


BIN
src/assets/images/date.png


BIN
src/assets/images/drugBack.png


BIN
src/assets/images/drugHead.png


BIN
src/assets/images/hospital.png


BIN
src/assets/images/index.png


BIN
src/assets/images/man.png


BIN
src/assets/images/open.png


BIN
src/assets/images/openEye.png


BIN
src/assets/images/quan.png


BIN
src/assets/images/quan2.png


BIN
src/assets/images/relative.png


BIN
src/assets/images/syIcon.png


BIN
src/assets/images/woman.png


+ 32 - 0
src/assets/style/font.scss

@@ -0,0 +1,32 @@
+@charset "UTF-8";
+// 定义字体
+@font-face {
+    font-family: "PingFang SC-Semibold";
+    src: url('@/assets/font/pingfangsc-semibold.ttf');   // 注意这里的路径
+    font-weight: normal;
+    font-style: normal;
+}
+@font-face {
+    font-family: "PingFang SC-Regular";
+    src: url('~@/assets/font/pingfangsc-regular.ttf');   // 注意这里的路径
+    font-weight: normal;
+    font-style: normal;
+}
+@font-face {
+    font-family: "PingFang SC-Medium";
+    src: url('~@/assets/font/pingfangsc-medium.ttf');   // 注意这里的路径
+    font-weight: normal;
+    font-style: normal;
+}
+@font-face {
+    font-family: "Avenir";
+    src: url('~@/assets/font/H-Avenir-2.ttf');   // 注意这里的路径
+    font-weight: normal;
+    font-style: normal;
+}
+@font-face {
+    font-family: "Avenir-Medium";
+    src: url('~@/assets/font/Avenir-Medium-6.otf');   // 注意这里的路径
+    font-weight: normal;
+    font-style: normal;
+}

+ 97 - 0
src/assets/style/reset.scss

@@ -0,0 +1,97 @@
+@import "./font.scss";
+ html, body, div, span, applet, object, iframe,
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+ a, abbr, acronym, address, big, cite, code,
+ del, dfn, em, img, ins, kbd, q, s, samp,
+ small, strike, strong, sub, sup, tt, var,
+ b, u, i, center,
+ dl, dt, dd, ol, ul, li,
+ fieldset, form, label, legend,
+ table, caption, tbody, tfoot, thead, tr, th, td,
+ article, aside, canvas, details, embed,
+ figure, figcaption, footer, header,
+ menu, nav, output, ruby, section, summary,
+ time, mark, audio, video, input {
+     margin: 0;
+     padding: 0;
+     border: 0;
+     font-size: 100%;
+     font-weight: normal;
+     vertical-align: baseline;
+    //  font-family: 'PingFang SC-Semibold';
+ }
+ 
+ /* HTML5 display-role reset for older browsers */
+ article, aside, details, figcaption, figure,
+ footer, header, menu, nav, section {
+     display: block;
+ }
+ 
+ body {
+     line-height: 1;
+     height: 100%;
+ }
+ 
+ blockquote, q {
+     quotes: none;
+ }
+ 
+ blockquote:before, blockquote:after,
+ q:before, q:after {
+     content: none;
+ }
+ 
+ table {
+     border-collapse: collapse;
+     border-spacing: 0;
+ }
+ button{
+     outline: none;
+ }
+ 
+ /* custom */
+ a {
+     color: #7e8c8d;
+     text-decoration: none;
+     -webkit-backface-visibility: hidden;
+ }
+ 
+ li {
+     list-style: none;
+ }
+ 
+ ::-webkit-scrollbar {
+     width: 5px;
+     height: 5px;
+ }
+ 
+ ::-webkit-scrollbar-track-piece {
+     background-color: rgba(0, 0, 0, 0.2);
+     -webkit-border-radius: 6px;
+ }
+ 
+ ::-webkit-scrollbar-thumb:vertical {
+     height: 5px;
+     background-color: rgba(125, 125, 125, 0.7);
+     -webkit-border-radius: 6px;
+ }
+ 
+ ::-webkit-scrollbar-thumb:horizontal {
+     width: 5px;
+     background-color: rgba(125, 125, 125, 0.7);
+     -webkit-border-radius: 6px;
+ }
+ 
+ html, body {
+     width: 100%;
+ }
+ 
+ body {
+     -webkit-text-size-adjust: none;
+     -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+ }
+ html{
+     height: 100%;
+     width: 100%;
+    //  background: #f3f3f3;
+ }

+ 23 - 0
src/main.js

@@ -0,0 +1,23 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-15 17:41:58
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 12:55:38
+ * @FilePath: \zyypt-ssb-vue_app\src\main.js
+ */
+import Vue from 'vue'
+import App from './App.vue'
+import router from './router'
+import "vant/lib/index.css"
+import "../src/assets/style/reset.scss"
+import VueWechatTitle from 'vue-wechat-title'
+Vue.use(VueWechatTitle)
+Vue.config.productionTip = true
+
+
+new Vue({
+  router,
+  render: h => h(App),
+}).$mount('#app')

+ 53 - 0
src/mixins/eye.js

@@ -0,0 +1,53 @@
+/*
+* @Description: file content
+* @Version: 2.0
+* @Author: ljl
+* @Date: 2022-06-22 17:25:55
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 21:35:09
+ * @FilePath: \zyypt-ssb-vue_app\src\mixins\eye.js
+*/
+import { getCookies, setCookies } from "@/utils/auth";
+//控制名称显隐
+function eye() {
+    return {
+        data() {
+            return {
+                eyeLock: true,
+                info: {
+                    idcard: "",
+                    name: ''
+                },
+
+            }
+        },
+        methods: {
+            eye(handleStyle) {
+                if (handleStyle == 'refresh') {
+                    let eyeLock = getCookies('eyeLock')
+                    if (eyeLock) {
+                        this.eyeLock = JSON.parse(eyeLock)
+                    } else {
+                        this.eyeLock = true
+                    }
+                } else {
+                    setCookies('eyeLock', this.eyeLock)
+                }
+                if (this.eyeLock) {
+                    this.info.name = new Array(this.info.name.length).join('*') + this.info.name.substr(-1)
+                    this.info.idcard = new Array(this.info.idcard.length-3).join('*') + this.info.idcard.substr(-4)
+                    this.eyeLock = !this.eyeLock;
+                } else {
+                    if (getCookies('relativeInfo')) {
+                        this.info = JSON.parse(getCookies('relativeInfo'))
+                    } else {
+                        this.info = JSON.parse(getCookies('myInfo'))
+                    }
+                    this.eyeLock = !this.eyeLock;
+                }
+            },
+        },
+    }
+}
+
+export { eye }

+ 72 - 0
src/mixins/format.js

@@ -0,0 +1,72 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-21 14:06:00
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-01 17:52:13
+ * @FilePath: \sui-shen-ban_app\src\mixins\format.js
+ */
+// export function getDate(date) {
+//     let y = date.substring(0, 4)
+//     let m = date.substring(4, 6)
+//     let d = date.substring(6, 8)
+//     return y + '-' + m + '-' + d
+// }
+// export function getTime(time) {
+//     let h = time.substring(0, 2)
+//     let m = time.substring(2, 4)
+//     let s = time.substring(4, 6)
+//     return h + ':' + m + ':' + s
+// }
+// export function getDateTime(datetime) {
+//     let date = getDate(datetime.split('/')[0])
+//     let time = getTime(datetime.split('/')[1])
+//     return date + ' ' + time
+// }
+
+function getDate() {
+    return {
+        methods: {
+            getDate(date) {
+                let y = date.substring(0, 4)
+                let m = date.substring(4, 6)
+                let d = date.substring(6, 8)
+                return y + '-' + m + '-' + d
+            },
+        },
+    }
+}
+function getTime() {
+    return {
+        methods: {
+            getTime(time) {
+                let h = time.substring(0, 2)
+                let m = time.substring(2, 4)
+                let s = time.substring(4, 6)
+                return h + ':' + m + ':' + s
+            }
+        },
+    }
+}
+function getDateTime() {
+    return {
+        methods: {
+            getDateTime(datetime) {
+                // let date = datetime.split('/')[0]
+                let date = datetime.substring(0, 8)
+                let yyyy = date.substring(0, 4)
+                let MM = date.substring(4, 6)
+                let dd = date.substring(6, 8)
+                // let time = datetime.split('/')[1]
+                let time = datetime.substring(8, 14)
+                let HH = time.substring(0, 2)
+                let mm = time.substring(2, 4)
+                let ss = time.substring(4, 6)
+                return yyyy + '-' + MM + '-' + dd + ' ' + HH + ':' + mm + ':' + ss
+            }
+        },
+    }
+}
+
+export { getDate, getTime, getDateTime }

+ 186 - 0
src/router/index.js

@@ -0,0 +1,186 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-15 17:53:10
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-12-12 15:26:36
+ * @FilePath: \zyypt-ssb-vue_app\src\router\index.js
+ */
+import Vue from 'vue'
+import Router from 'vue-router'
+
+Vue.use(Router)
+
+/* Layout */
+// import Layout from '@/layout'
+
+export const constantRoutes = [
+
+    // {
+    //     path: '/',
+    //     name: 'Home',
+    //     meta: {
+    //         title: '中药安心达'
+    //     },
+    //     component: () =>
+    //         import('@/views/index'),
+    // },
+    {
+        path: '/',
+        name: 'ConsultationRecord',
+        meta: {
+            title: '中药安心达'
+        },
+        component: () =>
+            import('@/views/consultationRecord'),
+    },
+    {
+        path: '/relativeInfo',
+        name: 'RelativeInfo',
+        meta: {
+            title: '亲属信息'
+        },
+        component: () =>
+            import('@/views/relativeInfo'),
+    },
+    {
+        path: '/applyNotice',
+        name: 'ApplyNotice',
+        meta: {
+            title: '添加须知'
+        },
+        component: () =>
+            import('@/views/applyNotice'),
+    },
+    {
+        path: '/addRelative',
+        name: 'AddRelative',
+        meta: {
+            title: '亲属信息添加',
+            keepAlive: true //配置路由元信息
+        },
+        component: () =>
+            import('@/views/addRelative'),
+    },
+    {
+        path: '/addSuccess',
+        name: 'AddSuccess',
+        meta: {
+            title: '添加成功'
+        },
+        component: () =>
+            import('@/views/addSuccess'),
+    },
+    {
+        path: '/addError',
+        name: 'AddError',
+        meta: {
+            title: '添加失败'
+        },
+        component: () =>
+            import('@/views/addError'),
+    },
+    {
+        path: '/prescriptionDetails',
+        name: 'PrescriptionDetails',
+        meta: {
+            title: '处方明细'
+        },
+        component: () =>
+            import('@/views/prescriptionDetails'),
+    },
+    {
+        path: '/drugTrace',
+        name: 'DrugTrace',
+        meta:{
+            title:'药品溯源'
+        },
+        component: () =>
+            import('@/views/drugTrace'),
+    },
+    // {
+    //     path: '/404',
+    //     name: '404',
+    //     component: () =>
+    //         import('@/views/404'),
+    // },
+
+]
+
+
+const createRouter = () => new Router({
+    // mode: 'history', // require service support
+    // base: '/dist',
+    scrollBehavior: () => ({
+        y: 0
+    }),
+    routes: constantRoutes
+})
+
+// const originalPush = Router.prototype.push
+// Router.prototype.push = function push(location) {
+//   return originalPush.call(this, location).catch(err => err)
+// }
+
+const router = createRouter()
+
+router.afterEach(route => {
+    // 从路由的元信息中获取 title 属性
+    if (route.meta.title) {
+        document.title = route.meta.title;
+        // 如果是 iOS 设备,则使用如下 hack 的写法实现页面标题的更新
+        if (navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)) {
+            const hackIframe = document.createElement('iframe');
+            hackIframe.style.display = 'none';
+            hackIframe.src = '/static/html/fixIosTitle.html?r=' + Math.random();
+            document.body.appendChild(hackIframe);
+            setTimeout(_ => {
+                document.body.removeChild(hackIframe)
+            }, 300)
+        }
+    }
+});
+
+router.onError((error) => {
+    const pattern = /Loading chunk (\d)+ failed/g;
+    const isChunkLoadFailed = error.message.match(pattern);
+    if (isChunkLoadFailed) {
+        window.location.reload();
+        // router.replace(router.history.pending.fullPath);
+    } else {
+        console.log("错误信息")
+        // console.log(error)
+    }
+});
+
+// 需要左方向动画的路由用this.$router.to('****')
+Router.prototype.togo = function (path) {
+    // this.isleft = true
+    // this.isright = false
+    this.push(path)
+}
+// 需要右方向动画的路由用this.$router.goRight('****')
+Router.prototype.goRight = function (path) {
+    // this.isright = true
+    // this.isleft = false
+    this.push(path)
+}
+// 需要返回按钮动画的路由用this.$router.goBack(),返回上一个路由
+Router.prototype.goBack = function () {
+    // this.isright = true
+    // this.isleft = false
+    this.go(-1)
+}
+// 点击浏览器返回按钮执行,此时不需要路由回退
+Router.prototype.togoback = function () {
+    // this.isright = true
+    // this.isleft = false
+}
+
+export function resetRouter() {
+    const newRouter = createRouter()
+    router.matcher = newRouter.matcher // reset router
+}
+
+export default router

+ 32 - 0
src/utils/aes.js

@@ -0,0 +1,32 @@
+
+import CryptoJS from 'crypto-js';
+ 
+export default {
+    //随机生成指定数量的16进制key
+    generatekey(num) {
+        let library = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
+        let key = "4bf8f5011950df5f";
+        for (var i = 0; i < num; i++) {
+            let randomPoz = Math.floor(Math.random() * library.length);
+            key += library.substring(randomPoz, randomPoz + 1);
+        }
+        return key;
+    },
+    
+    //加密
+    encrypt(word, keyStr) {
+        keyStr = keyStr ? keyStr : '4bf8f5011950df5f'; //判断是否存在ksy,不存在就用定义好的key
+        var key = CryptoJS.enc.Utf8.parse(keyStr);
+        var srcs = CryptoJS.enc.Utf8.parse(word);
+        var encrypted = CryptoJS.AES.encrypt(srcs, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });
+        return encrypted.toString();
+    },
+    //解密
+    decrypt(word, keyStr) {
+        keyStr = keyStr ? keyStr : '4bf8f5011950df5f';
+        var key = CryptoJS.enc.Utf8.parse(keyStr);
+        var decrypt = CryptoJS.AES.decrypt(word, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });
+        return CryptoJS.enc.Utf8.stringify(decrypt).toString();
+    }
+ 
+}

+ 48 - 0
src/utils/auth.js

@@ -0,0 +1,48 @@
+import Cookies from 'js-cookie'
+import AES from "@/utils/aes"
+
+export function getCookies(name) {
+  if (Cookies.get(name)) {
+    return AES.decrypt(Cookies.get(name))
+  }
+}
+
+export function getToken() {
+  // let userId = JSON.parse(localStorage.getItem('myInfo')).userId
+  // let userId = localStorage.getItem('myInfo').userId
+  let myInfo = getCookies('myInfo')
+  if (myInfo) {
+    return JSON.parse(myInfo).userId
+  } else {
+    return null
+  }
+}
+
+export function setCookies(name, cookies) {
+  return Cookies.set(name, AES.encrypt(cookies))
+}
+
+export function removeCookies(name) {
+  return Cookies.remove(name)
+}
+
+export function removeAllCookie() {
+  var date = new Date();
+  date.setTime(date.getTime() - 10000);
+  var keys = document.cookie.match(/[^ =;]+(?=\=)/g);
+  if (keys) {
+    for (var i = keys.length; i--;)
+      Cookies.remove(keys[i])
+  }
+}
+
+const getters = (name) => {
+  return Cookies.get(name)
+}
+
+export default function (Vue) {
+  //添加全局API
+  Vue.prototype.$auth = {
+    getters
+  }
+}

+ 83 - 0
src/utils/request.js

@@ -0,0 +1,83 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-21 09:48:00
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 10:07:41
+ * @FilePath: \zyypt-ssb-vue_app\src\utils\request.js
+ */
+import axios from 'axios';
+import Vue from "vue";
+import { Toast } from "vant";
+Vue.use(Toast)
+import {
+	getToken,
+} from '@/utils/auth'
+import SM2 from "@/utils/sm2";
+const service = axios.create({
+	baseURL: ipConfig.baseURL,
+	timeout: 5000
+});
+
+service.interceptors.request.use(
+	config => {
+		//用户userId 加密项
+		if (getToken()) {
+			config.headers['token'] = SM2.encrypt(getToken())
+		}
+		// console.log(config.data)
+		config.headers['Content-Type'] = 'application/json'
+		config.data = { sign: SM2.encrypt(JSON.stringify(config.data)) };
+		// console.log(config.data)
+		return config;
+	},
+	error => {
+		Promise.reject(error);
+	}
+);
+
+// response interceptor
+service.interceptors.response.use(
+	/**
+	 * If you want to get http information such as headers or status
+	 * Please return  response => response
+	 */
+
+	/**
+	 * Determine the request status by custom code
+	 * Here is just an example
+	 * You can also judge the status by HTTP Status Code
+	 */
+	response => {
+		let res = response.data
+		// console.log(res)
+		// if the custom code is not 20000, it is judged as an error.
+		if (res.code == 0) {
+			if (res.result && res.result.data) {
+				if (SM2.decrypt(res.result.data)) {
+					res.data = JSON.parse(SM2.decrypt(res.result.data))
+				}
+			}
+			return res
+		} else if (res.code == 203) {
+			window.location.href = ipConfig.userURL + "getAppUrl"
+		}
+		// else if (res.code == 205) {
+		// 	Toast('两人非亲属关系,不可添加')
+		// }
+		else {
+			if (res.error.msg) {
+				Toast(res.error.msg)
+				return res.error
+			}
+			// return Promise.reject(new Error(res.message || 'Error'))
+		}
+	},
+	error => {
+		console.log('err' + error) // for debug
+		return Promise.reject(error)
+	}
+)
+
+export default service;

+ 33 - 0
src/utils/sm2.js

@@ -0,0 +1,33 @@
+/*
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-07-07 13:34:28
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-07 14:33:12
+ * @FilePath: \sui-shen-ban_alipay\src\utils\sm2.js
+ */
+
+const sm2 = require('sm-crypto').sm2
+const cipherMode = 0 // 1 - C1C3C2,0 - C1C2C3,默认为1
+var publicKeyServer =
+    "049FFE1205FDDDC59C52320F3DFE49805B2236865E74E96412C152E19591B7831D41FBDC094190F608B805BDE9E90EEFE5755327B8CA9D0EE961B1540F85A723F8";
+var privateKeyWeb = "008AD3D59BC6F6D8742EB27894A23FEF91296433BF9FCFF178713E37F60C526838";
+export default {
+    encrypt(params) {
+        if (typeof (params) == 'undefined') {
+            params = null;
+        } else {
+            let encryptData = sm2.doEncrypt(params, publicKeyServer, cipherMode);
+            return encryptData;
+        }
+    },
+    decrypt(params) {
+        if (typeof (params) == 'undefined') {
+            params = null;
+        } else {
+            let decryptData = sm2.doDecrypt(params, privateKeyWeb, cipherMode);
+            return decryptData;
+        }
+    }
+}

+ 113 - 0
src/views/addError.vue

@@ -0,0 +1,113 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 13:10:40
+ * @FilePath: \zyypt-ssb-vue_app\src\views\addError.vue
+-->
+<template>
+  <div>
+    <div id="main">
+      <div class="change2">
+        <div class="close"></div>
+      </div>
+      <div class="title">添加失败</div>
+      <div class="text">信息填写错误,请返回上一步重新填写</div>
+    </div>
+    <footer>
+      <van-button block type="info" @click="$router.go(-1)">返 回</van-button>
+    </footer>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Button } from "vant";
+Vue.use(Button);
+export default {
+  name: "AddError",
+  data() {
+    return {};
+  },
+  mounted() {},
+  methods: {
+    back() {
+      this.$router.go(-1);
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+#main {
+  height: calc(100%-120px);
+  padding-top: 120px;
+  .change2 {
+    width: 70px;
+    height: 70px;
+    border-radius: 50%;
+    background: #8b614d;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    margin: 0 auto;
+    .close {
+      position: relative;
+      height: 40px;
+    }
+
+    .close::before,
+    .close::after {
+      position: absolute;
+      content: " ";
+      background-color: #fff;
+      height: 40px;
+      left: -2px;
+      width: 4px;
+    }
+
+    .close::before {
+      transform: rotate(45deg);
+    }
+
+    .close::after {
+      transform: rotate(-45deg);
+    }
+    // .gou {
+    //   width: 28px;
+    //   height: 12px;
+    //   border-top: 4px solid #fff;
+    //   border-right: 4px solid #fff;
+    //   -webkit-transform: translateY(-20%) rotate(135deg);
+    // }
+  }
+  .title {
+    margin-top: 20px;
+    font-family: "PingFang SC-Medium";
+    font-size: 22px;
+    color: #8b614d;
+  }
+  .text {
+    font-family: "PingFang SC-Regular";
+    color: #999999;
+    margin-top: 20px;
+    font-size: 14px;
+  }
+}
+footer {
+  button {
+    width: calc(100% - 30px);
+    height: 50px;
+    background: linear-gradient(270deg, #b9916a 0%, #e4c995 100%);
+    border-radius: 4px;
+    border: none;
+    color: #fff;
+    font-family: "PingFang SC-Regular";
+    font-size: 18px;
+    position: absolute;
+    bottom: 10px;
+    left: 50%;
+    transform: translateX(-50%);
+  }
+}
+</style>

+ 246 - 0
src/views/addRelative.vue

@@ -0,0 +1,246 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-08-02 15:50:00
+ * @FilePath: \zyypt-ssb-vue_app\src\views\addRelative.vue
+-->
+<template>
+  <div>
+    <div id="main">
+      <div class="title">亲属信息</div>
+      <div class="text">
+        该申请入口仅支持被申请人为未满18周岁的未成年人,60周岁以上的老年人(含60周岁)。
+      </div>
+      <van-form validate-first class="form" @submit="onSubmit" ref="form">
+        <!-- 通过 pattern 进行正则校验 -->
+        <van-field
+          maxlength="10"
+          v-model="form.QSXM"
+          label="亲属"
+          name="QSXM"
+          placeholder="请输入亲属姓名"
+          :rules="[{ pattern: QSXMPattern, message: '请输入2~10位中文汉字' }]"
+        />
+        <van-field
+          readonly
+          clickable
+          name="ZJLX"
+          :value="cardtypeText"
+          label="证件类型"
+          placeholder="请选择证件类型"
+          @click="showPicker = true"
+        />
+        <van-popup v-model="showPicker" position="bottom">
+          <van-picker
+            show-toolbar
+            :columns="columns"
+            value-key="LXMC"
+            @confirm="onConfirm"
+            @cancel="showPicker = false"
+          />
+        </van-popup>
+        <van-field
+          maxlength="18"
+          v-model="form.QSZJHM"
+          type="text"
+          label="证件号"
+          name="QSZJHM"
+          placeholder="请输入亲属证件号"
+          :rules="[
+            { validator: cardValidator, message: '请输入正确亲属证件号' },
+          ]"
+        />
+        <!-- <van-field
+          maxlength="11"
+          v-model="form.telNum"
+          type="tel"
+          label="手机号"
+          name="telNum"
+          placeholder="请输入亲属手机号"
+          :rules="[{ pattern: telNumPattern, message: '请输入正确手机号' }]"
+        /> -->
+        <div class="bg">
+          <van-button
+            block
+            :loading="loading"
+            loading-type="spinner"
+            type="info"
+            native-type="submit"
+            :disabled="isChange == 0"
+            >下一步</van-button
+          >
+        </div>
+      </van-form>
+    </div>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Field, Form, Picker, Popup, Button } from "vant";
+Vue.use(Field).use(Form).use(Picker).use(Popup).use(Button);
+import { setParamLog, getDocument, AddRelatives } from "@/api/index";
+export default {
+  name: "AddRelative",
+  data() {
+    return {
+      isChange: 0,
+      columns: [],
+      cardtypeText: "",
+      showPicker: false,
+      telNumPattern:
+        /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/,
+      QSXMPattern: /^[\u4e00-\u9fa5]{2,10}$/,
+      form: {
+        QSXM: "",
+        QSZJHM: "",
+        // telNum: "",
+        ZJLX: "",
+      },
+      queryInfo: {},
+      loading: false,
+    };
+  },
+  watch: {
+    form: {
+      deep: true,
+      handler(newVal, oldVal) {
+        if (newVal.QSXM && newVal.QSZJHM && newVal.ZJLX) {
+          this.isChange = 1;
+        } else {
+          this.isChange = 0;
+        }
+      },
+    },
+  },
+  created() {
+    this.queryInfo = this.$route.query;
+    setParamLog({ type: "app", service: "getDocument" });
+    getDocument({ type: "app" }).then((res) => {
+      this.columns = res.data.MXXQ;
+    });
+  },
+  beforeRouteEnter(to, from, next) {
+    //路由导航钩子,通过页面路由标记是否需要清空页面数据重新加载
+    to.meta["fromPath"] = from.path;
+    if (from.path == "/addError") {
+      to.meta["needFresh"] = false;
+    } else {
+      to.meta["needFresh"] = true;
+    }
+    next();
+  },
+  activated() {
+    //此方法在页面缓存时会被调用,根据路由元信息决定是否重新加载数据。不加载则是上次填写完的数据
+    if (this.$route.meta["needFresh"]) {
+      this.init();
+    }
+  },
+  methods: {
+    init() {
+      this.$refs.form.resetValidation();
+      this.form = {
+        QSXM: "",
+        QSZJHM: "",
+        ZJLX: "",
+      };
+      this.cardtypeText = "";
+    },
+    onConfirm(value) {
+      this.cardtypeText = value.LXMC;
+      this.form.ZJLX = value.id;
+      this.showPicker = false;
+    },
+    cardValidator(val) {
+      // 18位身份证号
+      let reg1 =
+        /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
+      // 15位身份证号
+      let reg2 =
+        /^([1-6][1-9]|50)\d{4}\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}$/;
+      if (!reg1.test(val) && !reg2.test(val)) {
+        return false;
+      } else {
+        return true;
+      }
+    },
+    onSubmit(values) {
+      this.loading = true;
+      let submitForm = { type: "app", ...this.form, ...this.queryInfo };
+      setParamLog({ type: "app", service: "AddRelatives" });
+      AddRelatives(submitForm).then((res) => {
+        this.loading = false;
+        if (res.code == 0) {
+          this.$router.push({
+            name: "AddSuccess",
+          });
+        } else if (res.code == 205) {
+          this.$router.push({
+            name: "AddError",
+          });
+        }
+      });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+::v-deep #main {
+  padding: 10px 15px;
+  font-family: "PingFang SC-Medium";
+  text-align: left;
+  // background: #fff;
+  .title {
+    font-size: 18px;
+    margin: 20px 0;
+  }
+  .text {
+    font-size: 14px;
+    font-family: "PingFang SC-Regular";
+    color: #999999;
+    line-height: 24px;
+  }
+  .form {
+    margin-top: 20px;
+    box-shadow: 0px 0px 10px 1px rgba(184, 160, 115, 0.3);
+    font-family: "PingFang SC-Regular";
+    margin-bottom: 60px;
+  }
+  .van-field__label span {
+    color: #000;
+    font-size: 16px;
+  }
+  .van-cell__value {
+    color: #c4c4c4;
+  }
+}
+.bg {
+  position: fixed;
+  bottom: 0px;
+  width: 100%;
+  left: 50%;
+  transform: translateX(-50%);
+  background: #fff;
+  padding-top: 10px;
+}
+button {
+  width: calc(100% - 30px);
+  height: 50px;
+  background: linear-gradient(270deg, #b9916a 0%, #e4c995 100%);
+  border-radius: 4px;
+  border: none;
+  color: #fff;
+  font-family: "PingFang SC-Regular";
+  font-size: 18px;
+  margin: 0 auto;
+  margin-bottom: 10px;
+}
+.wrapper {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  height: 100%;
+}
+</style>

+ 99 - 0
src/views/addSuccess.vue

@@ -0,0 +1,99 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-15 13:09:57
+ * @FilePath: \zyypt-ssb-vue_app\src\views\addSuccess.vue
+-->
+<template>
+  <div>
+    <div id="main">
+      <div class="change2">
+        <div class="gou"></div>
+      </div>
+      <div class="text">添加成功</div>
+      <div class="goHome" @click="$router.go(-3)">
+        <img src="../assets/images/index.png" alt="" />
+        <div class="iconText">中药安心达</div>
+      </div>
+    </div>
+    <footer>
+      <van-button block type="info" @click="back()">确 定</van-button>
+    </footer>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Button } from "vant";
+Vue.use(Button);
+export default {
+  name: "AddSuccess",
+  data() {
+    return {};
+  },
+  mounted() {},
+  methods: {
+    back() {
+      this.$router.go(-2);
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+#main {
+  height: calc(100%-120px);
+  padding-top: 120px;
+  .change2 {
+    width: 70px;
+    height: 70px;
+    border-radius: 50%;
+    background: #cbb486;
+    border: 1px solid #bcbec0;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    margin: 0 auto;
+    .gou {
+      width: 28px;
+      height: 12px;
+      border-top: 4px solid #fff;
+      border-right: 4px solid #fff;
+      -webkit-transform: translateY(-20%) rotate(135deg);
+    }
+  }
+  .text {
+    margin-top: 20px;
+    font-family: "PingFang SC-Medium";
+    font-size: 22px;
+  }
+  .goHome {
+    margin-top: 100px;
+    img {
+      width: 70px;
+    }
+    .iconText {
+      font-family: "PingFang SC-Regular";
+      font-size: 18px;
+      margin-top: 10px;
+    }
+  }
+}
+footer {
+  button {
+    width: calc(100% - 30px);
+    height: 50px;
+    background: linear-gradient(270deg, #b9916a 0%, #e4c995 100%);
+    border-radius: 4px;
+    border: none;
+    color: #fff;
+    font-family: "PingFang SC-Regular";
+    font-size: 18px;
+    position: absolute;
+    bottom: 10px;
+    left: 50%;
+    transform: translateX(-50%);
+  }
+}
+</style>

+ 168 - 0
src/views/applyNotice.vue

@@ -0,0 +1,168 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-01 15:27:03
+ * @FilePath: \sui-shen-ban_app\src\views\applyNotice.vue
+-->
+<template>
+  <div>
+    <header>
+      <div class="top">
+        <div class="back" @click="back()"></div>
+        <span>{{$route.meta.title}}</span>
+      </div>
+    </header>
+    <div id="main">
+      <div class="title">亲属信息</div>
+      <div class="textTitle">添加须知</div>
+      <div class="text">
+        这里是申请须知文案,由于依申请公开政府信息涉及到一定的流程,并需要一定的时间办理,因此建议你在正式提交政府
+        信息公开申请之前,先通过本网站的"搜索"功能进行查找。
+        国家卫生健康委员会依申请公开系统使用须知本系统只受理公民、法人和其他组织根据自身生产、生活、科研等特殊需要向国家卫生健康委员会申请
+        获取除主动公开以外的政府信息公开申请。
+      </div>
+      <div class="handle" @click="change()">
+        <div class="change1" v-if="isChange == 0"></div>
+        <div class="change2" v-else>
+          <div class="gou"></div>
+        </div>
+        <div>我已阅读并遵守以上规定</div>
+      </div>
+    </div>
+    <footer>
+      <van-button
+        block
+        type="info"
+        :disabled="isChange == 0"
+        @click="toAddRelative()"
+        >下一步</van-button
+      >
+    </footer>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Button } from "vant";
+Vue.use(Button);
+export default {
+  name: "ApplyNotice",
+  data() {
+    return {
+      isChange: 0,
+      queryInfo:{}
+    };
+  },
+  created() {
+    this.queryInfo = this.$route.query;
+  },
+  methods: {
+    back() {
+      this.$router.go(-1);
+    },
+
+    // 勾选
+    change() {
+      this.isChange = this.isChange == 0 ? 1 : 0;
+    },
+
+    toAddRelative(){
+      this.$router.push({ name: "AddRelative", query: this.queryInfo });
+    }
+  },
+};
+</script>
+<style lang="scss" scoped>
+header {
+  width: 100%;
+}
+.top {
+  background-color: #cbb486;
+  height: 50px;
+  line-height: 50px;
+  width: 100%;
+  text-align: center;
+  color: #fff;
+  font-size: 1.125rem;
+  position: relative;
+}
+.back {
+  position: absolute;
+  top: 50%;
+  left: 1.25rem;
+  width: 0.75rem;
+  height: 0.75rem;
+  border-top: 0.25rem solid #fff;
+  border-right: 0.25rem solid #fff;
+  -webkit-transform: translateY(-50%) rotate(-135deg);
+}
+#main {
+  padding: 10px 15px;
+  font-family: "PingFang SC-Medium";
+  text-align: left;
+  .title {
+    font-size: 18px;
+    margin: 20px 0;
+  }
+  .textTitle {
+    margin: 10px 0;
+  }
+  .text {
+    font-size: 14px;
+    font-family: "PingFang SC-Regular";
+    color: #999999;
+    line-height: 24px;
+  }
+  .handle {
+    display: flex;
+    align-items: center;
+    height: 40px;
+    color: #666666;
+    font-family: "PingFang SC-Regular";
+    font-size: 16px;
+  }
+  .change1 {
+    width: 15px;
+    height: 15px;
+    margin-right: 5px;
+    border-radius: 50%;
+    border: 1px solid #bcbec0;
+  }
+  .change2 {
+    width: 15px;
+    height: 15px;
+    margin-right: 5px;
+    border-radius: 50%;
+    background: #cbb486;
+    border: 1px solid #bcbec0;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    .gou {
+      width: 9px;
+      height: 4px;
+      border-top: 1px solid #fff;
+      border-right: 1px solid #fff;
+      -webkit-transform: translateY(-10%) rotate(135deg);
+    }
+  }
+}
+footer {
+  button {
+    width: calc(100% - 30px);
+    height: 50px;
+    background: linear-gradient(270deg, #b9916a 0%, #e4c995 100%);
+    border-radius: 4px;
+    border: none;
+    color: #fff;
+    font-family: "PingFang SC-Regular";
+    font-size: 18px;
+    position: absolute;
+    bottom: 10px;
+    left: 50%;
+    transform: translateX(-50%);
+  }
+}
+</style>

+ 391 - 0
src/views/consultationRecord.vue

@@ -0,0 +1,391 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-12-12 17:07:19
+ * @FilePath: \zyypt-ssb-vue_app\src\views\consultationRecord.vue
+-->
+<template>
+  <div>
+    <header>
+      <div class="center">
+        <div class="avatarImg">
+          <img
+            src="../assets/images/man.png"
+            alt=""
+            v-if="recordInfo.HZXB && recordInfo.HZXB == 1"
+          />
+          <img
+            src="../assets/images/woman.png"
+            alt=""
+            v-else-if="recordInfo.HZXB && recordInfo.HZXB == 2"
+          />
+          <img src="../assets/images/avatar.png" alt="" v-else />
+        </div>
+        <div class="avatarInfo">
+          <div class="name">
+            <span>{{ info.name }}</span>
+            <span @click="eye()" v-if="eyeLock"
+              ><img src="../assets/images/openEye.png" alt=""
+            /></span>
+            <span @click="eye()" v-else
+              ><img src="../assets/images/closeEye.png" alt=""
+            /></span>
+          </div>
+          <div class="info">
+            <span style="margin-left: 12px">{{
+              recordInfo.HZXB != 1 && recordInfo.HZXB != 2
+                ? "-"
+                : recordInfo.HZXB == 1
+                ? "男"
+                : "女"
+            }}</span>
+            <span style="margin: 0 12px">|</span>
+            <span style="font-family: 'PingFang SC-Regular'"
+              >近三个月就诊记录</span
+            >
+          </div>
+          <div class="relativeinfo" @click="toRelative()" v-if="isRelative">
+            <img src="../assets/images/relative.png" alt="" />
+            <span>亲属信息</span>
+          </div>
+        </div>
+      </div>
+      <div class="bottom">
+        <div class="bottomInfo">
+          <div class="info">
+            <p>证件号码</p>
+            <p>{{ info.idcard }}</p>
+          </div>
+          <div class="info">
+            <p>最近就诊</p>
+            <p v-if="recordInfo.JLS == 0">--</p>
+            <p v-else>{{ getDate(recordInfo.MXXQ[0].KFRQ) }}</p>
+          </div>
+        </div>
+      </div>
+    </header>
+    <div id="main">
+      <div v-if="recordInfo.JLS == 0" class="nodata">暂无数据</div>
+      <div v-else>
+        <div
+          class="record"
+          @click="toDetails(item)"
+          v-for="(item, index) in recordInfo.MXXQ"
+          :key="index"
+        >
+          <div class="code">
+            <p>处方状态:</p>
+            <p v-if="item.CLZT == 0">待处理(已收费)</p>
+            <p v-else-if="item.CLZT == 1">已审方</p>
+            <p v-else-if="item.CLZT == 2">代煎机构已确认</p>
+            <p v-else-if="item.CLZT == 5">已配方</p>
+            <p v-else-if="item.CLZT == 6">已浸泡</p>
+            <p v-else-if="item.CLZT == 7">已煎煮</p>
+            <p v-else-if="item.CLZT == 8">已包装</p>
+            <p v-else-if="item.CLZT == 9">已快递</p>
+            <p v-else-if="item.CLZT == 10">已发车</p>
+            <p v-else-if="item.CLZT == 11">已签收</p>
+            <p v-else-if="item.CLZT == 12">代煎企业退回</p>
+            <p v-else-if="item.CLZT == 13">医疗机构退回</p>
+            <p v-else-if="item.CLZT == 99">处方信息处理出现异常</p>
+          </div>
+          <div class="info">
+            <div class="outDiv">
+              <div class="title">医疗机构</div>
+              <div class="name">{{ item.YLJGMC }}</div>
+            </div>
+            <div class="outDiv">
+              <div class="title">处方日期</div>
+              <div class="name" style="font-family: 'Avenir-Medium'">
+                {{ getDate(item.KFRQ) }}
+              </div>
+            </div>
+          </div>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+<script>
+import { getDate } from "@/mixins/format";
+import { eye } from "@/mixins/eye";
+import { setParamLog,getAppUser, getAppService } from "@/api/index";
+import { getCookies, setCookies } from "@/utils/auth";
+export default {
+  name: "ConsultationRecord",
+  mixins: [getDate(), eye()],
+  data() {
+    return {
+      recordInfo: {
+        JLS: 0,
+        HZXB: "",
+        MXXQ: [],
+      },
+      isRelative: true,
+    };
+  },
+  mounted() {
+    let query = this.$route.query;
+    if (query.idcard) {
+      setCookies("relativeInfo", JSON.stringify(query));
+      this.info = JSON.parse(JSON.stringify(query));
+      this.eye("refresh");
+      setParamLog({type:'app',service:'WX001'})
+      getAppService({
+        Service: "WX001",
+        ZJHM: query.idcard,
+      }).then((res) => {
+        this.recordInfo = res.data;
+        if (!res.data.HZXB) {
+          this.recordInfo.HZXB = "-";
+        }
+      });
+      this.isRelative = false;
+    } else {
+      if (getCookies("myInfo")) {
+        this.info = JSON.parse(getCookies("myInfo"));
+      } else {
+        this.info = false;
+      }
+      this.isRelative = true;
+      if (this.info) {
+        this.eye("refresh");
+        setParamLog({type:'app',service:'WX001'})
+        getAppService({
+          Service: "WX001",
+          ZJHM: getCookies("idcard"),
+        }).then((res) => {
+          if (res.data) {
+            this.recordInfo = res.data;
+          }
+        });
+      } else {
+        this.getFirstInfo(() => {
+          this.info = JSON.parse(getCookies("myInfo"));
+          this.eye("refresh");
+          setParamLog({type:'app',service:'WX001'})
+          getAppService({
+            Service: "WX001",
+            ZJHM: getCookies("idcard"),
+          }).then((res) => {
+            if (res.data) {
+              this.recordInfo = res.data;
+            }
+          });
+        });
+      }
+    }
+  },
+  methods: {
+    getUrlParms: function (name) {
+      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
+      var getHref = decodeURI(window.location.search);
+      var r = getHref.substr(1).match(reg);
+      if (r != null) return unescape(r[2]);
+      return null;
+    },
+    getFirstInfo(callback) {
+      let appCode = ipConfig.appCode;
+      let winCode = this.getUrlParms("code");
+      let code = winCode ? winCode : appCode;
+      if (!code) {
+        //跳转获取code值
+        window.location.href = ipConfig.userURL + "getAppUrl";
+      } else {
+        setParamLog({type:'app',service:'getAppUser'})
+        getAppUser({ code: code }).then((res) => {
+          setCookies("myInfo", JSON.stringify(res.data));
+          setCookies("idcard", res.data.idcard);
+          if (callback) callback();
+        });
+      }
+    },
+    //亲属信息按钮
+    toRelative() {
+      this.$router.push({
+        name: "RelativeInfo",
+        query: {
+          XM: JSON.parse(getCookies("myInfo")).name,
+          ZJHM: getCookies("idcard"),
+        },
+      });
+    },
+    toDetails(item) {
+      setCookies("tabId",0)
+      this.$router.push({
+        name: "PrescriptionDetails",
+        query: {
+          YNCFBH: item.YNCFBH,
+          YLJGDM: item.YLJGDM,
+          KFRQ: item.KFRQ,
+          CFTS: item.CFTS ? item.CFTS : 0,
+          YLJGMC: item.YLJGMC,
+          sex: this.recordInfo.HZXB,
+          zjhm:this.$route.query.idcard?this.$route.query.idcard:getCookies("idcard")
+        },
+      });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+header {
+  width: 100%;
+  // height: 270px;
+  background-color: #cbb486;
+  border-bottom-left-radius: 15px;
+  border-bottom-right-radius: 15px;
+  padding-bottom: 10px;
+}
+.center {
+  // height: 80px;
+  display: flex;
+  padding: 10px 15px;
+  position: relative;
+}
+.avatarImg {
+  height: 100%;
+  img {
+    width: 70px;
+    height: 70px;
+    border-radius: 50%;
+    // margin-top: 15px;
+  }
+}
+.avatarInfo {
+  .name {
+    color: #fff;
+    font-size: 24px;
+    height: 50px;
+    display: flex;
+    align-items: center;
+    span {
+      margin-left: 12px;
+      font-weight: bolder;
+    }
+    img {
+      width: 20px;
+    }
+  }
+  .info {
+    color: #fff;
+    font-size: 12px;
+  }
+  .relativeinfo {
+    position: absolute;
+    top: 22px;
+    right: 15px;
+    width: 74px;
+    padding: 3px 7px;
+    display: flex;
+    text-align: center;
+    align-items: center;
+    border-radius: 30px;
+    background: linear-gradient(180deg, #eee5d2 0%, #fdfaf5 100%);
+    font-family: "PingFang SC-Regular";
+    color: #8b614d;
+    font-size: 12px;
+    img {
+      width: 18px;
+      margin-right: 5px;
+    }
+  }
+}
+.bottom {
+  padding: 0 15px;
+  height: 100px;
+  .bottomInfo {
+    background: rgba(111, 82, 38, 0.2);
+    border-radius: 8px;
+    width: 100%;
+    height: 100%;
+    display: flex;
+    .info {
+      width: 50%;
+      height: 100%;
+      flex-direction: column;
+      display: flex;
+      justify-content: center;
+      color: #fff;
+      font-family: "Avenir-Medium";
+      p:nth-child(1) {
+        padding-bottom: 20px;
+        font-size: 12px;
+        font-family: "PingFang SC-Regular";
+      }
+      p:nth-child(2) {
+        font-size: 14px;
+      }
+    }
+    .info:nth-child(1) {
+      p {
+        border-right: 2px solid;
+      }
+    }
+  }
+}
+#main {
+  padding: 10px 15px;
+  font-family: "PingFang SC-Regular";
+  .nodata {
+    color: #7a7a7a;
+    margin-top: 30px;
+  }
+  .record {
+    margin-bottom: 15px;
+    box-shadow: 0px 0px 10px 1px rgba(184, 160, 115, 0.3);
+    border-radius: 8px;
+    .code {
+      display: flex;
+      height: 50px;
+      align-items: center;
+      // justify-content: space-between;
+      padding: 0 15px;
+      border-bottom: 1px solid #e7e7e7;
+      font-size: 14px;
+      color: #000;
+      text-align: left;
+      line-height: 20px;
+      p:nth-child(1) {
+        width: 80px;
+      }
+      p:nth-child(2) {
+        color: #8b614d;
+        text-align: right;
+      }
+    }
+    .info {
+      display: flex;
+      flex-direction: column;
+      justify-content: center;
+      text-align: left;
+    }
+    .outDiv:nth-child(1) {
+      padding-top: 15px;
+      line-height: 20px;
+    }
+    .outDiv:nth-child(2) {
+      height: 40px;
+      line-height: 40px;
+    }
+    .outDiv {
+      display: flex;
+      padding: 0px 15px;
+      font-family: "PingFang SC-Regular";
+      font-size: 14px;
+      .title {
+        width: 80px;
+        text-align: left;
+        color: #999999;
+      }
+      .name {
+        color: #000;
+        width: calc(100% - 80px);
+      }
+    }
+  }
+}
+</style>

+ 279 - 0
src/views/drugTrace.vue

@@ -0,0 +1,279 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-12-12 15:26:15
+ * @FilePath: \sui-shen-ban_alipay\src\views\drugTrace.vue
+-->
+<template>
+  <div>
+    <header></header>
+    <div id="main" v-if="result">
+      <div class="drugSource">
+        <div class="name">{{(result.ypBusinessTraceVOList[0].wptpYpbSaleVO.ypName?result.ypBusinessTraceVOList[0].wptpYpbSaleVO.ypName:result.ypProcessVO.wptpYpSaleVO.ypName)?result.ypProcessVO.wptpYpSaleVO.ypName:result.medicineVOList[0].wptpMedicineSaleVO.medicineName}}</div>
+        <div class="source" style="border: none">
+          <div class="label">产品批号</div>
+          <div class="value">{{result.ypProcessVO.secondYpProcessVO?result.ypProcessVO.secondYpProcessVO.productBatch:result.ypProcessVO.wptpYpProcessVO.productBatch}}</div>
+        </div>
+        <div class="source">
+          <div class="label">产地</div>
+          <div class="value">{{result.plantTraceVO.wptpBaseVO.ssq}}</div>
+        </div>
+        <div class="source">
+          <div class="label">饮片生产企业</div>
+          <div class="value">{{result.ypProcessVO.wptpYpSaleVO. entName}}</div>
+        </div>
+        <div class="source">
+          <div class="label">饮片经营企业</div>
+          <div class="value" v-if="result.ypBusinessTraceVOList[0].wptpYpbSaleVO.entName">{{result.ypBusinessTraceVOList[0].wptpYpbSaleVO.entName}}</div>
+        </div>
+      </div>
+      <div class="record drugProduce" :style="imgShow?{backgroundSize: `100% 155vw`,height:`157vw`}:{backgroundSize: `100% 67vw`,height:`70vw`}">
+        <div class="title" :style="imgShow?{paddingTop: `24vw`}:{paddingTop: `14vw`}">
+          <span>药材生产</span>
+        </div>
+        <div class="content">
+          <div class="contentItem contentItem1">
+            <div class="label">种植时间</div>
+            <div class="value">{{result.plantTraceVO.wptpCsInfoList[0].fileTime}}</div>
+          </div>
+          <div class="contentItem" style="width:40%">
+            <div class="label">采收时间</div>
+            <div class="value">{{result.plantTraceVO.wptpCsInfoList[0].csTime}}</div>
+          </div>
+        </div>
+        <div class="drugImg" v-for="(item,index) in result.plantTraceVO.wptpPlantInfoVOList">
+          <img :src="baseUrl+item.plantFileList[0].path" alt="" v-if="item.plantSatus=='移栽播种'"/>
+          <img :src="baseUrl+item.plantFileList[0].path" alt="" v-if="item.plantSatus=='采收'"/>
+        </div>
+      </div>
+      <div class="record" v-if="result.medicineVOList.length != 0" :style="{backgroundSize: `100% calc(${10*result.medicineVOList.length}vw + 57vw)`,height:`calc(${10*result.medicineVOList.length}vw + 60vw)`}">
+        <div class="title">
+          <span>药材流通</span>
+        </div>
+        <div class="content" v-for="(item,index) in result.medicineVOList" :key="index">
+          <div class="contentItem contentItem1">
+            <div class="label">药材流通企业</div>
+            <div class="value">{{item.wptpMedicineSaleVO.entName}}</div>
+          </div>
+          <div class="contentItem contentItem2">
+            <div class="label">验收结果</div>
+            <div class="value">{{item.wptpMedicineInstockVO.checkResult}}</div>
+          </div>
+        </div>
+      </div>
+      <div class="record pieces">
+        <div class="title">
+          <span>饮片生产</span>
+        </div>
+        <div class="content">
+          <div class="contentItem contentItem1">
+            <div class="label">饮片生产企业</div>
+            <div class="value">{{result.ypProcessVO.wptpYpSaleVO.entName}}</div>
+          </div>
+          <div class="contentItem contentItem2">
+            <div class="label">原料检验结果</div>
+            <div class="value">{{result.ypProcessVO.wptpYpInstockVO.checkResult}}</div>
+          </div>
+        </div>
+        <div class="line"></div>
+        <div class="content">
+          <div class="contentItem contentItem1">
+            <div class="label">成品检验结果</div>
+            <div class="value">{{result.ypProcessVO.wptpYpProcessVO.checkResult}}</div>
+          </div>
+          <div class="contentItem contentItem2">
+            <div class="label">成品批号</div>
+            <div class="value">{{result.ypProcessVO.secondYpProcessVO?result.ypProcessVO.secondYpProcessVO.productBatch:result.ypProcessVO.wptpYpProcessVO.productBatch}}</div>
+          </div>
+        </div>
+      </div>
+      <div class="record pieces" v-if="result.ypBusinessTraceVOList.length != 0" :style="{backgroundSize: `100% calc(${40*result.ypBusinessTraceVOList.length}vw + 40vw)`,height:`calc(${40*result.ypBusinessTraceVOList.length}vw + 43vw)`}">
+        <div class="title">
+          <span>饮片流通</span>
+        </div>
+        <div v-for="(item,index) in result.ypBusinessTraceVOList" :key="index">
+          <div class="content">
+            <div class="contentItem contentItem1">
+              <div class="label">饮片经营企业</div>
+              <div class="value">{{item.wptpYpbSaleVO.entName}}</div>
+            </div>
+            <div class="contentItem contentItem2">
+              <div class="label">产品批号</div>
+              <div class="value">{{item.wptpYpbSaleVO.productBatch}}</div>
+            </div>
+          </div>
+          <div class="line"></div>
+          <div class="content">
+            <div class="contentItem contentItem1">
+              <div class="label">验收结果</div>
+              <div class="value">{{item.wptpYpbInstockVO.checkResult}}</div>
+            </div>
+          </div>
+        </div>
+      </div>
+    </div>
+    <div v-else>
+      <van-loading type="spinner" class="load" vertical>加载中...</van-loading>
+    </div>
+  </div>
+</template>
+  <script>
+import Vue from "vue";
+import { getDateTime } from "@/mixins/format";
+import { setCookies } from "@/utils/auth";
+import { setParamLog,getAppService } from "@/api/index";
+import { Loading } from "vant";
+Vue.use(Loading);
+export default {
+  name: "DrugTrace",
+  mixins: [getDateTime()],
+  data() {
+    return {
+      result:'',
+      baseUrl:ipConfig.baseURL,
+      imgShow:false
+    };
+  },
+  created() {
+    setCookies("tabId",2)
+    setParamLog({type:'alipay',service:'WX007'})
+    getAppService({ Service: "WX007", ...this.$route.query }).then((res) => {
+      this.result = res.data.result
+      if(this.result.plantTraceVO.wptpPlantInfoVOList && this.result.plantTraceVO.wptpPlantInfoVOList.length != 0){
+        this.result.plantTraceVO.wptpPlantInfoVOList.forEach(item=>{
+          if(item.plantSatus == "移栽播种" || item.plantSatus == "采收"){
+            this.imgShow = true
+          }else{
+            this.imgShow = false
+          }
+        })
+      }
+    });
+  },
+  mounted() {},
+  methods: {},
+};
+</script>
+ <style lang="scss" scoped>
+header {
+  width: 100%;
+  height: 56vw;
+  background: url("../assets/images/drugHead.png") no-repeat;
+  background-size: cover;
+}
+#main {
+  position: absolute;
+  top: 5vw;
+  width: 100%;
+  left: 50%;
+  transform: translateX(-50%);
+  .drugSource {
+    background: url("../assets/images/drugBack.png") no-repeat;
+    background-size: 100% 85vw;
+    padding: 0 8vw;
+    height: 88vw;
+    .name {
+      font-family: "PingFang SC-Semibold";
+      font-size: 6vw;
+      color: #8b614d;
+      letter-spacing: 0;
+      text-align: center;
+      font-weight: 600;
+      padding: 14vw 0 4vw 0;
+    }
+    .source {
+      border-top: 1px solid rgba(215, 208, 191, 1);
+      display: flex;
+      text-align: left;
+      line-height: 5vw;
+      padding: 3vw 0;
+      color: #000000;
+      font-weight: 400;
+      font-family: "PingFang SC-Regular";
+      .label {
+        width: 28vw;
+        opacity: 0.5;
+        font-size: 3vw;
+      }
+      .value {
+        width: calc(100% - 28vw);
+        font-size: 4vw;
+      }
+    }
+  }
+  .title {
+    font-family: "PingFang SC-Medium";
+    font-size: 5vw;
+    color: #8b614d;
+    letter-spacing: 0;
+    text-align: center;
+    padding: 14vw 0 8vw 0;
+    font-weight: 500;
+    span {
+      border-bottom: 1px solid #8b614d;
+    }
+  }
+  .record {
+    background: url("../assets/images/drugBack.png") no-repeat;
+    padding: 0 8vw;
+    background-size: 100% 67vw;
+    height: 70vw;
+  }
+  .content {
+    display: flex;
+    margin-bottom: 3vw;
+    .contentItem {
+      color: #000000;
+      font-weight: 400;
+      font-family: "PingFang SC-Regular";
+      text-align: left;
+      line-height: 7vw;
+      .label {
+        opacity: 0.5;
+        font-size: 3vw;
+      }
+      .value {
+        font-size: 4vw;
+      }
+    }
+    .contentItem1 {
+      width: 60%;
+    }
+    .contentItem2 {
+      width: calc(40% - 5vw);
+      padding-left: 5vw;
+    }
+  }
+  .line {
+    width: 100%;
+    border-bottom: 1px solid rgba(203, 203, 203, 1);
+    margin: 3vw 0;
+  }
+  .drugProduce {
+    background-size: 100% 155vw;
+    height: 157vw;
+    .title {
+      padding-top: 24vw;
+    }
+    .drugImg {
+      display: flex;
+      flex-direction: column;
+      img {
+        width: 100%;
+        margin: 5px 0;
+      }
+    }
+  }
+  .pieces {
+    background-size: 100% 80vw;
+    height: 83vw;
+  }
+}
+.load{
+  margin-top: 35px;
+}
+</style>
+  

+ 47 - 0
src/views/index.vue

@@ -0,0 +1,47 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-21 11:56:02
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-07-13 12:00:18
+ * @FilePath: \zyypt-ssb-vue_app\src\views\index.vue
+-->
+<template>
+  <div></div>
+</template>
+<script>
+import { setCookies, removeAllCookie } from "@/utils/auth";
+import { getAppUser } from "@/api/index";
+export default {
+  name: "Home",
+  created() {
+    removeAllCookie();
+    let appCode = ipConfig.appCode;
+    let winCode = this.getUrlParms("code");
+    let code = winCode ? winCode : appCode;
+    if (!code) {
+      //跳转获取code值
+      window.location.href = ipConfig.userURL + "getAppUrl";
+    } else {
+      getAppUser({ code: code }).then((res) => {
+        setCookies("myInfo", JSON.stringify(res.data));
+        setCookies("idcard", res.data.idcard);
+        this.$router.push({
+          name: "ConsultationRecord",
+        });
+      });
+    }
+  },
+
+  methods: {
+    getUrlParms: function (name) {
+      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
+      var getHref = decodeURI(window.location.search);
+      var r = getHref.substr(1).match(reg);
+      if (r != null) return unescape(r[2]);
+      return null;
+    },
+  },
+};
+</script>

+ 705 - 0
src/views/prescriptionDetails.vue

@@ -0,0 +1,705 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-12-12 15:25:21
+ * @FilePath: \zyypt-ssb-vue_app\src\views\prescriptionDetails.vue
+-->
+<template>
+  <div>
+    <header>
+      <div class="center">
+        <div class="avatarImg">
+          <img src="../assets/images/man.png" alt="" v-if="sex == 1" />
+          <img src="../assets/images/woman.png" alt="" v-else-if="sex == 2" />
+          <img src="../assets/images/avatar.png" alt="" v-else />
+        </div>
+        <div class="avatarInfo">
+          <div class="name">
+            <span>{{ info.name }}</span>
+            <span @click="eye()" v-if="eyeLock"
+              ><img src="../assets/images/openEye.png" alt=""
+            /></span>
+            <span @click="eye()" v-else
+              ><img src="../assets/images/closeEye.png" alt=""
+            /></span>
+          </div>
+        </div>
+      </div>
+      <div class="bottom">
+        <div class="bottomInfo">
+          <div class="info">
+            <span><img src="../assets/images/hospital.png" alt="" /></span>
+            <span>{{ $route.query.YLJGMC }}</span>
+          </div>
+          <div class="info">
+            <span><img src="../assets/images/date.png" alt="" /></span>
+            <span class="date">{{ getDate($route.query.KFRQ) }}</span>
+          </div>
+        </div>
+      </div>
+    </header>
+    <div id="main">
+      <van-tabs
+        v-model="tabId"
+        title-active-color="#8b614d"
+        color="#8b614d"
+        title-inactive-color="#c4c4c4"
+        background="#fff"
+        line-width="70px"
+        line-height="3px"
+        duration="0.2"
+        sticky
+      >
+        <van-tab title="处方状态">
+          <div class="ge"></div>
+          <van-loading type="spinner" class="load" vertical v-show="presShow"
+            >加载中...</van-loading
+          >
+          <div
+            v-if="prescriptionStatus.JLS == 0"
+            class="nodata"
+            v-show="!presShow"
+          >
+            暂无数据
+          </div>
+          <div class="content" v-else v-show="!presShow">
+            <div v-for="(item1, index1) in MXXQ" :key="index1">
+              <div
+                class="outDiv1"
+                v-for="(item2, index2) in item1.children"
+                :key="index2"
+              >
+                <div class="datetime">
+                  <p
+                    class="date"
+                    :style="index1 == 0 && index2 == 0 ? 'color: #000' : ''"
+                    v-if="index2 == 0 && item1.date"
+                  >
+                    {{ item1.date ? getDate(item1.date) : "" }}
+                  </p>
+                  <p
+                    class="time"
+                    :style="index1 == 0 && index2 == 0 ? 'color: #7a7a7a' : ''"
+                  >
+                    {{ item2.FSSJ ? getTime(item2.FSSJ) : "-" }}
+                  </p>
+                </div>
+                <div class="lian">
+                  <img
+                    src="../assets/images/quan.png"
+                    alt=""
+                    style="width: 18px"
+                    v-if="index1 == 0 && index2 == 0"
+                  />
+                  <img src="../assets/images/quan2.png" alt="" v-else />
+                  <div
+                    v-if="
+                      !(
+                        index1 == MXXQ.length - 1 &&
+                        index2 == item1.children.length - 1
+                      )
+                    "
+                    class="line"
+                    :style="index1 == 0 && index2 == 0 ? 'top: 18px' : ''"
+                  ></div>
+                </div>
+                <div
+                  class="status"
+                  :style="
+                    index1 == 0 && index2 == 0
+                      ? 'background: #faf8f3; color: #8b614d'
+                      : ''
+                  "
+                >
+                  <span v-if="item2.CLZT == 0">待处理(已收费)</span>
+                  <span v-else-if="item2.CLZT == 1">已审方</span>
+                  <span v-else-if="item2.CLZT == 2">代煎机构已确认</span>
+                  <span v-else-if="item2.CLZT == 5">已配方</span>
+                  <span v-else-if="item2.CLZT == 6">已浸泡</span>
+                  <span v-else-if="item2.CLZT == 7">已煎煮</span>
+                  <span v-else-if="item2.CLZT == 8">已包装</span>
+                  <span v-else-if="item2.CLZT == 9">已快递</span>
+                  <span v-else-if="item2.CLZT == 10">已发车</span>
+                  <span v-else-if="item2.CLZT == 11">已签收</span>
+                  <span v-else-if="item2.CLZT == 12">代煎企业退回</span>
+                  <span v-else-if="item2.CLZT == 13">医疗机构退回</span>
+                  <span v-else-if="item2.CLZT == 99">处方信息处理出现异常</span>
+                </div>
+              </div>
+            </div>
+          </div>
+        </van-tab>
+        <van-tab title="物流信息">
+          <div class="ge"></div>
+          <van-loading type="spinner" class="load" vertical v-show="logShow"
+            >加载中...</van-loading
+          >
+          <div v-if="logisticsInfo.JLS == 0" class="nodata" v-show="!logShow">
+            暂无数据
+          </div>
+          <div class="content" v-else v-show="!logShow">
+            <div
+              class="outDiv2"
+              v-for="(item, index) in logisticsInfo.MXXQ"
+              :key="index"
+            >
+              <div class="lian">
+                <img
+                  src="../assets/images/quan.png"
+                  alt=""
+                  style="width: 18px"
+                  v-if="index == 0"
+                />
+                <img src="../assets/images/quan2.png" alt="" v-else />
+                <div
+                  class="line"
+                  :style="index == 0 ? 'top: 18px' : ''"
+                  v-if="index != logisticsInfo.JLS - 1"
+                ></div>
+              </div>
+              <div class="info" :style="index == 0 ? 'color: #000' : ''">
+                <div class="datetime">
+                  <span>{{ item.FSSJ ? getDateTime(item.FSSJ) : "-" }}</span>
+                </div>
+                <div class="status">
+                  <span>{{ item.JDMS }}</span>
+                </div>
+              </div>
+            </div>
+          </div>
+        </van-tab>
+        <van-tab title="处方内容">
+          <div class="ge"></div>
+          <van-loading type="spinner" class="load" vertical v-show="precShow"
+            >加载中...</van-loading
+          >
+          <div
+            v-if="prescriptionContent.JLS == 0"
+            class="nodata"
+            v-show="!precShow"
+          >
+            暂无数据
+          </div>
+          <div class="outDiv3 content" v-else v-show="!precShow">
+            <p class="title">
+              处方总帖数: <span>{{ CFTS }}</span
+              >,单帖处方内容如下
+            </p>
+            <div class="drugList">
+              <div class="listHead">
+                <div style="width: 100%">药品名称</div>
+                <!-- <div style="width: 50%">药品名称</div>
+                <div style="width: 50%">产地</div> -->
+              </div>
+              <van-list
+                v-model="loading"
+                :finished="finished"
+                @load="onLoad"
+                finished-text="没有更多了"
+              >
+                <div
+                  class="listBody"
+                  v-for="(item, index) in prescriptionContentMXXQ"
+                  :key="index"
+                >
+                  <!-- <div class="name">{{ item.YPMC }}</div>
+                  <div class="address">{{ item.CD ? item.CD : "-" }}</div> -->
+                  <!-- <div class="jiantou">
+                    <img src="../assets/images/open.png" alt="" />
+                  </div> -->
+                  <div class="name" @click="goDrugTrace1(item)">
+                    <span>{{ item.YPMC1 }}</span>
+                    <img src="../assets/images/syIcon.png" class="drugIcon" alt="" v-if="item.YPSYBM1 && item.YPSYBM1 != -1"/>
+                  </div>
+                  <div class="name" @click="goDrugTrace2(item)">
+                    <span>{{ item.YPMC2 }}</span>
+                    <img src="../assets/images/syIcon.png" class="drugIcon" alt="" v-if="item.YPSYBM2 && item.YPSYBM2 != -1"/>
+                  </div>
+                </div>
+              </van-list>
+            </div>
+          </div>
+        </van-tab>
+      </van-tabs>
+    </div>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Tab, Tabs, List, Loading } from "vant";
+Vue.use(Tab).use(Tabs).use(List).use(Loading);
+import { getDate, getTime, getDateTime } from "@/mixins/format";
+import { eye } from "@/mixins/eye";
+import { getCookies } from "@/utils/auth";
+import { setParamLog, getAppService } from "@/api/index";
+export default {
+  name: "PrescriptionDetails",
+  mixins: [getDate(), getTime(), getDateTime(), eye()],
+  data() {
+    return {
+      sex: "",
+      tabId: 0,
+      MXXQ: [],
+      prescriptionContentMXXQ: [],
+      loading: false,
+      finished: false,
+      presShow: false,
+      logShow: false,
+      precShow: false,
+      CFTS: 0,
+      prescriptionStatus: {
+        JLS: 0,
+        MXXQ: [],
+      },
+      logisticsInfo: {
+        JLS: 0,
+        MXXQ: [],
+      },
+      prescriptionContent: {
+        JLS: 0,
+        MXXQ: [],
+      },
+      strArray:[],
+      MXXQArray:[]
+    };
+  },
+  created() {
+    let query = {
+      YNCFBH: this.$route.query.YNCFBH,
+      YLJGDM: this.$route.query.YLJGDM,
+      KFRQ: this.$route.query.KFRQ,
+    };
+    this.CFTS = this.$route.query.CFTS;
+    this.presShow = true;
+    this.logShow = true;
+    this.precShow = true;
+    setParamLog({type:'app',service:'WX002',jgdm:query.YLJGDM,zjhm:this.$route.query.zjhm})
+    getAppService({ Service: "WX002", ...query }).then((res) => {
+      let prescriptionStatus = res.data.MXXQ;
+      this.MXXQ = this.toTree(prescriptionStatus);
+      // this.MXXQ = this.toTree(this.prescriptionStatus.MXXQ);
+      this.prescriptionStatus = res.data;
+      this.presShow = false;
+    });
+    setParamLog({ type: "app", service: "WX003" });
+    getAppService({ Service: "WX003", ...query }).then((res) => {
+      this.logisticsInfo = res.data;
+      this.logShow = false;
+    });
+    setParamLog({ type: "app", service: "WX004" });
+    getAppService({ Service: "WX004", ...query }).then((res) => {
+      res.data.MXXQ.forEach(item1=>{
+        this.strArray.forEach(item2=>{
+          if(item2.YPSYBM && item1.YPYBDM == item2.YPYBDM){
+            item1.YPSYBM = item2.YPSYBM
+          }
+        })
+      })
+      // this.prescriptionContent = res.data;
+      // this.prescriptionContentMXXQ = res.data.MXXQ.slice(0, 5);
+      let prescriptionContentMXXQ = this.toArr(res.data.MXXQ);
+      this.prescriptionContent = {
+        // JLS: Math.ceil(res.data.JLS / 2),
+        JLS: res.data.JLS,
+        MXXQ: prescriptionContentMXXQ,
+      };
+      this.prescriptionContentMXXQ = prescriptionContentMXXQ.slice(0, 5);
+      this.precShow = false;
+    });
+    setParamLog({type:'app',service:'WX006'})
+    getAppService({ Service: "WX006", ...query }).then((res) => {
+      this.MXXQArray = res.data.MXXQ
+      var str1 = JSON.parse(res.data.MXXQ[0].mxxq)
+      var str2 = JSON.parse(res.data.MXXQ[1].mxxq)
+      this.strArray = str1.concat(str2)
+    });
+    if (this.$route.query.sex) {
+      this.sex = this.$route.query.sex.trim();
+    } else {
+      this.sex = "-";
+    }
+  },
+  mounted() {
+    if (getCookies("relativeInfo")) {
+      this.info = JSON.parse(getCookies("relativeInfo"));
+    } else {
+      this.info = JSON.parse(getCookies("myInfo"));
+    }
+    this.eye("refresh");
+    let tabId = getCookies("tabId");
+    if (!tabId) {
+      this.tabId = 0;
+    } else {
+      this.tabId = Number(tabId);
+    }
+  },
+  methods: {
+    toArr(oldArr) {
+      let newArr = [];
+      if (oldArr.length > 0) {
+        oldArr.forEach((item, index, arr) => {
+          if ((index + 1) % 2 == 1) {
+            let obj = {
+              YPMC1: item.YPMC,
+              YPMC2: arr[index + 1] ? arr[index + 1].YPMC : "",
+              YPSYBM1: item.YPSYBM,
+              YPSYBM2: arr[index + 1] ? arr[index + 1].YPSYBM : "",
+            };
+            newArr.push(obj);
+          }
+        });
+      }
+      return newArr;
+    },
+    toTree(list) {
+      var newobj = {},
+        newArr = [];
+      for (var i = 0; i < list.length; i++) {
+        var item = list[i];
+        if (!newobj[item["FSSJ"].substring(0, 8)]) {
+          newobj[item["FSSJ"].substring(0, 8)] = newArr.push(
+            item["FSSJ"].substring(0, 8)
+          );
+        }
+      }
+      let outArr = [];
+      newArr.forEach((ele) => {
+        let insideArr = [];
+        list.forEach((item) => {
+          if (item.FSSJ) {
+            if (ele.indexOf(item.FSSJ.substring(0, 8)) != -1) {
+              item.FSSJ = item.FSSJ.substring(8, 14);
+              insideArr.push(item);
+            }
+          }
+          if (!ele) {
+            if (!item.FSSJ) {
+              insideArr.push(item);
+            }
+          }
+        });
+        if (ele != -1) {
+          outArr.push({
+            date: ele,
+            children: insideArr,
+          });
+        }
+      });
+      return outArr;
+    },
+    getYPCDM(YPSYBM){
+      if(this.MXXQArray[0].mxxq.indexOf(YPSYBM) != '-1'){
+        return this.MXXQArray[0].ypcdm
+      }
+      if(this.MXXQArray[1].mxxq.indexOf(YPSYBM) != '-1'){
+        return this.MXXQArray[1].ypcdm
+      }
+    },
+    onLoad() {
+      // 异步更新数据
+      // setTimeout 仅做示例,真实场景中一般为 ajax 请求
+      setTimeout(() => {
+        for (let i = 0; i < 5; i++) {
+          if (
+            this.prescriptionContentMXXQ.length >=
+            this.prescriptionContent.MXXQ.length
+          ) {
+            this.finished = true;
+          } else {
+            this.prescriptionContentMXXQ.push(
+              this.prescriptionContent.MXXQ[this.prescriptionContentMXXQ.length]
+            );
+          }
+          // console.log(
+          //   this.prescriptionContent.MXXQ[this.prescriptionContentMXXQ.length]
+          // );
+        }
+
+        // 加载状态结束
+        this.loading = false;
+
+        // 数据全部加载完成
+      }, 1000);
+    },
+
+    goDrugTrace1(item) {
+      let ypcdm = this.getYPCDM(item.YPSYBM1)
+      if(item.YPSYBM1 && item.YPSYBM1 != -1){
+        this.$router.push({
+          name: "DrugTrace",
+          query: {
+            YPSYBM: item.YPSYBM1,
+            YPCDM:ypcdm,
+          },
+        });
+      }
+    },
+    goDrugTrace2(item) {
+      let ypcdm = this.getYPCDM(item.YPSYBM2)
+      if(item.YPSYBM2 && item.YPSYBM2 != -1){
+        this.$router.push({
+          name: "DrugTrace",
+          query: {
+            YPSYBM: item.YPSYBM2,
+            YPCDM:ypcdm,
+          },
+        });
+      }
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+header {
+  width: 100%;
+  // height: 270px;
+  background-color: #cbb486;
+  border-bottom-left-radius: 15px;
+  border-bottom-right-radius: 15px;
+  padding-bottom: 10px;
+}
+.center {
+  // height: 80px;
+  display: flex;
+  padding: 10px 15px;
+  position: relative;
+}
+.avatarImg {
+  height: 100%;
+  img {
+    width: 70px;
+    height: 70px;
+    border-radius: 50%;
+    // margin-top: 15px;
+  }
+}
+.avatarInfo {
+  .name {
+    color: #fff;
+    font-size: 24px;
+    height: 50px;
+    display: flex;
+    align-items: center;
+    span {
+      margin-left: 12px;
+      font-weight: bolder;
+    }
+    img {
+      width: 20px;
+    }
+  }
+}
+.bottom {
+  padding: 0 15px;
+  height: 100px;
+  font-size: 14px;
+  text-align: left;
+  .bottomInfo {
+    background: rgba(111, 82, 38, 0.2);
+    border-radius: 8px;
+    width: 100%;
+    height: 100%;
+    .info {
+      color: #fff;
+      font-family: "PingFang SC-Regular";
+      height: 50%;
+      display: flex;
+      align-items: center;
+      padding-left: 12px;
+      img {
+        width: 20px;
+        margin-right: 8px;
+      }
+      .date {
+        // font-family: "Avenir-Roman";
+        font-family: "Avenir-Medium";
+      }
+    }
+  }
+}
+::v-deep #main {
+  font-family: "PingFang SC-Regular";
+  .van-tab {
+    font-size: 18px;
+  }
+  .van-tabs--line .van-tabs__wrap {
+    border-bottom: 1px solid #dcdee2;
+  }
+  .load {
+    margin-top: 50px;
+  }
+  .content {
+    padding: 0 15px;
+    padding-top: 20px;
+  }
+  .nodata {
+    color: #7a7a7a;
+    margin-top: 30px;
+  }
+  .ge {
+    background: #f8f8f8;
+    height: 10px;
+  }
+  .outDiv1 {
+    display: flex;
+    justify-content: space-around;
+    align-items: center;
+    height: 70px;
+    .datetime {
+      width: 90px;
+      text-align: right;
+      color: #c4c4c4;
+      .date {
+        font-family: "Avenir-Medium";
+        margin-bottom: 10px;
+      }
+      .time {
+        // font-family: "Avenir-Roman";
+        font-family: "Avenir-Medium";
+        font-size: 14px;
+      }
+    }
+    img {
+      width: 16px;
+    }
+    .status {
+      width: 180px;
+      background: #f6f6f6;
+      color: #c4c4c4;
+      border-radius: 4px;
+      padding: 10px 0;
+    }
+    .lian {
+      width: 30px;
+      position: relative;
+    }
+    .line {
+      width: 2px;
+      height: 55px;
+      background: #e7e7e7;
+      position: absolute;
+      top: 16px;
+      left: 50%;
+      transform: translateX(-50%);
+    }
+  }
+  .outDiv2 {
+    display: flex;
+    // height: 70px;
+    padding-bottom: 20px;
+    position: relative;
+    img {
+      width: 16px;
+    }
+    .lian {
+      width: 30px;
+      // position: relative;
+      margin-left: 10px;
+    }
+    .line {
+      width: 1px;
+      // height: 75px;
+      height: calc(100% - 16px);
+      background: #e7e7e7;
+      position: absolute;
+      top: 16px;
+      left: 24px;
+      // left: 50%;
+      // transform: translateX(-50%);
+    }
+    .info {
+      text-align: left;
+      margin-left: 20px;
+      color: #999999;
+      width: calc(100% - 50px);
+    }
+    .datetime {
+      margin-bottom: 10px;
+      height: 18px;
+      line-height: 18px;
+      font-family: "Avenir-Medium";
+    }
+    .status {
+      font-size: 14px;
+      line-height: 20px;
+      font-family: "PingFang SC-Regular";
+    }
+  }
+
+  .outDiv3 {
+    text-align: left;
+    color: #999999;
+    font-size: 14px;
+    font-family: "PingFang SC-Regular";
+    .title {
+      span {
+        color: #fc7a73;
+      }
+    }
+    .drugList {
+      background: #ffffff;
+      box-shadow: 0px 0px 10px 1px rgba(184, 160, 115, 0.3);
+      border-radius: 4px;
+      margin-top: 20px;
+      font-size: 14px;
+      .listHead {
+        display: flex;
+        height: 60px;
+        border-bottom: 1px solid #e7e7e7;
+        align-items: center;
+        text-align: center;
+        font-size: 16px;
+      }
+      .listBody {
+        display: flex;
+        height: 60px;
+        border-bottom: 1px solid #e7e7e7;
+        align-items: center;
+        text-align: center;
+        // .name {
+        //   width: 50%;
+        //   color: #fc7a73;
+        // }
+        .name {
+          text-align: center;
+          width: 50%;
+          color: #000000;
+          display: flex;
+          justify-content: center;
+          height: 100%;
+          flex-direction: column;
+          height: 100%;
+          line-height: 22px;
+          padding: 0 10px;
+          position: relative;
+          // span:nth-child(1) {
+          //   color: #fc7a73;
+          // }
+        }
+        .name:nth-child(1) {
+          border-right: 1px solid #e7e7e7;
+        }
+        .drugIcon{
+          width: 20px;
+          position: absolute;
+          right: 3px;
+          top: 3px;
+        }
+        .address {
+          width: 50%;
+          color: #000000;
+        }
+        .jantou {
+          width: 10%;
+        }
+        img {
+          width: 18px;
+        }
+      }
+    }
+  }
+}
+</style>

+ 185 - 0
src/views/relativeInfo.vue

@@ -0,0 +1,185 @@
+<!--
+ * @Description: file content
+ * @Version: 2.0
+ * @Author: ljl
+ * @Date: 2022-06-16 09:49:18
+ * @LastEditors: ljl
+ * @LastEditTime: 2022-08-02 15:48:55
+ * @FilePath: \zyypt-ssb-vue_app\src\views\relativeInfo.vue
+-->
+<template>
+  <div>
+    <div id="main">
+      <div class="title" v-if="relativeInfo.JLS == 0">您尚未添加亲属</div>
+      <div class="title" v-else>已添加亲属列表</div>
+      <van-cell-group inset v-if="relativeInfo.JLS != 0">
+        <van-cell
+          v-for="item in relativeInfo.MXXQ"
+          :key="item.id"
+          :title="item.QSXM"
+          :label="item.QSZJHM"
+          is-link
+          :to="'/?idcard=' + item.QSZJHM + '&name=' + item.QSXM"
+        >
+          <van-button
+            color="#8b614d"
+            plain
+            size="mini"
+            class="jiebang"
+            @click.stop="unbind(item.id)"
+            >解除绑定</van-button
+          >
+        </van-cell>
+        <!-- <van-cell title="张琳" label="120225199712142370" is-link>
+          <van-button
+            color="#8b614d"
+            plain
+            size="mini"
+            class="jiebang"
+            @click="unbind()"
+            >解除绑定</van-button
+          >
+        </van-cell> -->
+      </van-cell-group>
+      <div class="bottomInfo">
+        <div class="info" @click="toApply()">
+          <p>老人信息</p>
+          <p>(年满60周岁以上老人)</p>
+        </div>
+        <div class="info" @click="toApply()">
+          <p>子女信息</p>
+          <p>(未满18周岁子女)</p>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+<script>
+import Vue from "vue";
+import { Dialog, Toast, Button, Icon, Cell, CellGroup } from "vant";
+// 全局注册
+Vue.use(Dialog).use(Toast).use(Button).use(Icon).use(Cell).use(CellGroup);
+import { removeCookies } from "@/utils/auth";
+import { setParamLog, getRelatives, UnbindRelatives } from "@/api/index";
+export default {
+  name: "RelativeInfo",
+  data() {
+    return {
+      relativeInfo: {
+        JLS: 0,
+        MXXQ: [],
+      },
+      queryInfo: {},
+    };
+  },
+  created() {
+    removeCookies("relativeInfo");
+    this.queryInfo = this.$route.query;
+    this.getRelatives();
+  },
+  methods: {
+    getRelatives() {
+      setParamLog({ type: "app", service: "getRelatives" });
+      getRelatives({ type: "app", ZJHM: this.queryInfo.ZJHM }).then((res) => {
+        if (res.code == 0) {
+          this.relativeInfo = res.data;
+        }
+      });
+    },
+    //解除绑定
+    unbind(id) {
+      Dialog.confirm({
+        message: "确定要解绑当前亲属吗?",
+        confirmButtonColor: "#8b614d",
+        overlay: true,
+      })
+        .then(() => {
+          setParamLog({ type: "app", service: "UnbindRelatives" });
+          UnbindRelatives({ type: "app", id }).then((res) => {
+            if (res.code == 0) {
+              Toast.success("解绑成功");
+              this.getRelatives();
+            }
+          });
+        })
+        .catch(() => {});
+    },
+
+    toApply() {
+      this.$router.push({ name: "AddRelative", query: this.queryInfo });
+      // this.$router.push({ name: "ApplyNotice", query: this.queryInfo });
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+#main {
+  padding: 10px 0px;
+  text-align: left;
+  font-family: "PingFang SC-Regular";
+  .title {
+    text-align: left;
+    font-family: "PingFang SC-Medium";
+    font-size: 18px;
+    margin: 20px 0 20px 15px;
+  }
+  .van-cell-group {
+    box-shadow: 0px 0px 10px 1px rgba(184, 160, 115, 0.3);
+  }
+  .van-cell__title span {
+    font-size: 16px;
+  }
+  .van-cell__label {
+    font-family: "Avenir-Medium";
+    color: #999999;
+    font-size: 14px;
+  }
+  .jiebang {
+    position: absolute;
+    top: 50%;
+    transform: translateY(-50%);
+    right: 40px;
+    border-radius: 4px;
+    font-size: 14px;
+  }
+  .jiebang:hover {
+    background: #8b614d;
+    color: #fff !important;
+  }
+  .van-cell__right-icon {
+    position: absolute;
+    right: 20px;
+    top: 50%;
+    transform: translateY(-50%);
+    font-size: 20px;
+  }
+  .bottomInfo {
+    height: 75px;
+    display: flex;
+    text-align: center;
+    justify-content: center;
+    margin-top: 30px;
+    .info {
+      width: 150px;
+      background: linear-gradient(270deg, #b9916a 0%, #e4c995 100%);
+      border-radius: 4px;
+      height: 100%;
+      flex-direction: column;
+      display: flex;
+      justify-content: center;
+      color: #fff;
+      font-family: "PingFang SC-Medium";
+      p:nth-child(1) {
+        padding-bottom: 10px;
+        font-size: 18px;
+      }
+      p:nth-child(2) {
+        font-size: 12px;
+      }
+    }
+    .info:nth-child(1) {
+      margin-right: 20px;
+    }
+  }
+}
+</style>

+ 5 - 0
vue.config.js

@@ -0,0 +1,5 @@
+const { defineConfig } = require('@vue/cli-service')
+module.exports = defineConfig({
+  publicPath:'./',
+  transpileDependencies: true
+})