|
|
@ -120,138 +120,160 @@ Page({ |
|
|
|
|
|
|
|
|
// 公共服务
|
|
|
// 公共服务
|
|
|
publicSerivce: [ |
|
|
publicSerivce: [ |
|
|
{ |
|
|
// {
|
|
|
title: "高峰预警", |
|
|
// title: "高峰预警",
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250526/c7e28d88bde040c386183d69ae9bb228.png", |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250526/c7e28d88bde040c386183d69ae9bb228.png",
|
|
|
path: "/pages/pbService/sceneComfort/index?title=高峰预警", |
|
|
// path: "/pages/pbService/sceneComfort/index?title=高峰预警",
|
|
|
eventName: "comfort_click", |
|
|
// eventName: "comfort_click",
|
|
|
}, |
|
|
// keyname: 'gg_gfyj',
|
|
|
{ |
|
|
// },
|
|
|
title: "实时路况", |
|
|
// {
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250526/a678fdc2127648cd7881e36791b2062a.png", |
|
|
// title: "实时路况",
|
|
|
weburl: "https://jiaotonghao2.amap.com/?channel=amap&unitId=257&src=app_share#/", |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250526/a678fdc2127648cd7881e36791b2062a.png",
|
|
|
eventName: "sslk", |
|
|
// weburl: "https://jiaotonghao2.amap.com/?channel=amap&unitId=257&src=app_share#/",
|
|
|
}, |
|
|
// eventName: "sslk",
|
|
|
{ |
|
|
// keyname: 'gg_sslk',
|
|
|
title: "行李直送", |
|
|
// },
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250526/66c8614112630ed168a27150f15a3234.png", |
|
|
// {
|
|
|
appId: 'wx757dd1ee184e75e9', |
|
|
// title: "行李直送",
|
|
|
pagePath: "pages/tabBar/index/index" |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250526/66c8614112630ed168a27150f15a3234.png",
|
|
|
}, |
|
|
// appId: 'wx757dd1ee184e75e9',
|
|
|
{ |
|
|
// pagePath: "pages/tabBar/index/index",
|
|
|
title: "行李寄存", |
|
|
// keyname: 'gg_xlzs',
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250526/3b9886609236df983e6512055662693c.png", |
|
|
// },
|
|
|
weburl: "https://weixin.2500sz.net/zt/2023/07/luggage_storage/", |
|
|
// {
|
|
|
eventName: "xljc", |
|
|
// title: "行李寄存",
|
|
|
}, |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250526/3b9886609236df983e6512055662693c.png",
|
|
|
{ |
|
|
// weburl: "https://weixin.2500sz.net/zt/2023/07/luggage_storage/",
|
|
|
title: "找厕所", |
|
|
// eventName: "xljc",
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250526/e8e75d8cd8761d4de4336a35e29e5c6d.png", |
|
|
// keyname: 'gg_xljc',
|
|
|
path: "/pages/pbService/bike/index?type=1", |
|
|
// },
|
|
|
}, |
|
|
// {
|
|
|
{ |
|
|
// title: "找厕所",
|
|
|
title: "停车场", |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250526/e8e75d8cd8761d4de4336a35e29e5c6d.png",
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250526/ef3d9cfb4817552288d666d8e5617707.png", |
|
|
// path: "/pages/pbService/bike/index?type=1",
|
|
|
weburl: "https://m.cloud.sz-trip.com/ParkingArea", |
|
|
// keyname: 'gg_zcs',
|
|
|
}, |
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// title: "停车场",
|
|
|
|
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250526/ef3d9cfb4817552288d666d8e5617707.png",
|
|
|
|
|
|
// weburl: "https://m.cloud.sz-trip.com/ParkingArea",
|
|
|
|
|
|
// keyname: 'gg_tcc',
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
], |
|
|
], |
|
|
|
|
|
|
|
|
// 旅游助手
|
|
|
// 旅游助手
|
|
|
travelData: [ |
|
|
travelData: [ |
|
|
{ |
|
|
// {
|
|
|
title: "最美打卡点", |
|
|
// title: "最美打卡点",
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250526/800a30b94f77c1f7f1bc17f33c0daacd.png", |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250526/800a30b94f77c1f7f1bc17f33c0daacd.png",
|
|
|
path: "/subPackageCheckPoint/pages/index/index", |
|
|
// path: "/subPackageCheckPoint/pages/index/index",
|
|
|
}, |
|
|
// keyname: 'ly_zmdkd',
|
|
|
{ |
|
|
// },
|
|
|
title: "街巷美食", |
|
|
// {
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250526/a4918bd24ff162991ca8db28759ade51.png", |
|
|
// title: "街巷美食",
|
|
|
path: "/pages/list/food/index", |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250526/a4918bd24ff162991ca8db28759ade51.png",
|
|
|
}, |
|
|
// path: "/pages/list/food/index",
|
|
|
{ |
|
|
// keyname: 'ly_jxms',
|
|
|
title: "语音导览", |
|
|
// },
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250526/f72a9f174aa66e520cbfe7429dca6635.png", |
|
|
// {
|
|
|
appId: "wx74f380bc721a0379", |
|
|
// title: "语音导览",
|
|
|
pagePath: "/pages/listen/listen?title=君到苏州" |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250526/f72a9f174aa66e520cbfe7429dca6635.png",
|
|
|
}, |
|
|
// appId: "wx74f380bc721a0379",
|
|
|
{ |
|
|
// pagePath: "/pages/listen/listen?title=君到苏州",
|
|
|
title: "游记攻略", |
|
|
// keyname: 'ly_yydl',
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250526/e1762ba22ba5d4cc5882de321bc10110.png", |
|
|
// },
|
|
|
path: "/pages/list/strategy/index", |
|
|
// {
|
|
|
}, |
|
|
// title: "游记攻略",
|
|
|
|
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250526/e1762ba22ba5d4cc5882de321bc10110.png",
|
|
|
|
|
|
// path: "/pages/list/strategy/index",
|
|
|
|
|
|
// keyname: 'ly_yjgl',
|
|
|
|
|
|
// },
|
|
|
], |
|
|
], |
|
|
|
|
|
|
|
|
// 数字文旅
|
|
|
// 数字文旅
|
|
|
travelCulture: [ |
|
|
travelCulture: [ |
|
|
{ |
|
|
// {
|
|
|
title: "数字非遗", |
|
|
// title: "数字非遗",
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250526/bc747aa7767770dc26e663480ac9150d.png', |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250526/bc747aa7767770dc26e663480ac9150d.png',
|
|
|
weburl: "https://m.cloud.sz-trip.com/IntangibleCultural2", |
|
|
// weburl: "https://m.cloud.sz-trip.com/IntangibleCultural2",
|
|
|
}, |
|
|
// keyname: 'sz_szfy',
|
|
|
{ |
|
|
// },
|
|
|
title: "数字博物馆", |
|
|
// {
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250526/86c986c2991e968ee143cf5777bb9f08.png', |
|
|
// title: "数字博物馆",
|
|
|
weburl: "https://m.cloud.sz-trip.com/BwsInfo", |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250526/86c986c2991e968ee143cf5777bb9f08.png',
|
|
|
}, |
|
|
// weburl: "https://m.cloud.sz-trip.com/BwsInfo",
|
|
|
{ |
|
|
// keyname: 'sz_szbwg',
|
|
|
title: "数字名人馆", |
|
|
// },
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250526/d570a1bb6961b9ddf26b17cc64b733dd.png', |
|
|
// {
|
|
|
weburl: "https://www.szsmrg.com/home", |
|
|
// title: "数字名人馆",
|
|
|
}, |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250526/d570a1bb6961b9ddf26b17cc64b733dd.png',
|
|
|
{ |
|
|
// weburl: "https://www.szsmrg.com/home",
|
|
|
title: "云上观展", |
|
|
// keyname: 'sz_szmrg',
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250526/8f96c29f6199b811a757e4e5c5901daa.png', |
|
|
// },
|
|
|
weburl: "https://m.cloud.sz-trip.com/CloudPerform2022", |
|
|
// {
|
|
|
}, |
|
|
// title: "云上观展",
|
|
|
{ |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250526/8f96c29f6199b811a757e4e5c5901daa.png',
|
|
|
title: "云上文博会", |
|
|
// weburl: "https://m.cloud.sz-trip.com/CloudPerform2022",
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250529/f45acb752680d1b4cce7d25da02c96f5.png', |
|
|
// keyname: 'sz_ysgz',
|
|
|
weburl: "https://m.cloud.sz-trip.com/CloudExpo", |
|
|
// },
|
|
|
}, |
|
|
// {
|
|
|
{ |
|
|
// title: "云上文博会",
|
|
|
title: "精彩回顾", |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250529/f45acb752680d1b4cce7d25da02c96f5.png',
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250529/74bd8e6b027797a24fbfccaef5c836ad.png', |
|
|
// weburl: "https://m.cloud.sz-trip.com/CloudExpo",
|
|
|
path: "/pages/pbService/activity/index", |
|
|
// keyname: 'sz_yswbh',
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
// {
|
|
|
title: "文化场馆查询", |
|
|
// title: "精彩回顾",
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250529/ff56544a00fb1cc78e0b307f16daa821.png', |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250529/74bd8e6b027797a24fbfccaef5c836ad.png',
|
|
|
weburl: "https://m.cloud.sz-trip.com/Museum", |
|
|
// path: "/pages/pbService/activity/index",
|
|
|
}, |
|
|
// keyname: 'sz_jchg',
|
|
|
{ |
|
|
// },
|
|
|
title: "苏影通", |
|
|
// {
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250526/e60996bf57f35f2dab63c81bc48b609a.png', |
|
|
// title: "文化场馆查询",
|
|
|
weburl: "https://m.cloud.sz-trip.com/movies", |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250529/ff56544a00fb1cc78e0b307f16daa821.png',
|
|
|
}, |
|
|
// weburl: "https://m.cloud.sz-trip.com/Museum",
|
|
|
{ |
|
|
// keyname: 'sz_whcgcx',
|
|
|
title: "书仓", |
|
|
// },
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250526/41d87b6d8d78ac497a6654ad293f9329.png', |
|
|
// {
|
|
|
appId: 'wx165d4f1727f6bdb0', |
|
|
// title: "苏影通",
|
|
|
pagePath: 'pages/home/home' |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250526/e60996bf57f35f2dab63c81bc48b609a.png',
|
|
|
}, |
|
|
// weburl: "https://m.cloud.sz-trip.com/movies",
|
|
|
{ |
|
|
// keyname: 'sz_syt',
|
|
|
title: "e读书", |
|
|
// },
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250526/87e9c9e3453492fa1ee65b705565efbb.png', |
|
|
// {
|
|
|
appId: 'wx26e6f4c0baba005b', |
|
|
// title: "书仓",
|
|
|
pagePath: 'pages/index/index' |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250526/41d87b6d8d78ac497a6654ad293f9329.png',
|
|
|
}, |
|
|
// appId: 'wx165d4f1727f6bdb0',
|
|
|
{ |
|
|
// pagePath: 'pages/home/home',
|
|
|
title: "数字公共文化", |
|
|
// keyname: 'sz_sc',
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250526/c60ed1f766645fa67a749dffa0d347a2.png', |
|
|
// },
|
|
|
weburl: "https://m.cloud.sz-trip.com/PublicCulture2022", |
|
|
// {
|
|
|
}, |
|
|
// title: "e读书",
|
|
|
{ |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250526/87e9c9e3453492fa1ee65b705565efbb.png',
|
|
|
title: "云游苏州", |
|
|
// appId: 'wx26e6f4c0baba005b',
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250529/f3b1ec60b5f069182faadf263ec9dfee.png', |
|
|
// pagePath: 'pages/index/index',
|
|
|
weburl: 'https://speed.web.yunyouyizhan.com/downloadApp/index.html#/', |
|
|
// keyname: 'sz_eds',
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
// {
|
|
|
title: "美图鉴赏", |
|
|
// title: "数字公共文化",
|
|
|
img: 'https://static.ticket.sz-trip.com/uploads/20250529/820de8c4353bde80379f46e474104c04.png', |
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250526/c60ed1f766645fa67a749dffa0d347a2.png',
|
|
|
path: "/pages/pbService/appreciate/index", |
|
|
// weburl: "https://m.cloud.sz-trip.com/PublicCulture2022",
|
|
|
|
|
|
// keyname: 'sz_szggwh',
|
|
|
}, |
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// title: "云游苏州",
|
|
|
|
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250529/f3b1ec60b5f069182faadf263ec9dfee.png',
|
|
|
|
|
|
// weburl: 'https://speed.web.yunyouyizhan.com/downloadApp/index.html#/',
|
|
|
|
|
|
// keyname: 'sz_yysz',
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// title: "美图鉴赏",
|
|
|
|
|
|
// img: 'https://static.ticket.sz-trip.com/uploads/20250529/820de8c4353bde80379f46e474104c04.png',
|
|
|
|
|
|
// path: "/pages/pbService/appreciate/index",
|
|
|
|
|
|
// keyname: 'sz_mtjs',
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
], |
|
|
], |
|
|
scrollLeft: 0, |
|
|
scrollLeft: 0, |
|
|
@ -260,61 +282,80 @@ Page({ |
|
|
// 十全十美
|
|
|
// 十全十美
|
|
|
// area_ids: ["changshu","taicang", "kunshan","wujiang","gongyeyuanqu","zhangjiagang","wuzhong","xiangcheng","gusu","gaoxin"],
|
|
|
// area_ids: ["changshu","taicang", "kunshan","wujiang","gongyeyuanqu","zhangjiagang","wuzhong","xiangcheng","gusu","gaoxin"],
|
|
|
SQSM: [ |
|
|
SQSM: [ |
|
|
{ |
|
|
// {
|
|
|
title: "常熟", |
|
|
// title: "常熟",
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250529/ed641bf31558381e8d1c372e5cbbd155.png", |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250529/ed641bf31558381e8d1c372e5cbbd155.png",
|
|
|
appId: 'wxdaf3d5edd07dc7af', |
|
|
// appId: 'wxdaf3d5edd07dc7af',
|
|
|
pagePath: 'pages/index/index' |
|
|
// pagePath: 'pages/index/index',
|
|
|
}, |
|
|
// keyname: 'changshu',
|
|
|
{ |
|
|
// },
|
|
|
title: "太仓", |
|
|
// {
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250529/f359551295197eff9c0966324659f037.png", |
|
|
// title: "太仓",
|
|
|
appId: 'wx8853b0d93cbca75e', |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250529/f359551295197eff9c0966324659f037.png",
|
|
|
pagePath: 'pages/home/home' |
|
|
// appId: 'wx8853b0d93cbca75e',
|
|
|
}, |
|
|
// pagePath: 'pages/home/home',
|
|
|
{ |
|
|
// keyname: 'taicang',
|
|
|
title: "昆山", |
|
|
// },
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250529/35f498dbb43e14cdf3c6bbdf83e613db.png", |
|
|
// {
|
|
|
appId: 'wx8888a3fd0862b4c8', |
|
|
// title: "昆山",
|
|
|
pagePath: 'pages/index/index' |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250529/35f498dbb43e14cdf3c6bbdf83e613db.png",
|
|
|
}, |
|
|
// appId: 'wx8888a3fd0862b4c8',
|
|
|
{ |
|
|
// pagePath: 'pages/index/index',
|
|
|
title: "吴江", |
|
|
// keyname: 'kunshan',
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250529/2288c75b3797363015bfe633ea9abc0e.png", |
|
|
|
|
|
appId: 'wx8eadea4ee2d42d4b', |
|
|
// },
|
|
|
pagePath: 'pages/index/index' |
|
|
// {
|
|
|
}, |
|
|
// title: "吴江",
|
|
|
{ |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250529/2288c75b3797363015bfe633ea9abc0e.png",
|
|
|
title: "工业园区", |
|
|
// appId: 'wx8eadea4ee2d42d4b',
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250529/9e947f0ef8addbe5c52b5bd4de205788.png", |
|
|
// pagePath: 'pages/index/index',
|
|
|
appId: 'wxd323e63a10aa6865', |
|
|
// keyname: 'wujiang',
|
|
|
pagePath: 'pages/home/index' |
|
|
|
|
|
}, |
|
|
// },
|
|
|
{ |
|
|
// {
|
|
|
title: "张家港", |
|
|
// title: "工业园区",
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250529/6162e0a86ec7e7b12e568fd5f81b5c9b.png", |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250529/9e947f0ef8addbe5c52b5bd4de205788.png",
|
|
|
path: "/pages/list/six/index?area=zhangjiagang" |
|
|
// appId: 'wxd323e63a10aa6865',
|
|
|
}, |
|
|
// pagePath: 'pages/home/index',
|
|
|
{ |
|
|
// keyname: 'yuanqu',
|
|
|
title: "吴中", |
|
|
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250529/36fc77bf5d6879e6ce06ae349187c2ad.png", |
|
|
// },
|
|
|
path: "/pages/list/six/index?area=wuzhong" |
|
|
// {
|
|
|
}, |
|
|
// title: "张家港",
|
|
|
{ |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250529/6162e0a86ec7e7b12e568fd5f81b5c9b.png",
|
|
|
title: "相城", |
|
|
// path: "/pages/list/six/index?area=zhangjiagang",
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250529/ec54fba906166c7512d26ca8a4fa5a9f.png", |
|
|
// keyname: 'zhangjiagang',
|
|
|
path: "/pages/list/six/index?area=xiangcheng" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
// },
|
|
|
title: "姑苏", |
|
|
// {
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250529/cbb939c4ddfa187489b59adcbe72f7a9.png", |
|
|
// title: "吴中",
|
|
|
path: "/pages/list/six/index?area=gusu" |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250529/36fc77bf5d6879e6ce06ae349187c2ad.png",
|
|
|
}, |
|
|
// path: "/pages/list/six/index?area=wuzhong",
|
|
|
{ |
|
|
// keyname: 'wuzhong',
|
|
|
title: "高新", |
|
|
// },
|
|
|
img: "https://static.ticket.sz-trip.com/uploads/20250529/f2aa7328af4afaa9d1d4ecac1778300a.png", |
|
|
// {
|
|
|
path: "/pages/list/six/index?area=gaoxin" |
|
|
// title: "相城",
|
|
|
}, |
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250529/ec54fba906166c7512d26ca8a4fa5a9f.png",
|
|
|
|
|
|
// path: "/pages/list/six/index?area=xiangcheng",
|
|
|
|
|
|
// keyname: 'xiangcheng',
|
|
|
|
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// title: "姑苏",
|
|
|
|
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250529/cbb939c4ddfa187489b59adcbe72f7a9.png",
|
|
|
|
|
|
// path: "/pages/list/six/index?area=gusu",
|
|
|
|
|
|
// keyname: 'gusu',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// title: "高新",
|
|
|
|
|
|
// img: "https://static.ticket.sz-trip.com/uploads/20250529/f2aa7328af4afaa9d1d4ecac1778300a.png",
|
|
|
|
|
|
// path: "/pages/list/six/index?area=gaoxin",
|
|
|
|
|
|
// keyname: 'gaoxin',
|
|
|
|
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
], |
|
|
@ -395,6 +436,8 @@ Page({ |
|
|
this.getXpthList() // 限时特惠
|
|
|
this.getXpthList() // 限时特惠
|
|
|
|
|
|
|
|
|
this.getList() // 回购榜
|
|
|
this.getList() // 回购榜
|
|
|
|
|
|
|
|
|
|
|
|
this.getRepurchaseList() |
|
|
// this.getWeather() // 2025-5-26首页改版不需要天气了
|
|
|
// this.getWeather() // 2025-5-26首页改版不需要天气了
|
|
|
// this.getFourProduct() // 活动日历
|
|
|
// this.getFourProduct() // 活动日历
|
|
|
|
|
|
|
|
|
@ -446,14 +489,15 @@ Page({ |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
indexHot: app.globalData.configJson.indexHot, |
|
|
indexHot: app.globalData.configJson.indexHot, |
|
|
isTest: app.globalData.configJson.isTest, |
|
|
isTest: app.globalData.configJson.isTest, |
|
|
// otherPlat: app.globalData.configJson.otherPlats,
|
|
|
|
|
|
// 正式数据
|
|
|
|
|
|
indexSeason: app.globalData.configJson.indexSeason, |
|
|
indexSeason: app.globalData.configJson.indexSeason, |
|
|
// 开发数据
|
|
|
|
|
|
// indexSeason: imageSource.testImgs.indexSeason,
|
|
|
|
|
|
bannerDataList: (app.globalData.configJson.nav_menu || []), |
|
|
bannerDataList: (app.globalData.configJson.nav_menu || []), |
|
|
mainTypeList: (app.globalData.configJson.menu_button || []), |
|
|
mainTypeList: (app.globalData.configJson.menu_button || []), |
|
|
func_data: (app.globalData.configJson.func_data || {}), |
|
|
publicSerivce: (app.globalData.configJson.service_data || []), |
|
|
|
|
|
travelData:(app.globalData.configJson.travel_data||[]), |
|
|
|
|
|
travelCulture:(app.globalData.configJson.number_data||[]), |
|
|
|
|
|
SQSM:(app.globalData.configJson.city_data||[]), |
|
|
|
|
|
otherPlat: app.globalData.configJson.platform_data, |
|
|
|
|
|
func_data: (app.globalData.configJson.func_data||{}) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => { |
|
|
commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => { |
|
|
@ -463,24 +507,51 @@ Page({ |
|
|
}); |
|
|
}); |
|
|
app.globalData.configJson.indexSeason = obj |
|
|
app.globalData.configJson.indexSeason = obj |
|
|
app.globalData.loadIndexSeason = true |
|
|
app.globalData.loadIndexSeason = true |
|
|
app.globalData.configJson.nav_menu = (res.data.nav_menu || []) |
|
|
app.globalData.configJson.nav_menu = (res.data.nav_menu || []).map((v,index)=>{ |
|
|
app.globalData.configJson.menu_button = (res.data.menu_button || []) |
|
|
return {...v, pagePoint: {classification: 'nav_menu', key_number: index}} |
|
|
|
|
|
}) |
|
|
|
|
|
app.globalData.configJson.menu_button = (res.data.menu_button || []).map((v,index)=>{ |
|
|
|
|
|
return {...v, pagePoint: {classification: 'menu_button', key_number: index}} |
|
|
|
|
|
}) |
|
|
|
|
|
// 公共服务 publicSerivce
|
|
|
|
|
|
app.globalData.configJson.service_data = (res.data.service_data || []).map((v,index)=>{ |
|
|
|
|
|
return {...v, pagePoint: {classification: 'service_data', key_number: index}} |
|
|
|
|
|
}) |
|
|
|
|
|
// 旅游助手 travelData
|
|
|
|
|
|
app.globalData.configJson.travel_data = (res.data.travel_data || []).map((v,index)=>{ |
|
|
|
|
|
return {...v, pagePoint: {classification: 'travel_data', key_number: index}} |
|
|
|
|
|
}) |
|
|
|
|
|
// 数字文旅 travelCulture
|
|
|
|
|
|
app.globalData.configJson.number_data = (res.data.number_data || []).map((v,index)=>{ |
|
|
|
|
|
return {...v, pagePoint: {classification: 'number_data', key_number: index}} |
|
|
|
|
|
}) |
|
|
|
|
|
// 十全十美 SQSM
|
|
|
|
|
|
app.globalData.configJson.city_data = (res.data.city_data || []).map((v,index)=>{ |
|
|
|
|
|
return {...v, pagePoint: {classification: 'city_data', key_number: index}} |
|
|
|
|
|
}) |
|
|
|
|
|
// 其他平台otherPlat
|
|
|
|
|
|
app.globalData.configJson.platform_data = (res.data.platform_data || []).map((v,index)=>{ |
|
|
|
|
|
return {...v, pagePoint: {classification: 'platform_data', key_number: index}} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let func_data = {} |
|
|
let func_data = {} |
|
|
for(let item of (res.data.func_data || [])) { |
|
|
for(let item of (res.data.func_data || [])) { |
|
|
func_data[item.jump_type] = true |
|
|
func_data[item.jump_type] = true |
|
|
} |
|
|
} |
|
|
app.globalData.configJson.func_data = func_data |
|
|
app.globalData.configJson.func_data = func_data |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log('webData', app.globalData.configJson) |
|
|
console.log('webData', app.globalData.configJson) |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
indexHot: app.globalData.configJson.indexHot, |
|
|
indexHot: app.globalData.configJson.indexHot, |
|
|
isTest: app.globalData.configJson.isTest, |
|
|
isTest: app.globalData.configJson.isTest, |
|
|
// otherPlat: app.globalData.configJson.otherPlats,
|
|
|
otherPlat: app.globalData.configJson.platform_data, |
|
|
indexSeason: app.globalData.configJson.indexSeason, |
|
|
indexSeason: app.globalData.configJson.indexSeason, |
|
|
bannerDataList: (app.globalData.configJson.nav_menu || []), |
|
|
bannerDataList: (app.globalData.configJson.nav_menu || []), |
|
|
mainTypeList: (app.globalData.configJson.menu_button || []), |
|
|
mainTypeList: (app.globalData.configJson.menu_button || []), |
|
|
|
|
|
publicSerivce: (app.globalData.configJson.service_data || []), |
|
|
|
|
|
travelData:(app.globalData.configJson.travel_data||[]), |
|
|
|
|
|
travelCulture:(app.globalData.configJson.number_data||[]), |
|
|
|
|
|
SQSM:(app.globalData.configJson.city_data||[]), |
|
|
func_data: (app.globalData.configJson.func_data||{}) |
|
|
func_data: (app.globalData.configJson.func_data||{}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
@ -535,15 +606,26 @@ Page({ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// 顶部banner
|
|
|
commonApi._post("adv/getAdv", {position: 0,type_id: 3}).then(res => { |
|
|
commonApi._post("adv/getAdv", {position: 0,type_id: 3}).then(res => { |
|
|
this.setData({banner: res.data || []}) |
|
|
let resData = (res.data || []).map((v,index)=>{ |
|
|
|
|
|
return {...v, pagePoint: {classification: 'bigBanner', key_number: v.id}} |
|
|
|
|
|
}) |
|
|
|
|
|
this.setData({banner: resData}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
// 专题banner
|
|
|
commonApi._post("adv/getAdv", {position: 6,type_id: 3}).then(res => { |
|
|
commonApi._post("adv/getAdv", {position: 6,type_id: 3}).then(res => { |
|
|
this.setData({ztbanner: res.data || []}) |
|
|
let resData = (res.data || []).map((v,index)=>{ |
|
|
}) |
|
|
return {...v, pagePoint: {classification: 'specialBanner', key_number: v.id}} |
|
|
|
|
|
}) |
|
|
|
|
|
this.setData({ztbanner:resData}) |
|
|
|
|
|
}) |
|
|
|
|
|
// 小banner
|
|
|
commonApi._post("adv/getAdv", {position: 1,type_id: 3}).then(res => { |
|
|
commonApi._post("adv/getAdv", {position: 1,type_id: 3}).then(res => { |
|
|
this.setData({xiaobanner: res.data || []}) |
|
|
let resData = (res.data || []).map((v,index)=>{ |
|
|
|
|
|
return {...v, pagePoint: {classification: 'smallBanner', key_number: v.id}} |
|
|
|
|
|
}) |
|
|
|
|
|
this.setData({xiaobanner: resData}) |
|
|
}) |
|
|
}) |
|
|
//弹窗广告
|
|
|
//弹窗广告
|
|
|
commonApi._post("adv/getAdv", {position: 3,type_id: 3}).then(res => { |
|
|
commonApi._post("adv/getAdv", {position: 3,type_id: 3}).then(res => { |
|
|
@ -567,10 +649,9 @@ Page({ |
|
|
bannerClick: function(e) { |
|
|
bannerClick: function(e) { |
|
|
if (this.data.isTest) return; |
|
|
if (this.data.isTest) return; |
|
|
let item = e.currentTarget.dataset.item; |
|
|
let item = e.currentTarget.dataset.item; |
|
|
this.pagePoint({ |
|
|
console.log(item) |
|
|
event: "banner_click", |
|
|
if (item.pagePoint) { this.newPagePoint(item.pagePoint) } |
|
|
type: 'banner' |
|
|
|
|
|
}, 1) |
|
|
|
|
|
switch (item.jump_type) { |
|
|
switch (item.jump_type) { |
|
|
case 0: |
|
|
case 0: |
|
|
break; |
|
|
break; |
|
|
@ -652,21 +733,18 @@ Page({ |
|
|
return; |
|
|
return; |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
newPagePoint (param) { |
|
|
|
|
|
commonApi._post("browse/newBuryingPoint", { |
|
|
|
|
|
uuid: app.globalData.uuid, |
|
|
|
|
|
drive: "mini", |
|
|
|
|
|
...param, |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//------------------------金刚区点击-------------------------------------
|
|
|
//------------------------金刚区点击-------------------------------------
|
|
|
// 自定义数据的跳转
|
|
|
// 自定义数据的跳转
|
|
|
mainIconClick: function(e) { |
|
|
mainIconClick: function(e) { |
|
|
let item = e.currentTarget.dataset.item |
|
|
let item = e.currentTarget.dataset.item |
|
|
// 埋点
|
|
|
|
|
|
if (item.eventName) { |
|
|
|
|
|
this.pagePoint({event: item.eventName,}, 1) |
|
|
|
|
|
}else if (item.title) { |
|
|
|
|
|
commonApi._post("browse/burying_point", { |
|
|
|
|
|
uuid: app.globalData.uuid, |
|
|
|
|
|
drive: "mini", |
|
|
|
|
|
title: item.title |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (item.appId) { |
|
|
if (item.appId) { |
|
|
wx.navigateToMiniProgram({ |
|
|
wx.navigateToMiniProgram({ |
|
|
@ -693,11 +771,28 @@ Page({ |
|
|
mainNavClick:function (e) { |
|
|
mainNavClick:function (e) { |
|
|
let item = e.currentTarget.dataset.item |
|
|
let item = e.currentTarget.dataset.item |
|
|
console.log(item) |
|
|
console.log(item) |
|
|
|
|
|
if (item.pagePoint) { this.newPagePoint(item.pagePoint) } |
|
|
if (item.jump_type == "page") { |
|
|
if (item.jump_type == "page") { |
|
|
wx.navigateTo({ |
|
|
if (item.page.mini) { |
|
|
url: "/"+item.page.mini, |
|
|
wx.navigateTo({ |
|
|
}) |
|
|
url: "/"+item.page.mini, |
|
|
return |
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (item.page.tdata) { |
|
|
|
|
|
if (item.page.tdata.ghid == "gh_b55e177a4069" || item.page.tdata.appid == 'wx4bb7b6050831f585') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: "/"+item.page.tdata.page, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
wx.navigateToMiniProgram({ |
|
|
|
|
|
appId: item.page.tdata.appid, |
|
|
|
|
|
path: item.page.tdata.page |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
if (item.jump_type == "link") { |
|
|
if (item.jump_type == "link") { |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
@ -744,7 +839,11 @@ Page({ |
|
|
typeId: 3, |
|
|
typeId: 3, |
|
|
type: 1, // 返回数组
|
|
|
type: 1, // 返回数组
|
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
this.setData({xpth: res.data,}) |
|
|
console.log("resData",res.data.adv); |
|
|
|
|
|
(res.data.adv || []).forEach(v=>{ v.pagePoint = {classification: 'flashSales', key_number: v.id} }); |
|
|
|
|
|
(res.data.list || []).forEach(v=>{ v.pagePoint = {classification: 'flashSales', key_number: v.id} }); |
|
|
|
|
|
|
|
|
|
|
|
this.setData({xpth: res.data}) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -754,7 +853,8 @@ Page({ |
|
|
this.setData({xpthIndex:value}) |
|
|
this.setData({xpthIndex:value}) |
|
|
}, |
|
|
}, |
|
|
productGotoDetail: function(e) { |
|
|
productGotoDetail: function(e) { |
|
|
let item = e.currentTarget.dataset.item; |
|
|
let item = e.currentTarget.dataset.item; |
|
|
|
|
|
if (item.pagePoint) { this.newPagePoint(item.pagePoint) } |
|
|
util.gotoDetail(item) |
|
|
util.gotoDetail(item) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -763,13 +863,18 @@ Page({ |
|
|
commonApi._post("product/get_product_by_tag_subject", { |
|
|
commonApi._post("product/get_product_by_tag_subject", { |
|
|
tag_id: 85,offset: 0,limit: 5, |
|
|
tag_id: 85,offset: 0,limit: 5, |
|
|
}).then(res=>{ |
|
|
}).then(res=>{ |
|
|
this.setData({ list: res.data.list || []}) |
|
|
let resData = res.data.list || [] |
|
|
|
|
|
(resData).forEach(v=>{ v.pagePoint = {classification: 'hot', key_number: v.id} }) |
|
|
|
|
|
this.setData({ list: resData}) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 回购
|
|
|
// 回购
|
|
|
getRepurchaseList:function () { |
|
|
getRepurchaseList:function () { |
|
|
commonApi._post("repurchase/repurchase/getRepurchaseList", {}).then(res=>{ |
|
|
commonApi._post("repurchase/repurchase/getRepurchaseList", {}).then(res=>{ |
|
|
(res.data || []).forEach(v=>v.headimg = this.showImg(v.headimg)) |
|
|
(res.data || []).forEach(v=>{ |
|
|
|
|
|
v.headimg = this.showImg(v.headimg) |
|
|
|
|
|
v.pagePoint={classification: 'repurchase', key_number: v.product_id} |
|
|
|
|
|
}) |
|
|
this.setData({ repurchaseList: res.data || []}) |
|
|
this.setData({ repurchaseList: res.data || []}) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -777,15 +882,16 @@ Page({ |
|
|
// if (this.data.list.length < 30) {
|
|
|
// if (this.data.list.length < 30) {
|
|
|
// this.getList()
|
|
|
// this.getList()
|
|
|
// }
|
|
|
// }
|
|
|
if (this.data.canGetrepurchase) { |
|
|
// if (this.data.canGetrepurchase) {
|
|
|
this.data.canGetrepurchase = false |
|
|
// this.data.canGetrepurchase = false
|
|
|
this.getRepurchaseList() |
|
|
// this.getRepurchaseList()
|
|
|
} |
|
|
// }
|
|
|
}, |
|
|
}, |
|
|
gotoDetail: function(e) { |
|
|
gotoDetail: function(e) { |
|
|
let item = e.currentTarget.dataset.item; |
|
|
let item = e.currentTarget.dataset.item; |
|
|
commonApi._post("repurchase/repurchase/recordClick", {product_id:item.product_id}) |
|
|
// commonApi._post("repurchase/repurchase/recordClick", {product_id:item.product_id})
|
|
|
item.id = item.type=='post'?item.product_id:item.scene_id |
|
|
item.id = item.type=='post'?item.product_id:item.scene_id |
|
|
|
|
|
if (item.pagePoint) { this.newPagePoint(item.pagePoint) } |
|
|
util.gotoDetail(item); |
|
|
util.gotoDetail(item); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|