为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

PHP
白衣染霜花 2019-03-06 13:08:19
期望实现的功能微信卡券领取到卡包之后,点立即兑换按钮跳转到小程序 这是官方文档的说明: 卡券内跳转小程序场景介绍商户创建卡券时可以将卡、券内的服务入口设置进入小程序服务。 步骤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是怎么传的
查看完整描述

1 回答

?
LEATH

TA贡献1936条经验 获得超6个赞

API/cardPage 就写小程序路径就可以 "pages/home/index"
custom_url --跳转到小程序时可以不填写此字段,url和小程序二选一

查看完整回答
反对 回复 2019-03-18
  • qq_慕勒0424562
    qq_慕勒0424562
    请问 条件:小程序发布至测试 我添加会员卡至卡包中后 点击 自定义 菜单栏跳入小程序 custom_url_name = "我的礼品卡", custom_url = "giftCard/myGiftCardList/myGiftCardList", custom_app_brand_user_name = user_name, custom_app_brand_pass = "giftCard/myGiftCardList/myGiftCardList", 提示 "打开失败 缺少ID"
  • 1 回答
  • 1 关注
  • 3099 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信