简要描述
请求url
- https://www.商城域名.com/index.php?s=/api/setting/data
请求方式
是否需授权登录
请求header
| 参数名 | 类型 | 是否必须 | 示例值 | 说明 | 
| storeId | int | 必填 | 10001 | 商城ID | 
| platform | string | 必填 | H5 | 当前请求的客户端(APP、小程序、H5等) | 
| Access-Token | string | 选填 | - | 当前登录用户的 Token | 
返回示例
{
  "status": 200,
  "message": "success",
  "data": {
    "setting": {
      "page_category_template": {
        "style": 20,
        "shareTitle": ""
      },
      "points": {
        "points_name": "积分",
        "describe": "a) 积分不可兑现、不可转让,仅可在本平台使用;\nb) 您在本平台参加特定活动也可使用积分,详细使用规则以具体活动时的规则为准;\nc) 积分的数值精确到个位(小数点后全部舍弃,不进行四舍五入)\nd) 买家在完成该笔交易(订单状态为“已签收”)后才能得到此笔交易的相应积分,如购买商品参加店铺其他优惠,则优惠的金额部分不享受积分获取;"
      },
      "recharge": {
        "is_entrance": 1,
        "is_custom": 1,
        "describe": "1. 账户充值仅限微信在线方式支付,充值金额实时到账;\n2. 账户充值套餐赠送的金额即时到账;\n3. 账户余额有效期:自充值日起至用完即止;\n4. 若有其它疑问,可拨打客服电话400-000-1234"
      },
      "register": {
        "registerMethod": 10,
        "isManualBind": 1,
        "isOauthMpweixin": 0,
        "isOauthWxofficial": 1
      },
      "recommended": {
        "enabled": 1,
        "style": {
          "title": "商品推荐",
          "display": "list",
          "column": 2,
          "show": [
            "goodsName",
            "goodsPrice",
            "linePrice",
            "sellingPoint",
            "goodsSales"
          ]
        }
      },
      "_other": {
        "isEnabledDealer": true,
        "h5Url": "http://yoshop2-pro.cn/"
      }
    }
  }
}
返回参数
| 参数名 | 类型 | 示例值 | 说明 | 
| status | int | 200 | 请求状态(200:请求成功;500:请求错误/失败) | 
| message | string | success | 请求结果的信息,默认为 success | 
| data | object | - | 返回的业务数据 | 
data 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| setting | object | - | 系统设置 | 
data.setting 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| page_category_template | object | - | 分类页模板设置 | 
| points | object | - | 积分设置 | 
| recharge | object | - | 充值设置 | 
| register | object | - | 账户注册设置 | 
| recommended | object | - | 商品推荐设置 | 
| _other | object | - | 其他设置 | 
data.setting.page_category_template 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| style | int | 20 | 分类页样式 | 
| shareTitle | string | - | 分享标题 | 
data.setting.points 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| points_name | string | 积分 | 积分名称自定义 | 
| describe | string | - | 积分说明 | 
data.setting.recharge 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| is_entrance | int | 1 | 是否允许用户充值 | 
| is_custom | int | 1 | 是否允许自定义金额 | 
| describe | string | - | 充值说明 | 
data.setting.register 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| registerMethod | int | 10 | 默认注册方式: 10=>手机号+短信验证码 | 
| isManualBind | int | 1 | 个人中心页显示手动绑定手机号 | 
| isOauthMpweixin | int | - | 是否开启微信小程序一键授权登录 | 
| isOauthWxofficial | int | 1 | 是否开启微信公众号一键授权登录 | 
data.setting.recommended 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| enabled | int | 1 | 是否显示商品推荐 | 
| style | object | - | 样式设置 | 
data.setting.recommended.style 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| title | string | 商品推荐 | 组件标题 | 
| display | string | list | 显示类型 (list列表平铺) | 
| column | int | 2 | 分列数量 | 
| show | array | - | 显示内容 | 
data.setting._other 参数