Commit f6710433db674212c822faf9a1d134270490379d
1 parent
c0489310
静态码 输入车牌页面 微信授权
Showing
1 changed file
with
6 additions
and
0 deletions
src/components/plateNumber.vue
... | ... | @@ -342,6 +342,12 @@ export default { |
342 | 342 | } |
343 | 343 | }, |
344 | 344 | methods: { |
345 | + getUrlParam(name) { | |
346 | + var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); | |
347 | + var r = window.location.search.substr(1).match(reg) | |
348 | + if (r != null) return unescape(r[2]) | |
349 | + return null | |
350 | + }, | |
345 | 351 | // chooseColor (index){ // 颜色选择 |
346 | 352 | // this.currentColor = index |
347 | 353 | // switch (this.currentColor) { | ... | ... |