写点什么

H5 单双引号问题

作者:Andy
  • 2023-06-10
    北京
  • 本文字数:5280 字

    阅读完需:约 17 分钟

一、接口请求


商品搜索请求链接如下:


https://api.sxfqsc.com/sxyp/productsearch?ver=0.0.001&Plat=android&upCategoryType=&productName=马来西亚进口 茱蒂丝 &pageNo=1&uid=&token=&orderNo=0&deAc=1


二、响应结果


接口请求响应结果 Json 字符串:


{	"pageCount": "5",	"data": [{		"thumbnail": "37a5299f-68a4-4219-b2ea-34198b84bce3.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1",		"proImage": "https://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/37a5299f-68a4-4219-b2ea-34198b84bce3.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1",		"productStock": "47",		"isCrossBorder": "0",		"mainImagePath": "37a5299f-68a4-4219-b2ea-34198b84bce3.jpg",		"virtualPrice": "",		"label": [],		"activityLabel": [],		"productName": "马来西亚进口 茱蒂丝(Julie's)雷蒙德乳酪夹心饼干 芝士奶酪饼干 180克×2",		"virtualNum": "0",		"categoryType": "hrzrmrew20181228153519238",		"upCategoryType": "gejhlgvx20181228164536937",		"isMJ": "0",		"price": "30.9",		"isSelfOwned": "0",		"productNo": "sxyp1556419698048"	}, {		"thumbnail": "e14dc952-4461-4dc2-a052-644d046d8b2e.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1",		"proImage": "https://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/e14dc952-4461-4dc2-a052-644d046d8b2e.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1",		"productStock": "996",		"isCrossBorder": "0",		"mainImagePath": "e14dc952-4461-4dc2-a052-644d046d8b2e.jpg",		"virtualPrice": "",		"label": [],		"activityLabel": [],		"productName": "马来西亚进口零食julies茱蒂丝奶油苏打咸味奶盐梳打孕妇代餐养胃饼干600g",		"virtualNum": "0",		"categoryType": "hrzrmrew20181228153519238",		"upCategoryType": "gejhlgvx20181228164536937",		"isMJ": "0",		"price": "26.9",		"isSelfOwned": "0",		"productNo": "sxyp1562574744278"	}, {		"thumbnail": "2b9f4c06-b9e3-4f48-b6e9-d233ad6c1774.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1",		"proImage": "https://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/2b9f4c06-b9e3-4f48-b6e9-d233ad6c1774.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1",		"productStock": "998",		"isCrossBorder": "0",		"mainImagePath": "2b9f4c06-b9e3-4f48-b6e9-d233ad6c1774.jpg",		"virtualPrice": "",		"label": [],		"activityLabel": [],		"productName": "【2件起售】马来西亚进口零食julies茱蒂丝奶油苏打咸味奶盐梳打孕妇代餐养胃饼干600g",		"virtualNum": "0",		"categoryType": "hrzrmrew20181228153519238",		"upCategoryType": "gejhlgvx20181228164536937",		"isMJ": "0",		"price": "23.8",		"isSelfOwned": "0",		"productNo": "sxyp1561188697719"	}, {		"thumbnail": "6f3caa19-a6a7-4aa0-9531-d45297674a4f.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1",		"proImage": "https://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/6f3caa19-a6a7-4aa0-9531-d45297674a4f.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1",		"productStock": "472",		"isCrossBorder": "0",		"mainImagePath": "6f3caa19-a6a7-4aa0-9531-d45297674a4f.jpg",		"virtualPrice": "",		"label": [],		"activityLabel": [],		"productName": "【2件起售】马来西亚进口零食julies茱蒂丝纯花生酱乳酪三明治夹心饼干 花生夹心135g",		"virtualNum": "0",		"categoryType": "hrzrmrew20181228153519238",		"upCategoryType": "gejhlgvx20181228164536937",		"isMJ": "0",		"price": "11",		"isSelfOwned": "0",		"productNo": "sxyp1565599970068"	}, {		"thumbnail": "f2f69082-3666-4730-ae60-d973066552a3.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1",		"proImage": "https://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/f2f69082-3666-4730-ae60-d973066552a3.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1",		"productStock": "491",		"isCrossBorder": "0",		"mainImagePath": "f2f69082-3666-4730-ae60-d973066552a3.jpg",		"virtualPrice": "",		"label": [],		"activityLabel": [],		"productName": "【2件起售】马来西亚进口零食julies茱蒂丝纯花生酱乳酪三明治夹心饼干 乳酪夹心125g",		"virtualNum": "0",		"categoryType": "hrzrmrew20181228153519238",		"upCategoryType": "gejhlgvx20181228164536937",		"isMJ": "0",		"price": "11",		"isSelfOwned": "0",		"productNo": "sxyp1565599969967"	}],	"pageNo": "1",	"function": "productsearch",	"statusDetail": "操作成功",	"status": "1"}
复制代码


三、数据库数据


