819527061@qq.com
2024-04-11 3c38598df86e697268b14865e68159d6ba989285
src/components/page/IndexXTYH.vue
@@ -385,13 +385,12 @@
      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){