简要描述:

  • pc端/app端 获取会员余额设置接口,余额充值开关、余额提现开关、余额转让开关、余额提现到微信开关、余额提现到支付宝开关,包含会员余额值。

请求action:

GET/finance.balance.index

正确时返回:

{
    "result": 1,
    "msg": "xxx",
    "data": {
        "balance_button": [
            {
                "title": "充值",
                "url": "xxxx.xx.com",
				"page_template": "store_oil_station"
            }
        ],
        "recharge_activity": {
            "activity": [
                {
                    "enough": "100",
                    "give": "20"
                },
                {
                    "enough": "50",
                    "give": "10"
                }
            ],
            "type": "1"
        },
        "other": {
            "love": {
                "title": "爱心值",
                "url": "xx.xxx.com"
            }
        },
        "balance_log": [
            {
                "type": 2,
                "created_at": "2020-10-14 17:24:47",
                "new_money": "974413.60",
                "change_money": "-200.00",
                "service_type": 2,
                "service_type_name": "余额消费",
                "type_name": "支出",
                "transfer_member_id": "",
                "transfer_member_name": ""
            },
            {
                "type": 2,
                "created_at": "2020-10-14 17:21:02",
                "new_money": "974613.60",
                "change_money": "-480.00",
                "service_type": 2,
                "service_type_name": "余额消费",
                "type_name": "支出",
                "transfer_member_id": "",
                "transfer_member_name": ""
            },
            {
                "type": 2,
                "created_at": "2020-10-14 15:28:11",
                "new_money": "975093.60",
                "change_money": "-160.00",
                "service_type": 2,
                "service_type_name": "余额消费",
                "type_name": "支出",
                "transfer_member_id": "",
                "transfer_member_name": ""
            }
        ],
        "balance": "24.00"
    }
}

balance_button[]返回参数:

参数名 类型 说明
title string 名称
url string 跳转地址
page_template string 页面模板

recharge_activity.activity返回参数:

参数名 类型 说明
enough float 满多少
give float 减多少

recharge_activity.type返回参数:

参数名 类型 说明
type int 0:赠送固定金额,1:赠送比例

other.key返回参数:

参数名 类型 说明
title string 名称
url string 跳转地址

balance_log返回参数:

参数名 类型 说明
id int 主键
created_at string 创建日期
change_money float 变化的金额
new_money float 最新的余额
service_type_name string 业务类型名称
type int 1收入,2支出
service_type int 业务类型

备注: