微信卡券,在卡包中跳转到小程序的字段怎么填写

期望实现的功能微信卡券领取到卡包之后,点立即兑换按钮跳转到小程序

这是官方文档的说明:

卡券内跳转小程序
场景介绍
商户创建卡券时可以将卡、券内的服务入口设置进入小程序服务。

步骤
1.开发者须将小程序绑定在公众号下,绑定说明请见绑定公众号与小程序

2.创建卡券,并将卡内的cell设置小程序对应的path;

3.处理跳转小程序时获取到的信息;

  • custom_app_brand_user_name 自定义使用入口跳转小程序的user_name,格式为原始id+@app gh_86a091e50ad4@app
  • custom_app_brand_pass 自定义使用入口小程序页面地址 API/cardPage
  • center_app_brand_user_name 小程序的user_name gh_86a091e50ad4@app
  • center_app_brand_pass 自定义居中使用入口小程序页面地址 API/cardPage
{ "card": {
     "card_type": "MEMBER_CARD",
     "member_card": {
         "base_info": {
             "custom_url_name": "立即使用",
             "custom_url": "http://www.qq.com",
             "custom_app_brand_user_name": "gh_86a091e50ad4@app",
             "custom_app_brand_pass":"API/cardPage",
             "custom_url_sub_title": "6个汉字tips",
             "promotion_url_name": "更多优惠",
             "promotion_url": "http://www.qq.com",
             "promotion_app_brand_user_name": "gh_86a091e50ad4@app",
             "promotion_app_brand_pass":"API/cardPage"
        }
         } 
}

请问这几个字段是怎么使用的

"custom_url": "http://www.qq.com",
"custom_app_brand_pass":"API/cardPage",

custom_url这个字段不知道有什么用,是填的什么地址
custom_app_brand_pass API/cardPage, API是什么
文档上写的 “page/index/index” 直接写的这个提示缺少id,id是怎么传的

白衣染霜花
浏览 3101回答 1
1回答

LEATH

API/cardPage 就写小程序路径就可以 "pages/home/index"custom_url --跳转到小程序时可以不填写此字段,url和小程序二选一
打开App,查看更多内容
随时随地看视频慕课网APP