简要描述:
- 资源推广页面数据接口
请求域名:
- http://xx.com
请求URL:
route=plugin.aggregation-cps.api.plat-activity.getPlatDetail
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
activity_id | 否,2选1 | int | 页面id |
another_id | 否,2选1 | int | 第三方资源id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取成功",
"data": {
"activity_id": 1,
"another_id": 502,
"another_name": "美团外卖",
"web_url": "https://dpurl.cn/Ff4SIGwz",
"mini_qrcode_url": "",
"mini_path": "/index/pages/h5/h5?f_userId=1&f_token=1&s_cps=1&weburl=https%3A%2F%2Fdpurl.cn%2FFf4SIGwz",
"mini_app_id": "wxde8ac0a21135c07d",
"top_image": "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/1dba167f2c9d969e7320dd0298f8ad56.png",
"bottom_message": "<p>888</p>",
"page_setting": {
"button_text": "领红包吃外卖",
"background_color": "#ffb32f",
"tab_color": "#ffb32f",
"tab_image": {
"502": "cpswm.png",
"1104": "cpsyx.png"
},
"bottom_button": [
"508",
"506"
]
}
}
}
错误时返回:
{
"result": 0,
"msg": "请先绑定手机",
"data": {
"bind_mobile": 1
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
名称 | 类型 | 说明 |
data.bind_mobile | int | 当返回报错且此字段为1时,代表用户未绑定手机,需要请求接口绑定手机,参考文档-会员模块-单纯绑定手机号 |
data.activity_id | int | 活动页面id |
data.another_id | int | 第三方推广资源id |
data.another_name | string | 第三方活动推广资源名 |
data.web_url | string | H5页面链接 |
data.mini_qrcode_url | string | 小程序码图片链接,为空字符串时不显示 |
data.mini_path | string | 小程序页面路径(跳转小程序用) |
data.mini_app_id | string | 小程序appid(跳转小程序用) |
data.top_image | string | 顶部图片链接 |
data.bottom_message | string | 底部说明,富文本 |
data.page_setting.button_text | string | 按钮文字 |
data.page_setting.background_color | string | 页面背景颜色 |
data.page_setting.tab_color | string | 导航颜色 |
data.page_setting.tab_image | object | 按钮图片组 |
data.page_setting.bottom_button | arr | 底部按钮组 |