| | |
| | | } |
| | | clearTimeout(this.timer); |
| | | this.urlCode = this.getUrlCode("code"); |
| | | console.log(this.urlCode); |
| | | this.init(); |
| | | }, |
| | | methods: { |
| | |
| | | * **/ |
| | | init() { |
| | | this.openId = localStorage.sib_wx_openId; |
| | | console.log(this.openId) |
| | | this.showContent = false; |
| | | // 模拟数据本地调试 |
| | | // this.openId = "oJbj21YwUatdNaYf3iEPwwGtWuUg"; |
| | |
| | | (!this.openId && !this.urlCode) || |
| | | (typeof this.openId == "undefined" && !this.urlCode) |
| | | ) { |
| | | console.log(111); |
| | | let url = location.host; |
| | | // url = "t.finlean.com"; |
| | | var str = encodeURIComponent(`https://${url}/sib_wx_scoref/#/loginByWx`); |
| | | var str = encodeURIComponent(`https://${url}/sib_wx_scorem/#/loginByWx`); |
| | | var fn = new GoWeChat("wx594ab33e0466eccf", str); |
| | | fn.gocontract(); |
| | | } else { |