原生分类页面样式
时间:2022-03-20 10:02:34查看量:3233

组件样式

分类左右两侧分类页


左侧JSON格式

{
	"color": "0x000000",
	"fontsize": "14",
	"list": [{
		"name": "手机数码",
		"url": "https://ehuoma.com/api/appd/class1"
	}, {
		"name": "精品男装",
		"url": "https://ehuoma.com/api/appd/class1"
	}, {
		"name": "精品女装",
		"url": "https://ehuoma.com/api/appd/class1"
	}, {
		"name": "家用电器",
		"url": "https://ehuoma.com/api/appd/class1"
	}, {
		"name": "母婴童装",
		"url": "https://ehuoma.com/api/appd/class1"
	}]
}
字段类型说明备注是否必须
color十六进制文字颜色
fontsizeint字号大小
listArray大分类数据,介绍见下文
字段类型说明备注是否必须
nameString分类名字
urlString下级分类接口,用来请求右侧数据

右侧JSON格式

{
	"num": "3",
	"all": "3",
	"current": "1",
	"list": [{
		"img": "http:\/\/ehuoma.com\/static\/appimg\/O1CN01pdZEwX2BF7DaVrwSH_!!2211270848308.jpg_310x310.jpg_.webp",
		"width": "30",
		"height": "30",
		"url": "#",
		"txt": "苹果",
		"color": "0x000000",
		"size": "14"
	}, {
		"img": "http:\/\/ehuoma.com\/static\/appimg\/O1CN01pdZEwX2BF7DaVrwSH_!!2211270848308.jpg_310x310.jpg_.webp",
		"width": "30",
		"height": "30",
		"url": "#",
		"txt": "华为",
		"color": "0x000000",
		"size": "14"
	}]
}
字段类型说明备注是否必须
numint每行显示的个数,右侧数据为宫格格式
allint数据总页数,右侧数据支持分页
currentint当前页码
listArray右侧列表数据,介绍见下文
字段类型说明备注是否必须
imgString图片地址
widthint图片宽度
heightint图片高度
urlint跳转地址
txtint小分类名称
color十六进制文字颜色
sizeint字号大小

咨询客服

关注我们

返回顶部

QQ客服
微信客服
咨询热线400-876-0081
二维码同时支持微信与QQ扫码,易活码提供技术支持
官方公众号
咨询热线400-876-0081
二维码同时支持微信与QQ扫码,易活码提供技术支持