期望實現(xiàn)的功能微信卡券領(lǐng)取到卡包之后,點立即兌換按鈕跳轉(zhuǎn)到小程序
這是官方文檔的說明:
卡券內(nèi)跳轉(zhuǎn)小程序場景介紹商戶創(chuàng)建卡券時可以將卡、券內(nèi)的服務(wù)入口設(shè)置進入小程序服務(wù)。
步驟1.開發(fā)者須將小程序綁定在公眾號下,綁定說明請見綁定公眾號與小程序
2.創(chuàng)建卡券,并將卡內(nèi)的cell設(shè)置小程序?qū)?yīng)的path;
3.處理跳轉(zhuǎn)小程序時獲取到的信息;
custom_app_brand_user_name 自定義使用入口跳轉(zhuǎn)小程序的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": "更多優(yōu)惠",
"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條經(jīng)驗 獲得超7個贊
API/cardPage 就寫小程序路徑就可以 "pages/home/index"
custom_url --跳轉(zhuǎn)到小程序時可以不填寫此字段,url和小程序二選一
- 1 回答
- 1 關(guān)注
- 3247 瀏覽
添加回答
舉報
0/150
提交
取消