|
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 | | - <script src="//{business-id}.rivers.s-captcha-r1.com/v1/static/web.js"></script> |
| 6 | + <!-- 百川验证码 --> |
| 7 | + <!-- <script src="//{business-id}.rivers.s-captcha-r1.com/v1/static/web.js"></script> --> |
| 8 | + <!-- safepoint 验证码 --> |
| 9 | + <script src="//{business-id}.safepoint.s-captcha-r1.com/v1/static/web.js"></script> |
7 | 10 | <style> |
8 | 11 | /* 整体页面样式 */ |
9 | 12 | body { |
|
90 | 93 | <script> |
91 | 94 | var captcha1 = new SCaptcha({ |
92 | 95 | "businessid": '{business-id}', |
93 | | - "server": "//{business-id}.rivers.s-captcha-r1.com" |
94 | 96 | }) |
95 | 97 | captcha1.render('#s-captcha', (action, data) => { |
96 | 98 | console.log(action, data) |
97 | 99 | }) |
98 | 100 |
|
99 | 101 | new SCaptcha({ |
100 | 102 | "businessid": '{business-id}', |
101 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
102 | 103 | "position": "left", |
103 | 104 | }).render('#s-captcha-left', (action, data) => { |
104 | 105 | console.log(action, data) |
105 | 106 | }) |
106 | 107 | new SCaptcha({ |
107 | 108 | "businessid": '{business-id}', |
108 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
109 | 109 | "position": "right", |
110 | 110 | }).render('#s-captcha-right', (action, data) => { |
111 | 111 | console.log(action, data) |
112 | 112 | }) |
113 | 113 | new SCaptcha({ |
114 | 114 | "businessid": '{business-id}', |
115 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
116 | 115 | "position": "up", |
117 | 116 | }).render('#s-captcha-up', (action, data) => { |
118 | 117 | console.log(action, data) |
119 | 118 | }) |
120 | 119 | new SCaptcha({ |
121 | 120 | "businessid": '{business-id}', |
122 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
123 | 121 | "position": "down", |
124 | 122 | }).render('#s-captcha-down', (action, data) => { |
125 | 123 | console.log(action, data) |
126 | 124 | }) |
127 | 125 | new SCaptcha({ |
128 | 126 | "businessid": '{business-id}', |
129 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
130 | 127 | "position": "center", |
131 | 128 | }).render('#s-captcha-center', (action, data) => { |
132 | 129 | console.log(action, data) |
133 | 130 | }) |
134 | 131 | new SCaptcha({ |
135 | 132 | "businessid": '{business-id}', |
136 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
137 | 133 | "position": "mask", |
138 | 134 | }).render('#s-captcha-mask', (action, data) => { |
139 | 135 | console.log(action, data) |
140 | 136 | }) |
141 | 137 |
|
142 | 138 | var captcha2 = new SCaptcha({ |
143 | 139 | "businessid": '{business-id}', |
144 | | - "server": "//{business-id}.rivers.s-captcha-r1.com" |
145 | 140 | }) |
146 | 141 | captcha2.bind('#s-captcha-bind', (action, data) => { |
147 | 142 | console.log(action, data) |
|
153 | 148 |
|
154 | 149 | var captcha2_left = new SCaptcha({ |
155 | 150 | "businessid": '{business-id}', |
156 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
157 | 151 | "position": "left" |
158 | 152 | }) |
159 | 153 | captcha2_left.bind('#s-captcha-bind-left', (action, data) => { |
|
165 | 159 |
|
166 | 160 | var captcha2_right = new SCaptcha({ |
167 | 161 | "businessid": '{business-id}', |
168 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
169 | 162 | "position": "right" |
170 | 163 | }) |
171 | 164 | captcha2_right.bind('#s-captcha-bind-right', (action, data) => { |
|
177 | 170 |
|
178 | 171 | var captcha2_up = new SCaptcha({ |
179 | 172 | "businessid": '{business-id}', |
180 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
181 | 173 | "position": "up" |
182 | 174 | }) |
183 | 175 | captcha2_up.bind('#s-captcha-bind-up', (action, data) => { |
|
190 | 182 |
|
191 | 183 | var captcha2_down = new SCaptcha({ |
192 | 184 | "businessid": '{business-id}', |
193 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
194 | 185 | "position": "down" |
195 | 186 | }) |
196 | 187 | captcha2_down.bind('#s-captcha-bind-down', (action, data) => { |
|
202 | 193 |
|
203 | 194 | var captcha2_center = new SCaptcha({ |
204 | 195 | "businessid": '{business-id}', |
205 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
206 | 196 | "position": "center" |
207 | 197 | }) |
208 | 198 | captcha2_center.bind('#s-captcha-bind-center', (action, data) => { |
|
214 | 204 |
|
215 | 205 | var captcha2_mask = new SCaptcha({ |
216 | 206 | "businessid": '{business-id}', |
217 | | - "server": "//{business-id}.rivers.s-captcha-r1.com", |
218 | 207 | "position": "mask" |
219 | 208 | }) |
220 | 209 | captcha2_mask.bind('#s-captcha-bind-mask', (action, data) => { |
|
226 | 215 |
|
227 | 216 | var captcha3 = new SCaptcha({ |
228 | 217 | "businessid": '{business-id}', |
229 | | - "server": "//{business-id}.rivers.s-captcha-r1.com" |
230 | 218 | }) |
231 | 219 | captcha3.bind('#s-captcha-bind-reset', (action, data) => { |
232 | 220 | console.log(action, data) |
|
0 commit comments