Commit 597e6aba authored by 张九刚's avatar 张九刚

feat: 更新搜索功能(新ui暂未修改),调整品牌和首页数据结构,优化API请求,删除无用的产品数据

parent e39fed7c
No preview for this file type
...@@ -18,4 +18,4 @@ export const historyClear = () => api.get('/c/mini/historyClear'); ...@@ -18,4 +18,4 @@ export const historyClear = () => api.get('/c/mini/historyClear');
/** /**
* 搜索 * 搜索
*/ */
export const search = (data) => api.post('/c/mini/search',data); export const search = (data) => api.get('/c/mini/search',data);
\ No newline at end of file \ No newline at end of file
...@@ -3,15 +3,26 @@ export const brandObj = { ...@@ -3,15 +3,26 @@ export const brandObj = {
"swiperList": [ "swiperList": [
{ {
"url": "brandpage/Banner1.jpg", "url": "brandpage/Banner1.jpg",
"link": "www.baidu.com" "videoUrl": "https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/brandpage/banner_1%E6%85%A2%E4%BA%BA%E8%8A%82.mp4",
"link": {
},
}, },
{ {
"url": "brandpage/Banner2.jpg", "url": "brandpage/Banner2.jpg",
"link": "www.baidu.com" "link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/0eMxbWB3R_0g06HZPUEj5Q",
"extra": {}
},
}, },
{ {
"url": "brandpage/Banner3.jpg", "url": "brandpage/Banner3.jpg",
"link": "www.baidu.com" "link": {
"type": 3,
"url": "https://factory.feihe.com/user/#/web",
"extra": {}
},
} }
], ],
"swiperIconList": [ "swiperIconList": [
...@@ -37,37 +48,73 @@ export const brandObj = { ...@@ -37,37 +48,73 @@ export const brandObj = {
"bgUrl": "brandpage/pic_0_1.png", "bgUrl": "brandpage/pic_0_1.png",
"title": "超凡 吸收", "title": "超凡 吸收",
"desc": "星飞帆经典 3段", "desc": "星飞帆经典 3段",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "0-1",
"contentImgLen": 20,
"shareTitle": "星飞帆经典 3段",
"shareImg": "brandpage/share_0_1.png",
}, },
{ {
"bgUrl": "brandpage/pic_0_2.png", "bgUrl": "brandpage/pic_0_2.png",
"title": "顶配 脑育", "title": "顶配 脑育",
"desc": "星飞帆卓睿 3段", "desc": "星飞帆卓睿 3段",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "0-2",
"contentImgLen": 10,
"shareTitle": "星飞帆卓睿 3段",
"shareImg": "brandpage/pic_0_2.png",
}, },
{ {
"bgUrl": "brandpage/pic_0_3.png", "bgUrl": "brandpage/pic_0_3.png",
"title": "亲和 自护", "title": "亲和 自护",
"desc": "星飞帆卓耀 3段", "desc": "星飞帆卓耀 3段",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "0-3",
"contentImgLen": 28,
"shareTitle": "星飞帆卓耀 3段",
"shareImg": "brandpage/pic_0_3.png",
}, },
{ {
"bgUrl": "brandpage/pic_0_4.png", "bgUrl": "brandpage/pic_0_4.png",
"title": " 4维 效力", "title": " 4维 效力",
"desc": "爱本跃动蛋白营养粉", "desc": "爱本跃动蛋白营养粉",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "749098220531287139",
"skuId": "749098220531287140",
"contentImg": "0-4",
"contentImgLen": 15,
"shareTitle": "爱本跃动蛋白营养粉",
"shareImg": "brandpage/pic_0_4.png",
}, },
{ {
"bgUrl": "brandpage/pic_0_5.png", "bgUrl": "brandpage/pic_0_5.png",
"title": "高钙 爆脆", "title": "高钙 爆脆",
"desc": "高钙奶酪泡芙脆", "desc": "高钙奶酪泡芙脆",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "693279214116405585",
"skuId": "693279214116405586",
"contentImg": "0-5",
"contentImgLen": 15,
"shareTitle": "高钙奶酪泡芙脆",
"shareImg": "brandpage/pic_0_5.png",
}, },
{ {
"bgUrl": "brandpage/pic_0_6.png", "bgUrl": "brandpage/pic_0_6.png",
"title": "软糯 Q弹", "title": "软糯 Q弹",
"desc": "北纬47度黄糯玉米", "desc": "北纬47度黄糯玉米",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "555503303308649561",
"skuId": "555503303308649562",
"contentImg": "0-6",
"contentImgLen": 5,
"shareTitle": "北纬47度黄糯玉米",
"shareImg": "brandpage/pic_0_6.png",
} }
], ],
[ [
...@@ -75,37 +122,73 @@ export const brandObj = { ...@@ -75,37 +122,73 @@ export const brandObj = {
"bgUrl": "brandpage/pic_1_1.png", "bgUrl": "brandpage/pic_1_1.png",
"title": "超凡 吸收", "title": "超凡 吸收",
"desc": "星飞帆经典 3段", "desc": "星飞帆经典 3段",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-1",
"contentImgLen": 20,
"shareTitle": "星飞帆经典 3段",
"shareImg": "brandpage/share_1_1.png",
}, },
{ {
"bgUrl": "brandpage/pic_1_2.png", "bgUrl": "brandpage/pic_1_2.png",
"title": "顶配 脑育", "title": "顶配 脑育",
"desc": "星飞帆卓睿 3段", "desc": "星飞帆卓睿 3段",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-2",
"contentImgLen": 10,
"shareTitle": "星飞帆卓睿 3段",
"shareImg": "brandpage/pic_1_2.png",
}, },
{ {
"bgUrl": "brandpage/pic_1_3.png", "bgUrl": "brandpage/pic_1_3.png",
"title": "亲和 自护", "title": "亲和 自护",
"desc": "星飞帆卓耀 3段", "desc": "星飞帆卓耀 3段",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-3",
"contentImgLen": 28,
"shareTitle": "星飞帆卓耀 3段",
"shareImg": "brandpage/pic_1_3.png",
}, },
{ {
"bgUrl": "brandpage/pic_1_4.png", "bgUrl": "brandpage/pic_1_4.png",
"title": "顶配 A 2", "title": "顶配 A 2",
"desc": "星飞帆卓睿A2奶源", "desc": "星飞帆卓睿A2奶源",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-4",
"contentImgLen": 20,
"shareTitle": "星飞帆卓睿A2奶源",
"shareImg": "brandpage/pic_1_4.png",
}, },
{ {
"bgUrl": "brandpage/pic_1_5.png", "bgUrl": "brandpage/pic_1_5.png",
"title": "活性 有机", "title": "活性 有机",
"desc": "臻稚卓蓓 3段", "desc": "臻稚卓蓓 3段",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-5",
"contentImgLen": 28,
"shareTitle": "臻稚卓蓓 3段",
"shareImg": "brandpage/pic_1_5.png",
}, },
{ {
"bgUrl": "brandpage/pic_1_6.png", "bgUrl": "brandpage/pic_1_6.png",
"title": "高端 乳铁", "title": "高端 乳铁",
"desc": "臻爱倍护 3段", "desc": "臻爱倍护 3段",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-6",
"contentImgLen": 20,
"shareTitle": "臻爱倍护 3段",
"shareImg": "brandpage/pic_1_6.png",
} }
], ],
[ [
...@@ -113,37 +196,73 @@ export const brandObj = { ...@@ -113,37 +196,73 @@ export const brandObj = {
"bgUrl": "brandpage/pic_2_1.png", "bgUrl": "brandpage/pic_2_1.png",
"title": " 4维 效力", "title": " 4维 效力",
"desc": "爱本跃动蛋白营养粉", "desc": "爱本跃动蛋白营养粉",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "749098220531287139",
"skuId": "749098220531287140",
"contentImg": "2-1",
"contentImgLen": 20,
"shareTitle": "爱本跃动蛋白营养粉",
"shareImg": "brandpage/pic_2_1.png",
}, },
{ {
"bgUrl": "brandpage/pic_2_2.png", "bgUrl": "brandpage/pic_2_2.png",
"title": "初乳 精华", "title": "初乳 精华",
"desc": "爱本牛初乳", "desc": "爱本牛初乳",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "748659115456528889",
"skuId": "7748659115456528890",
"contentImg": "2-2",
"contentImgLen": 15,
"shareTitle": "爱本牛初乳",
"shareImg": "brandpage/pic_2_2.png",
}, },
{ {
"bgUrl": "brandpage/pic_2_3.png", "bgUrl": "brandpage/pic_2_3.png",
"title": "每日 蛋白", "title": "每日 蛋白",
"desc": "爱本每日蛋白营养糊", "desc": "爱本每日蛋白营养糊",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "768991288915277214",
"skuId": "768991288915277215",
"contentImg": "2-3",
"contentImgLen": 15,
"shareTitle": "爱本每日蛋白营养糊",
"shareImg": "brandpage/pic_2_3.png",
}, },
{ {
"bgUrl": "brandpage/pic_2_4.png", "bgUrl": "brandpage/pic_2_4.png",
"title": "腰腹 燃脂", "title": "腰腹 燃脂",
"desc": "爱本纤纤益生菌\n羽衣甘蓝蛋白粉", "desc": "爱本纤纤益生菌\n羽衣甘蓝蛋白粉",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "767546274051183809",
"skuId": "767546274051183810",
"contentImg": "2-4",
"contentImgLen": 10,
"shareTitle": "爱本纤纤益生菌羽衣甘蓝蛋白粉",
"shareImg": "brandpage/pic_2_4.png",
}, },
{ {
"bgUrl": "brandpage/pic_2_5.png", "bgUrl": "brandpage/pic_2_5.png",
"title": "药食 同源", "title": "药食 同源",
"desc": "爱本参芝初乳肽", "desc": "爱本参芝初乳肽",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "749443379821195324",
"skuId": "749443379821195325",
"contentImg": "2-5",
"contentImgLen": 10,
"shareTitle": "爱本参芝初乳肽",
"shareImg": "brandpage/pic_2_5.png",
}, },
{ {
"bgUrl": "brandpage/pic_2_6.png", "bgUrl": "brandpage/pic_2_6.png",
"title": "一夜 天亮", "title": "一夜 天亮",
"desc": "爱本悦眠功能粉", "desc": "爱本悦眠功能粉",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "753354110711035152",
"skuId": "753354110711035153",
"contentImg": "2-6",
"contentImgLen": 15,
"shareTitle": "爱本悦眠功能粉",
"shareImg": "brandpage/pic_2_6.png",
} }
], ],
[ [
...@@ -151,37 +270,73 @@ export const brandObj = { ...@@ -151,37 +270,73 @@ export const brandObj = {
"bgUrl": "brandpage/pic_3_1.png", "bgUrl": "brandpage/pic_3_1.png",
"title": "高钙 高纤", "title": "高钙 高纤",
"desc": "爱上吃菜乳酪", "desc": "爱上吃菜乳酪",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "759563658744492290",
"skuId": "759563658744492293",
"contentImg": "3-1",
"contentImgLen": 10,
"shareTitle": "爱上吃菜乳酪",
"shareImg": "brandpage/pic_3_1.png"
}, },
{ {
"bgUrl": "brandpage/pic_3_2.png", "bgUrl": "brandpage/pic_3_2.png",
"title": "高钙 爆脆", "title": "高钙 爆脆",
"desc": "高钙奶酪泡芙脆", "desc": "高钙奶酪泡芙脆",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "693279214116405585",
"skuId": "693279214116405586",
"contentImg": "3-2",
"contentImgLen": 15,
"shareTitle": "高钙奶酪泡芙脆",
"shareImg": "brandpage/pic_3_2.png",
}, },
{ {
"bgUrl": "brandpage/pic_3_3.png", "bgUrl": "brandpage/pic_3_3.png",
"title": "醇香 黑巧", "title": "醇香 黑巧",
"desc": "高纤黑巧乳酪", "desc": "高纤黑巧乳酪",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "693279214116405585",
"skuId": "693279214116405586",
"contentImg": "3-3",
"contentImgLen": 10,
"shareTitle": "高纤黑巧乳酪",
"shareImg": "brandpage/pic_3_3.png",
}, },
{ {
"bgUrl": "brandpage/pic_3_4.png", "bgUrl": "brandpage/pic_3_4.png",
"title": "10倍 奶钙", "title": "10倍 奶钙",
"desc": "超新星水果奶酪", "desc": "超新星水果奶酪",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "716141706338247497",
"skuId": "716141706338247498",
"contentImg": "3-4",
"contentImgLen": 15,
"shareTitle": "超新星水果奶酪",
"shareImg": "brandpage/pic_3_4.png",
}, },
{ {
"bgUrl": "brandpage/pic_3_5.png", "bgUrl": "brandpage/pic_3_5.png",
"title": "浓郁 爆浆", "title": "浓郁 爆浆",
"desc": "厚切流心芝士片", "desc": "厚切流心芝士片",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "717871366421930449",
"skuId": "717871366421930450",
"contentImg": "3-5",
"contentImgLen": 10,
"shareTitle": "厚切流心芝士片",
"shareImg": "brandpage/pic_3_5.png",
}, },
{ {
"bgUrl": "brandpage/pic_3_6.png", "bgUrl": "brandpage/pic_3_6.png",
"title": "洁净 配方", "title": "洁净 配方",
"desc": "嚼奶粉乳酪", "desc": "嚼奶粉乳酪",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "551135905055024574",
"skuId": "596810081919086853",
"contentImg": "3-6",
"contentImgLen": 10,
"shareTitle": "嚼奶粉乳酪",
"shareImg": "brandpage/pic_3_6.png",
} }
], ],
[ [
...@@ -189,37 +344,73 @@ export const brandObj = { ...@@ -189,37 +344,73 @@ export const brandObj = {
"bgUrl": "brandpage/pic_4_1.png", "bgUrl": "brandpage/pic_4_1.png",
"title": "含有 叶酸", "title": "含有 叶酸",
"desc": "北纬47度白甜糯玉米", "desc": "北纬47度白甜糯玉米",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "545768683314537529",
"skuId": "545770687080957074",
"contentImg": "4-1",
"contentImgLen": 5,
"shareTitle": "北纬47度白甜糯玉米",
"shareImg": "brandpage/pic_4_1.png",
}, },
{ {
"bgUrl": "brandpage/pic_4_2.png", "bgUrl": "brandpage/pic_4_2.png",
"title": "软糯 Q弹", "title": "软糯 Q弹",
"desc": "北纬47度黄糯玉米", "desc": "北纬47度黄糯玉米",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "555503303308649561",
"skuId": "555503303308649562",
"contentImg": "4-2",
"contentImgLen": 5,
"shareTitle": "北纬47度黄糯玉米",
"shareImg": "brandpage/pic_4_2.png",
}, },
{ {
"bgUrl": "brandpage/pic_4_3.png", "bgUrl": "brandpage/pic_4_3.png",
"title": "开袋 即食", "title": "开袋 即食",
"desc": "北纬47度低GI水果玉米粒袋装", "desc": "北纬47度低GI水果玉米粒袋装",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "469675861496440509",
"skuId": "469675861496440510",
"contentImg": "4-3",
"contentImgLen": 5,
"shareTitle": "北纬47度低GI水果玉米粒袋装",
"shareImg": "brandpage/pic_4_3.png",
}, },
{ {
"bgUrl": "brandpage/pic_4_4.png", "bgUrl": "brandpage/pic_4_4.png",
"title": "秘制 工艺", "title": "秘制 工艺",
"desc": "北纬47度东北烧烤味玉米段", "desc": "北纬47度东北烧烤味玉米段",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "733411972814471679",
"skuId": "733468301522154622",
"contentImg": "4-4",
"contentImgLen": 5,
"shareTitle": "北纬47度东北烧烤味玉米段",
"shareImg": "brandpage/pic_4_4.png",
}, },
{ {
"bgUrl": "brandpage/pic_4_5.png", "bgUrl": "brandpage/pic_4_5.png",
"title": "0乳糖 低GI", "title": "0乳糖 低GI",
"desc": "N47°植物酵素乳", "desc": "N47°植物酵素乳",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "733411972814471679",
"skuId": "733468301522154622",
"contentImg": "4-5",
"contentImgLen": 10,
"shareTitle": "N47°植物酵素乳",
"shareImg": "brandpage/pic_4_5.png",
}, },
{ {
"bgUrl": "brandpage/pic_4_6.png", "bgUrl": "brandpage/pic_4_6.png",
"title": "轻卡 低GI", "title": "轻卡 低GI",
"desc": "N47°水果玉米汁", "desc": "N47°水果玉米汁",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "705230699873112222",
"skuId": "705230699873112223",
"contentImg": "4-6",
"contentImgLen": 8,
"shareTitle": "N47°水果玉米汁",
"shareImg": "brandpage/pic_4_6.png",
} }
] ]
], ],
...@@ -229,19 +420,31 @@ export const brandObj = { ...@@ -229,19 +420,31 @@ export const brandObj = {
"bgUrl": "brandpage/esg1.png", "bgUrl": "brandpage/esg1.png",
"title": "中国飞鹤发布2024年ESG报告", "title": "中国飞鹤发布2024年ESG报告",
"desc": "飞鹤践行低碳节能,打造绿色产业链;承担 龙头责任,引领行业创新发展;履行社会责 任,构建共富共享生态。", "desc": "飞鹤践行低碳节能,打造绿色产业链;承担 龙头责任,引领行业创新发展;履行社会责 任,构建共富共享生态。",
"link": "www.baidu.com" "link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/UebPA-2XenAdw7lTs2NttA",
"extra": {}
},
}, },
{ {
"bgUrl": "brandpage/esg2.png", "bgUrl": "brandpage/esg2.png",
"title": "12亿元生育补贴计划", "title": "12亿元生育补贴计划",
"desc": "中国飞鹤于2025年4月初在全国范围内启动 总规模为12亿元,为符合条件的孕期家庭提 供不少于1500元生育补贴的飞鹤生育补贴", "desc": "中国飞鹤于2025年4月初在全国范围内启动 总规模为12亿元,为符合条件的孕期家庭提 供不少于1500元生育补贴的飞鹤生育补贴",
"link": "www.baidu.com" "link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/TpjCyjCf2Df3t1RMfi-JKQ",
"extra": {}
},
}, },
{ {
"bgUrl": "brandpage/esg3.png", "bgUrl": "brandpage/esg3.png",
"title": "教育公益", "title": "教育公益",
"desc": "百年大计,教育为本;教育大计,教师为本。 近三年来,飞鹤已投入超过6500万元开展专 项助教活动,惠及在职专任教师超过28万人", "desc": "百年大计,教育为本;教育大计,教师为本。 近三年来,飞鹤已投入超过6500万元开展专 项助教活动,惠及在职专任教师超过28万人",
"link": "www.baidu.com" "link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/fvo6LV95tCIPA_lda9L7zw",
"extra": {}
},
} }
], ],
"qrInfoList": [ "qrInfoList": [
......
export const homeObj = { export const homeObj = {
"swiperList": [{ "swiperList": [
"url": "homepage/banner1.jpg", {
"link": { "url": "homepage/banner1.jpg",
"type": 1, "link": {
"url": "/pages/product/product?id:1-1" "type": 1,
} "url": "/pages/product/product?id:1-1"
}, }
{ },
"url": "homepage/banner2.jpg", {
"link": { "url": "homepage/banner2.jpg",
"type": 2, "link": {
"url": "pages/product/product?id:1-1", "type": 3,
"extra": { "url": "https://mom.feihe.com/moreTools?monthAge=undefined&month=null",
"appId": "wx1234567890abcdef", "extra": {}
"envVersion": "release" }
},
{
"url": "homepage/banner3.jpg",
"link": {
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
} }
} }
},
{
"url": "homepage/banner3.jpg",
"link": {
"type": 3,
"url": "https://www.baidu.com",
"extra": {}
}
},
], ],
"vipConfigList": [ "vipConfigList": [
{ {
...@@ -33,14 +31,14 @@ export const homeObj = { ...@@ -33,14 +31,14 @@ export const homeObj = {
"subTitle": "新人礼权益", "subTitle": "新人礼权益",
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "首注200元优惠券", "btnTitle": "首注200元优惠券",
"btnSubTitle": "立即注册", "btnSubTitle": "立即注册"
}, },
{ {
"grade": "0", "grade": "0",
"subTitle": "免费问诊权益", "subTitle": "免费问诊权益",
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "三甲医生在线问诊", "btnTitle": "三甲医生在线问诊",
"btnSubTitle": "立即了解", "btnSubTitle": "立即了解"
}, },
{ {
"grade": "1", "grade": "1",
...@@ -48,7 +46,7 @@ export const homeObj = { ...@@ -48,7 +46,7 @@ export const homeObj = {
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "12类系列课程", "btnTitle": "12类系列课程",
"btnSubTitle": "立即领取", "btnSubTitle": "立即领取",
"showCornerTxt": "待领取", "showCornerTxt": "待领取"
}, },
{ {
"grade": "2", "grade": "2",
...@@ -56,7 +54,7 @@ export const homeObj = { ...@@ -56,7 +54,7 @@ export const homeObj = {
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "12类系列课程", "btnTitle": "12类系列课程",
"btnSubTitle": "立即领取", "btnSubTitle": "立即领取",
"showCornerTxt": "待领取", "showCornerTxt": "待领取"
}, },
{ {
"grade": "3", "grade": "3",
...@@ -64,7 +62,7 @@ export const homeObj = { ...@@ -64,7 +62,7 @@ export const homeObj = {
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "1分购、优惠券", "btnTitle": "1分购、优惠券",
"btnSubTitle": "立即领取", "btnSubTitle": "立即领取",
"showCornerTxt": "待领取", "showCornerTxt": "待领取"
}, },
{ {
"grade": "4", "grade": "4",
...@@ -72,171 +70,243 @@ export const homeObj = { ...@@ -72,171 +70,243 @@ export const homeObj = {
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "1分购、优惠券", "btnTitle": "1分购、优惠券",
"btnSubTitle": "立即领取", "btnSubTitle": "立即领取",
"showCornerTxt": "待领取"
}
],
"vipCardList": [
{
"level": "钻石会员",
"subTitle": "育儿课程权益",
"btnTitle": "12类系列课程",
"btnSubTitle": "立即领取",
"showCornerTxt": "待领取", "showCornerTxt": "待领取",
"link": {
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
},
"bgUrl": "homepage/cardbg1.png"
}, },
{
"level": "北纬47°系列",
"subTitle": "来自万年黑土的健康食品",
"btnTitle": "",
"btnSubTitle": "",
"showCornerTxt": "",
"link": {
"type": 2,
"url": ""
},
"bgUrl": "homepage/cardbg2.png"
},
{
"level": "育儿宝典",
"subTitle": "专家文章、育儿知识、饮食知识",
"btnTitle": "",
"btnSubTitle": "",
"showCornerTxt": "",
"link": "",
"bgUrl": "homepage/cardbg3.png"
}
], ],
"vipCardList": [{ "contentImgList": [
"level": "钻石会员", {
"subTitle": "育儿课程权益", "bgUrl": "homepage/content_1.png",
"btnTitle": "12类系列课程", "link": "www.baidu.com",
"btnSubTitle": "立即领取", "videoUrl": "https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/4-0%E5%AE%98%E7%BD%91%E8%A7%86%E9%A2%91.mp4",
"showCornerTxt": "待领取", "_style": "width:311rpx;height: 324rpx;left: 40rpx;top: 0;"
"link": "www.baidu.com", },
"bgUrl": "homepage/cardbg1.png" {
}, "bgUrl": "homepage/content_2.png",
{ "link": "www.baidu.com",
"level": "北纬47°系列", "videoUrl": "https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/%E9%A6%96%E9%A1%B5_2%E9%A3%9E%E9%B9%A4%E8%BF%9E%E7%BB%AD%E4%BA%94%E5%B9%B4%E5%A5%B6%E7%B2%89%E7%AC%AC%E4%B8%80.mp4",
"subTitle": "来自万年黑土的健康食品", "_style": "width:263rpx;height: 324rpx;right: 40rpx;top: 400rpx;"
"btnTitle": "", },
"btnSubTitle": "", {
"showCornerTxt": "", "bgUrl": "homepage/content_3.png",
"link": "", "link": "www.baidu.com",
"bgUrl": "homepage/cardbg2.png" "videoUrl": "https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/%E9%A6%96%E9%A1%B5_3%E3%80%909%E6%9C%8827%E6%97%A5%E3%80%91%E9%A3%9E%E9%B9%A4_%E4%B8%96%E7%95%8C%E6%97%85%E6%B8%B8%E6%97%A5.mp4",
}, "_style": "width:418rpx;height: 345rpx;left: 40rpx;top: 750rpx;"
{ },
"level": "育儿宝典", {
"subTitle": "专家文章、育儿知识、饮食知识", "bgUrl": "homepage/content_4.png",
"btnTitle": "", "link": {
"btnSubTitle": "", "type": 3,
"showCornerTxt": "", "url": "https://mp.weixin.qq.com/s/HhBF5h8xX8zOrthsy2-Y-A",
"link": "", "extra": {}
"bgUrl": "homepage/cardbg3.png" },
}, "_style": "width:263rpx;height: 324rpx;right: 40rpx;top: 1120rpx;"
], }
"contentImgList": [{
"bgUrl": 'homepage/content_1.png',
"link": 'www.baidu.com',
"videoUrl": 'https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/%E9%A6%96%E9%A1%B5_1%E3%80%8A%E5%AE%98%E7%BD%91%E8%A7%86%E9%A2%91%E3%80%8B_%E4%B8%8A%E7%BA%AA%E7%89%88%E5%B8%A6%E5%B0%81%E9%9D%A20306.m4v',
"_style": 'width:311rpx;height: 324rpx;left: 40rpx;top: 0;'
},
{
"bgUrl": 'homepage/content_2.png',
"link": 'www.baidu.com',
"videoUrl":"https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/%E9%A6%96%E9%A1%B5_2%E9%A3%9E%E9%B9%A4%E8%BF%9E%E7%BB%AD%E4%BA%94%E5%B9%B4%E5%A5%B6%E7%B2%89%E7%AC%AC%E4%B8%80.mp4",
"_style": 'width:263rpx;height: 324rpx;right: 40rpx;top: 400rpx;'
},
{
"bgUrl": 'homepage/content_3.png',
"link": 'www.baidu.com',
"videoUrl":"https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/%E9%A6%96%E9%A1%B5_3%E3%80%909%E6%9C%8827%E6%97%A5%E3%80%91%E9%A3%9E%E9%B9%A4_%E4%B8%96%E7%95%8C%E6%97%85%E6%B8%B8%E6%97%A5.mp4",
"_style": 'width:418rpx;height: 345rpx;left: 40rpx;top: 750rpx;'
},
{
"bgUrl": 'homepage/content_4.png',
"link": 'www.baidu.com',
"_style": 'width:263rpx;height: 324rpx;right: 40rpx;top: 1120rpx;'
}
], ],
"channelTabList": ["凯叔讲故事", "哄睡故事", "知识科普", "安全意识", "社交能力"], "channelTabList": ["凯叔讲故事", "哄睡故事", "知识科普", "安全意识", "社交能力"],
"changelInfoList": [ "changelInfoList": [
[{ [
"bgUrl": "homepage/channel_0_1.png", {
"title": "凯叔·金子美铃童诗:【星星和蒲公英】", "bgUrl": "homepage/channel_0_1.png",
"link": "www.baidu.com" "title": "凯叔·金子美铃童诗:【星星和蒲公英】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22121&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1221",
"extra": {}
}
},
{
"bgUrl": "homepage/channel_0_1.png",
"title": "凯叔·金子美铃童诗:【天空和海】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22119&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1221",
"extra": {}
}
}
],
[
{
"bgUrl": "homepage/channel_1_1.png",
"title": "凯叔-小睡仙:【睡吧睡吧,香香的】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22238&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1211",
"extra": {}
}
},
{
"bgUrl": "homepage/channel_1_1.png",
"title": "凯叔-小睡仙:【睡觉仙气,3,2,1,】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22237&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1211",
"extra": {}
}
}
],
[
{
"bgUrl": "homepage/channel_2_1.png",
"title": "教宝宝认识人体:【守护眼睛的睫毛】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21867&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1220",
"extra": {}
}
},
{
"bgUrl": "homepage/channel_2_1.png",
"title": "教宝宝认识人体:【为什么肚子会咕咕叫?】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21880&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1220",
"extra": {}
}
}
],
[
{
"bgUrl": "homepage/channel_3_1.png",
"title": "教宝宝不乱吃东西:【这个不能吃】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21869&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1218",
"extra": {}
}
},
{
"bgUrl": "homepage/channel_3_1.png",
"title": "培养宝宝不摸插座的安全意识:【电线插座不好玩】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21803&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1218",
"extra": {}
}
}
],
[
{
"bgUrl": "homepage/channel_4_1.png",
"title": "教会宝宝不嘲笑别人:【鹳鸟】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21949&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1216",
"extra": {}
}
},
{
"bgUrl": "homepage/channel_4_1.png",
"title": "培养宝宝尊重别人的习惯:【爱嘲笑人的斑斑】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21888&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1216",
"extra": {}
}
}
]
],
"childrenInfoList": [
{
"bgUrl": "homepage/children_0.png",
"title": "1+3 育儿妙招大揭秘,带娃从此不“蕉绿”",
"link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/Xn5dh96OaQ9CcsVMZ5jnvg",
"extra": {}
}
}, },
{ {
"bgUrl": "homepage/channel_0_1.png", "bgUrl": "homepage/children_1.png",
"title": "凯叔·金子美铃童诗:【天空和海】", "title": "已有儿童中招,严重可瘫痪夏季防蜱虫最全指南速看",
"link": "www.baidu.com" "link": {
} "type": 3,
], "url": "https://mp.weixin.qq.com/s/fL5UZjWUXmPrjJgSe2Hr5g",
[{ "extra": {}
"bgUrl": "homepage/channel_1_1.png", }
"title": "凯叔-小睡仙:【睡吧睡吧,香香的】",
"link": "www.baidu.com"
}, },
{ {
"bgUrl": "homepage/channel_1_1.png", "bgUrl": "homepage/children_2.png",
"title": "凯叔-小睡仙:【睡觉仙气,3,2,1,】", "title": "99% 家长忽略的脑发育关键动作",
"link": "www.baidu.com" "link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/G5q6g-EdRWqasB6tvRgIzw",
"extra": {}
}
} }
], ],
[{ "bottomLinkList": [
"bgUrl": "homepage/channel_2_1.png", {
"title": "教宝宝认识人体:【守护眼睛的睫毛】", "bgUrl": "homepage/iconwx.png",
"link": "www.baidu.com" "link": "www.baidu.com",
"_style": "width:70rpx;height:109rpx;"
}, },
{ {
"bgUrl": "homepage/channel_2_1.png", "bgUrl": "homepage/iconqw.png",
"title": "教宝宝认识人体:【为什么肚子会咕咕叫?】", "link": "www.baidu.com",
"link": "www.baidu.com" "_style": "width:95rpx;height:109rpx;"
}
],
[{
"bgUrl": "homepage/channel_3_1.png",
"title": "教宝宝不乱吃东西:【这个不能吃】",
"link": "www.baidu.com"
}, },
{ {
"bgUrl": "homepage/channel_3_1.png", "bgUrl": "homepage/iconsph.png",
"title": "培养宝宝不摸插座的安全意识:【电线插座不好玩】", "link": "www.baidu.com",
"link": "www.baidu.com" "_style": "width:70rpx;height:109rpx;"
}
],
[{
"bgUrl": "homepage/channel_4_1.png",
"title": "教会宝宝不嘲笑别人:【鹤鸟】",
"link": "www.baidu.com"
}, },
{ {
"bgUrl": "homepage/channel_4_1.png", "bgUrl": "homepage/iconxhs.png",
"title": "培养宝宝尊重别人的习惯:【爱嘲笑人的斑斑】", "link": "www.baidu.com",
"link": "www.baidu.com" "_style": "width:88rpx;height:99rpx;"
} }
]
], ],
"childrenInfoList": [{ "qrInfoList": [
"bgUrl": "homepage/children_0.png", {
"title": "1+3 育儿妙招大揭秘,带娃从此不”蕉绿“", "title": "公众号",
"link": "www.baidu.com" "desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>公众号,了解更多专业育儿资讯",
}, "qrUrl": "homepage/qrcode_gzh.png"
{ },
"bgUrl": "homepage/children_1.png", {
"title": "已有儿童中招,严重可瘫痪夏季防蜱虫最全指南速看", "title": "企业微信",
"link": "www.baidu.com" "desc": "扫码添加<span style:'color:#D3A358;'>星妈管家</span>企微,了解更多专业育儿资讯",
}, "qrUrl": "homepage/qrcode_qw.png"
{ },
"bgUrl": "homepage/children_2.png", {
"title": "99% 家长忽略的脑发育关键动作", "title": "视频号",
"link": "www.baidu.com" "desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>视频号,了解更多专业育儿资讯",
} "qrUrl": "homepage/qrcode_sph.png"
] }
, "bottomLinkList": [{
"bgUrl": "homepage/iconwx.png",
"link": "www.baidu.com",
"_style": "width:70rpx;height:109rpx;"
},
{
"bgUrl": "homepage/iconqw.png",
"link": "www.baidu.com",
"_style": "width:95rpx;height:109rpx;"
},
{
"bgUrl": "homepage/iconsph.png",
"link": "www.baidu.com",
"_style": "width:70rpx;height:109rpx;"
},
{
"bgUrl": "homepage/iconxhs.png",
"link": "www.baidu.com",
"_style": "width:88rpx;height:99rpx;"
}
],
"qrInfoList": [{
"title": "公众号",
"desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>公众号,了解更多专业育儿资讯",
"qrUrl": "homepage/qrcode_gzh.png"
},
{
"title": "企业微信",
"desc": "扫码添加<span style:'color:#D3A358;'>星妈管家</span>企微,了解更多专业育儿资讯",
"qrUrl": "homepage/qrcode_qw.png"
},
{
"title": "视频号",
"desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>视频号,了解更多专业育儿资讯",
"qrUrl": "homepage/qrcode_sph.png"
},
] ]
} }
\ No newline at end of file
var a ={ var a = {
"videoUrl": "https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/brandpage/banner_1%E6%85%A2%E4%BA%BA%E8%8A%82x%E9%A3%9E%E9%B9%A4%2B-%2B%E5%9C%9FFINAL.mp4", "videoUrl": "https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/brandpage/banner_1%E6%85%A2%E4%BA%BA%E8%8A%82x%E9%A3%9E%E9%B9%A4%2B-%2B%E5%9C%9FFINAL.mp4",
"swiperList": [ "swiperList": [
{
"url": "brandpage/Banner1.jpg",
"videoUrl": "https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/brandpage/banner_1%E6%85%A2%E4%BA%BA%E8%8A%82.mp4",
"link": {
},
},
{
"url": "brandpage/Banner2.jpg",
"link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/0eMxbWB3R_0g06HZPUEj5Q",
"extra": {}
},
},
{
"url": "brandpage/Banner3.jpg",
"link": {
"type": 3,
"url": "https://factory.feihe.com/user/#/web",
"extra": {}
},
}
],
"swiperIconList": [
{
"baseUrl": "brandpage/corn1.png",
"activeUrl": "brandpage/corn2.png"
},
{
"baseUrl": "brandpage/cattle1.png",
"activeUrl": "brandpage/cattle2.png"
},
{
"baseUrl": "brandpage/factory1.png",
"activeUrl": "brandpage/factory2.png"
}
],
"productTabList": [
"全部", "母婴全阶", "功能营养", "儿童产品", "北纬47°"
],
"product": [
[
{
"bgUrl": "brandpage/pic_0_1.png",
"title": "超凡 吸收",
"desc": "星飞帆经典 3段",
"link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "0-1",
"contentImgLen": 20,
"shareTitle": "星飞帆经典 3段",
"shareImg": "brandpage/share_0_1.png",
},
{ {
"url": "brandpage/Banner1.jpg", "bgUrl": "brandpage/pic_0_2.png",
"link": "www.baidu.com" "title": "顶配 脑育",
"desc": "星飞帆卓睿 3段",
"link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "0-2",
"contentImgLen": 10,
"shareTitle": "星飞帆卓睿 3段",
"shareImg": "brandpage/pic_0_2.png",
}, },
{ {
"url": "brandpage/Banner2.jpg", "bgUrl": "brandpage/pic_0_3.png",
"link": "www.baidu.com" "title": "亲和 自护",
"desc": "星飞帆卓耀 3段",
"link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "0-3",
"contentImgLen": 28,
"shareTitle": "星飞帆卓耀 3段",
"shareImg": "brandpage/pic_0_3.png",
}, },
{ {
"url": "brandpage/Banner3.jpg", "bgUrl": "brandpage/pic_0_4.png",
"link": "www.baidu.com" "title": " 4维 效力",
"desc": "爱本跃动蛋白营养粉",
"link": "www.baidu.com",
"productId": "749098220531287139",
"skuId": "749098220531287140",
"contentImg": "0-4",
"contentImgLen": 15,
"shareTitle": "爱本跃动蛋白营养粉",
"shareImg": "brandpage/pic_0_4.png",
},
{
"bgUrl": "brandpage/pic_0_5.png",
"title": "高钙 爆脆",
"desc": "高钙奶酪泡芙脆",
"link": "www.baidu.com",
"productId": "693279214116405585",
"skuId": "693279214116405586",
"contentImg": "0-5",
"contentImgLen": 15,
"shareTitle": "高钙奶酪泡芙脆",
"shareImg": "brandpage/pic_0_5.png",
},
{
"bgUrl": "brandpage/pic_0_6.png",
"title": "软糯 Q弹",
"desc": "北纬47度黄糯玉米",
"link": "www.baidu.com",
"productId": "555503303308649561",
"skuId": "555503303308649562",
"contentImg": "0-6",
"contentImgLen": 5,
"shareTitle": "北纬47度黄糯玉米",
"shareImg": "brandpage/pic_0_6.png",
} }
], ],
"swiperIconList": [ [
{
"bgUrl": "brandpage/pic_1_1.png",
"title": "超凡 吸收",
"desc": "星飞帆经典 3段",
"link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-1",
"contentImgLen": 20,
"shareTitle": "星飞帆经典 3段",
"shareImg": "brandpage/share_1_1.png",
},
{ {
"baseUrl": "brandpage/corn1.png", "bgUrl": "brandpage/pic_1_2.png",
"activeUrl": "brandpage/corn2.png" "title": "顶配 脑育",
"desc": "星飞帆卓睿 3段",
"link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-2",
"contentImgLen": 10,
"shareTitle": "星飞帆卓睿 3段",
"shareImg": "brandpage/pic_1_2.png",
}, },
{ {
"baseUrl": "brandpage/cattle1.png", "bgUrl": "brandpage/pic_1_3.png",
"activeUrl": "brandpage/cattle2.png" "title": "亲和 自护",
"desc": "星飞帆卓耀 3段",
"link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-3",
"contentImgLen": 28,
"shareTitle": "星飞帆卓耀 3段",
"shareImg": "brandpage/pic_1_3.png",
}, },
{ {
"baseUrl": "brandpage/factory1.png", "bgUrl": "brandpage/pic_1_4.png",
"activeUrl": "brandpage/factory2.png" "title": "顶配 A 2",
"desc": "星飞帆卓睿A2奶源",
"link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-4",
"contentImgLen": 20,
"shareTitle": "星飞帆卓睿A2奶源",
"shareImg": "brandpage/pic_1_4.png",
},
{
"bgUrl": "brandpage/pic_1_5.png",
"title": "活性 有机",
"desc": "臻稚卓蓓 3段",
"link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-5",
"contentImgLen": 28,
"shareTitle": "臻稚卓蓓 3段",
"shareImg": "brandpage/pic_1_5.png",
},
{
"bgUrl": "brandpage/pic_1_6.png",
"title": "高端 乳铁",
"desc": "臻爱倍护 3段",
"link": "www.baidu.com",
"productId": "1234567890",
"skuId": "1234567890",
"contentImg": "1-6",
"contentImgLen": 20,
"shareTitle": "臻爱倍护 3段",
"shareImg": "brandpage/pic_1_6.png",
} }
], ],
"productTabList": [ [
"全部", "母婴全阶", "功能营养", "儿童产品", "北纬47°" {
], "bgUrl": "brandpage/pic_2_1.png",
"product": [ "title": " 4维 效力",
[ "desc": "爱本跃动蛋白营养粉",
{ "link": "www.baidu.com",
"bgUrl": "brandpage/pic_0_1.png", "productId": "749098220531287139",
"title": "超凡 吸收", "skuId": "749098220531287140",
"desc": "星飞帆经典 3段", "contentImg": "2-1",
"link": "www.baidu.com" "contentImgLen": 20,
}, "shareTitle": "爱本跃动蛋白营养粉",
{ "shareImg": "brandpage/pic_2_1.png",
"bgUrl": "brandpage/pic_0_2.png", },
"title": "顶配 脑育", {
"desc": "星飞帆卓睿 3段", "bgUrl": "brandpage/pic_2_2.png",
"link": "www.baidu.com" "title": "初乳 精华",
}, "desc": "爱本牛初乳",
{ "link": "www.baidu.com",
"bgUrl": "brandpage/pic_0_3.png", "productId": "748659115456528889",
"title": "亲和 自护", "skuId": "7748659115456528890",
"desc": "星飞帆卓耀 3段", "contentImg": "2-2",
"link": "www.baidu.com" "contentImgLen": 15,
}, "shareTitle": "爱本牛初乳",
{ "shareImg": "brandpage/pic_2_2.png",
"bgUrl": "brandpage/pic_0_4.png", },
"title": " 4维 效力", {
"desc": "爱本跃动蛋白营养粉", "bgUrl": "brandpage/pic_2_3.png",
"link": "www.baidu.com" "title": "每日 蛋白",
}, "desc": "爱本每日蛋白营养糊",
{ "link": "www.baidu.com",
"bgUrl": "brandpage/pic_0_5.png", "productId": "768991288915277214",
"title": "高钙 爆脆", "skuId": "768991288915277215",
"desc": "高钙奶酪泡芙脆", "contentImg": "2-3",
"link": "www.baidu.com" "contentImgLen": 15,
}, "shareTitle": "爱本每日蛋白营养糊",
{ "shareImg": "brandpage/pic_2_3.png",
"bgUrl": "brandpage/pic_0_6.png", },
"title": "软糯 Q弹", {
"desc": "北纬47度黄糯玉米", "bgUrl": "brandpage/pic_2_4.png",
"link": "www.baidu.com" "title": "腰腹 燃脂",
} "desc": "爱本纤纤益生菌\n羽衣甘蓝蛋白粉",
], "link": "www.baidu.com",
[ "productId": "767546274051183809",
{ "skuId": "767546274051183810",
"bgUrl": "brandpage/pic_1_1.png", "contentImg": "2-4",
"title": "超凡 吸收", "contentImgLen": 10,
"desc": "星飞帆经典 3段", "shareTitle": "爱本纤纤益生菌羽衣甘蓝蛋白粉",
"link": "www.baidu.com" "shareImg": "brandpage/pic_2_4.png",
}, },
{ {
"bgUrl": "brandpage/pic_1_2.png", "bgUrl": "brandpage/pic_2_5.png",
"title": "顶配 脑育", "title": "药食 同源",
"desc": "星飞帆卓睿 3段", "desc": "爱本参芝初乳肽",
"link": "www.baidu.com" "link": "www.baidu.com",
}, "productId": "749443379821195324",
{ "skuId": "749443379821195325",
"bgUrl": "brandpage/pic_1_3.png", "contentImg": "2-5",
"title": "亲和 自护", "contentImgLen": 10,
"desc": "星飞帆卓耀 3段", "shareTitle": "爱本参芝初乳肽",
"link": "www.baidu.com" "shareImg": "brandpage/pic_2_5.png",
}, },
{ {
"bgUrl": "brandpage/pic_1_4.png", "bgUrl": "brandpage/pic_2_6.png",
"title": "顶配 A 2", "title": "一夜 天亮",
"desc": "星飞帆卓睿A2奶源", "desc": "爱本悦眠功能粉",
"link": "www.baidu.com" "link": "www.baidu.com",
}, "productId": "753354110711035152",
{ "skuId": "753354110711035153",
"bgUrl": "brandpage/pic_1_5.png", "contentImg": "2-6",
"title": "活性 有机", "contentImgLen": 15,
"desc": "臻稚卓蓓 3段", "shareTitle": "爱本悦眠功能粉",
"link": "www.baidu.com" "shareImg": "brandpage/pic_2_6.png",
}, }
{
"bgUrl": "brandpage/pic_1_6.png",
"title": "高端 乳铁",
"desc": "臻爱倍护 3段",
"link": "www.baidu.com"
}
],
[
{
"bgUrl": "brandpage/pic_2_1.png",
"title": " 4维 效力",
"desc": "爱本跃动蛋白营养粉",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_2_2.png",
"title": "初乳 精华",
"desc": "爱本牛初乳",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_2_3.png",
"title": "每日 蛋白",
"desc": "爱本每日蛋白营养糊",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_2_4.png",
"title": "腰腹 燃脂",
"desc": "爱本纤纤益生菌\n羽衣甘蓝蛋白粉",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_2_5.png",
"title": "药食 同源",
"desc": "爱本参芝初乳肽",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_2_6.png",
"title": "一夜 天亮",
"desc": "爱本悦眠功能粉",
"link": "www.baidu.com"
}
],
[
{
"bgUrl": "brandpage/pic_3_1.png",
"title": "高钙 高纤",
"desc": "爱上吃菜乳酪",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_3_2.png",
"title": "高钙 爆脆",
"desc": "高钙奶酪泡芙脆",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_3_3.png",
"title": "醇香 黑巧",
"desc": "高纤黑巧乳酪",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_3_4.png",
"title": "10倍 奶钙",
"desc": "超新星水果奶酪",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_3_5.png",
"title": "浓郁 爆浆",
"desc": "厚切流心芝士片",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_3_6.png",
"title": "洁净 配方",
"desc": "嚼奶粉乳酪",
"link": "www.baidu.com"
}
],
[
{
"bgUrl": "brandpage/pic_4_1.png",
"title": "含有 叶酸",
"desc": "北纬47度白甜糯玉米",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_4_2.png",
"title": "软糯 Q弹",
"desc": "北纬47度黄糯玉米",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_4_3.png",
"title": "开袋 即食",
"desc": "北纬47度低GI水果玉米粒袋装",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_4_4.png",
"title": "秘制 工艺",
"desc": "北纬47度东北烧烤味玉米段",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_4_5.png",
"title": "0乳糖 低GI",
"desc": "N47°植物酵素乳",
"link": "www.baidu.com"
},
{
"bgUrl": "brandpage/pic_4_6.png",
"title": "轻卡 低GI",
"desc": "N47°水果玉米汁",
"link": "www.baidu.com"
}
]
], ],
"ipDesc": "鹤小飞一家是由鹤爸、鹤妈、鹤小飞(哥哥)、鹤小小(妹妹) 组成的一家。\n四口热爱生活、积极向上,是他们一家对生活的态度。", [
"esgInfoList": [ {
"bgUrl": "brandpage/pic_3_1.png",
"title": "高钙 高纤",
"desc": "爱上吃菜乳酪",
"link": "www.baidu.com",
"productId": "759563658744492290",
"skuId": "759563658744492293",
"contentImg": "3-1",
"contentImgLen": 10,
"shareTitle": "爱上吃菜乳酪",
"shareImg": "brandpage/pic_3_1.png"
},
{
"bgUrl": "brandpage/pic_3_2.png",
"title": "高钙 爆脆",
"desc": "高钙奶酪泡芙脆",
"link": "www.baidu.com",
"productId": "693279214116405585",
"skuId": "693279214116405586",
"contentImg": "3-2",
"contentImgLen": 15,
"shareTitle": "高钙奶酪泡芙脆",
"shareImg": "brandpage/pic_3_2.png",
},
{ {
"bgUrl": "brandpage/esg1.png", "bgUrl": "brandpage/pic_3_3.png",
"title": "中国飞鹤发布2024年ESG报告", "title": "醇香 黑巧",
"desc": "飞鹤践行低碳节能,打造绿色产业链;承担 龙头责任,引领行业创新发展;履行社会责 任,构建共富共享生态。", "desc": "高纤黑巧乳酪",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "693279214116405585",
"skuId": "693279214116405586",
"contentImg": "3-3",
"contentImgLen": 10,
"shareTitle": "高纤黑巧乳酪",
"shareImg": "brandpage/pic_3_3.png",
}, },
{ {
"bgUrl": "brandpage/esg2.png", "bgUrl": "brandpage/pic_3_4.png",
"title": "12亿元生育补贴计划", "title": "10倍 奶钙",
"desc": "中国飞鹤于2025年4月初在全国范围内启动 总规模为12亿元,为符合条件的孕期家庭提 供不少于1500元生育补贴的飞鹤生育补贴", "desc": "超新星水果奶酪",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "716141706338247497",
"skuId": "716141706338247498",
"contentImg": "3-4",
"contentImgLen": 15,
"shareTitle": "超新星水果奶酪",
"shareImg": "brandpage/pic_3_4.png",
}, },
{ {
"bgUrl": "brandpage/esg3.png", "bgUrl": "brandpage/pic_3_5.png",
"title": "教育公益", "title": "浓郁 爆浆",
"desc": "百年大计,教育为本;教育大计,教师为本。 近三年来,飞鹤已投入超过6500万元开展专 项助教活动,惠及在职专任教师超过28万人", "desc": "厚切流心芝士片",
"link": "www.baidu.com" "link": "www.baidu.com",
"productId": "717871366421930449",
"skuId": "717871366421930450",
"contentImg": "3-5",
"contentImgLen": 10,
"shareTitle": "厚切流心芝士片",
"shareImg": "brandpage/pic_3_5.png",
},
{
"bgUrl": "brandpage/pic_3_6.png",
"title": "洁净 配方",
"desc": "嚼奶粉乳酪",
"link": "www.baidu.com",
"productId": "551135905055024574",
"skuId": "596810081919086853",
"contentImg": "3-6",
"contentImgLen": 10,
"shareTitle": "嚼奶粉乳酪",
"shareImg": "brandpage/pic_3_6.png",
} }
], ],
"qrInfoList": [ [
{ {
"title": "视频号", "bgUrl": "brandpage/pic_4_1.png",
"desc": "扫码关注<span style='color:#D3A358;'>鹤小飞一家</span>视频号,看超多有爱的趣味故事", "title": "含有 叶酸",
"qrUrl": "brandpage/qrhxf_sph.png" "desc": "北纬47度白甜糯玉米",
"link": "www.baidu.com",
"productId": "545768683314537529",
"skuId": "545770687080957074",
"contentImg": "4-1",
"contentImgLen": 5,
"shareTitle": "北纬47度白甜糯玉米",
"shareImg": "brandpage/pic_4_1.png",
}, },
{ {
"title": "微信小店", "bgUrl": "brandpage/pic_4_2.png",
"desc": "扫码进入<span style='color:#D3A358;'>鹤小飞一家</span>店铺,挑选精美限量周边", "title": "软糯 Q弹",
"qrUrl": "brandpage/qrhxf_wxxd.png" "desc": "北纬47度黄糯玉米",
"link": "www.baidu.com",
"productId": "555503303308649561",
"skuId": "555503303308649562",
"contentImg": "4-2",
"contentImgLen": 5,
"shareTitle": "北纬47度黄糯玉米",
"shareImg": "brandpage/pic_4_2.png",
},
{
"bgUrl": "brandpage/pic_4_3.png",
"title": "开袋 即食",
"desc": "北纬47度低GI水果玉米粒袋装",
"link": "www.baidu.com",
"productId": "469675861496440509",
"skuId": "469675861496440510",
"contentImg": "4-3",
"contentImgLen": 5,
"shareTitle": "北纬47度低GI水果玉米粒袋装",
"shareImg": "brandpage/pic_4_3.png",
},
{
"bgUrl": "brandpage/pic_4_4.png",
"title": "秘制 工艺",
"desc": "北纬47度东北烧烤味玉米段",
"link": "www.baidu.com",
"productId": "733411972814471679",
"skuId": "733468301522154622",
"contentImg": "4-4",
"contentImgLen": 5,
"shareTitle": "北纬47度东北烧烤味玉米段",
"shareImg": "brandpage/pic_4_4.png",
},
{
"bgUrl": "brandpage/pic_4_5.png",
"title": "0乳糖 低GI",
"desc": "N47°植物酵素乳",
"link": "www.baidu.com",
"productId": "733411972814471679",
"skuId": "733468301522154622",
"contentImg": "4-5",
"contentImgLen": 10,
"shareTitle": "N47°植物酵素乳",
"shareImg": "brandpage/pic_4_5.png",
},
{
"bgUrl": "brandpage/pic_4_6.png",
"title": "轻卡 低GI",
"desc": "N47°水果玉米汁",
"link": "www.baidu.com",
"productId": "705230699873112222",
"skuId": "705230699873112223",
"contentImg": "4-6",
"contentImgLen": 8,
"shareTitle": "N47°水果玉米汁",
"shareImg": "brandpage/pic_4_6.png",
} }
] ]
} ],
"ipDesc": "鹤小飞一家是由鹤爸、鹤妈、鹤小飞(哥哥)、鹤小小(妹妹) 组成的一家。\n四口热爱生活、积极向上,是他们一家对生活的态度。",
"esgInfoList": [
{
"bgUrl": "brandpage/esg1.png",
"title": "中国飞鹤发布2024年ESG报告",
"desc": "飞鹤践行低碳节能,打造绿色产业链;承担 龙头责任,引领行业创新发展;履行社会责 任,构建共富共享生态。",
"link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/UebPA-2XenAdw7lTs2NttA",
"extra": {}
},
},
{
"bgUrl": "brandpage/esg2.png",
"title": "12亿元生育补贴计划",
"desc": "中国飞鹤于2025年4月初在全国范围内启动 总规模为12亿元,为符合条件的孕期家庭提 供不少于1500元生育补贴的飞鹤生育补贴",
"link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/TpjCyjCf2Df3t1RMfi-JKQ",
"extra": {}
},
},
{
"bgUrl": "brandpage/esg3.png",
"title": "教育公益",
"desc": "百年大计,教育为本;教育大计,教师为本。 近三年来,飞鹤已投入超过6500万元开展专 项助教活动,惠及在职专任教师超过28万人",
"link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/fvo6LV95tCIPA_lda9L7zw",
"extra": {}
},
}
],
"qrInfoList": [
{
"title": "视频号",
"desc": "扫码关注<span style='color:#D3A358;'>鹤小飞一家</span>视频号,看超多有爱的趣味故事",
"qrUrl": "brandpage/qrhxf_sph.png"
},
{
"title": "微信小店",
"desc": "扫码进入<span style='color:#D3A358;'>鹤小飞一家</span>店铺,挑选精美限量周边",
"qrUrl": "brandpage/qrhxf_wxxd.png"
}
]
}
var b = JSON.stringify(JSON.stringify(a)); var b = JSON.stringify(JSON.stringify(a));
console.log(b); console.log(b);
\ No newline at end of file
var a ={ var a = {
"swiperList": [{ "swiperList": [
"url": "homepage/banner1.jpg", {
"link": { "url": "homepage/banner1.jpg",
"type": 1, "link": {
"url": "/pages/product/product?id:1-1" "type": 1,
} "url": "/pages/product/product?id:1-1"
}, }
{ },
"url": "homepage/banner2.jpg", {
"link": { "url": "homepage/banner2.jpg",
"type": 2, "link": {
"url": "pages/product/product?id:1-1", "type": 3,
"extra": { "url": "https://mom.feihe.com/moreTools?monthAge=undefined&month=null",
"appId": "wx1234567890abcdef", "extra": {}
"envVersion": "release" }
},
{
"url": "homepage/banner3.jpg",
"link": {
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
} }
} }
},
{
"url": "homepage/banner3.jpg",
"link": {
"type": 3,
"url": "https://www.baidu.com",
"extra": {}
}
},
], ],
"vipConfigList": [ "vipConfigList": [
{ {
...@@ -33,14 +31,14 @@ var a ={ ...@@ -33,14 +31,14 @@ var a ={
"subTitle": "新人礼权益", "subTitle": "新人礼权益",
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "首注200元优惠券", "btnTitle": "首注200元优惠券",
"btnSubTitle": "立即注册", "btnSubTitle": "立即注册"
}, },
{ {
"grade": "0", "grade": "0",
"subTitle": "免费问诊权益", "subTitle": "免费问诊权益",
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "三甲医生在线问诊", "btnTitle": "三甲医生在线问诊",
"btnSubTitle": "立即了解", "btnSubTitle": "立即了解"
}, },
{ {
"grade": "1", "grade": "1",
...@@ -48,7 +46,7 @@ var a ={ ...@@ -48,7 +46,7 @@ var a ={
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "12类系列课程", "btnTitle": "12类系列课程",
"btnSubTitle": "立即领取", "btnSubTitle": "立即领取",
"showCornerTxt": "待领取", "showCornerTxt": "待领取"
}, },
{ {
"grade": "2", "grade": "2",
...@@ -56,7 +54,7 @@ var a ={ ...@@ -56,7 +54,7 @@ var a ={
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "12类系列课程", "btnTitle": "12类系列课程",
"btnSubTitle": "立即领取", "btnSubTitle": "立即领取",
"showCornerTxt": "待领取", "showCornerTxt": "待领取"
}, },
{ {
"grade": "3", "grade": "3",
...@@ -64,7 +62,7 @@ var a ={ ...@@ -64,7 +62,7 @@ var a ={
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "1分购、优惠券", "btnTitle": "1分购、优惠券",
"btnSubTitle": "立即领取", "btnSubTitle": "立即领取",
"showCornerTxt": "待领取", "showCornerTxt": "待领取"
}, },
{ {
"grade": "4", "grade": "4",
...@@ -72,174 +70,249 @@ var a ={ ...@@ -72,174 +70,249 @@ var a ={
"bgUrl": "homepage/cardbg1.png", "bgUrl": "homepage/cardbg1.png",
"btnTitle": "1分购、优惠券", "btnTitle": "1分购、优惠券",
"btnSubTitle": "立即领取", "btnSubTitle": "立即领取",
"showCornerTxt": "待领取"
}
],
"vipCardList": [
{
"level": "钻石会员",
"subTitle": "育儿课程权益",
"btnTitle": "12类系列课程",
"btnSubTitle": "立即领取",
"showCornerTxt": "待领取", "showCornerTxt": "待领取",
"link": {
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
},
"bgUrl": "homepage/cardbg1.png"
}, },
{
"level": "北纬47°系列",
"subTitle": "来自万年黑土的健康食品",
"btnTitle": "",
"btnSubTitle": "",
"showCornerTxt": "",
"link": {
"type": 2,
"url": ""
},
"bgUrl": "homepage/cardbg2.png"
},
{
"level": "育儿宝典",
"subTitle": "专家文章、育儿知识、饮食知识",
"btnTitle": "",
"btnSubTitle": "",
"showCornerTxt": "",
"link": "",
"bgUrl": "homepage/cardbg3.png"
}
], ],
"vipCardList": [{ "contentImgList": [
"level": "钻石会员", {
"subTitle": "育儿课程权益", "bgUrl": "homepage/content_1.png",
"btnTitle": "12类系列课程", "link": "www.baidu.com",
"btnSubTitle": "立即领取", "videoUrl": "https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/4-0%E5%AE%98%E7%BD%91%E8%A7%86%E9%A2%91.mp4",
"showCornerTxt": "待领取", "_style": "width:311rpx;height: 324rpx;left: 40rpx;top: 0;"
"link": "www.baidu.com", },
"bgUrl": "homepage/cardbg1.png" {
}, "bgUrl": "homepage/content_2.png",
{ "link": "www.baidu.com",
"level": "北纬47°系列", "videoUrl": "https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/%E9%A6%96%E9%A1%B5_2%E9%A3%9E%E9%B9%A4%E8%BF%9E%E7%BB%AD%E4%BA%94%E5%B9%B4%E5%A5%B6%E7%B2%89%E7%AC%AC%E4%B8%80.mp4",
"subTitle": "来自万年黑土的健康食品", "_style": "width:263rpx;height: 324rpx;right: 40rpx;top: 400rpx;"
"btnTitle": "", },
"btnSubTitle": "", {
"showCornerTxt": "", "bgUrl": "homepage/content_3.png",
"link": "", "link": "www.baidu.com",
"bgUrl": "homepage/cardbg2.png" "videoUrl": "https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/%E9%A6%96%E9%A1%B5_3%E3%80%909%E6%9C%8827%E6%97%A5%E3%80%91%E9%A3%9E%E9%B9%A4_%E4%B8%96%E7%95%8C%E6%97%85%E6%B8%B8%E6%97%A5.mp4",
}, "_style": "width:418rpx;height: 345rpx;left: 40rpx;top: 750rpx;"
{ },
"level": "育儿宝典", {
"subTitle": "专家文章、育儿知识、饮食知识", "bgUrl": "homepage/content_4.png",
"btnTitle": "", "link": {
"btnSubTitle": "", "type": 3,
"showCornerTxt": "", "url": "https://mp.weixin.qq.com/s/HhBF5h8xX8zOrthsy2-Y-A",
"link": "", "extra": {}
"bgUrl": "homepage/cardbg3.png" },
}, "_style": "width:263rpx;height: 324rpx;right: 40rpx;top: 1120rpx;"
], }
"contentImgList": [{
"bgUrl": 'homepage/content_1.png',
"link": 'www.baidu.com',
"videoUrl": 'https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/%E9%A6%96%E9%A1%B5_1%E3%80%8A%E5%AE%98%E7%BD%91%E8%A7%86%E9%A2%91%E3%80%8B_%E4%B8%8A%E7%BA%AA%E7%89%88%E5%B8%A6%E5%B0%81%E9%9D%A20306.m4v',
"_style": 'width:311rpx;height: 324rpx;left: 40rpx;top: 0;'
},
{
"bgUrl": 'homepage/content_2.png',
"link": 'www.baidu.com',
"videoUrl":"https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/%E9%A6%96%E9%A1%B5_2%E9%A3%9E%E9%B9%A4%E8%BF%9E%E7%BB%AD%E4%BA%94%E5%B9%B4%E5%A5%B6%E7%B2%89%E7%AC%AC%E4%B8%80.mp4",
"_style": 'width:263rpx;height: 324rpx;right: 40rpx;top: 400rpx;'
},
{
"bgUrl": 'homepage/content_3.png',
"link": 'www.baidu.com',
"videoUrl":"https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/homepage/%E9%A6%96%E9%A1%B5_3%E3%80%909%E6%9C%8827%E6%97%A5%E3%80%91%E9%A3%9E%E9%B9%A4_%E4%B8%96%E7%95%8C%E6%97%85%E6%B8%B8%E6%97%A5.mp4",
"_style": 'width:418rpx;height: 345rpx;left: 40rpx;top: 750rpx;'
},
{
"bgUrl": 'homepage/content_4.png',
"link": 'www.baidu.com',
"_style": 'width:263rpx;height: 324rpx;right: 40rpx;top: 1120rpx;'
}
], ],
"channelTabList": ["凯叔讲故事", "哄睡故事", "知识科普", "安全意识", "社交能力"], "channelTabList": ["凯叔讲故事", "哄睡故事", "知识科普", "安全意识", "社交能力"],
"changelInfoList": [ "changelInfoList": [
[{ [
"bgUrl": "homepage/channel_0_1.png", {
"title": "凯叔·金子美铃童诗:【星星和蒲公英】", "bgUrl": "homepage/channel_0_1.png",
"link": "www.baidu.com" "title": "凯叔·金子美铃童诗:【星星和蒲公英】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22121&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1221",
"extra": {}
}
},
{
"bgUrl": "homepage/channel_0_1.png",
"title": "凯叔·金子美铃童诗:【天空和海】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22119&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1221",
"extra": {}
}
}
],
[
{
"bgUrl": "homepage/channel_1_1.png",
"title": "凯叔-小睡仙:【睡吧睡吧,香香的】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22238&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1211",
"extra": {}
}
},
{
"bgUrl": "homepage/channel_1_1.png",
"title": "凯叔-小睡仙:【睡觉仙气,3,2,1,】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22237&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1211",
"extra": {}
}
}
],
[
{
"bgUrl": "homepage/channel_2_1.png",
"title": "教宝宝认识人体:【守护眼睛的睫毛】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21867&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1220",
"extra": {}
}
},
{
"bgUrl": "homepage/channel_2_1.png",
"title": "教宝宝认识人体:【为什么肚子会咕咕叫?】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21880&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1220",
"extra": {}
}
}
],
[
{
"bgUrl": "homepage/channel_3_1.png",
"title": "教宝宝不乱吃东西:【这个不能吃】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21869&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1218",
"extra": {}
}
},
{
"bgUrl": "homepage/channel_3_1.png",
"title": "培养宝宝不摸插座的安全意识:【电线插座不好玩】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21803&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1218",
"extra": {}
}
}
],
[
{
"bgUrl": "homepage/channel_4_1.png",
"title": "教会宝宝不嘲笑别人:【鹳鸟】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21949&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1216",
"extra": {}
}
},
{
"bgUrl": "homepage/channel_4_1.png",
"title": "培养宝宝尊重别人的习惯:【爱嘲笑人的斑斑】",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21888&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1216",
"extra": {}
}
}
]
],
"childrenInfoList": [
{
"bgUrl": "homepage/children_0.png",
"title": "1+3 育儿妙招大揭秘,带娃从此不“蕉绿”",
"link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/Xn5dh96OaQ9CcsVMZ5jnvg",
"extra": {}
}
}, },
{ {
"bgUrl": "homepage/channel_0_1.png", "bgUrl": "homepage/children_1.png",
"title": "凯叔·金子美铃童诗:【天空和海】", "title": "已有儿童中招,严重可瘫痪夏季防蜱虫最全指南速看",
"link": "www.baidu.com" "link": {
} "type": 3,
], "url": "https://mp.weixin.qq.com/s/fL5UZjWUXmPrjJgSe2Hr5g",
[{ "extra": {}
"bgUrl": "homepage/channel_1_1.png", }
"title": "凯叔-小睡仙:【睡吧睡吧,香香的】",
"link": "www.baidu.com"
}, },
{ {
"bgUrl": "homepage/channel_1_1.png", "bgUrl": "homepage/children_2.png",
"title": "凯叔-小睡仙:【睡觉仙气,3,2,1,】", "title": "99% 家长忽略的脑发育关键动作",
"link": "www.baidu.com" "link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/G5q6g-EdRWqasB6tvRgIzw",
"extra": {}
}
} }
], ],
[{ "bottomLinkList": [
"bgUrl": "homepage/channel_2_1.png", {
"title": "教宝宝认识人体:【守护眼睛的睫毛】", "bgUrl": "homepage/iconwx.png",
"link": "www.baidu.com" "link": "www.baidu.com",
"_style": "width:70rpx;height:109rpx;"
}, },
{ {
"bgUrl": "homepage/channel_2_1.png", "bgUrl": "homepage/iconqw.png",
"title": "教宝宝认识人体:【为什么肚子会咕咕叫?】", "link": "www.baidu.com",
"link": "www.baidu.com" "_style": "width:95rpx;height:109rpx;"
}
],
[{
"bgUrl": "homepage/channel_3_1.png",
"title": "教宝宝不乱吃东西:【这个不能吃】",
"link": "www.baidu.com"
}, },
{ {
"bgUrl": "homepage/channel_3_1.png", "bgUrl": "homepage/iconsph.png",
"title": "培养宝宝不摸插座的安全意识:【电线插座不好玩】", "link": "www.baidu.com",
"link": "www.baidu.com" "_style": "width:70rpx;height:109rpx;"
}
],
[{
"bgUrl": "homepage/channel_4_1.png",
"title": "教会宝宝不嘲笑别人:【鹤鸟】",
"link": "www.baidu.com"
}, },
{ {
"bgUrl": "homepage/channel_4_1.png", "bgUrl": "homepage/iconxhs.png",
"title": "培养宝宝尊重别人的习惯:【爱嘲笑人的斑斑】", "link": "www.baidu.com",
"link": "www.baidu.com" "_style": "width:88rpx;height:99rpx;"
} }
]
],
"childrenInfoList": [{
"bgUrl": "homepage/children_0.png",
"title": "1+3 育儿妙招大揭秘,带娃从此不”蕉绿“",
"link": "www.baidu.com"
},
{
"bgUrl": "homepage/children_1.png",
"title": "已有儿童中招,严重可瘫痪夏季防蜱虫最全指南速看",
"link": "www.baidu.com"
},
{
"bgUrl": "homepage/children_2.png",
"title": "99% 家长忽略的脑发育关键动作",
"link": "www.baidu.com"
}
]
, "bottomLinkList": [{
"bgUrl": "homepage/iconwx.png",
"link": "www.baidu.com",
"_style": "width:70rpx;height:109rpx;"
},
{
"bgUrl": "homepage/iconqw.png",
"link": "www.baidu.com",
"_style": "width:95rpx;height:109rpx;"
},
{
"bgUrl": "homepage/iconsph.png",
"link": "www.baidu.com",
"_style": "width:70rpx;height:109rpx;"
},
{
"bgUrl": "homepage/iconxhs.png",
"link": "www.baidu.com",
"_style": "width:88rpx;height:99rpx;"
}
], ],
"qrInfoList": [{ "qrInfoList": [
"title": "公众号", {
"desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>公众号,了解更多专业育儿资讯", "title": "公众号",
"qrUrl": "homepage/qrcode_gzh.png" "desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>公众号,了解更多专业育儿资讯",
}, "qrUrl": "homepage/qrcode_gzh.png"
{ },
"title": "企业微信", {
"desc": "扫码添加<span style:'color:#D3A358;'>星妈管家</span>企微,了解更多专业育儿资讯", "title": "企业微信",
"qrUrl": "homepage/qrcode_qw.png" "desc": "扫码添加<span style:'color:#D3A358;'>星妈管家</span>企微,了解更多专业育儿资讯",
}, "qrUrl": "homepage/qrcode_qw.png"
{ },
"title": "视频号", {
"desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>视频号,了解更多专业育儿资讯", "title": "视频号",
"qrUrl": "homepage/qrcode_sph.png" "desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>视频号,了解更多专业育儿资讯",
}, "qrUrl": "homepage/qrcode_sph.png"
}
] ]
} }
var b = JSON.stringify(JSON.stringify(a)); var b = JSON.stringify(JSON.stringify(a));
console.log(b); console.log(b);
\ No newline at end of file
export const productsObj = {
productList: [
{
id: '1-1',
imgLength:20,
shareTitle: '产品1',
shareImg: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png'
},
{
id: '1-2',
imgLength:10,
shareTitle: '产品2',
shareImg: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png'
},
{
id: '2-1',
imgLength:15,
shareTitle: '产品1',
shareImg: 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png'
}
]
}
\ No newline at end of file
...@@ -11,13 +11,16 @@ ...@@ -11,13 +11,16 @@
</template> </template>
<script> <script>
import { productsObj } from '../../mock/products';
export default { export default {
data() { data() {
return { return {
productId: '', productId: '',
imgLength:0, imgLength:0,
imgList:[], imgList:[],
productId:'',
skuId:'',
contentImg:'',
contentImgLen:'',
shareTitle:'', shareTitle:'',
shareImg:'' shareImg:''
} }
...@@ -27,24 +30,30 @@ export default { ...@@ -27,24 +30,30 @@ export default {
// options 就是跳转时传递的参数对象 // options 就是跳转时传递的参数对象
console.log('页面参数:', options); console.log('页面参数:', options);
this.productId = options.id; const {productId,skuId,contentImg,contentImgLen,shareTitle,shareImg} = options;
const { productList } = productsObj; this.productId = productId;
const product = productList.find(item => item.id === this.productId); this.skuId = skuId;
this.imgLength = product.imgLength; this.contentImg = contentImg;
this.shareTitle = product.shareTitle; this.contentImgLen = contentImgLen;
this.shareImg = product.shareImg; this.shareTitle = shareTitle;
this.imgList = Array.from({ length: this.imgLength }, (_, index) => { this.shareImg = this.$baseUrl + shareImg;
console.log("this.shareImg:",this.shareImg);
this.imgList = Array.from({ length: this.contentImgLen }, (_, index) => {
return { return {
imgUrl: this.$baseUrl + 'brandpage/products/' + this.productId.split('-')[0] + '/' + this.productId+'/product_'+this.productId.replace('-','_')+'_'+index + '.jpg' imgUrl: this.$baseUrl + 'brandpage/products/' + contentImg.split('-')[0] + '/'
+ contentImg+'/product_'+contentImg.replace('-','_')+'_'+index + '.jpg'
} }
}); });
console.log(this.imgList);
}, },
methods: { methods: {
buyHandler() { buyHandler() {
const _path = `/subPackages/shopMainProcess/product/index?productId=${this.productId}&skuId=${this.skuId}&entrySource=xmh_wechatmp_brand_profamily`
uni.navigateToMiniProgram({ uni.navigateToMiniProgram({
appId: 'wx1234567890abcdef', appId: 'wx4205ec55b793245e',
path: 'pages/index/index', path: _path,
envVersion: 'release',
success(res) { success(res) {
console.log('跳转成功', res) console.log('跳转成功', res)
}, },
...@@ -53,9 +62,7 @@ export default { ...@@ -53,9 +62,7 @@ export default {
} }
}) })
}, },
shareHandler() {
}
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="flexinput"> <view class="flexinput">
<image class="icon_search_yellow" :src="$baseUrl+'searchpage/icon_search_yellow.png'"> <image class="icon_search_yellow" :src="$baseUrl+'searchpage/icon_search_yellow.png'">
</image> </image>
<input confirm-type="search" maxlength="50" class="nav-bar-input" type="text" placeholder="输入搜索关键词" <input confirm-type="search" maxlength="50" :value="searchValue" class="nav-bar-input" type="text" placeholder="输入搜索关键词"
@confirm="confirm" /> @confirm="confirm" />
</view> </view>
</view> </view>
...@@ -31,17 +31,26 @@ ...@@ -31,17 +31,26 @@
<van-tabs :color="`#d3a358`" line-width="15px" :active="tabIndex" @click="onTabChange"> <van-tabs :color="`#d3a358`" line-width="15px" :active="tabIndex" @click="onTabChange">
<van-tab title="内容" name="content"></van-tab> <van-tab title="内容" name="content"></van-tab>
<van-tab title="工具" name="tool"></van-tab> <van-tab title="工具" name="tool"></van-tab>
<van-tab title="商品" name="product"></van-tab> <!-- <van-tab title="商品" name="product"></van-tab> -->
</van-tabs> </van-tabs>
</view> </view>
<view v-if="step !== 1" class="cardbox"> <view v-if="step !== 1 && tabIndex==='content'" class="cardbox">
<view class="card" v-for="(item,index) in resultList[tabIndex]" :key="index">
<image class="pic" :src="$baseUrl+item.bgUrl"></image>
<view class="desc">
{{item.desc}}
</view>
<view class="timestr">{{item.timeStr||"2025-06-10"}}</view>
</view>
</view>
<view v-if="step !== 1 && tabIndex==='tool'" class="cardbox">
<view class="card" v-for="(item,index) in resultList[tabIndex]" :key="index"> <view class="card" v-for="(item,index) in resultList[tabIndex]" :key="index">
<image class="pic" :src="$baseUrl+item.bgUrl"></image> <image class="pic" :src="$baseUrl+item.bgUrl"></image>
<view class="desc"> <view class="desc">
{{item.desc}} {{item.desc}}
</view> </view>
<view class="timestr">{{item.timeStr}}</view> <view class="timestr">{{item.timeStr||"2025-06-10"}}</view>
</view> </view>
</view> </view>
...@@ -54,136 +63,136 @@ ...@@ -54,136 +63,136 @@
<script> <script>
import { historySearch,historyClear,search } from '../../api/search'; import { historySearch,historyClear,search } from '../../api/search';
const recentTagsList=[ // const recentTagsList=[
"功能营养","母婴","功能营养","母婴","功能营养","母婴","功能营养","母婴","功能营养","母婴" // "功能营养","母婴","功能营养","母婴","功能营养","母婴","功能营养","母婴","功能营养","母婴"
] // ]
const oftenTagsList=["婴幼儿奶粉","权益","奶酪棒","星飞帆经典"] const oftenTagsList=["婴幼儿奶粉","权益","奶酪棒","星飞帆经典"]
const resultList = { // const resultList = {
"content":[ // "content":[
{ // {
bgUrl:"searchpage/test.png", // bgUrl:"searchpage/test.png",
desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条", // desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test.png", // bgUrl:"searchpage/test.png",
desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条", // desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test.png", // bgUrl:"searchpage/test.png",
desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条", // desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test.png", // bgUrl:"searchpage/test.png",
desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条", // desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test.png", // bgUrl:"searchpage/test.png",
desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条", // desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test.png", // bgUrl:"searchpage/test.png",
desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条", // desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test.png", // bgUrl:"searchpage/test.png",
desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条", // desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test.png", // bgUrl:"searchpage/test.png",
desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条", // desc:"宝宝出生必做6件事,90 %爸妈漏掉第3条",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
} // }
], // ],
"tool":[ // "tool":[
{ // {
bgUrl:"searchpage/test2.png", // bgUrl:"searchpage/test2.png",
desc:"秋风渐凉,宝宝的免疫力 也进入 “换季挑战期”", // desc:"秋风渐凉,宝宝的免疫力 也进入 “换季挑战期”",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test2.png", // bgUrl:"searchpage/test2.png",
desc:"秋风渐凉,宝宝的免疫力 也进入 “换季挑战期”", // desc:"秋风渐凉,宝宝的免疫力 也进入 “换季挑战期”",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test2.png", // bgUrl:"searchpage/test2.png",
desc:"秋风渐凉,宝宝的免疫力 也进入 “换季挑战期”", // desc:"秋风渐凉,宝宝的免疫力 也进入 “换季挑战期”",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test2.png", // bgUrl:"searchpage/test2.png",
desc:"秋风渐凉,宝宝的免疫力 也进入 “换季挑战期”", // desc:"秋风渐凉,宝宝的免疫力 也进入 “换季挑战期”",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test2.png", // bgUrl:"searchpage/test2.png",
desc:"秋风渐凉,宝宝的免疫力 也进入 “换季挑战期”", // desc:"秋风渐凉,宝宝的免疫力 也进入 “换季挑战期”",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
], // ],
"product":[ // "product":[
{ // {
bgUrl:"searchpage/test3.png", // bgUrl:"searchpage/test3.png",
desc:"3 个 0 成本游戏,让宝宝 越玩越聪明~", // desc:"3 个 0 成本游戏,让宝宝 越玩越聪明~",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test3.png", // bgUrl:"searchpage/test3.png",
desc:"3 个 0 成本游戏,让宝宝 越玩越聪明~", // desc:"3 个 0 成本游戏,让宝宝 越玩越聪明~",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test3.png", // bgUrl:"searchpage/test3.png",
desc:"3 个 0 成本游戏,让宝宝 越玩越聪明~", // desc:"3 个 0 成本游戏,让宝宝 越玩越聪明~",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test3.png", // bgUrl:"searchpage/test3.png",
desc:"3 个 0 成本游戏,让宝宝 越玩越聪明~", // desc:"3 个 0 成本游戏,让宝宝 越玩越聪明~",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
{ // {
bgUrl:"searchpage/test3.png", // bgUrl:"searchpage/test3.png",
desc:"3 个 0 成本游戏,让宝宝 越玩越聪明~", // desc:"3 个 0 成本游戏,让宝宝 越玩越聪明~",
timeStr:"2025-03-10", // timeStr:"2025-03-10",
link:"www.baidu.com" // link:"www.baidu.com"
}, // },
] // ]
} // }
export default { export default {
data() { data() {
return { return {
statusBarHeight: 38, statusBarHeight: 38,
recentTagsList:recentTagsList, recentTagsList:[],
oftenTagsList:oftenTagsList, oftenTagsList:oftenTagsList,
step:1, step:1,
resultList:resultList, resultList:{'tool':[],'content':[],'product':[]},
tabIndex:'content', tabIndex:'content',
searchValue:'' searchValue:''
} }
...@@ -211,12 +220,8 @@ ...@@ -211,12 +220,8 @@
}, },
onTabChange(evt) onTabChange(evt)
{ {
console.log(evt);
this.tabIndex = evt.detail.name; this.tabIndex = evt.detail.name;
console.log(this.tabIndex);
console.log(this.resultList);
console.log(this.resultList[this.tabIndex]);
console.log(this.resultList['tool']);
}, },
confirm(evt){ confirm(evt){
this.searchHandler(evt.detail.value); this.searchHandler(evt.detail.value);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
:indicator-color="indicatorColor" :indicator-active-color="indicatoractiveColor"> :indicator-color="indicatorColor" :indicator-active-color="indicatoractiveColor">
<swiper-item v-for="item in swiperList" :key="item.url"> <swiper-item v-for="item in swiperList" :key="item.url">
<view class="swiper-item banneritem"> <view class="swiper-item banneritem">
<image :data-link="item.link" @tap="jumpLink(item.link)" class="b-img" <image :data-link="item.link" @tap="jumpLink(item.link,item.videoUrl)" class="b-img"
:src="$baseUrl + item.url"> :src="$baseUrl + item.url">
</image> </image>
</view> </view>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</view> </view>
<view v-if="productInfoList.length > 0" class="productbox"> <view v-if="productInfoList.length > 0" class="productbox">
<view class="infobox" :key="index" v-for="(infoItem, index) in productInfoList[channelTabIndex]" <view class="infobox" :key="index" v-for="(infoItem, index) in productInfoList[channelTabIndex]"
@tap="jumpLink(infoItem.link)"> @tap="jumpProduct(infoItem)">
<view class="flexbox"> <view class="flexbox">
<view class="infotitle"> <view class="infotitle">
{{ infoItem.title }} {{ infoItem.title }}
...@@ -132,6 +132,7 @@ ...@@ -132,6 +132,7 @@
import { brandObj } from '../mock/brand'; import { brandObj } from '../mock/brand';
import { fetchBrandJSON } from '../api/brand'; import { fetchBrandJSON } from '../api/brand';
import { jump, JumpType } from '../utils';
export default { export default {
data() { data() {
return { return {
...@@ -189,10 +190,26 @@ export default { ...@@ -189,10 +190,26 @@ export default {
this.swiperIndex = _index; this.swiperIndex = _index;
}, },
jumpLink(_link) { jumpLink(_link,videoUrl) {
// console.log(_link) // console.log(_link)
// uni.navigateTo({
// url: "/pages/product/product?id=1-1"
// })
if (videoUrl) {
// 弹出视频
this.currentVideoUrl = videoUrl;
this.showVideo = true;
return;
// 视频弹窗出现后,video标签的autoplay会自动播放
} else if (link) {
// 其他跳转逻辑
jump(link);
}
},
jumpProduct(item){
const {productId,skuId,contentImg,contentImgLen,shareTitle,shareImg} = item;
uni.navigateTo({ uni.navigateTo({
url: "/pages/product/product?id=1-1" url: "/pages/product/product?productId="+productId+"&skuId="+skuId+"&contentImg="+contentImg+"&contentImgLen="+contentImgLen+"&shareTitle="+shareTitle+"&shareImg="+shareImg
}) })
}, },
channelTabHandler(_index) { channelTabHandler(_index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment