uni-wechat-shop/pages/index/mock-data.js
2025-12-08 18:17:12 +08:00

491 lines
18 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default [
{
"name": "图片轮播",
"type": "banner",
"style": {
"btnColor": "#d5a988",
"btnShape": "round",
"interval": 20
},
"data": [
{
"imgUrl": "https://heyuimage.ihzhy.com/prd/202512/3d307a19be1a539a.png",
"link": {
"title": "商品详情页",
"type": "PAGE",
"param": {
"path": "pages/goods/detail",
"query": {
"goodsId": "73"
}
},
},
"imgName": "banner02.png"
},
{
"imgUrl": "https://heyuimage.ihzhy.com/prd/202512/4507a08c19520bfb.png",
"link": null,
"imgName": "未标题-1.png"
}
]
},
{
"name": "店铺公告",
"type": "notice",
"params": {
"text": "购de着商城致力于通过产品和服务服务买家",
"link": null,
"showIcon": true,
"scrollable": true
},
"style": {
"paddingTop": 1,
"background": "#fffbe8",
"textColor": "#de8c17"
}
},
{
"name": "类目组",
"type": "navBar",
"style": {
"rowsNum": 4,
"background": "#ffffff",
"paddingTop": 3,
"textColor": "#666666"
},
"data": [
{
"imgUrl": "https://heyuimage.ihzhy.com/prd/202512/f377422a4bf2982c.png",
"imgName": "icon-2.jpg",
"link": {
"title": "商品分类页",
"type": "PAGE",
"param": {
"path": "pages/category/index",
"query": {
"categoryId1": "59"
}
},
},
"text": "发饰饰品"
},
{
"imgUrl": "https://heyuimage.ihzhy.com/prd/202512/a29b7b8d2c94a6c5.png",
"imgName": "icon-3.jpg",
"link": {
"title": "商品分类页",
"type": "PAGE",
"param": {
"path": "pages/category/index",
"query": {
"categoryId1": "46"
}
},
},
"text": "颈部饰品"
},
{
"imgUrl": "https://heyuimage.ihzhy.com/prd/202512/076083dffbf723e3.png",
"imgName": "icon-1.png",
"link": {
"title": "商品分类页",
"type": "PAGE",
"param": {
"path": "pages/category/index",
"query": {
"categoryId1": "49"
}
}
},
"text": "耳部饰品"
},
{
"imgUrl": "https://heyuimage.ihzhy.com/prd/202512/d60d74363bdd1e6e.png",
"imgName": "icon-4.jpg",
"link": {
"title": "商品分类页",
"type": "PAGE",
"param": {
"path": "pages/category/index",
"query": {
"categoryId1": "48"
}
},
},
"text": "手部饰品"
}
]
},
{
"name": "分类下的banner",
"type": "image",
"style": { "paddingTop": 3 },
"data": [
{
"imgUrl": "https://heyuimage.ihzhy.com/prd/202512/0cb3ac1d31d2795d.png",
"imgName": "店长推荐标题",
"link": {
"type": "PAGE",
"param": {
"title": "商品列表页",
"path": "pages/goods/list",
"query": {
"categoryId": "10085"
}
},
}
},
{
"imgUrl": "https://heyuimage.ihzhy.com/prd/202512/f320e4ab3b6f1b59.png",
"imgName": "一张banner海报",
"link": {
"type": "PAGE",
"param": {
"title": "商品列表页",
"path": "pages/goods/list",
"query": {
"categoryId": "10085"
}
},
}
}
]
},
/* {
"name": "纯展示图片、不跳转",
"type": "image",
"style": { "paddingTop": 2 },
"data": [
{
"imgUrl": "http://static.yoshop.xany6.com/10001/20210314/0607338b08e9845b6db6b90d83da0f58.png",
"imgName": "纯banner图片",
"link": null
}
]
}, */
/* {
"name": "图片",
"type": "image",
"style": {
"paddingTop": 0,
"paddingLeft": 0,
"background": "#ffffff"
},
"data": [
{
"imgUrl": "http://static.yoshop.xany6.com/10001/20210314/d16e7e7bd8735e4bf04cc5a463c65016.png",
"imgName": "华为.png",
"link": {
"id": "995bf1c",
"title": "商品列表页",
"type": "PAGE",
"param": {
"path": "pages/goods/list",
"query": {
"categoryId": "10011"
}
},
"form": [
{
"key": "query.categoryId",
"lable": "分类ID",
"tips": "商品管理 -> 商品分类",
"value": "10011"
},
{
"key": "query.search",
"lable": "关键词",
"tips": "搜索的关键词,用于匹配商品名称",
"value": ""
}
]
}
}
]
}, */
/* {
"name": "图片橱窗",
"type": "window",
"style": {
"paddingTop": 0,
"paddingLeft": 0,
"background": "#ffffff",
"layout": 2
},
"data": [
{
"imgUrl": "http://static.yoshop.xany6.com/10001/20210314/6e25a66132754fe4cad0ae88b7a8544c.png",
"link": {
"id": "995bf1c",
"title": "商品列表页",
"type": "PAGE",
"param": {
"path": "pages/goods/list",
"query": {
"categoryId": "10010"
}
},
"form": [
{
"key": "query.categoryId",
"lable": "分类ID",
"tips": "商品管理 -> 商品分类",
"value": "10010"
},
{
"key": "query.search",
"lable": "关键词",
"tips": "搜索的关键词,用于匹配商品名称",
"value": ""
}
]
},
"imgName": "小米.png"
},
{
"imgUrl": "http://static.yoshop.xany6.com/10001/20210314/e4d48985f825c73f82ad9690424e1db1.png",
"link": {
"id": "995bf1c",
"title": "商品列表页",
"type": "PAGE",
"param": {
"path": "pages/goods/list",
"query": {
"categoryId": "10012"
}
},
"form": [
{
"key": "query.categoryId",
"lable": "分类ID",
"tips": "商品管理 -> 商品分类",
"value": "10012"
},
{
"key": "query.search",
"lable": "关键词",
"tips": "搜索的关键词,用于匹配商品名称",
"value": ""
}
]
},
"imgName": "苹果.png"
}
],
"dataNum": 4
}, */
{
"name": "标题图",
"type": "image",
"style": { "paddingTop": 1 },
"data": [
{
"imgUrl": "https://heyuimage.ihzhy.com/prd/202512/af6e66a900c83789.png",
"imgName": "标题图片",
"link": null
}
]
},
{
"name": "商品组",
"type": "goods",
"params": {
"source": "auto",
"auto": {
"category": 0,
"goodsSort": "all",
"showNum": 40
}
},
"style": {
"background": "#F6F6F6",
"display": "list",
"column": 2,
"show": [
"goodsName",
"goodsPrice",
"linePrice",
"sellingPoint",
"goodsSales"
]
},
"data": [
{
"goods_id": 10022,
"goods_name": "测试商品【不发货】",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/10001/20210316/5c37d15bdbaaf8a7d8d4f96b1ecce89c.jpg",
"goods_price_min": "1.00",
"goods_price_max": "1.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 11
},
{
"goods_id": 10020,
"goods_name": "耐克 男子 NIKE AIR FORCE 1'07 运动鞋",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/10001/20210315/b72822760ccc4bb892cc658b33af939e.jpg",
"goods_price_min": "749.00",
"goods_price_max": "749.00",
"line_price_min": "799.00",
"line_price_max": "799.00",
"goods_sales": 17
},
{
"goods_id": 10019,
"goods_name": "清野の木 56L灰色特大号 塑料收纳箱整理箱环保加厚储物箱",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/10001/20210314/2a6e0c0ea7d1e5f0f2ac3e406198850c.jpg",
"goods_price_min": "32.80",
"goods_price_max": "32.80",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 174
},
{
"goods_id": 10018,
"goods_name": "简约风条纹客厅沙发卧室床头抱枕靠垫套",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/10001/20210316/41cdb778199f99ebebb6090680f382fc.png",
"goods_price_min": "99.00",
"goods_price_max": "99.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 137
},
{
"goods_id": 10017,
"goods_name": "三星 Galaxy S21 5GSM-G9910双模5G 骁龙888 超高清专业摄像 120Hz护目屏 游戏手机 8G+128G",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/10001/20210313/b51b4840c24250a67210d59e345e206d.jpg",
"goods_price_min": "4969.00",
"goods_price_max": "4969.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 0
},
{
"goods_id": 10016,
"goods_name": "【舒尔健动感单车】大型健身器械 减肥神器",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/20190610131953961df5569.PNG",
"goods_price_min": "1556.00",
"goods_price_max": "1556.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 33
},
{
"goods_id": 10015,
"goods_name": "荣耀 V10全网通 标配版 4GB+64GB 魅丽红 移动联通电信4G全面屏手机 双卡双待",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/2018071718294208f086786.jpg",
"goods_price_min": "1899.00",
"goods_price_max": "2199.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 0
},
{
"goods_id": 10014,
"goods_name": "三星 Galaxy S9+SM-G9650/DS6GB+128GB 谜夜黑 移动联通电信4G 游戏手机 双卡双待",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/20180717182009cb6bf4951.jpg",
"goods_price_min": "6999.00",
"goods_price_max": "7199.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 0
},
{
"goods_id": 10013,
"goods_name": "OPPO R15 直降300◆星云版新品手机 6G+128G R15梦境版 A3同款 R11S升级版 星云版 6+128G 官方标配",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/2018071718130695f254464.jpg",
"goods_price_min": "2699.00",
"goods_price_max": "2799.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 0
},
{
"goods_id": 10012,
"goods_name": "vivo Z1 新一代全面屏 双摄拍照手机 移动联通电信4G 双卡双待 6GB+128GB 瓷釉黑",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/20180717180357119b95367.jpg",
"goods_price_min": "2198.00",
"goods_price_max": "2198.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 0
},
{
"goods_id": 10011,
"goods_name": "Apple iPhone X (A1903) 64GB 深空灰色 移动联通4G手机",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/20180717175657d4f120465.jpg",
"goods_price_min": "7099.00",
"goods_price_max": "7299.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 0
},
{
"goods_id": 10010,
"goods_name": "Apple iPhone 8 Plus (A1864) 64GB 深空灰色 移动联通电信4G手机",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/20180717174543802b79332.jpg",
"goods_price_min": "5099.00",
"goods_price_max": "5599.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 0
},
{
"goods_id": 10009,
"goods_name": "荣耀9i 4GB+64GB 幻夜黑 移动联通电信4G全面屏手机 双卡双待",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/2018071717370507f183424.jpg",
"goods_price_min": "1399.00",
"goods_price_max": "1499.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 0
},
{
"goods_id": 10008,
"goods_name": "华为 HUAWEI nova 3全面屏高清四摄游戏手机 6GB+128GB 浅艾蓝限量款 全网通移动联通电信4G手机 双卡双待",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/20180717172606d9aee7835.jpg",
"goods_price_min": "2788.00",
"goods_price_max": "2788.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 0
},
{
"goods_id": 10007,
"goods_name": "小米6X 全网通 4GB+32GB 流沙金 移动联通电信4G手机 双卡双待 智能手机",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/2018071716542894aea9466.jpg",
"goods_price_min": "1399.00",
"goods_price_max": "1699.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 363
},
{
"goods_id": 10006,
"goods_name": "小米MI 红米6 流沙金 全网通(3G RAM+32G ROM)",
"selling_point": "",
"goods_image": "https://static.yoshop.xany6.com/2018071716364761fab9153.jpg",
"goods_price_min": "739.00",
"goods_price_max": "999.00",
"line_price_min": "0.00",
"line_price_max": "0.00",
"goods_sales": 0
}
]
}
]