22666sxyp1553594480305	sxyp1553594480305	shshsyyxgs	希腊进口 ZARO'S扎露斯饮用天然水 500ml*24瓶/箱	hrzrmrew20181228153519238	gpddffuq20181228164536921					823fc14a-f71a-4b48-acdf-fc025e7d214e.jpg	<html><head></head><body><table ><tbody></tbody></table></body></html>	扎露斯			1	1	<div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/2b67fec7-42dc-4a98-8c9a-b2a51cf64ff7.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/da18d963-7a98-433d-bd7d-df5027eb888e.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/6ae92ae4-c7b3-4d92-8321-edb24603e32a.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/115dc9fc-7a62-49b4-9740-6a9b5c7ccf35.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/bc47fd27-f1a4-4a43-aeb6-bb3406ac688d.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/86f490e5-3847-445e-839f-7b43e4c77ca5.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/e53d98a8-7008-4fa0-af0f-25615f38241b.jpg'/></div><div></div></div></div>2019-03-26 18:01:20	2019-09-09 09:59:53	2019-03-26 18:06:35			2	0,10,20,30,40,50,60,100	79	67	67		0	4	0	shshsyyxgs20190325164802	0		0	1			823fc14a-f71a-4b48-acdf-fc025e7d214e.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1	0	0	2019-03-26 18:06:35	0	0			0
复制代码


25746	sxyp1556419698048	sxyp1556419698048	ypwz	马来西亚进口 茱蒂丝(Julie's)雷蒙德乳酪夹心饼干 芝士奶酪饼干 180克×2	hrzrmrew20181228153519238	gejhlgvx20181228164536937					37a5299f-68a4-4219-b2ea-34198b84bce3.jpg	<html><head></head><body><table ><tbody></tbody></table></body></html>	茱蒂丝			1	1	<div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/cb2c9dfe-8091-43b1-be65-224fc5b08397.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/3652fbd1-8d48-42db-9e4c-81bdeb9e337c.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/2f56f1d1-9892-47c4-9c12-f61bdbaf2309.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/41bb6f67-6e71-42fc-9d40-0ab88fa7966a.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/5bd7d791-7c90-4292-bdbc-6886c4b6750a.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/4cce6fd6-84df-4073-a990-2a09d27c1e2a.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/d294055b-904f-4a0d-8d43-67763846699e.jpg'/></div><div></div></div></div>2019-04-28 10:48:18	2019-06-25 00:40:48	2019-05-06 14:29:54			2	0,10,20,30,40,50,60,100	30.9	27.72	27.72		0	3	0	ypwz20190415170434	0		0	1			37a5299f-68a4-4219-b2ea-34198b84bce3.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1	0	0	2019-05-06 14:29:54	0	0			0
复制代码


31653	sxyp1564029871065	sxyp1564029871065	shycmyyxgs	amazin'graze咖喱青柠味坚果制品40g马来西亚进口 咖喱青柠味坚果40g	hrzrmrew20181228153519238	gejhlgvx20181228164536937					37d7d804-2d42-4a66-a6a7-fe42f27818b4.jpg	<html><head></head><body><table ><tbody></tbody></table></body></html>	amazin'graze			1	1	<div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/846bb4b7-e66e-46c7-bfb6-69ee22b19684.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/3285bafc-f2c0-4119-a42b-213a9ebf38af.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/6bd87001-277e-4827-9280-609ca168f36f.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/689698b0-fc9b-4988-840a-71301a7eb105.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/17b798d0-c6a2-4cbc-947e-d5595b769376.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/92bc8693-2e42-4da2-adae-e6049a6e3971.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/bfabc3f7-0ea4-4333-bfc4-ba2d6887a867.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/2feee433-0afb-4407-aaf6-d3b1fdcc22d3.jpg'/></div><div></div></div><div><div><img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/cdc68c7c-0800-4f49-aedd-e82cb5ab2d4e.jpg'/></div><div></div></div></div>	2019-07-25 18:03:01	2019-09-27 12:00:22	2019-07-25 18:07:38					

18.8 9.5 9.5 0 363 0 shycmyyxgs20190604163801 0 0 1 37d7d804-2d42-4a66-a6a7-fe42f27818b4.jpg?x-oss-process=image/resize,m_lfit,h_500,w_500,limit_1 0 0 2019-07-25 18:07:38 0 0 0
复制代码


四、商品展示 H5 页面格式模板


<html>	<head></head>	<body>		<table>			<tbody>				<div>					<div>						<div>							<img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/2b67fec7-42dc-4a98-8c9a-b2a51cf64ff7.jpg' />						</div>						<div></div>					</div>					<div>						<div>							<img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/da18d963-7a98-433d-bd7d-df5027eb888e.jpg' />						</div>						<div></div>					</div>					<div>						<div>							<img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/6ae92ae4-c7b3-4d92-8321-edb24603e32a.jpg' />						</div>						<div></div>					</div>					<div>						<div>							<img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/115dc9fc-7a62-49b4-9740-6a9b5c7ccf35.jpg' />						</div>						<div></div>					</div>					<div>						<div>							<img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/bc47fd27-f1a4-4a43-aeb6-bb3406ac688d.jpg' />						</div>						<div></div>					</div>					<div>						<div>							<img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/86f490e5-3847-445e-839f-7b43e4c77ca5.jpg' />						</div>						<div></div>					</div>					<div>						<div>							<img src='http://sxypmall.oss-cn-shanghai.aliyuncs.com/qmarket/e53d98a8-7008-4fa0-af0f-25615f38241b.jpg' />						</div>						<div></div>					</div>				</div>			</tbody>		</table>	</body></html>
复制代码


发布于: 刚刚阅读数: 7
用户头像

Andy

关注

强准备+强信念+强执行 2019-11-21 加入

以前是T型人才,当下是π型人才,未来是梳子型人才

评论

发布
暂无评论
H5 单双引号问题_Andy_InfoQ写作社区