微信公众号授权

# 接口文档-获取公众号授权 ## 说明 ``` 页面如果判断为是微信浏览器了.同时浏览器地址上没有wxcode这个参数的话 就请求一下接口,接口返回个url地址跳转,然后还会跳回来 在浏览器参数中带着wxcode这个参数 将这个参数存下来, ``` ### 请求参数 | 参数 | 说明 | 类型 | 备注 | 是否必填 | | ------- | -------- | ------ | ------------------- | -------- | | _handle | 处理类 | string | 固定值: GoodsCarPage| 是 | | _method | 处理方法 | string | 固定值: WechatAuth | 是 | | url | 微信回调跳转地址 | string | | 是 | #### 请求地址 ``` 域名/api/index/ ``` ##### 返回值 如果code=1就跳转data里的地址 ```json {"code":1, "msg":"", "data":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6919929cb4481113&redirect_uri=http%3a%2f%2fpay.0wanwan.com%2fapi%2fpay%2fJSAPI.aspx&response_type=code&scope=snsapi_base&state=http%3a%2f%2fvip.0wanwan.com"} ```