Browse Source

APP登录加密方式修改

miaofuhao 2 years ago
parent
commit
5249632c28
36 changed files with 26824 additions and 41179 deletions
  1. 11 11
      WebUI/CallCenterWeb.UI/.project
  2. 2 1
      WebUI/CallCenterWeb.UI/CommonHtml/LDTPZSK.html
  3. 4 2
      WebUI/CallCenterWeb.UI/Quality/qualityIntelligent.html
  4. 8 1
      WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js
  5. 27 10
      WebUI/CallCenterWeb.UI/js/index.js
  6. 2 2
      anyangWebAPP/config/index.config.js
  7. 13 0
      anyangWebAPP/node_modules/.package-lock.json
  8. 568 0
      anyangWebAPP/node_modules/dompurify/LICENSE
  9. 418 0
      anyangWebAPP/node_modules/dompurify/README.md
  10. 1667 0
      anyangWebAPP/node_modules/dompurify/dist/purify.cjs.js
  11. 1 0
      anyangWebAPP/node_modules/dompurify/dist/purify.cjs.js.map
  12. 1665 0
      anyangWebAPP/node_modules/dompurify/dist/purify.es.js
  13. 1 0
      anyangWebAPP/node_modules/dompurify/dist/purify.es.js.map
  14. 1673 0
      anyangWebAPP/node_modules/dompurify/dist/purify.js
  15. 1 0
      anyangWebAPP/node_modules/dompurify/dist/purify.js.map
  16. 3 0
      anyangWebAPP/node_modules/dompurify/dist/purify.min.js
  17. 1 0
      anyangWebAPP/node_modules/dompurify/dist/purify.min.js.map
  18. 127 0
      anyangWebAPP/node_modules/dompurify/package.json
  19. 24 8
      anyangWebAPP/package-lock.json
  20. 5 2
      anyangWebAPP/package.json
  21. 28 16
      anyangWebAPP/pages/login/login.vue
  22. 1 1
      anyangWebAPP/unpackage/cache/apk/apkurl
  23. 1 1
      anyangWebAPP/unpackage/cache/apk/cmManifestCache.json
  24. 1 1
      anyangWebAPP/unpackage/dist/build/app-plus/app-config-service.js
  25. 4 31
      anyangWebAPP/unpackage/dist/build/app-plus/app-service.js
  26. 1 1
      anyangWebAPP/unpackage/dist/build/app-plus/app-view.js
  27. 1 1
      anyangWebAPP/unpackage/dist/build/app-plus/manifest.json
  28. 1 1
      anyangWebAPP/unpackage/dist/build/app-plus/view.css
  29. 1 1
      anyangWebAPP/unpackage/dist/build/app-plus/view.umd.min.js
  30. 1 1
      anyangWebAPP/unpackage/dist/dev/app-plus/__uniapppicker.js
  31. 2 2
      anyangWebAPP/unpackage/dist/dev/app-plus/app-config-service.js
  32. 14886 37209
      anyangWebAPP/unpackage/dist/dev/app-plus/app-service.js
  33. 5671 3872
      anyangWebAPP/unpackage/dist/dev/app-plus/app-view.js
  34. 1 1
      anyangWebAPP/unpackage/dist/dev/app-plus/manifest.json
  35. 1 1
      anyangWebAPP/unpackage/dist/dev/app-plus/view.css
  36. 2 2
      anyangWebAPP/unpackage/dist/dev/app-plus/view.umd.min.js

+ 11 - 11
WebUI/CallCenterWeb.UI/.project

@@ -1,6 +1,6 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <projectDescription>
3
-	<name>SQCallCenterWeb.UI</name>
3
+	<name>AY12345CallCenterWeb.UI</name>
4 4
 	<comment></comment>
5 5
 	<projects>
6 6
 	</projects>
@@ -61,7 +61,7 @@
61 61
 			</matcher>
62 62
 		</filter>
63 63
 		<filter>
64
-			<id>1516243014801</id>
64
+			<id>0</id>
65 65
 			<name></name>
66 66
 			<type>26</type>
67 67
 			<matcher>
@@ -70,7 +70,7 @@
70 70
 			</matcher>
71 71
 		</filter>
72 72
 		<filter>
73
-			<id>1577781486344</id>
73
+			<id>0</id>
74 74
 			<name></name>
75 75
 			<type>26</type>
76 76
 			<matcher>
@@ -79,7 +79,7 @@
79 79
 			</matcher>
80 80
 		</filter>
81 81
 		<filter>
82
-			<id>1582697753740</id>
82
+			<id>0</id>
83 83
 			<name></name>
84 84
 			<type>26</type>
85 85
 			<matcher>
@@ -88,7 +88,7 @@
88 88
 			</matcher>
89 89
 		</filter>
90 90
 		<filter>
91
-			<id>1596102790619</id>
91
+			<id>0</id>
92 92
 			<name></name>
93 93
 			<type>26</type>
94 94
 			<matcher>
@@ -97,7 +97,7 @@
97 97
 			</matcher>
98 98
 		</filter>
99 99
 		<filter>
100
-			<id>1607580385115</id>
100
+			<id>0</id>
101 101
 			<name></name>
102 102
 			<type>26</type>
103 103
 			<matcher>
@@ -106,7 +106,7 @@
106 106
 			</matcher>
107 107
 		</filter>
108 108
 		<filter>
109
-			<id>1647919732324</id>
109
+			<id>0</id>
110 110
 			<name></name>
111 111
 			<type>26</type>
112 112
 			<matcher>
@@ -115,7 +115,7 @@
115 115
 			</matcher>
116 116
 		</filter>
117 117
 		<filter>
118
-			<id>1656553660219</id>
118
+			<id>0</id>
119 119
 			<name></name>
120 120
 			<type>26</type>
121 121
 			<matcher>
@@ -124,7 +124,7 @@
124 124
 			</matcher>
125 125
 		</filter>
126 126
 		<filter>
127
-			<id>1686205291532</id>
127
+			<id>0</id>
128 128
 			<name></name>
129 129
 			<type>26</type>
130 130
 			<matcher>
@@ -133,7 +133,7 @@
133 133
 			</matcher>
134 134
 		</filter>
135 135
 		<filter>
136
-			<id>1686205366359</id>
136
+			<id>0</id>
137 137
 			<name></name>
138 138
 			<type>26</type>
139 139
 			<matcher>
@@ -142,7 +142,7 @@
142 142
 			</matcher>
143 143
 		</filter>
144 144
 		<filter>
145
-			<id>1686205851865</id>
145
+			<id>0</id>
146 146
 			<name></name>
147 147
 			<type>26</type>
148 148
 			<matcher>

+ 2 - 1
WebUI/CallCenterWeb.UI/CommonHtml/LDTPZSK.html

@@ -176,7 +176,8 @@
176 176
 					</table>
177 177
 				</div>
178 178
 				<div class="tableWarpper8">
