Commit 0367c328 authored by spc's avatar spc

fixed

parent 4af66cda
......@@ -17,8 +17,8 @@ const {
// 通常可以吧 baseUrl 单独放在一个 js 文件了
// const baseUrl = "http://172.16.224.178:7777/pmall";
// const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境
const baseUrl = "https://momclub.feihe.com/pmall";//生产环境
// const baseUrl = "https://feihe.m.duibatest.com.cn/pmall";//测试环境
// const baseUrl = "https://momclub.feihe.com/pmall";//生产环境
const baseUrl = "https://feihe.m.duibatest.com.cn/pmall";//测试环境
const request = (options = {}) => {
// 在这里可以对请求头进行一些设置
......
{
"voiceStory":{
"link":{
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia?from=song&sourceFrom=moreTools&source=moreTools&num=1&bir=2024-05-23&monthAge=12&month=null"
}
},
"suggest":{
"link":{
"type": 3,
"url": "https://mom.feihe.com/expertsView?from=home"
}
},
"swiperList": [
{
"url": "homepage/banner1.jpg",
"link": {
"type": 1,
"url": "/pages/library/ContentLibrary"
}
},
"url": "homepage/banner1.jpg"
},
{
"url": "homepage/banner2.jpg",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/moreTools?monthAge=undefined&month=null",
"extra": {}
}
"url": "https://mom.feihe.com/moreTools?monthAge=undefined&month=null"
},
"url": "homepage/banner2.jpg"
},
{
"url": "homepage/banner3.jpg",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainList/topicNew/index?id=1000898",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
}
"url": "subPackages/shopMainList/topicNew/index?id=1000898"
},
"url": "homepage/banner3.jpg"
}
],
"expertTeam": {
"maintitle": "专家团",
"etConUrl1": "homepage/et_con1.png",
"etConUrl2": "homepage/et_con2.png",
"etConUrl3": "homepage/et_con3.png"
},
"toolList": {
"maintitle": "工具推荐",
"subtitle": "更多妈妈都在用,告别手忙脚乱助你轻松带娃!",
"bgUrl": "homepage/toolBg.png",
"jtIcon": "homepage/tool_jt.png",
"tools": [
{
"type": 1,
"title": "AI起名1",
"context": "多维度名字解析系统",
"icon": "homepage/tool_icon1.png",
"link": {
"type": 1,
"url": "/pages/naming/naming",
"extra": {}
}
},
{
"type": 1,
"title": "喂养工具2",
"context": "适合宝宝的才是好的",
"icon": "homepage/tool_icon1.png",
"link": {
"type": 1,
"url": "/pages/naming/naming",
"extra": {}
}
},
{
"type": 1,
"title": "AI起名3",
"context": "适合宝宝的才是好的",
"icon": "homepage/tool_icon1.png",
"link": {
"type": 1,
"url": "/pages/naming/naming",
"extra": {}
}
},
{
"type": 1,
"title": "喂养工具4",
"context": "适合宝宝的才是好的",
"icon": "homepage/tool_icon1.png",
"link": {
"type": 1,
"url": "/pages/naming/naming",
"extra": {}
}
},
{
"type": 1,
"title": "AI起名5",
"context": "适合宝宝的才是好的",
"icon": "homepage/tool_icon1.png",
"link": {
"type": 1,
"url": "/pages/naming/naming",
"extra": {}
}
}
]
},
"childrenInfoListMianTitle": "育儿智库",
"childrenInfoList": [
[
{
"link": {
"extra": {},
"type": 3,
"url": "https://mp.weixin.qq.com/s/Xn5dh96OaQ9CcsVMZ5jnvg"
},
"desc": "1+3 育儿妙招大揭秘,带娃从此不\"蕉绿\"",
"desc2": "1+3 育儿妙招大揭秘,带娃从此不蕉绿",
"isNew": true,
"bgUrl": "homepage/children/children_0.png"
},
{
"link": {
"extra": {},
"type": 3,
"url": "https://mp.weixin.qq.com/s/fL5UZjWUXmPrjJgSe2Hr5g"
},
"desc": "已有儿童中招,严重可瘫痪夏季防蜱虫最全指南速看",
"desc2": "已有儿童中招,严重可瘫痪夏季防蜱虫最全指南速看",
"isNew": false,
"bgUrl": "homepage/children/children_1.png"
},
{
"link": {
"extra": {},
"type": 3,
"url": "https://mp.weixin.qq.com/s/G5q6g-EdRWqasB6tvRgIzw"
},
"desc": "99% 家长忽略的脑发育关键动作",
"desc2": "99% 家长忽略的脑发育关键动作",
"isNew": false,
"bgUrl": "homepage/children/children_2.png"
}
]
],
"vipConfigList": [
{
"grade": "-1",
"level": "注册会员",
"subTitle": "新人礼权益",
"bgUrl": "homepage/cardbg1.png",
"btnTitle": "首注200元优惠券",
"btnSubTitle": "立即注册"
"subTitle": "新人礼权益",
"level": "注册会员",
"btnSubTitle": "立即注册",
"grade": "-1",
"bgUrl": "homepage/cardbg1.png"
},
{
"grade": "0",
"subTitle": "免费问诊权益",
"bgUrl": "homepage/cardbg1.png",
"btnTitle": "三甲医生在线问诊",
"subTitle": "免费问诊权益",
"btnSubTitle": "立即了解",
"grade": "0",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
}
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
},
{
"grade": "1",
"subTitle": "育儿课程权益",
"bgUrl": "homepage/cardbg1.png",
"btnTitle": "12类系列课程",
"subTitle": "育儿课程权益",
"btnSubTitle": "立即了解",
"grade": "1",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
}
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
},
{
"grade": "2",
"subTitle": "育儿课程权益",
"bgUrl": "homepage/cardbg1.png",
"btnTitle": "12类系列课程",
"subTitle": "育儿课程权益",
"btnSubTitle": "立即了解",
"grade": "2",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
}
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
},
{
"grade": "3",
"subTitle": "月月礼权益",
"bgUrl": "homepage/cardbg1.png",
"btnTitle": "1分购、优惠券",
"btnSubTitle": "立即了解",
"link": {
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
}
},
{
"grade": "4",
"subTitle": "月月礼权益",
"bgUrl": "homepage/cardbg1.png",
"btnTitle": "1分购、优惠券",
"btnSubTitle": "立即了解",
"link": {
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
}
}
],
"vipCardList": [
{
"level": "钻石会员",
"subTitle": "育儿课程权益",
"btnTitle": "12类系列课程",
"btnSubTitle": "立即了解",
"grade": "3",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
},
{
"level": "北纬47°系列",
"subTitle": "来自万年黑土的健康食品",
"btnTitle": "",
"btnSubTitle": "",
"showCornerTxt": "",
"btnTitle": "1分购、优惠券",
"subTitle": "月月礼权益",
"btnSubTitle": "立即了解",
"grade": "4",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainList/topicNew/index?id=1000265&entrySource=xmh_wechatmp_home_recgoods",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
},
"bgUrl": "homepage/cardbg2.png"
},
{
"level": "育儿宝典",
"subTitle": "专家文章、育儿知识、饮食知识",
"btnTitle": "",
"btnSubTitle": "",
"showCornerTxt": "",
"link": {
"type": 1,
"url": "/pages/library/ContentLibrary",
"extra": {}
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg3.png"
"bgUrl": "homepage/cardbg1.png"
}
],
"contentImgList": [
{
"bgUrl": "homepage/content_1.png",
"link": "www.baidu.com",
"videoUrl": "https://course.feihe.com/momclub-picture/homepage/4-0%E5%AE%98%E7%BD%91%E8%A7%86%E9%A2%91.mp4",
"_style": "width:311rpx;height: 324rpx;left: 40rpx;top: 0;"
"_style": "width:311rpx;height: 324rpx;left: 40rpx;top: 0;",
"link": "www.baidu.com",
"bgUrl": "homepage/content_1.png"
},
{
"bgUrl": "homepage/content_2.png",
"link": "www.baidu.com",
"videoUrl": "https://course.feihe.com/momclub-picture/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;"
"_style": "width:263rpx;height: 324rpx;right: 40rpx;top: 400rpx;",
"link": "www.baidu.com",
"bgUrl": "homepage/content_2.png"
},
{
"bgUrl": "homepage/content_3.png",
"link": "www.baidu.com",
"videoUrl": "https://course.feihe.com/momclub-picture/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;"
"_style": "width:418rpx;height: 345rpx;left: 40rpx;top: 750rpx;",
"link": "www.baidu.com",
"bgUrl": "homepage/content_3.png"
},
{
"bgUrl": "homepage/content_4.png",
"_style": "width:263rpx;height: 324rpx;right: 40rpx;top: 1120rpx;",
"link": {
"extra": {},
"type": 3,
"url": "https://mp.weixin.qq.com/s/HhBF5h8xX8zOrthsy2-Y-A",
"extra": {}
"url": "https://mp.weixin.qq.com/s/HhBF5h8xX8zOrthsy2-Y-A"
},
"_style": "width:263rpx;height: 324rpx;right: 40rpx;top: 1120rpx;"
"bgUrl": "homepage/content_4.png"
}
],
"channelTabList": ["凯叔讲故事", "哄睡故事", "知识科普", "安全意识", "社交能力"],
"changelInfoList": [
[
{
"bgUrl": "homepage/channel/channel_0_0.png",
"desc": "凯叔·金子美铃童诗:【星星和蒲公英】",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22121&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1221",
"extra": {}
}
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22121&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1221"
},
"desc": "凯叔·金子美铃童诗:【星星和蒲公英】",
"bgUrl": "homepage/channel/channel_0_0.png"
},
{
"bgUrl": "homepage/channel/channel_0_1.png",
"desc": "凯叔·金子美铃童诗:【天空和海】",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22119&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1221",
"extra": {}
}
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22119&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1221"
},
"desc": "凯叔·金子美铃童诗:【天空和海】",
"bgUrl": "homepage/channel/channel_0_1.png"
}
],
[
{
"bgUrl": "homepage/channel/channel_1_0.png",
"desc": "凯叔-小睡仙:【睡吧睡吧,香香的】",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22238&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1211",
"extra": {}
}
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22238&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1211"
},
"desc": "凯叔-小睡仙:【睡吧睡吧,香香的】",
"bgUrl": "homepage/channel/channel_1_0.png"
},
{
"bgUrl": "homepage/channel/channel_1_1.png",
"desc": "凯叔-小睡仙:【睡觉仙气,3,2,1,】",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22237&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1211",
"extra": {}
}
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22237&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1211"
},
"desc": "凯叔-小睡仙:【睡觉仙气,3,2,1,】",
"bgUrl": "homepage/channel/channel_1_1.png"
}
],
[
{
"bgUrl": "homepage/channel/channel_2_0.png",
"desc": "教宝宝认识人体:【守护眼睛的睫毛】",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21867&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1220",
"extra": {}
}
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21867&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1220"
},
"desc": "教宝宝认识人体:【守护眼睛的睫毛】",
"bgUrl": "homepage/channel/channel_2_0.png"
},
{
"bgUrl": "homepage/channel/channel_2_1.png",
"desc": "教宝宝认识人体:【为什么肚子会咕咕叫?】",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21823&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1220",
"extra": {}
}
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21823&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1220"
},
"desc": "教宝宝认识人体:【为什么肚子会咕咕叫?】",
"bgUrl": "homepage/channel/channel_2_1.png"
}
],
[
{
"bgUrl": "homepage/channel/channel_3_0.png",
"desc": "教宝宝不乱吃东西:【这个不能吃】",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21869&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1218",
"extra": {}
}
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21869&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1218"
},
"desc": "教宝宝不乱吃东西:【这个不能吃】",
"bgUrl": "homepage/channel/channel_3_0.png"
},
{
"bgUrl": "homepage/channel/channel_3_1.png",
"desc": "培养宝宝不摸插座的安全意识:【电线插座不好玩】",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21803&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1218",
"extra": {}
}
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21803&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1218"
},
"desc": "培养宝宝不摸插座的安全意识:【电线插座不好玩】",
"bgUrl": "homepage/channel/channel_3_1.png"
}
],
[
{
"bgUrl": "homepage/channel/channel_4_0.png",
"desc": "教会宝宝不嘲笑别人:【鹳鸟】",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21949&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1216",
"extra": {}
}
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21949&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1216"
},
"desc": "教会宝宝不嘲笑别人:【鹳鸟】",
"bgUrl": "homepage/channel/channel_4_0.png"
},
{
"bgUrl": "homepage/channel/channel_4_1.png",
"desc": "培养宝宝尊重别人的习惯:【爱嘲笑人的斑斑】",
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21888&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1216",
"extra": {}
}
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21888&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1216"
},
"desc": "培养宝宝尊重别人的习惯:【爱嘲笑人的斑斑】",
"bgUrl": "homepage/channel/channel_4_1.png"
}
]
],
"childrenInfoList": [[
"bottomLinkList": [
{
"bgUrl": "homepage/children/children_0.png",
"desc": "1+3 育儿妙招大揭秘,带娃从此不“蕉绿”",
"link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/Xn5dh96OaQ9CcsVMZ5jnvg",
"extra": {}
}
"_style": "width:70rpx;height:109rpx;",
"link": "www.baidu.com",
"bgUrl": "homepage/iconwx.png"
},
{
"bgUrl": "homepage/children/children_1.png",
"desc": "已有儿童中招,严重可瘫痪夏季防蜱虫最全指南速看",
"link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/fL5UZjWUXmPrjJgSe2Hr5g",
"extra": {}
}
"_style": "width:95rpx;height:109rpx;",
"link": "www.baidu.com",
"bgUrl": "homepage/iconqw.png"
},
{
"bgUrl": "homepage/children/children_2.png",
"desc": "99% 家长忽略的脑发育关键动作",
"link": {
"type": 3,
"url": "https://mp.weixin.qq.com/s/G5q6g-EdRWqasB6tvRgIzw",
"extra": {}
}
}]
],
"bottomLinkList": [
{
"bgUrl": "homepage/iconwx.png",
"_style": "width:70rpx;height:109rpx;",
"link": "www.baidu.com",
"_style": "width:70rpx;height:109rpx;"
"bgUrl": "homepage/iconsph.png"
},
{
"bgUrl": "homepage/iconqw.png",
"_style": "width:88rpx;height:99rpx;",
"link": "www.baidu.com",
"_style": "width:95rpx;height:109rpx;"
"bgUrl": "homepage/iconxhs.png"
}
],
"vipCardList": [
{
"btnTitle": "12类系列课程",
"subTitle": "育儿课程权益",
"level": "钻石会员",
"btnSubTitle": "立即了解",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
},
{
"bgUrl": "homepage/iconsph.png",
"link": "www.baidu.com",
"_style": "width:70rpx;height:109rpx;"
"btnTitle": "",
"showCornerTxt": "",
"subTitle": "来自万年黑土的健康食品",
"level": "北纬47°系列",
"btnSubTitle": "",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainList/topicNew/index?id=1000265&entrySource=xmh_wechatmp_home_recgoods"
},
"bgUrl": "homepage/cardbg2.png"
},
{
"bgUrl": "homepage/iconxhs.png",
"link": "www.baidu.com",
"_style": "width:88rpx;height:99rpx;"
"btnTitle": "",
"showCornerTxt": "",
"subTitle": "专家文章、育儿知识、饮食知识",
"level": "育儿宝典",
"btnSubTitle": "",
"link": {
"extra": {},
"type": 1,
"url": "/pages/library/ContentLibrary"
},
"bgUrl": "homepage/cardbg3.png"
}
],
"suggest": {
"link": {
"type": 3,
"url": "https://mom.feihe.com/expertsView?from=home"
}
},
"qrInfoList": [
{
"qrUrl": "homepage/qrcode_gzh.png",
"title": "公众号",
"desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>公众号,了解更多专业育儿资讯",
"qrUrl": "homepage/qrcode_gzh.png"
"desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>公众号,了解更多专业育儿资讯"
},
{
"qrUrl": "homepage/qrcode_qw.png",
"title": "企业微信",
"desc": "扫码添加<span style:'color:#D3A358;'>星妈管家</span>企微,了解更多专业育儿资讯",
"qrUrl": "homepage/qrcode_qw.png"
"desc": "扫码添加<span style:'color:#D3A358;'>星妈管家</span>企微,了解更多专业育儿资讯"
},
{
"qrUrl": "homepage/qrcode_sph.png",
"title": "视频号",
"desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>视频号,了解更多专业育儿资讯",
"qrUrl": "homepage/qrcode_sph.png"
"desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>视频号,了解更多专业育儿资讯"
}
],
"channelTabListMianTitle": "有声频道",
"channelTabList": [
"凯叔讲故事",
"哄睡故事",
"知识科普",
"安全意识",
"社交能力"
],
"voiceStory": {
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia?from=song&sourceFrom=moreTools&source=moreTools&num=1&bir=2024-05-23&monthAge=12&month=null"
}
]
}
},
"popupImageObj": {
"imageUrl": "homepage/tool_jt.png",
"jumpUrl": "https://www.baidu.com",
"jumpType": 3,
"jumpExtra": {}
},
"toolList": {
"maintitle": "工具推荐",
"jtIcon": "homepage/tool_jt.png",
"subtitle": "更多妈妈都在用,告别手忙脚乱助你轻松带娃!",
"tools": [
{
"icon": "homepage/tool_icon1.png",
"link": {
"extra": {},
"type": 1,
"url": "/pages/naming/naming"
},
"context": "多维度名字解析系统",
"type": 1,
"title": "AI起名1"
},
{
"icon": "homepage/tool_icon1.png",
"link": {
"extra": {},
"type": 1,
"url": "/pages/naming/naming"
},
"context": "适合宝宝的才是好的",
"type": 1,
"title": "喂养工具2"
},
{
"icon": "homepage/tool_icon1.png",
"link": {
"extra": {},
"type": 1,
"url": "/pages/naming/naming"
},
"context": "适合宝宝的才是好的",
"type": 1,
"title": "AI起名3"
},
{
"icon": "homepage/tool_icon1.png",
"link": {
"extra": {},
"type": 1,
"url": "/pages/naming/naming"
},
"context": "适合宝宝的才是好的",
"type": 1,
"title": "喂养工具4"
},
{
"icon": "homepage/tool_icon1.png",
"link": {
"extra": {},
"type": 1,
"url": "/pages/naming/naming"
},
"context": "适合宝宝的才是好的",
"type": 1,
"title": "AI起名5"
}
],
"bgUrl": "homepage/toolBg.png"
},
"expertTeam": {
"maintitle": "专家团",
"etConUrl2": "homepage/et_con2.png",
"etConUrl3": "homepage/et_con3.png",
"etConUrl1": "homepage/et_con1.png"
}
}
\ No newline at end of file
......@@ -284,7 +284,7 @@
<!-- 新增图片弹窗 -->
<uni-popup :is-mask-click="false" :safe-area="false" ref="imagePopup" background-color="transparent">
<view class="image-popup-content">
<view class="image-popup-content" @tap="imagePopupJump">
<image class="popup-image" :src="popupImageUrl" mode="aspectFit"></image>
<image class="popup-close-btn" @tap="closeImagePopup" :src="$baseUrl + 'homepage/btnclose.png'"></image>
</view>
......@@ -397,6 +397,7 @@ export default {
childrenInfoListMianTitle: '',
channelTabListMianTitle: '',
popupImageUrl: '',
popupImageObj: {},
}
},
components: {
......@@ -422,7 +423,7 @@ export default {
// 处理 showPop1 弹窗逻辑(来自 fetchHomeInfo)
console.warn("showPop1", newVal)
if (newVal.homeInfo.showPop1) {
if (!newVal.homeInfo.showPop1) {
this.showPop1 = true;
// 延迟显示弹窗,确保页面渲染完成
this.$nextTick(() => {
......@@ -462,462 +463,8 @@ export default {
},
methods: {
async initHomeInfo() {
const { data1 } = await fetchHomeJSON();
const data = {
"popupImageUrl": "homepage/tool_jt.png",
"contentImgList": [
{
"videoUrl": "https://course.feihe.com/momclub-picture/homepage/4-0%E5%AE%98%E7%BD%91%E8%A7%86%E9%A2%91.mp4",
"_style": "width:311rpx;height: 324rpx;left: 40rpx;top: 0;",
"link": "www.baidu.com",
"bgUrl": "homepage/content_1.png"
},
{
"videoUrl": "https://course.feihe.com/momclub-picture/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;",
"link": "www.baidu.com",
"bgUrl": "homepage/content_2.png"
},
{
"videoUrl": "https://course.feihe.com/momclub-picture/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;",
"link": "www.baidu.com",
"bgUrl": "homepage/content_3.png"
},
{
"_style": "width:263rpx;height: 324rpx;right: 40rpx;top: 1120rpx;",
"link": {
"extra": {},
"type": 3,
"url": "https://mp.weixin.qq.com/s/HhBF5h8xX8zOrthsy2-Y-A"
},
"bgUrl": "homepage/content_4.png"
}
],
"toolList": {
"maintitle": "工具推荐",
"jtIcon": "homepage/tool_jt.png",
"subtitle": "更多妈妈都在用,告别手忙脚乱助你轻松带娃!",
"tools": [
{
"icon": "homepage/tool_icon1.png",
"link": {
"extra": {},
"type": 1,
"url": "/pages/naming/naming"
},
"context": "多维度名字解析系统",
"type": 1,
"title": "AI起名1"
},
{
"icon": "homepage/tool_icon1.png",
"link": {
"extra": {},
"type": 1,
"url": "/pages/naming/naming"
},
"context": "适合宝宝的才是好的",
"type": 1,
"title": "喂养工具2"
},
{
"icon": "homepage/tool_icon1.png",
"link": {
"extra": {},
"type": 1,
"url": "/pages/naming/naming"
},
"context": "适合宝宝的才是好的",
"type": 1,
"title": "AI起名3"
},
{
"icon": "homepage/tool_icon1.png",
"link": {
"extra": {},
"type": 1,
"url": "/pages/naming/naming"
},
"context": "适合宝宝的才是好的",
"type": 1,
"title": "喂养工具4"
},
{
"icon": "homepage/tool_icon1.png",
"link": {
"extra": {},
"type": 1,
"url": "/pages/naming/naming"
},
"context": "适合宝宝的才是好的",
"type": 1,
"title": "AI起名5"
}
],
"bgUrl": "homepage/toolBg.png"
},
"suggest": {
"link": {
"type": 3,
"url": "https://mom.feihe.com/expertsView?from=home"
}
},
"channelTabListMianTitle": "有声频道",
"channelTabList": [
"凯叔讲故事",
"哄睡故事",
"知识科普",
"安全意识",
"社交能力"
],
"voiceStory": {
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia?from=song&sourceFrom=moreTools&source=moreTools&num=1&bir=2024-05-23&monthAge=12&month=null"
}
},
"swiperList": [
{
"link": null,
"url": "feedingIndex/v1/icon_luyining.gif"
},
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/moreTools?monthAge=undefined&month=null"
},
"url": "homepage/banner2.jpg"
},
{
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainList/topicNew/index?id=1000898"
},
"url": "homepage/banner3.jpg"
}
],
"childrenInfoListMianTitle": "育儿智库",
"childrenInfoList": [
[
{
"link": {
"extra": {},
"type": 3,
"url": "https://mp.weixin.qq.com/s/Xn5dh96OaQ9CcsVMZ5jnvg"
},
"desc2": "1+3 育儿妙招大揭秘,带娃从此不'蕉绿'",
"isNew": true,
"desc": "1+3 育儿妙招大揭秘,带娃从此不'蕉绿'",
"bgUrl": "homepage/children/children_0.png"
},
{
"link": {
"extra": {},
"type": 3,
"url": "https://mp.weixin.qq.com/s/fL5UZjWUXmPrjJgSe2Hr5g"
},
"desc2": "已有儿童中招,严重可瘫痪夏季防蜱虫最全指南速看",
"isNew": false,
"desc": "已有儿童中招,严重可瘫痪夏季防蜱虫最全指南速看",
"bgUrl": "homepage/children/children_1.png"
},
{
"link": {
"extra": {},
"type": 3,
"url": "https://mp.weixin.qq.com/s/G5q6g-EdRWqasB6tvRgIzw"
},
"desc": "99% 家长忽略的脑发育关键动作",
"bgUrl": "homepage/children/children_2.png"
}
]
],
"vipConfigList": [
{
"btnTitle": "首注200元优惠券",
"subTitle": "新人礼权益",
"level": "注册会员",
"btnSubTitle": "立即注册",
"grade": "-1",
"bgUrl": "homepage/cardbg1.png"
},
{
"btnTitle": "三甲医生在线问诊",
"subTitle": "免费问诊权益",
"btnSubTitle": "立即了解",
"grade": "0",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
},
{
"btnTitle": "12类系列课程",
"subTitle": "育儿课程权益",
"btnSubTitle": "立即了解",
"grade": "1",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
},
{
"btnTitle": "12类系列课程",
"subTitle": "育儿课程权益",
"btnSubTitle": "立即了解",
"grade": "2",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
},
{
"btnTitle": "1分购、优惠券",
"subTitle": "月月礼权益",
"btnSubTitle": "立即了解",
"grade": "3",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
},
{
"btnTitle": "1分购、优惠券",
"subTitle": "月月礼权益",
"btnSubTitle": "立即了解",
"grade": "4",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
}
],
"changelInfoList": [
[
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22121&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1221"
},
"desc": "凯叔·金子美铃童诗:【星星和蒲公英】",
"bgUrl": "homepage/channel/channel_0_0.png"
},
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22119&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1221"
},
"desc": "凯叔·金子美铃童诗:【天空和海】",
"bgUrl": "homepage/channel/channel_0_1.png"
}
],
[
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22238&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1211"
},
"desc": "凯叔-小睡仙:【睡吧睡吧,香香的】",
"bgUrl": "homepage/channel/channel_1_0.png"
},
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=22237&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1211"
},
"desc": "凯叔-小睡仙:【睡觉仙气,3,2,1,】",
"bgUrl": "homepage/channel/channel_1_1.png"
}
],
[
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21867&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1220"
},
"desc": "教宝宝认识人体:【守护眼睛的睫毛】",
"bgUrl": "homepage/channel/channel_2_0.png"
},
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21823&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1220"
},
"desc": "教宝宝认识人体:【为什么肚子会咕咕叫?】",
"bgUrl": "homepage/channel/channel_2_1.png"
}
],
[
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21869&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1218"
},
"desc": "教宝宝不乱吃东西:【这个不能吃】",
"bgUrl": "homepage/channel/channel_3_0.png"
},
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21803&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1218"
},
"desc": "培养宝宝不摸插座的安全意识:【电线插座不好玩】",
"bgUrl": "homepage/channel/channel_3_1.png"
}
],
[
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21949&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1216"
},
"desc": "教会宝宝不嘲笑别人:【鹳鸟】",
"bgUrl": "homepage/channel/channel_4_0.png"
},
{
"link": {
"extra": {},
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia/audioDetail?id=21888&type=3&period_id=5&tag_id=1&navActive=1&fnTagId=1216"
},
"desc": "培养宝宝尊重别人的习惯:【爱嘲笑人的斑斑】",
"bgUrl": "homepage/channel/channel_4_1.png"
}
]
],
"bottomLinkList": [
{
"_style": "width:70rpx;height:109rpx;",
"link": "www.baidu.com",
"bgUrl": "homepage/iconwx.png"
},
{
"_style": "width:95rpx;height:109rpx;",
"link": "www.baidu.com",
"bgUrl": "homepage/iconqw.png"
},
{
"_style": "width:70rpx;height:109rpx;",
"link": "www.baidu.com",
"bgUrl": "homepage/iconsph.png"
},
{
"_style": "width:88rpx;height:99rpx;",
"link": "www.baidu.com",
"bgUrl": "homepage/iconxhs.png"
}
],
"vipCardList": [
{
"btnTitle": "12类系列课程",
"subTitle": "育儿课程权益",
"level": "钻石会员",
"btnSubTitle": "立即了解",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot"
},
"bgUrl": "homepage/cardbg1.png"
},
{
"btnTitle": "",
"showCornerTxt": "",
"subTitle": "来自万年黑土的健康食品",
"level": "北纬47°系列",
"btnSubTitle": "",
"link": {
"extra": {
"envVersion": "release",
"appId": "wx4205ec55b793245e"
},
"type": 2,
"url": "subPackages/shopMainList/topicNew/index?id=1000265&entrySource=xmh_wechatmp_home_recgoods"
},
"bgUrl": "homepage/cardbg2.png"
},
{
"btnTitle": "",
"showCornerTxt": "",
"subTitle": "专家文章、育儿知识、饮食知识",
"level": "育儿宝典",
"btnSubTitle": "",
"link": {
"extra": {},
"type": 1,
"url": "/pages/library/ContentLibrary"
},
"bgUrl": "homepage/cardbg3.png"
}
],
"qrInfoList": [
{
"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",
"title": "视频号",
"desc": "扫码关注<span style:'color:#D3A358;'>星妈会</span>视频号,了解更多专业育儿资讯"
}
],
"expertTeam": {
"maintitle": "专家团",
"etConUrl2": "homepage/et_con2.png",
"etConUrl3": "homepage/et_con3.png",
"etConUrl1": "homepage/et_con1.png"
}
}
const { data } = await fetchHomeJSON();
console.warn("data", data)
if (data) {
this.swiperList = data.swiperList;
this.vipConfigList = data.vipConfigList;
......@@ -935,7 +482,8 @@ export default {
this.suggest = data.suggest;
this.childrenInfoListMianTitle = data.childrenInfoListMianTitle;
this.channelTabListMianTitle = data.channelTabListMianTitle;
this.popupImageUrl = this.$baseUrl + data.popupImageUrl;
this.popupImageUrl = this.$baseUrl + data.popupImageObj?.imageUrl || '';
this.popupImageObj = data.popupImageObj || {};
if (this.homeStore.isLogin) {
this.vipCardList[0] = data.vipConfigList.find(item => item.grade === this.homeStore.homeInfo?.grade);
......@@ -1191,6 +739,10 @@ export default {
closeImagePopup() {
this.$refs.imagePopup.close();
},
imagePopupJump() {
jump({ type: this.popupImageObj.jumpType, url: this.popupImageObj.jumpUrl });
},
showImagePopup() {
this.$refs.imagePopup.open('center');
},
......@@ -2065,9 +1617,7 @@ export default {
flex-direction: column;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.8);
border-radius: 16rpx;
padding: 20rpx;
position: relative;
.popup-image {
......@@ -2081,7 +1631,7 @@ export default {
width: 70rpx;
height: 70rpx;
position: absolute;
bottom: 50rpx;
bottom: -50rpx;
left: 50%;
transform: translateX(-50%);
z-index: 10;
......
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