接口地址如下
[获取达人橱窗授权链接]https://developers.weixin.qq.com/doc/channels/API/leagueheadsupplier/getauth.html)
注: 本方法只适用小程序端,目前使用auth_url 参数跳转到视频号助手PC端没有任何反应!
使用方式
//后台调用接口返回参数
{
"errcode": 0,
"errmsg": "ok",
"auth_info": {
"auth_url": "https://channels.weixin.qq.com/miniprogram/live-commerce/auth?authkey=0_1234",
"auth_wxa_username": "gh_bebad552f050", //跳转小程序原始ID
"auth_wxa_appid": "wx2cea70df4257bba8", // 跳转小程序appid
"auth_wxa_path": "/pages/partner/auth?scene=thirdapp&authkey=0_1234" //跳转小程序路径
}
}
//前台小程序跳转
<navigator
hover-class="navigator-hover"
target="miniProgram"
open-type="navigate"
:app-id="auth_wxa_appid"
:path="auth_wxa_path">
跳转到授权页
</navigator>
//这样就可以了