179
-					<iframe id="J_iframe" name="iframe0" width="100%" height="1000" src="http://222.143.106.45:8000/zsk/index.html?token=00550b5b-95c2-410e-9dc1-f11ee4ac6fc4" frameborder="0" data-id="index_v1.html" seamless></iframe>
179
+					<!--<iframe id="J_iframe" name="iframe0" width="100%" height="1000" src="http://222.143.106.45:8000/zsk/index.html?token=00550b5b-95c2-410e-9dc1-f11ee4ac6fc4" frameborder="0" data-id="index_v1.html" seamless></iframe>-->
180
+					<iframe id="J_iframe" name="iframe0" width="100%" height="1000" src="https://12345rx.zwfw.anyang.gov.cn:8000/zsk/index.html?token=00550b5b-95c2-410e-9dc1-f11ee4ac6fc4" frameborder="0" data-id="index_v1.html" seamless></iframe>
180 181
 				</div>
181 182
 			</div>
182 183
 		</div>

+ 4 - 2
WebUI/CallCenterWeb.UI/Quality/qualityIntelligent.html

@@ -13,9 +13,11 @@
13 13
 		$(document).ready(function(){
14 14
 			var url 
15 15
 			if (type.toString() ==="1") {
16
-				url ="http://222.143.106.45:65522/index.html#/qualityTask?keyId=4028983b86012a410186c471217707be"
16
+//				url ="http://222.143.106.45:65522/index.html#/qualityTask?keyId=4028983b86012a410186c471217707be"
17
+				url ="https://12345rx.zwfw.anyang.gov.cn:65522/index.html#/qualityTask?keyId=4028983b86012a410186c471217707be"
17 18
 			}else if(type.toString() ==="2"){
18
-				url ="http://222.143.106.45:65522/index.html#/qualityTask?keyId=4028983b86012a410186c471217707be"
19
+//				url ="http://222.143.106.45:65522/index.html#/qualityTask?keyId=4028983b86012a410186c471217707be"
20
+				url ="https://12345rx.zwfw.anyang.gov.cn:65522/index.html#/qualityTask?keyId=4028983b86012a410186c471217707be"
19 21
 			}
20 22
 			window.open(url,"_blank")
21 23
 		})

+ 8 - 1
WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -1,10 +1,11 @@
1 1
 if (huayi == undefined) {
2 2
     var huayi = {};
3 3
 }
4
+//var AYWebUrl = window.document.location.href
4 5
 huayi.config = {
5 6
 	callcenter_url: "http://192.168.8.9:1042/",//生产环境
7
+//	callcenter_url: "http://docking.zwfw.anyang.gov.cn:65527/", //生产环境 
6 8
     socket_ip: "192.168.8.7", //ip
7
-//  callcenter_url: "http://docking.zwfw.anyang.gov.cn:65527/", //生产环境 
8 9
 //	translation_socket:"ws://125.45.12.102:12233",
9 10
 	translation_socket:"ws://192.168.8.7:8081",
10 11
 	videoSocket_url: "wss://12345sp.zwfw.anyang.gov.cn:65529", //docking.zwfw.anyang.gov.cn
@@ -96,3 +97,9 @@ huayi.config = {
96 97
         "<a class='xg' onclick='noSolve(\"data\")' title='未解决'>未解决</a>",
97 98
     ],
98 99
 };
100
+//if(window.document.location.href.indexOf("https")!==-1){   
101
+//	huayi.config.callcenter_url = "https://docking.zwfw.anyang.gov.cn/"
102
+//} else if(window.document.location.href.indexOf("http")!==-1){
103
+//	huayi.config.callcenter_url = "http://docking.zwfw.anyang.gov.cn:65527/"
104
+//}
105
+//console.log(huayi.config.callcenter_url)

+ 27 - 10
WebUI/CallCenterWeb.UI/js/index.js

