收藏
回答

打开小程序开卡组件提示:该会员卡未设置会员权益,请告知商家设置会员权益后再试?

调用开卡组件代码:

创建会员卡数据

{
    "card": {
        "card_type": "MEMBER_CARD",
        "member_card": {
            "background_pic_url": "http://mmbiz.qpic.cn/sz_mmbiz_jpg/Wiaza9OFKP7EhvGvSUWWg7Lfbk7DoX0JER5IyjVkpygAeCibvlbia3hxSFI73OoxdA7gic0oCK29hwicUUNPSlCbsTA/0?from=appmsg",
            "base_info": {
                "logo_url": "http://mmbiz.qpic.cn/sz_mmbiz_jpg/Wiaza9OFKP7EhvGvSUWWg7Lfbk7DoX0JEAOyPHichWxjtTq1KbdUfmBF7jLVgrUj929V2NNc3icDicrtTaC4SQIDvg/0?from=appmsg",
                "brand_name": "恒宣",
                "code_type": "CODE_TYPE_QRCODE",
                "title": "会员卡",
                "color": "Color010",
                "notice": "使用提醒",
                "description": "使用说明",
                "sku": {
                    "quantity": 100000000
                },
                "date_info": {
                    "type": "DATE_TYPE_PERMANENT"
                },
                "use_custom_code": false,
                "custom_url_name": "立即使用",
                "custom_url": "/pages/home/index",
                "custom_app_brand_user_name": "11111111@app",
                "custom_app_brand_pass": "/pages/home/index",
                "custom_url_sub_title": "立即使用"
            },
            "supply_bonus": true,
            "supply_balance": false,
            "prerogative": "用卡可享受1折优惠",
            "auto_activate": false,
            "wx_activate": true,
            "wx_activate_after_submit": true,
            "wx_activate_after_submit_url": "/pages/home/index",
            "activate_app_brand_user_name": "11111111@app",
            "activate_app_brand_pass": "/pages/home/index",
            "bonus_rule": {
                "cost_money_unit": 1,
                "increase_bonus": 1,
                "max_increase_bonus": 1000,
                "init_increase_bonus": 0,
                "cost_bonus_unit": 100,
                "reduce_money": 1,
                "least_money_to_use_bonus": 1,
                "max_reduce_bonus": 100
            },
            "discount": 10
        }
    }
}

接口返回会员卡信息

{
    "errcode": 0,
    "errmsg": "ok",
    "card": {
        "card_type": "MEMBER_CARD",
        "member_card": {
            "base_info": {
                "id": "111111111",
                "logo_url": "http:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/Wiaza9OFKP7EhvGvSUWWg7Lfbk7DoX0JEAOyPHichWxjtTq1KbdUfmBF7jLVgrUj929V2NNc3icDicrtTaC4SQIDvg\/0?from=appmsg",
                "code_type": "CODE_TYPE_QRCODE",
                "brand_name": "恒宣",
                "title": "会员卡",
                "date_info": {
                    "type": "DATE_TYPE_PERMANENT"
                },
                "color": "#63b359",
                "notice": "使用提醒",
                "description": "使用说明",
                "location_id_list": [

                ],
                "use_custom_code": false,
                "status": "CARD_STATUS_VERIFY_OK",
                "sku": {
                    "quantity": 100000000,
                    "total_quantity": 100000000
                },
                "create_time": 1742986610,
                "update_time": 1742986611,
                "custom_url_name": "立即使用",
                "custom_url": "\/pages\/home\/index",
                "custom_url_sub_title": "立即使用",
                "custom_app_brand_user_name": "1111111111@app",
                "custom_app_brand_pass": "\/pages\/home\/index",
                "area_code_list": [

                ]
            },
            "supply_bonus": true,
            "supply_balance": false,
            "prerogative": "用卡可享受1折优惠",
            "activate_app_brand_user_name": "1111111111@app",
            "activate_app_brand_pass": "\/pages\/home\/index",
            "discount": 10,
            "auto_activate": false,
            "wx_activate": true,
            "bonus_rule": {
                "cost_money_unit": 1,
                "increase_bonus": 1,
                "max_increase_bonus": 1000,
                "init_increase_bonus": 0,
                "cost_bonus_unit": 100,
                "reduce_money": 1,
                "least_money_to_use_bonus": 1,
                "max_reduce_bonus": 100
            },
            "background_pic_url": "http:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/Wiaza9OFKP7EhvGvSUWWg7Lfbk7DoX0JER5IyjVkpygAeCibvlbia3hxSFI73OoxdA7gic0oCK29hwicUUNPSlCbsTA\/0?from=appmsg",
            "wx_activate_after_submit": true,
            "wx_activate_after_submit_url": "\/pages\/home\/index",
            "advanced_info": {
                "time_limit": [
                ],
                "text_image_list": [
                ],
                "business_service": [
                ],
                "consume_share_card_list": [
                ],
                "share_friends": false
            }
        }
    }
}
回答关注问题邀请回答
收藏

1 个回答

  • 刘牧遥
    刘牧遥
    2025-03-28

    同问,我也遇到了

    2025-03-28
    有用
    回复 5
    • Mr.L
      Mr.L
      2025-03-31
      检查你的参数解析正确没有
      2025-03-31
      回复
    • 刘牧遥
      刘牧遥
      2025-03-31回复Mr.L
      你的可以了吗
      2025-03-31
      回复
    • 刘牧遥
      刘牧遥
      2025-03-31回复Mr.L
      参数解析的问题指的是调用开卡组件还是创建会员卡数据呀
      2025-03-31
      回复
    • Mr.L
      Mr.L
      2025-03-31回复刘牧遥
      开卡组件的参数
      2025-03-31
      回复
    • 刘牧遥
      刘牧遥
      2025-03-31回复Mr.L
      解决了,谢谢
      2025-03-31
      回复
登录 后发表内容