| | |
| | | if(this.type == 0 ){ |
| | | //微信,获取code |
| | | if(this.code==null||this.code==""){ |
| | | // var url = encodeURIComponent("http://hesuancj.cn/#/index2?code2="+this.code2); |
| | | var url = encodeURIComponent("http://hesuancj.cn/#/index2?code2="+this.code2); |
| | | // window.location.href = `http://192.168.0.8:8082/#/Index2?code=${encodeURIComponent('123')}&state=STATE?code2=${encodeURIComponent(this.code2)}` |
| | | // window.location.href =url; |
| | | window.location.href ="https://open.weixin.qq.com/connect/oauth2/authorize?" + |
| | | "appid=wx46e756aed958f895&redirect_uri="+url+"&response_type=code" + |
| | | "&scope=snsapi_userinfo&state=STATE#wechat_redirect"; |
| | | "&scope=SCOPE&state=STATE#wechat_redirect"; |
| | | }else{ |
| | | this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/api/getOpenId', {id:this.outParkId,code:this.code}, res => { |
| | | if(res.code === 0){ |