@@ -849,16 +849,21 @@ $(document).ready(function() {
849 849
 		$(".wrong").hide();
850 850
 		$(".grzl tbody>tr>td input").attr("readonly", true);
851 851
 		$(".grzl tbody>tr>td input").css("border-bottom", "none");
852
-		$.ajax({
853
-			type: "post",
854
-			url: huayi.config.callcenter_url + "UserAccount/UpdatePwd",
855
-			async: true,
856
-			dataType: "json",
857
-			data: {
852
+		var paramsUserAccount = {}
853
+		if($(".sel").text()==="修改密码"){
854
+			paramsUserAccount = {
855
+				pwd:jiamixmm,
856
+				phone: $(".settingMobile").val(),
857
+				usercode:gh,
858
+				code: $(".settingCode").val(),
859
+				token: $.cookie("token"),
860
+			}
861
+			handleEidtPass("UserAccount/EditPassword",paramsUserAccount)
862
+		} else if($(".sel").text()==="个人资料"){
863
+//			$(".grbtn").text()==="修改密码"
864
+			paramsUserAccount = {
858 865
 				token: $.cookie("token"),
859 866
 				usercode: gh,
860
-				pwd: jiamixmm,
861
-				oldpwd: jiamiymm,
862 867
 				name: $(".mn").val(),
863 868
 				company: $(".settingCompany").val(),
864 869
 				department: $(".settingDepartment").val(),
@@ -866,7 +871,19 @@ $(document).ready(function() {
866 871
 				mobile: $(".settingMobile").val(),
867 872
 				phone: $(".settingTelephone").val(),
868 873
 				code: $(".settingCode").val(),
869
-			},
874
+			}
875
+			handleEidtPass("UserAccount/UpdatePwd",paramsUserAccount)
876
+		}
877
+		
878
+	});
879
+	function handleEidtPass(apiUrl,params){
880
+		debugger
881
+		$.ajax({
882
+			type: "post",
883
+			url: huayi.config.callcenter_url + apiUrl,
884
+			async: true,
885
+			dataType: "json",
886
+			data: params,
870 887
 			success: function(result) {
871 888
 				if(result.state.toLowerCase() == "success") {
872 889
 					layer.msg("修改成功!");
@@ -880,7 +897,7 @@ $(document).ready(function() {
880 897
 				}
881 898
 			},
882 899
 		});
883
-	});
900
+	}
884 901
 	//获取验证码
885 902
 	function getVerificationCode() {
886 903
 		if($(".settingMobile").val() == "") {

+ 2 - 2
anyangWebAPP/config/index.config.js

@@ -3,8 +3,8 @@ const CONFIG = {
3 3
     development: {
4 4
         assetsPath: '/static', // 静态资源路径
5 5
         // baseUrl: 'http://192.168.8.9:1042/', // 后台接口请求地址
6
-				baseUrl: 'http://39.164.159.192:1042/', // 后台接口请求地址
7
-        // baseUrl: 'http://docking.zwfw.anyang.gov.cn:9998/', // 后台接口请求地址
6
+				// baseUrl: 'http://39.164.159.192:1042/', // 后台接口请求地址 65527 http://docking.zwfw.anyang.gov.cn:65527
7
+        baseUrl: 'http://docking.zwfw.anyang.gov.cn:65527/', // 后台接口请求地址
8 8
         hostUrl: '', // H5地址(前端运行地址)
9 9
         weixinAppId: '' // 微信公众号appid
10 10
 

+ 13 - 0
anyangWebAPP/node_modules/.package-lock.json

@@ -0,0 +1,13 @@
1
+{
2
+  "name": "底部分割线",
3
+  "version": "0.0.1",
4
+  "lockfileVersion": 2,
5
+  "requires": true,
6
+  "packages": {
7
+    "node_modules/dompurify": {
8
+      "version": "3.0.6",
9
+      "resolved": "https://registry.npmmirror.com/dompurify/-/dompurify-3.0.6.tgz",
10
+      "integrity": "sha512-ilkD8YEnnGh1zJ240uJsW7AzE+2qpbOUYjacomn3AvJ6J4JhKGSZ2nh4wUIXPZrEPppaCLx5jFe8T89Rk8tQ7w=="
11
+    }
12
+  }
13
+}

+ 568 - 0
anyangWebAPP/node_modules/dompurify/LICENSE

@@ -0,0 +1,568 @@
1
+DOMPurify
2
+Copyright 2023 Dr.-Ing. Mario Heiderich, Cure53
3
+
4
+DOMPurify is free software; you can redistribute it and/or modify it under the
5
+terms of either:
6
+
7
+a) the Apache License Version 2.0, or
8
+b) the Mozilla Public License Version 2.0
9
+
10
+-----------------------------------------------------------------------------
11
+
12
+                                 Apache License
13
+                           Version 2.0, January 2004
14
+                        http://www.apache.org/licenses/
15
+
16
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
17
+
18
+   1. Definitions.
19
+
20
+      "License" shall mean the terms and conditions for use, reproduction,
21
+      and distribution as defined by Sections 1 through 9 of this document.
22
+
23
+      "Licensor" shall mean the copyright owner or entity authorized by
24
+      the copyright owner that is granting the License.
25
+
26
+      "Legal Entity" shall mean the union of the acting entity and all
27
+      other entities that control, are controlled by, or are under common
28
+      control with that entity. For the purposes of this definition,
29
+      "control" means (i) the power, direct or indirect, to cause the
30
+      direction or management of such entity, whether by contract or
31
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
32
+      outstanding shares, or (iii) beneficial ownership of such entity.
33
+
34
+      "You" (or "Your") shall mean an individual or Legal Entity
35
+      exercising permissions granted by this License.
36
+
37
+      "Source" form shall mean the preferred form for making modifications,
38
+      including but not limited to software source code, documentation
39
+      source, and configuration files.
40
+
41
+      "Object" form shall mean any form resulting from mechanical
42
+      transformation or translation of a Source form, including but
43
+      not limited to compiled object code, generated documentation,
44
+      and conversions to other media types.
45
+
46
+      "Work" shall mean the work of authorship, whether in Source or
47
+      Object form, made available under the License, as indicated by a
48
+      copyright notice that is included in or attached to the work
49
+      (an example is provided in the Appendix below).
50
+
51
+      "Derivative Works" shall mean any work, whether in Source or Object
52
+      form, that is based on (or derived from) the Work and for which the
53
+      editorial revisions, annotations, elaborations, or other modifications
54
+      represent, as a whole, an original work of authorship. For the purposes
55
+      of this License, Derivative Works shall not include works that remain
56
+      separable from, or merely link (or bind by name) to the interfaces of,
57
+      the Work and Derivative Works thereof.
58
+
59
+      "Contribution" shall mean any work of authorship, including
60
+      the original version of the Work and any modifications or additions
61
+      to that Work or Derivative Works thereof, that is intentionally
62
+      submitted to Licensor for inclusion in the Work by the copyright owner
63
+      or by an individual or Legal Entity authorized to submit on behalf of
64
+      the copyright owner. For the purposes of this definition, "submitted"
65
+      means any form of electronic, verbal, or written communication sent
66
+      to the Licensor or its representatives, including but not limited to
67
+      communication on electronic mailing lists, source code control systems,
68
+      and issue tracking systems that are managed by, or on behalf of, the
69
+      Licensor for the purpose of discussing and improving the Work, but
70
+      excluding communication that is conspicuously marked or otherwise
71
+      designated in writing by the copyright owner as "Not a Contribution."
72
+
73
+      "Contributor" shall mean Licensor and any individual or Legal Entity
74
+      on behalf of whom a Contribution has been received by Licensor and
75
+      subsequently incorporated within the Work.
76
+
77
+   2. Grant of Copyright License. Subject to the terms and conditions of
78
+      this License, each Contributor hereby grants to You a perpetual,
79
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+      copyright license to reproduce, prepare Derivative Works of,
81
+      publicly display, publicly perform, sublicense, and distribute the
82
+      Work and such Derivative Works in Source or Object form.
83
+
84
+   3. Grant of Patent License. Subject to the terms and conditions of
85
+      this License, each Contributor hereby grants to You a perpetual,
86
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
87
+      (except as stated in this section) patent license to make, have made,
88
+      use, offer to sell, sell, import, and otherwise transfer the Work,
89
+      where such license applies only to those patent claims licensable
90
+      by such Contributor that are necessarily infringed by their
91
+      Contribution(s) alone or by combination of their Contribution(s)
92
+      with the Work to which such Contribution(s) was submitted. If You
93
+      institute patent litigation against any entity (including a
94
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
95
+      or a Contribution incorporated within the Work constitutes direct
96
+      or contributory patent infringement, then any patent licenses
97
+      granted to You under this License for that Work shall terminate
98
+      as of the date such litigation is filed.
99
+
100
+   4. Redistribution. You may reproduce and distribute copies of the
101
+      Work or Derivative Works thereof in any medium, with or without
102
+      modifications, and in Source or Object form, provided that You
103
+      meet the following conditions:
104
+
105
+      (a) You must give any other recipients of the Work or
106
+          Derivative Works a copy of this License; and
107
+
108
+      (b) You must cause any modified files to carry prominent notices
109
+          stating that You changed the files; and
110
+
111
+      (c) You must retain, in the Source form of any Derivative Works
112
+          that You distribute, all copyright, patent, trademark, and
113
+          attribution notices from the Source form of the Work,
114
+          excluding those notices that do not pertain to any part of
115
+          the Derivative Works; and
116
+
117
+      (d) If the Work includes a "NOTICE" text file as part of its
118
+          distribution, then any Derivative Works that You distribute must
119
+          include a readable copy of the attribution notices contained
120
+          within such NOTICE file, excluding those notices that do not
121
+          pertain to any part of the Derivative Works, in at least one
122
+          of the following places: within a NOTICE text file distributed
123
+          as part of the Derivative Works; within the Source form or
124
+          documentation, if provided along with the Derivative Works; or,
125
+          within a display generated by the Derivative Works, if and
126
+          wherever such third-party notices normally appear. The contents
127
+          of the NOTICE file are for informational purposes only and
128
+          do not modify the License. You may add Your own attribution
129
+          notices within Derivative Works that You distribute, alongside
130
+          or as an addendum to the NOTICE text from the Work, provided
131
+          that such additional attribution notices cannot be construed
132
+          as modifying the License.
133
+
134
+      You may add Your own copyright statement to Your modifications and
135
+      may provide additional or different license terms and conditions
136
+      for use, reproduction, or distribution of Your modifications, or
137
+      for any such Derivative Works as a whole, provided Your use,
138
+      reproduction, and distribution of the Work otherwise complies with
139
+      the conditions stated in this License.
140
+
141
+   5. Submission of Contributions. Unless You explicitly state otherwise,
142
+      any Contribution intentionally submitted for inclusion in the Work
143
+      by You to the Licensor shall be under the terms and conditions of
144
+      this License, without any additional terms or conditions.
145
+      Notwithstanding the above, nothing herein shall supersede or modify
146
+      the terms of any separate license agreement you may have executed
147
+      with Licensor regarding such Contributions.
148
+
149
+   6. Trademarks. This License does not grant permission to use the trade
150
+      names, trademarks, service marks, or product names of the Licensor,
151
+      except as required for reasonable and customary use in describing the
152
+      origin of the Work and reproducing the content of the NOTICE file.
153
+
154
+   7. Disclaimer of Warranty. Unless required by applicable law or
155
+      agreed to in writing, Licensor provides the Work (and each
156
+      Contributor provides its Contributions) on an "AS IS" BASIS,
157
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
158
+      implied, including, without limitation, any warranties or conditions
159
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
160
+      PARTICULAR PURPOSE. You are solely responsible for determining the
161
+      appropriateness of using or redistributing the Work and assume any
162
+      risks associated with Your exercise of permissions under this License.
163
+
164
+   8. Limitation of Liability. In no event and under no legal theory,
165
+      whether in tort (including negligence), contract, or otherwise,
166
+      unless required by applicable law (such as deliberate and grossly
167
+      negligent acts) or agreed to in writing, shall any Contributor be
168
+      liable to You for damages, including any direct, indirect, special,
169
+      incidental, or consequential damages of any character arising as a
170
+      result of this License or out of the use or inability to use the
171
+      Work (including but not limited to damages for loss of goodwill,
172
+      work stoppage, computer failure or malfunction, or any and all
173
+      other commercial damages or losses), even if such Contributor
174
+      has been advised of the possibility of such damages.
175
+
176
+   9. Accepting Warranty or Additional Liability. While redistributing
177
+      the Work or Derivative Works thereof, You may choose to offer,
178
+      and charge a fee for, acceptance of support, warranty, indemnity,
179
+      or other liability obligations and/or rights consistent with this
180
+      License. However, in accepting such obligations, You may act only
181
+      on Your own behalf and on Your sole responsibility, not on behalf
182
+      of any other Contributor, and only if You agree to indemnify,
183
+      defend, and hold each Contributor harmless for any liability
184
+      incurred by, or claims asserted against, such Contributor by reason
185
+      of your accepting any such warranty or additional liability.
186
+
187
+   END OF TERMS AND CONDITIONS
188
+
189
+   APPENDIX: How to apply the Apache License to your work.
190
+
191
+      To apply the Apache License to your work, attach the following
192
+      boilerplate notice, with the fields enclosed by brackets "[]"
193
+      replaced with your own identifying information. (Don't include
194
+      the brackets!)  The text should be enclosed in the appropriate
195
+      comment syntax for the file format. We also recommend that a
196
+      file or class name and description of purpose be included on the
197
+      same "printed page" as the copyright notice for easier
198
+      identification within third-party archives.
199
+
200
+   Copyright [yyyy] [name of copyright owner]
201
+
202
+   Licensed under the Apache License, Version 2.0 (the "License");
203
+   you may not use this file except in compliance with the License.
204
+   You may obtain a copy of the License at
205
+
206
+       http://www.apache.org/licenses/LICENSE-2.0
207
+
208
+   Unless required by applicable law or agreed to in writing, software
209
+   distributed under the License is distributed on an "AS IS" BASIS,
210
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
211
+   See the License for the specific language governing permissions and
212
+   limitations under the License.
213
+
214
+-----------------------------------------------------------------------------
215
+Mozilla Public License, version 2.0
216
+
217
+1. Definitions
218
+
219
+1.1. “Contributor”
220
+
221
+     means each individual or legal entity that creates, contributes to the
222
+     creation of, or owns Covered Software.
223
+
224
+1.2. “Contributor Version”
225
+
226
+     means the combination of the Contributions of others (if any) used by a
227
+     Contributor and that particular Contributor’s Contribution.
228
+
229
+1.3. “Contribution”
230
+
231
+     means Covered Software of a particular Contributor.
232
+
233
+1.4. “Covered Software”
234
+
235
+     means Source Code Form to which the initial Contributor has attached the
236
+     notice in Exhibit A, the Executable Form of such Source Code Form, and
237
+     Modifications of such Source Code Form, in each case including portions
238
+     thereof.
239
+
240
+1.5. “Incompatible With Secondary Licenses”
241
+     means
242
+
243
+     a. that the initial Contributor has attached the notice described in
244
+        Exhibit B to the Covered Software; or
245
+
246
+     b. that the Covered Software was made available under the terms of version
247
+        1.1 or earlier of the License, but not also under the terms of a
248
+        Secondary License.
249
+
250
+1.6. “Executable Form”
251
+
252
+     means any form of the work other than Source Code Form.
253
+
254
+1.7. “Larger Work”
255
+
256
+     means a work that combines Covered Software with other material, in a separate
257
+     file or files, that is not Covered Software.
258
+
259
+1.8. “License”
260
+
261
+     means this document.
262
+
263
+1.9. “Licensable”
264
+
265
+     means having the right to grant, to the maximum extent possible, whether at the
266
+     time of the initial grant or subsequently, any and all of the rights conveyed by
267
+     this License.
268
+
269
+1.10. “Modifications”
270
+
271
+     means any of the following:
272
+
273
+     a. any file in Source Code Form that results from an addition to, deletion
274
+        from, or modification of the contents of Covered Software; or
275
+
276
+     b. any new file in Source Code Form that contains any Covered Software.
277
+
278
+1.11. “Patent Claims” of a Contributor
279
+
280
+      means any patent claim(s), including without limitation, method, process,
281
+      and apparatus claims, in any patent Licensable by such Contributor that
282
+      would be infringed, but for the grant of the License, by the making,
283
+      using, selling, offering for sale, having made, import, or transfer of
284
+      either its Contributions or its Contributor Version.
285
+
286
+1.12. “Secondary License”
287
+
288
+      means either the GNU General Public License, Version 2.0, the GNU Lesser
289
+      General Public License, Version 2.1, the GNU Affero General Public
290
+      License, Version 3.0, or any later versions of those licenses.
291
+
292
+1.13. “Source Code Form”
293
+
294
+      means the form of the work preferred for making modifications.
295
+
296
+1.14. “You” (or “Your”)
297
+
298
+      means an individual or a legal entity exercising rights under this
299
+      License. For legal entities, “You” includes any entity that controls, is
300
+      controlled by, or is under common control with You. For purposes of this
301
+      definition, “control” means (a) the power, direct or indirect, to cause
302
+      the direction or management of such entity, whether by contract or
303
+      otherwise, or (b) ownership of more than fifty percent (50%) of the
304
+      outstanding shares or beneficial ownership of such entity.
305
+
306
+
307
+2. License Grants and Conditions
308
+
309
+2.1. Grants
310
+
311
+     Each Contributor hereby grants You a world-wide, royalty-free,
312
+     non-exclusive license:
313
+
314
+     a. under intellectual property rights (other than patent or trademark)
315
+        Licensable by such Contributor to use, reproduce, make available,
316
+        modify, display, perform, distribute, and otherwise exploit its
317
+        Contributions, either on an unmodified basis, with Modifications, or as
318
+        part of a Larger Work; and
319
+
320
+     b. under Patent Claims of such Contributor to make, use, sell, offer for
321
+        sale, have made, import, and otherwise transfer either its Contributions
322
+        or its Contributor Version.
323
+
324
+2.2. Effective Date
325
+
326
+     The licenses granted in Section 2.1 with respect to any Contribution become
327
+     effective for each Contribution on the date the Contributor first distributes
328
+     such Contribution.
329
+
330
+2.3. Limitations on Grant Scope
331
+
332
+     The licenses granted in this Section 2 are the only rights granted under this
333
+     License. No additional rights or licenses will be implied from the distribution
334
+     or licensing of Covered Software under this License. Notwithstanding Section
335
+     2.1(b) above, no patent license is granted by a Contributor:
336
+
337
+     a. for any code that a Contributor has removed from Covered Software; or
338
+
339
+     b. for infringements caused by: (i) Your and any other third party’s
340
+        modifications of Covered Software, or (ii) the combination of its
341
+        Contributions with other software (except as part of its Contributor
342
+        Version); or
343
+
344
+     c. under Patent Claims infringed by Covered Software in the absence of its
345
+        Contributions.
346
+
347
+     This License does not grant any rights in the trademarks, service marks, or
348
+     logos of any Contributor (except as may be necessary to comply with the
349
+     notice requirements in Section 3.4).
350
+
351
+2.4. Subsequent Licenses
352
+
353
+     No Contributor makes additional grants as a result of Your choice to
354
+     distribute the Covered Software under a subsequent version of this License
355
+     (see Section 10.2) or under the terms of a Secondary License (if permitted
356
+     under the terms of Section 3.3).
357
+
358
+2.5. Representation
359
+
360
+     Each Contributor represents that the Contributor believes its Contributions
361
+     are its original creation(s) or it has sufficient rights to grant the
362
+     rights to its Contributions conveyed by this License.
363
+
364
+2.6. Fair Use
365
+
366
+     This License is not intended to limit any rights You have under applicable
367
+     copyright doctrines of fair use, fair dealing, or other equivalents.
368
+
369
+2.7. Conditions
370
+
371
+     Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
372
+     Section 2.1.
373
+
374
+
375
+3. Responsibilities
376
+
377
+3.1. Distribution of Source Form
378
+
379
+     All distribution of Covered Software in Source Code Form, including any
380
+     Modifications that You create or to which You contribute, must be under the
381
+     terms of this License. You must inform recipients that the Source Code Form
382
+     of the Covered Software is governed by the terms of this License, and how
383
+     they can obtain a copy of this License. You may not attempt to alter or
384
+     restrict the recipients’ rights in the Source Code Form.
385
+
386
+3.2. Distribution of Executable Form
387
+
388
+     If You distribute Covered Software in Executable Form then:
389
+
390
+     a. such Covered Software must also be made available in Source Code Form,
391
+        as described in Section 3.1, and You must inform recipients of the
392
+        Executable Form how they can obtain a copy of such Source Code Form by
393
+        reasonable means in a timely manner, at a charge no more than the cost
394
+        of distribution to the recipient; and
395
+
396
+     b. You may distribute such Executable Form under the terms of this License,
397
+        or sublicense it under different terms, provided that the license for
398
+        the Executable Form does not attempt to limit or alter the recipients’
399
+        rights in the Source Code Form under this License.
400
+
401
+3.3. Distribution of a Larger Work
402
+
403
+     You may create and distribute a Larger Work under terms of Your choice,
404
+     provided that You also comply with the requirements of this License for the
405
+     Covered Software. If the Larger Work is a combination of Covered Software
406
+     with a work governed by one or more Secondary Licenses, and the Covered
407
+     Software is not Incompatible With Secondary Licenses, this License permits
408
+     You to additionally distribute such Covered Software under the terms of
409
+     such Secondary License(s), so that the recipient of the Larger Work may, at
410
+     their option, further distribute the Covered Software under the terms of
411
+     either this License or such Secondary License(s).
412
+
413
+3.4. Notices
414
+
415
+     You may not remove or alter the substance of any license notices (including
416
+     copyright notices, patent notices, disclaimers of warranty, or limitations
417
+     of liability) contained within the Source Code Form of the Covered
418
+     Software, except that You may alter any license notices to the extent
419
+     required to remedy known factual inaccuracies.
420
+
421
+3.5. Application of Additional Terms
422
+
423
+     You may choose to offer, and to charge a fee for, warranty, support,
424
+     indemnity or liability obligations to one or more recipients of Covered
425
+     Software. However, You may do so only on Your own behalf, and not on behalf
426
+     of any Contributor. You must make it absolutely clear that any such
427
+     warranty, support, indemnity, or liability obligation is offered by You
428
+     alone, and You hereby agree to indemnify every Contributor for any
429
+     liability incurred by such Contributor as a result of warranty, support,
430
+     indemnity or liability terms You offer. You may include additional
431
+     disclaimers of warranty and limitations of liability specific to any
432
+     jurisdiction.
433
+
434
+4. Inability to Comply Due to Statute or Regulation
435
+
436
+   If it is impossible for You to comply with any of the terms of this License
437
+   with respect to some or all of the Covered Software due to statute, judicial
438
+   order, or regulation then You must: (a) comply with the terms of this License
439
+   to the maximum extent possible; and (b) describe the limitations and the code
440
+   they affect. Such description must be placed in a text file included with all
441
+   distributions of the Covered Software under this License. Except to the
442
+   extent prohibited by statute or regulation, such description must be
443
+   sufficiently detailed for a recipient of ordinary skill to be able to
444
+   understand it.
445
+
446
+5. Termination
447
+
448
+5.1. The rights granted under this License will terminate automatically if You
449
+     fail to comply with any of its terms. However, if You become compliant,
450
+     then the rights granted under this License from a particular Contributor
451
+     are reinstated (a) provisionally, unless and until such Contributor
452
+     explicitly and finally terminates Your grants, and (b) on an ongoing basis,
453
+     if such Contributor fails to notify You of the non-compliance by some
454
+     reasonable means prior to 60 days after You have come back into compliance.
455
+     Moreover, Your grants from a particular Contributor are reinstated on an
456
+     ongoing basis if such Contributor notifies You of the non-compliance by
457
+     some reasonable means, this is the first time You have received notice of
458
+     non-compliance with this License from such Contributor, and You become
459
+     compliant prior to 30 days after Your receipt of the notice.
460
+
461
+5.2. If You initiate litigation against any entity by asserting a patent
462
+     infringement claim (excluding declaratory judgment actions, counter-claims,
463
+     and cross-claims) alleging that a Contributor Version directly or
464
+     indirectly infringes any patent, then the rights granted to You by any and
465
+     all Contributors for the Covered Software under Section 2.1 of this License
466
+     shall terminate.
467
+
468
+5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
469
+     license agreements (excluding distributors and resellers) which have been
470
+     validly granted by You or Your distributors under this License prior to
471
+     termination shall survive termination.
472
+
473
+6. Disclaimer of Warranty
474
+
475
+   Covered Software is provided under this License on an “as is” basis, without
476
+   warranty of any kind, either expressed, implied, or statutory, including,
477
+   without limitation, warranties that the Covered Software is free of defects,
478
+   merchantable, fit for a particular purpose or non-infringing. The entire
479
+   risk as to the quality and performance of the Covered Software is with You.
480
+   Should any Covered Software prove defective in any respect, You (not any
481
+   Contributor) assume the cost of any necessary servicing, repair, or
482
+   correction. This disclaimer of warranty constitutes an essential part of this
483
+   License. No use of  any Covered Software is authorized under this License
484
+   except under this disclaimer.
485
+
486
+7. Limitation of Liability
487
+
488
+   Under no circumstances and under no legal theory, whether tort (including
489
+   negligence), contract, or otherwise, shall any Contributor, or anyone who
490
+   distributes Covered Software as permitted above, be liable to You for any
491
+   direct, indirect, special, incidental, or consequential damages of any
492
+   character including, without limitation, damages for lost profits, loss of
493
+   goodwill, work stoppage, computer failure or malfunction, or any and all
494
+   other commercial damages or losses, even if such party shall have been
495
+   informed of the possibility of such damages. This limitation of liability
496
+   shall not apply to liability for death or personal injury resulting from such
497
+   party’s negligence to the extent applicable law prohibits such limitation.
498
+   Some jurisdictions do not allow the exclusion or limitation of incidental or
499
+   consequential damages, so this exclusion and limitation may not apply to You.
500
+
501
+8. Litigation
502
+
503
+   Any litigation relating to this License may be brought only in the courts of
504
+   a jurisdiction where the defendant maintains its principal place of business
505
+   and such litigation shall be governed by laws of that jurisdiction, without
506
+   reference to its conflict-of-law provisions. Nothing in this Section shall
507
+   prevent a party’s ability to bring cross-claims or counter-claims.
508
+
509
+9. Miscellaneous
510
+
511
+   This License represents the complete agreement concerning the subject matter
512
+   hereof. If any provision of this License is held to be unenforceable, such
513
+   provision shall be reformed only to the extent necessary to make it
514
+   enforceable. Any law or regulation which provides that the language of a
515
+   contract shall be construed against the drafter shall not be used to construe
516
+   this License against a Contributor.
517
+
518
+
519
+10. Versions of the License
520
+
521
+10.1. New Versions
522
+
523
+      Mozilla Foundation is the license steward. Except as provided in Section
524
+      10.3, no one other than the license steward has the right to modify or
525
+      publish new versions of this License. Each version will be given a
526
+      distinguishing version number.
527
+
528
+10.2. Effect of New Versions
529
+
530
+      You may distribute the Covered Software under the terms of the version of
531
+      the License under which You originally received the Covered Software, or
532
+      under the terms of any subsequent version published by the license
533
+      steward.
534
+
535
+10.3. Modified Versions
536
+
537
+      If you create software not governed by this License, and you want to
538
+      create a new license for such software, you may create and use a modified
539
+      version of this License if you rename the license and remove any
540
+      references to the name of the license steward (except to note that such
541
+      modified license differs from this License).
542
+
543
+10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
544
+      If You choose to distribute Source Code Form that is Incompatible With
545
+      Secondary Licenses under the terms of this version of the License, the
546
+      notice described in Exhibit B of this License must be attached.
547
+
548
+Exhibit A - Source Code Form License Notice
549
+
550
+      This Source Code Form is subject to the
551
+      terms of the Mozilla Public License, v.
552
+      2.0. If a copy of the MPL was not
553
+      distributed with this file, You can
554
+      obtain one at
555
+      http://mozilla.org/MPL/2.0/.
556
+
557
+If it is not possible or desirable to put the notice in a particular file, then
558
+You may include the notice in a location (such as a LICENSE file in a relevant
559
+directory) where a recipient would be likely to look for such a notice.
560
+
561
+You may add additional accurate notices of copyright ownership.
562
+
563
+Exhibit B - “Incompatible With Secondary Licenses” Notice
564
+
565
+      This Source Code Form is “Incompatible
566
+      With Secondary Licenses”, as defined by
567
+      the Mozilla Public License, v. 2.0.
568
+

File diff suppressed because it is too large
+ 418 - 0
anyangWebAPP/node_modules/dompurify/README.md


File diff suppressed because it is too large
+ 1667 - 0
anyangWebAPP/node_modules/dompurify/dist/purify.cjs.js


File diff suppressed because it is too large
+ 1 - 0
anyangWebAPP/node_modules/dompurify/dist/purify.cjs.js.map


File diff suppressed because it is too large
+ 1665 - 0
anyangWebAPP/node_modules/dompurify/dist/purify.es.js


File diff suppressed because it is too large
+ 1 - 0
anyangWebAPP/node_modules/dompurify/dist/purify.es.js.map


File diff suppressed because it is too large
+ 1673 - 0
anyangWebAPP/node_modules/dompurify/dist/purify.js


File diff suppressed because it is too large
+ 1 - 0
anyangWebAPP/node_modules/dompurify/dist/purify.js.map


File diff suppressed because it is too large
+ 3 - 0
anyangWebAPP/node_modules/dompurify/dist/purify.min.js


File diff suppressed because it is too large
+ 1 - 0
anyangWebAPP/node_modules/dompurify/dist/purify.min.js.map


+ 127 - 0
anyangWebAPP/node_modules/dompurify/package.json

@@ -0,0 +1,127 @@
1
+{
2
+  "scripts": {
3
+    "lint": "xo src/*.js",
4
+    "format": "npm run format:js && npm run format:md",
5
+    "format:md": "prettier --write --parser markdown '**/*.md'",
6
+    "format:js": "prettier --write '{src,demos,scripts,test,website}/*.js'",
7
+    "commit-amend-build": "scripts/commit-amend-build.sh",
8
+    "prebuild": "rimraf dist/**",
9
+    "dev": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -w -c -o dist/purify.js",
10
+    "build": "cross-env run-p build:umd build:umd:min build:es build:cjs",
11
+    "build:umd": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f umd -o dist/purify.js",
12
+    "build:umd:min": "cross-env NODE_ENV=production BABEL_ENV=rollup rollup -c -f umd -o dist/purify.min.js",
13
+    "build:es": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f es -o dist/purify.es.js",
14
+    "build:cjs": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f cjs -o dist/purify.cjs.js",
15
+    "test:jsdom": "cross-env NODE_ENV=test BABEL_ENV=rollup node test/jsdom-node-runner --dot",
16
+    "test:karma": "cross-env NODE_ENV=test BABEL_ENV=rollup karma start test/karma.conf.js --log-level warn ",
17
+    "test:ci": "cross-env NODE_ENV=test BABEL_ENV=rollup npm run test:jsdom && npm run test:karma -- --log-level error --reporters dots --single-run --shouldTestOnBrowserStack=\"${TEST_BROWSERSTACK}\" --shouldProbeOnly=\"${TEST_PROBE_ONLY}\"",
18
+    "test": "cross-env NODE_ENV=test BABEL_ENV=rollup npm run lint &&  npm run test:jsdom && npm run test:karma -- --browsers Chrome"
19
+  },
20
+  "main": "dist/purify.cjs.js",
21
+  "module": "dist/purify.es.js",
22
+  "browser": "dist/purify.js",
23
+  "files": [
24
+    "dist"
25
+  ],
26
+  "pre-commit": [
27
+    "lint",
28
+    "build",
29
+    "commit-amend-build"
30
+  ],
31
+  "xo": {
32
+    "semicolon": true,
33
+    "space": 2,
34
+    "extends": [
35
+      "prettier"
36
+    ],
37
+    "plugins": [
38
+      "prettier"
39
+    ],
40
+    "rules": {
41
+      "import/no-useless-path-segments": 0,
42
+      "unicorn/prefer-optional-catch-binding": 0,
43
+      "unicorn/prefer-node-remove": 0,
44
+      "prettier/prettier": [
45
+        "error",
46
+        {
47
+          "trailingComma": "es5",
48
+          "singleQuote": true
49
+        }
50
+      ],
51
+      "camelcase": [
52
+        "error",
53
+        {
54
+          "properties": "never"
55
+        }
56
+      ]
57
+    },
58
+    "globals": [
59
+      "window",
60
+      "VERSION"
61
+    ]
62
+  },
63
+  "devDependencies": {
64
+    "@babel/core": "^7.17.8",
65
+    "@babel/preset-env": "^7.16.11",
66
+    "@rollup/plugin-babel": "^5.3.1",
67
+    "@rollup/plugin-node-resolve": "^13.1.3",
68
+    "@rollup/plugin-replace": "^4.0.0",
69
+    "@types/dompurify": "^2.3.3",
70
+    "@types/estree": "^1.0.0",
71
+    "cross-env": "^7.0.3",
72
+    "eslint-config-prettier": "^8.5.0",
73
+    "eslint-plugin-prettier": "^4.0.0",
74
+    "jquery": "^3.6.0",
75
+    "jsdom": "^20.0.0",
76
+    "karma": "^6.3.17",
77
+    "karma-browserstack-launcher": "^1.5.1",
78
+    "karma-chrome-launcher": "^3.1.0",
79
+    "karma-firefox-launcher": "^2.1.2",
80
+    "karma-qunit": "^4.1.2",
81
+    "karma-rollup-preprocessor": "^7.0.8",
82
+    "lodash.sample": "^4.2.1",
83
+    "minimist": "^1.2.6",
84
+    "npm-run-all": "^4.1.5",
85
+    "pre-commit": "^1.2.2",
86
+    "prettier": "^2.5.1",
87
+    "qunit": "^2.4.1",
88
+    "qunit-tap": "^1.5.0",
89
+    "rimraf": "^3.0.2",
90
+    "rollup": "^2.70.1",
91
+    "rollup-plugin-includepaths": "^0.2.3",
92
+    "rollup-plugin-terser": "^7.0.2",
93
+    "xo": "^0.54.1"
94
+  },
95
+  "resolutions": {
96
+    "natives": "1.1.6"
97
+  },
98
+  "name": "dompurify",
99
+  "description": "DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else using Blink or WebKit). DOMPurify is written by security people who have vast background in web attacks and XSS. Fear not.",
100
+  "version": "3.0.6",
101
+  "directories": {
102
+    "test": "test"
103
+  },
104
+  "repository": {
105
+    "type": "git",
106
+    "url": "git://github.com/cure53/DOMPurify.git"
107
+  },
108
+  "keywords": [
109
+    "dom",
110
+    "xss",
111
+    "html",
112
+    "svg",
113
+    "mathml",
114
+    "security",
115
+    "secure",
116
+    "sanitizer",
117
+    "sanitize",
118
+    "filter",
119
+    "purify"
120
+  ],
121
+  "author": "Dr.-Ing. Mario Heiderich, Cure53 <mario@cure53.de> (https://cure53.de/)",
122
+  "license": "(MPL-2.0 OR Apache-2.0)",
123
+  "bugs": {
124
+    "url": "https://github.com/cure53/DOMPurify/issues"
125
+  },
126
+  "homepage": "https://github.com/cure53/DOMPurify"
127
+}

+ 24 - 8
anyangWebAPP/package-lock.json

@@ -1,11 +1,27 @@
1 1
 {
2
-  "requires": true,
3
-  "lockfileVersion": 1,
4
-  "dependencies": {
5
-    "crypto-js": {
6
-      "version": "4.1.1",
7
-      "resolved": "https://registry.nlark.com/crypto-js/download/crypto-js-4.1.1.tgz",
8
-      "integrity": "sha1-nkhbzwNSEEG9hYRHhrg/t2GXNs8="
2
+    "name": "底部分割线",
3
+    "version": "0.0.1",
4
+    "lockfileVersion": 2,
5
+    "requires": true,
6
+    "packages": {
7
+        "": {
8
+            "name": "底部分割线",
9
+            "version": "0.0.1",
10
+            "dependencies": {
11
+                "dompurify": "^3.0.6"
12
+            }
13
+        },
14
+        "node_modules/dompurify": {
15
+            "version": "3.0.6",
16
+            "resolved": "https://registry.npmmirror.com/dompurify/-/dompurify-3.0.6.tgz",
17
+            "integrity": "sha512-ilkD8YEnnGh1zJ240uJsW7AzE+2qpbOUYjacomn3AvJ6J4JhKGSZ2nh4wUIXPZrEPppaCLx5jFe8T89Rk8tQ7w=="
18
+        }
19
+    },
20
+    "dependencies": {
21
+        "dompurify": {
22
+            "version": "3.0.6",
23
+            "resolved": "https://registry.npmmirror.com/dompurify/-/dompurify-3.0.6.tgz",
24
+            "integrity": "sha512-ilkD8YEnnGh1zJ240uJsW7AzE+2qpbOUYjacomn3AvJ6J4JhKGSZ2nh4wUIXPZrEPppaCLx5jFe8T89Rk8tQ7w=="
25
+        }
9 26
     }
10
-  }
11 27
 }

+ 5 - 2
anyangWebAPP/package.json

@@ -5,5 +5,8 @@
5 5
     "description": "底部分割线,虽然不复杂但是每次都重写好麻烦,封装出来下次直接用吧",
6 6
     "keywords": [
7 7
         "底部分割线"
8
-    ]
9
-}
8
+    ],
9
+    "dependencies": {
10
+        "dompurify": "^3.0.6"
11
+    }
12
+}

+ 28 - 16
anyangWebAPP/pages/login/login.vue

@@ -23,9 +23,14 @@
23 23
 	let _this;
24 24
 	import wInput from '../../components/watch-login/watch-input.vue' //input
25 25
 	import wButton from '../../components/watch-login/watch-button.vue' //button
26
-	import CryptoJS from '../../node_modules/crypto-js/crypto-js.js'
26
+	// import CryptoJS from '../../node_modules/crypto-js/crypto-js.js'
27 27
 	import md5 from '../../node_modules/md5/md5.js'
28
-
28
+	import DOMPurify from 'dompurify'
29
+	const sm2 = require('sm-crypto').sm2
30
+	const cipherMode = 0 // 1 - C1C3C2,0 - C1C2C3,默认为1
31
+	const publicKey =
32
+		"042DBA45E7B03394F603CADAFCDDEC854D3E01A4E9C52CD799B85B1A14BDB970137AE58BA553D79F058604DC1CD4B77DE5408BA3308E767584100C2B663510C819"
33
+	const privateKey = "BF1F907B4E0487F798DC80AFD7BC2A6201E8514233002272EA3BE2FC6F797843"
29 34
 
30 35
 	export default {
31 36
 		data() {
@@ -75,12 +80,15 @@
75 80
 				this.isVerification = true
76 81
 				console.log(this.passData)
77 82
 				console.log(this.encryptPassWord(this.passData).toString())
83
+				const newpassWord = this.encryptPassWord(this.passData).toString()
78 84
 				const params = {
79 85
 					"usercode": this.phoneData,
80
-					"Password": this.encryptPassWord(this.passData).toString(),
86
+					"Password": sm2.doEncrypt(newpassWord, publicKey, 0),
81 87
 					"LoginTime": this.$mHelper.CurentTime(),
82 88
 				}
89
+				console.log(params)
83 90
 				this.$http.post("/Login/SendCode", params).then((response) => {
91
+					console.log(response)
84 92
 					if (response.state.toLowerCase() === 'success') {
85 93
 						this.isVerification = false
86 94
 						uni.showModal({
@@ -120,14 +128,15 @@
120 128
 					return;
121 129
 				}
122 130
 				this.isRotate = true
123
-
131
+				const newpassWord = this.encryptPassWord(this.passData).toString()
124 132
 				const params = {
125 133
 					"username": this.phoneData,
126
-					"password": this.encryptPassWord(this.passData).toString(),
134
+					"password": sm2.doEncrypt(newpassWord, publicKey, 0),
127 135
 					"Code": this.verificationData,
128 136
 					"LoginTime": this.$mHelper.CurentTime(),
129 137
 				}
130
-
138
+				console.log(newpassWord)
139
+				console.log(params)
131 140
 				this.$http.post("/Login/login", params).then((response) => {
132 141
 
133 142
 					if (response.state.toLowerCase() === 'success') {
@@ -160,8 +169,8 @@
160 169
 							uni.setStorageSync('userName', data.user.F_UserName)
161 170
 							uni.setStorageSync('userCode', data.user.F_UserCode)
162 171
 							const code = uni.getStorageSync("roleCode");
163
-							if (code === "ZXLD"||code === "MTDD"||code === "WLDW"||code === "EJWLDW") {
164
-							// if (code === "ZXLD"||code === "MTDD"||code === "WLDW"||code === "EJWLDW" || code === 'GLY') {
172
+							// if (code === "ZXLD"||code === "MTDD"||code === "WLDW"||code === "EJWLDW") {
173
+							if (code === "ZXLD"||code === "MTDD"||code === "WLDW"||code === "EJWLDW" || code === 'GLY') {
165 174
 								uni.switchTab({
166 175
 									url: '/pages/myTask/myTask'
167 176
 								});
@@ -178,14 +187,17 @@
178 187
 			},
179 188
 			//密码加密
180 189
 			encryptPassWord(passData) {
181
-				const currenttime = this.$mHelper.CurentTime();
182
-				const datatime = currenttime.split(' ')[1].split(':').join('')
183
-				const key = CryptoJS.enc.Utf8.parse(")O[9d]6,YF}+efcaj{+8>Z'e9M" + datatime);
184
-				const gl_psw = CryptoJS.enc.Utf8.parse(md5.hex_md5(this.passData));
185
-				const encrypted = CryptoJS.AES.encrypt(gl_psw, key, {
186
-					mode: CryptoJS.mode.ECB,
187
-					padding: CryptoJS.pad.Pkcs7
188
-				});
190
+			
191
+				
192
+				// const currenttime = this.$mHelper.CurentTime();
193
+				// const datatime = currenttime.split(' ')[1].split(':').join('')
194
+				// const key = CryptoJS.enc.Utf8.parse(")O[9d]6,YF}+efcaj{+8>Z'e9M" + datatime);
195
+				// const gl_psw = CryptoJS.enc.Utf8.parse(md5.hex_md5(this.passData));
196
+				// const encrypted = CryptoJS.AES.encrypt(gl_psw, key, {
197
+				// 	mode: CryptoJS.mode.ECB,
198
+				// 	padding: CryptoJS.pad.Pkcs7
199
+				// });
200
+				const encrypted = md5.hex_md5(passData)
189 201
 				return encrypted
190 202
 			}
191 203
 

+ 1 - 1
anyangWebAPP/unpackage/cache/apk/apkurl

@@ -1 +1 @@
1
-https://ide.dcloud.net.cn/build/download/7ee305a0-162d-11ee-a96c-45e6c5cd11bd
1
+https://ide.dcloud.net.cn/build/download/7b9f3e70-9807-11ee-963c-b7664db9b742

File diff suppressed because it is too large
+ 1 - 1
anyangWebAPP/unpackage/cache/apk/cmManifestCache.json


File diff suppressed because it is too large
+ 1 - 1
anyangWebAPP/unpackage/dist/build/app-plus/app-config-service.js


File diff suppressed because it is too large
+ 4 - 31
anyangWebAPP/unpackage/dist/build/app-plus/app-service.js


File diff suppressed because it is too large
+ 1 - 1
anyangWebAPP/unpackage/dist/build/app-plus/app-view.js


File diff suppressed because it is too large
+ 1 - 1
anyangWebAPP/unpackage/dist/build/app-plus/manifest.json


File diff suppressed because it is too large
+ 1 - 1
anyangWebAPP/unpackage/dist/build/app-plus/view.css


File diff suppressed because it is too large
+ 1 - 1
anyangWebAPP/unpackage/dist/build/app-plus/view.umd.min.js


File diff suppressed because it is too large
+ 1 - 1
anyangWebAPP/unpackage/dist/dev/app-plus/__uniapppicker.js


File diff suppressed because it is too large
+ 2 - 2
anyangWebAPP/unpackage/dist/dev/app-plus/app-config-service.js


File diff suppressed because it is too large
+ 14886 - 37209
anyangWebAPP/unpackage/dist/dev/app-plus/app-service.js


File diff suppressed because it is too large
+ 5671 - 3872
anyangWebAPP/unpackage/dist/dev/app-plus/app-view.js


File diff suppressed because it is too large
+ 1 - 1
anyangWebAPP/unpackage/dist/dev/app-plus/manifest.json


File diff suppressed because it is too large
+ 1 - 1
anyangWebAPP/unpackage/dist/dev/app-plus/view.css


File diff suppressed because it is too large
+ 2 - 2
anyangWebAPP/unpackage/dist/dev/app-plus/view.umd.min.js