diff --git a/app.js b/app.js
index b5087a5..f827a54 100644
--- a/app.js
+++ b/app.js
@@ -39,17 +39,18 @@ App({
commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest190? true : false;
+ data.indexSeason = null
this.globalData.configJson = data
}).then(() => {
// 获取ui配置文件 在首页调用
- commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => {
- let obj = {}
- res.data.content.forEach(item => {
- obj[item.id] = item.image
- });
- this.globalData.configJson.indexSeason = obj
- this.globalData.loadIndexSeason = true
- })
+ // commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => {
+ // let obj = {}
+ // res.data.content.forEach(item => {
+ // obj[item.id] = item.image
+ // });
+ // this.globalData.configJson.indexSeason = obj
+ // this.globalData.loadIndexSeason = true
+ // })
})
this.getShareCategoryId()
},
diff --git a/app.json b/app.json
index 62d190a..5684680 100644
--- a/app.json
+++ b/app.json
@@ -252,7 +252,7 @@
"selectedColor": "#D22A1C",
"borderStyle": "white",
"list": [
- {
+ {
"pagePath": "pages/index/index",
"iconPath": "/images/index.png",
"selectedIconPath": "/images/aindex_seld.png",
diff --git a/app.wxss b/app.wxss
index d45f572..9467548 100644
--- a/app.wxss
+++ b/app.wxss
@@ -155,6 +155,8 @@ page{
.no-scrollbar::-webkit-scrollbar{
display: none;
+ width: 0;
+ height: 0;
}
.flex-1{
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
index f98c8e3..e77b178 100644
--- a/pages/index/index.wxml
+++ b/pages/index/index.wxml
@@ -31,7 +31,7 @@
-
+
@@ -123,7 +123,7 @@
一日游
-
+
户外游
diff --git a/pages/user/order/movieOrderInfo/index.wxml b/pages/user/order/movieOrderInfo/index.wxml
index 97deb1d..b2abe77 100644
--- a/pages/user/order/movieOrderInfo/index.wxml
+++ b/pages/user/order/movieOrderInfo/index.wxml
@@ -171,7 +171,7 @@
如有问题
请联系{{info.order_product_list[0].supplier_code == 'syt'?'苏影通' : '淘票票'}}客服
- {{orderDetail.order_product_list[0].supplier_code == 'syt' ? '0512 6836 2565' : '4006979968'}}
+ {{info.order_product_list[0].supplier_code == 'syt' ? '0512 6836 2565' : '4006979968'}}
服务时间(9:00-21:00)
\ No newline at end of file
diff --git a/subPackages/index/imgSource.js b/subPackages/index/imgSource.js
index 0d29963..871e3de 100644
--- a/subPackages/index/imgSource.js
+++ b/subPackages/index/imgSource.js
@@ -1,108 +1,4 @@
const imageSource = {
- // 活动日历、场馆预约等
- mainFunImgs: [
- "https://static.ticket.sz-trip.com/uploads/20250312/2453c4f3e932172905ed883190ef1356.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/c69cdbafb16ed468fef68eb77865e6ff.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/05dd30d02e74178134242cc64aaa11ac.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/e93e655b524001d25d7d4fd848f5bb3b.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/8e675fc57ea4b9e45f2fa7736bc03e7d.png",
-
- "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/e2cc47fa5a2d01d436dad0a85948f060.png",
- "https://static.ticket.sz-trip.com/jundaosuzhou/images/spring2025/ssy.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/a094d635976194782fbdcf2bc596b082.png",
- "https://static.ticket.sz-trip.com/uploads/20250314/5238f9ee4762266abf0c279501ea4028.png",
- ],
- // 数字文旅
- SZWL: [
- // 非遗,博物馆,名人馆,云上,云上文博,精彩回顾,文化场馆
- // 苏影通 书仓 e读书 数字公共文化 云游苏州 美图鉴赏
- "https://static.ticket.sz-trip.com/uploads/20250312/58d0fd32ea7521b0b1ea12bf5b593fe2.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/1994615fcbc125da641541ea1f04c364.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/f054ca452f27dac54723255ba6445790.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/590822c40c769cb4f673f460f1a37a0b.png",
-
- "https://static.ticket.sz-trip.com/uploads/20250312/41c21568ed9c4b15084c9669ca99a6fd.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/1ee056f091a42e51ce8168767704708a.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/b418843c04ddfa00be91fb793019cb99.png",
-
-
- "https://static.ticket.sz-trip.com/uploads/20250312/0ad69db116004e735e1bd13cd54fd75c.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/f2400b009c8e92efcdd645080f14b28a.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/bbda2dd4e332f457a6aa06a4a15b639b.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/06b500881204a4a40c5bc8d126f38a58.png",
-
- "https://static.ticket.sz-trip.com/uploads/20250312/d188c19334c9170e5c963459b7187f20.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/a25506779b745291cb8d9051abce07c1.png",
-
- ],
- // 旅游助手
- LVZS: [
- "https://static.ticket.sz-trip.com/uploads/20250423/662eb322f8851e04df41fd836c6a88f3.png",
- // "https://static.ticket.sz-trip.com/uploads/20250312/ae847f6081edb82a14a75b3e19146eeb.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/d12ad76fbb7a46c1669c403e66e510ad.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/3b8941467df369032b70052b60095857.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/54b2063e28eacfeb220905563e802786.png",
- ],
- // 公共服务
- GGFW: [
- "https://static.ticket.sz-trip.com/uploads/20250312/65f1dda9a4dc43d426544a0d14eb73de.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/9799b276d76f884fd0130d7378c974fe.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/c40b456687490eafe5414addaaae0c2b.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/a95959dcba2f494b69980d16a895e9c8.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/e16b8e640169e99639cef6ff7897b6a7.png"
- ],
-
- // 十全十美
- SQSM: [
- // ["changshu","taicang", "kunshan","wujiang","gongyeyuanqu","zhangjiagang","wuzhong","xiangcheng","gusu","gaoxin"],
- "https://static.ticket.sz-trip.com/uploads/20250312/3e4b8f20f9468cb4fd3f0c92d604db09.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/24fc48715691714988d5e0cf78e5a657.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/55b86da028a00326994ac8ebf10447b5.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/aa60aec108158b47e0210b8b33c72fe5.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/4fdd5f3e9f63421d4394f2c3b3a0c7a4.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/bb32450e448ec520c90241556a68c092.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/cea52b2c0f3c18762d7feea2ba987e63.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/ef29b1cbdd9b33919891732750f72f2a.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/8de375c2fc322cb44d7e0cdb84c97cfe.png",
- "https://static.ticket.sz-trip.com/uploads/20250312/96a0c3631a0b3a9d5836943663a2f5c5.png",
-
-
-
- ],
-
- // 长三角文旅平台
- CSJWLPT: [
- {
- "name":"玉见昆山",
- "icon":"https://static.ticket.sz-trip.com/uploads/20250423/40319f04a78f25c2741e4ce11b375597.png",
- "type":"mini",
- "path":"",
- "appid":"wx8888a3fd0862b4c8"
- },
- {
- "name":"智游常熟",
- "icon":"https://static.ticket.sz-trip.com/uploads/20250423/619870022ca676c31d2d6395f81dd3d7.png",
- "type":"mini",
- "path":"",
- "appid":"wxdaf3d5edd07dc7af"
- },
- {
- "name":"常享游",
- "icon":"https://static.ticket.sz-trip.com/uploads/20250312/194a5636ecd849ce1f8b8f42c9d5b08b.png",
- "type":"h5",
- "url":"https://tour.wlczy.com/h5/"
- },
- {
- "name":"畅游宿迁",
- "icon":"https://static.ticket.sz-trip.com/uploads/20250312/ea3bd8e0418d4ff2c07498d2cbef49c1.png",
- "type":"mini",
- "path":"/pages/index/index",
- "appid":"wxcb00a59c4fba136e"
- },
-
-
- ],
// 导航标题侧边图片
CBTP: [
@@ -116,8 +12,8 @@ const imageSource = {
// 其他后台配置的图片,开发时使用
testImgs: {
indexSeason : {
- // 头图
- topBac: "https://static.ticket.sz-trip.com/uploads/20241225/f039e6b753c4c7fbd3ba78aa89f0b0fe.png",
+ // 头图
+ topBac: "https://static.ticket.sz-trip.com/uploads/20241225/f039e6b753c4c7fbd3ba78aa89f0b0fe.png",
// ai伴你游
ai: "https://static.ticket.sz-trip.com/uploads/20250314/3fb020cf3471d3731b4a7efae25e8e64.png",
// ai避高峰
diff --git a/subPackages/index/index.js b/subPackages/index/index.js
index 2265f05..77f7a85 100644
--- a/subPackages/index/index.js
+++ b/subPackages/index/index.js
@@ -10,37 +10,55 @@ import https from "../../utils/https.js"
Page({
data: {
+ isTest: false,
+
+ startList: {head_img: ''}, // 启动页广告
+ fullAdvTimer: null, // 全屏timer
+ showFullAdv: true, //全屏广告开关
+ opacity: 1, // 全屏广告透明度
+ time: 3, //全屏广告剩余时间
+ showTime: false, // 全屏广告时间展示
+ alertSwipeList: [], //弹窗广告
+ showAdv: false, //弹窗开关
+ isMuted: true,
+ videoPlay: false,
+
+ systemStyle: {
+ height: 0,
+ padHeight: 0,
+ right: 0,
+ },
+ lat: "",
+ lon: "",
+
+ indexSeason: {}, // 后台UI配置项
// bannerInterver: 5*1000, // 动态更改banner时间
banner: [],
xiaobanner: [],
activeBannerIndex: 0,
smBannerIndex: 0,
- systemStyle: {
- height: 0,
- padHeight: 0,
- right: 0,
- },
+
// banner上的金刚区
bannerDataList: [
{
title: "景点门票",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/5934b8b77b058ce1de5943adbaf51739.png",
path: "/pages/list/scene/index",
},
{
title: "活动日历",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/2453c4f3e932172905ed883190ef1356.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/d75d7a3924d832912a2633ee29b30b9b.png",
path: "/pages/list/activitynew/index",
},
{
- title: "将意真品",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/8e675fc57ea4b9e45f2fa7736bc03e7d.png",
+ title: "匠意臻品",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/69722050b638954e0b755a4d6c771d48.png",
path: "/subPackages/techanNew/index",
},
{
title: "领券中心",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/4384a93f77d8faba5f504195c77e57c1.png",
path: "/pages/list/scene/index",
},
],
@@ -48,47 +66,48 @@ Page({
mainTypeList: [
{
title: "非遗专卖",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/a901ad572bda409e769f92760b812d71.png",
path: "/subPackages/feiyiNew/index",
},
{
title: "场馆预约",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/a901ad572bda409e769f92760b812d71.png",
path: "/pages/list/museum/index",
},
{
title: "一日游",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/a901ad572bda409e769f92760b812d71.png",
weburl:"https://m.cloud.sz-trip.com/OneDayTravelNew",
},
{
title: "户外游",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/a901ad572bda409e769f92760b812d71.png",
weburl:"https://m.cloud.sz-trip.com/LearningTravel",
},
{
title: "电影购票",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/a901ad572bda409e769f92760b812d71.png",
weburl:"https://m.cloud.sz-trip.com/movies",
},
{
type: 'hotel', // 特殊标识方便查找 更新weburl
title: "酒店住宿",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/a901ad572bda409e769f92760b812d71.png",
weburl: '',
path: '/pages/list/hotel/index'
},
{
title: "水上游",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/a901ad572bda409e769f92760b812d71.png",
path: '/pages/list/night/index'
},
{
title: "剧场演出",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/db946eebb863adc0bb020338c9edc271.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/a901ad572bda409e769f92760b812d71.png",
path: '/pages/list/theatre/index'
},
- ],
+ ],
+ mainTypeLeft: 0,
xpth: {}, // 新品特惠
XPathBannerIndex: 0,
@@ -96,101 +115,261 @@ Page({
publicSerivce: [
{
title: "高峰预警",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/65f1dda9a4dc43d426544a0d14eb73de.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/c7e28d88bde040c386183d69ae9bb228.png",
weburl: "https://wlsjzx.zdhxwl.cn/kt_h5/index.html#/morecopy",
eventName: "comfort_click",
},
{
title: "实时路况",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/65f1dda9a4dc43d426544a0d14eb73de.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/a678fdc2127648cd7881e36791b2062a.png",
weburl: "https://jiaotonghao2.amap.com/?channel=amap&unitId=257&src=app_share#/",
eventName: "sslk",
},
{
title: "行李直送",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/65f1dda9a4dc43d426544a0d14eb73de.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/66c8614112630ed168a27150f15a3234.png",
appId: 'wx757dd1ee184e75e9',
pagePath: "pages/tabBar/index/index"
},
{
title: "行李寄存",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/65f1dda9a4dc43d426544a0d14eb73de.png",
+ 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/20250312/65f1dda9a4dc43d426544a0d14eb73de.png",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/e8e75d8cd8761d4de4336a35e29e5c6d.png",
path: "/pages/pbService/bike/index?type=1",
},
{
- title: "找厕所",
- img: "https://static.ticket.sz-trip.com/uploads/20250312/65f1dda9a4dc43d426544a0d14eb73de.png",
- weburl: "",
+ title: "停车场",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/ef3d9cfb4817552288d666d8e5617707.png",
+ weburl: "https://m.cloud.sz-trip.com/ParkingArea",
},
],
- fullAdvTimer: null, // 全屏timer
+ // 旅游助手
+ travelData: [
+ {
+ title: "最美打卡点",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/800a30b94f77c1f7f1bc17f33c0daacd.png",
+ path: "/subPackageCheckPoint/pages/index/index",
+ },
+ {
+ title: "街巷美食",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/a4918bd24ff162991ca8db28759ade51.png",
+ path: "/pages/list/food/index",
+ },
+ {
+ title: "语音导览",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/f72a9f174aa66e520cbfe7429dca6635.png",
+ appId: "wx74f380bc721a0379",
+ pagePath: "/pages/listen/listen?title=君到苏州"
+ },
+ {
+ title: "游记攻略",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/e1762ba22ba5d4cc5882de321bc10110.png",
+ path: "/pages/list/strategy/index",
+ },
+ ],
+
+ // 数字文旅
+ travelCulture: [
+ {
+ title: "数字非遗",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250526/bc747aa7767770dc26e663480ac9150d.png',
+ weburl: "https://m.cloud.sz-trip.com/IntangibleCultural2",
+ },
+ {
+ title: "数字博物馆",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250526/86c986c2991e968ee143cf5777bb9f08.png',
+ weburl: "https://m.cloud.sz-trip.com/BwsInfo",
+ },
+ {
+ 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/8f96c29f6199b811a757e4e5c5901daa.png',
+ weburl: "https://m.cloud.sz-trip.com/CloudPerform2022",
+ },
+ {
+ title: "云上文博会",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250312.png',
+ weburl: "https://m.cloud.sz-trip.com/CloudExpo",
+ },
+ {
+ title: "精彩回顾",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250312/58d0fd32ea7521b0b1ea12bf5b593fe2.png',
+ path: "/pages/pbService/activity/index",
+ },
+ {
+ title: "文化场馆查询",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250312/58d0fd32ea7521b0b1ea12bf5b593fe2.png',
+ weburl: "https://m.cloud.sz-trip.com/Museum",
+ },
+ {
+ title: "苏影通",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250526/e60996bf57f35f2dab63c81bc48b609a.png',
+ weburl: "https://m.cloud.sz-trip.com/movies",
+ },
+ {
+ title: "书仓",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250526/41d87b6d8d78ac497a6654ad293f9329.png',
+ appId: 'wx165d4f1727f6bdb0',
+ pagePath: 'pages/home/home'
+ },
+ {
+ title: "e读书",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250526/87e9c9e3453492fa1ee65b705565efbb.png',
+ appId: 'wx26e6f4c0baba005b',
+ pagePath: 'pages/index/index'
+ },
+ {
+ title: "数字公共文化",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250526/c60ed1f766645fa67a749dffa0d347a2.png',
+ weburl: "https://m.cloud.sz-trip.com/PublicCulture2022",
+ },
+ {
+ title: "云游苏州",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250312/58d0fd32ea7521b0b1ea12bf5b593fe2.png',
+ weburl: 'https://speed.web.yunyouyizhan.com/downloadApp/index.html#/',
+ },
+ {
+ title: "美图鉴赏",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250312/58d0fd32ea7521b0b1ea12bf5b593fe2.png',
+ path: "/pages/pbService/appreciate/index",
+
+ },
+
+ ],
+ scrollLeft: 0,
+
+
+ // 十全十美
+ // area_ids: ["changshu","taicang", "kunshan","wujiang","gongyeyuanqu","zhangjiagang","wuzhong","xiangcheng","gusu","gaoxin"],
+ SQSM: [
+ {
+ title: "常熟",
+ img: "https://static.ticket.sz-trip.com/uploads/20250312/3e4b8f20f9468cb4fd3f0c92d604db09.png",
+ appId: 'wx4df5fd9a6a5ea123',
+ pagePath: 'pages/index'
+ },
+ {
+ title: "太仓",
+ img: "https://static.ticket.sz-trip.com/uploads/20250312/24fc48715691714988d5e0cf78e5a657.png",
+ appId: 'wx8853b0d93cbca75e',
+ pagePath: 'pages/home/home'
+ },
+ {
+ title: "昆山",
+ img: "https://static.ticket.sz-trip.com/uploads/20250312/55b86da028a00326994ac8ebf10447b5.png",
+ appId: 'wx8888a3fd0862b4c8',
+ pagePath: 'pages/index/index'
+ },
+ {
+ title: "吴江",
+ img: "https://static.ticket.sz-trip.com/uploads/20250312/aa60aec108158b47e0210b8b33c72fe5.png",
+ appId: 'wx8eadea4ee2d42d4b',
+ pagePath: 'pages/index/index'
+ },
+ {
+ title: "工业园区",
+ img: "https://static.ticket.sz-trip.com/uploads/20250312/4fdd5f3e9f63421d4394f2c3b3a0c7a4.png",
+ appId: 'wxd323e63a10aa6865',
+ pagePath: 'pages/home/index'
+ },
+ {
+ title: "张家港",
+ img: "https://static.ticket.sz-trip.com/uploads/20250312/bb32450e448ec520c90241556a68c092.png",
+ path: "/pages/list/six/index?area=zhangjiagang"
+ },
+ {
+ title: "吴中",
+ img: "https://static.ticket.sz-trip.com/uploads/20250312/cea52b2c0f3c18762d7feea2ba987e63.png",
+ path: "/pages/list/six/index?area=wuzhong"
+ },
+ {
+ title: "相城",
+ img: "https://static.ticket.sz-trip.com/uploads/20250312/ef29b1cbdd9b33919891732750f72f2a.png",
+ path: "/pages/list/six/index?area=xiangcheng"
+ },
+ {
+ title: "姑苏",
+ img: "https://static.ticket.sz-trip.com/uploads/20250312/8de375c2fc322cb44d7e0cdb84c97cfe.png",
+ path: "/pages/list/six/index?area=gusu"
+ },
+ {
+ title: "高新",
+ img: "https://static.ticket.sz-trip.com/uploads/20250312/96a0c3631a0b3a9d5836943663a2f5c5.png",
+ path: "/pages/list/six/index?area=gaoxin"
+ },
+
+
+ ],
+
+ // 长三角文旅平台
+ otherPlat: [
+ {
+ "name":"玉见昆山",
+ "icon":"https://static.ticket.sz-trip.com/uploads/20250526/c85dbe1b0f8f58014c05a30b3e6f86b5.png",
+ "type":"mini",
+ "path":"",
+ "appid":"wx8888a3fd0862b4c8"
+ },
+ {
+ "name":"智游常熟",
+ "icon":"https://static.ticket.sz-trip.com/uploads/20250526/98d57e31995b6dc3188f8717201640f1.png",
+ "type":"mini",
+ "path":"",
+ "appid":"wxdaf3d5edd07dc7af"
+ },
+ {
+ "name":"常享游",
+ "icon":"https://static.ticket.sz-trip.com/uploads/20250526/abfe0d4d2b02fcfd9bd791b9468bb4f4.png",
+ "type":"h5",
+ "url":"https://tour.wlczy.com/h5/"
+ },
+ {
+ "name":"畅游宿迁",
+ "icon":"https://static.ticket.sz-trip.com/uploads/20250526/bcfa9789f2d2d52d2da8f11b6a99b002.png",
+ "type":"mini",
+ "path":"/pages/index/index",
+ "appid":"wxcb00a59c4fba136e"
+ },
+
+ ],
+
+
- weather: null,
saleProduct: null,
roadProduct: null,
- fourProduct: [],
- hotIndex: 0,
- indexHot: [],
month: "",
months: ['JAN', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'oct', 'nov', 'dec'],
date: "",
list: [],
listMore: true,
- isTest: false,
- lat: "",
- lon: "",
- urltopage: {},
- scrollLeft: 0,
- videoPrize: false,
- prizeInfo: null,
- otherPlat: null,
-
-
- indexSeason: {},
- // startList: [], // 启动页广告
- startList: {
- head_img: ''
- }, // 启动页广告
- alertSwipeList: [], //弹窗广告
- showAdv: false, //弹窗开关
- showFullAdv: true, //全屏广告开关
- opacity: 1,
- time: 3, //全屏广告剩余时间
- showTime: false,
+ urltopage: {},
-
- area_ids: ["changshu","taicang", "kunshan","wujiang","gongyeyuanqu","zhangjiagang","wuzhong","xiangcheng","gusu","gaoxin"],
- sqjNew: [
- 'https://static.ticket.sz-trip.com/uploads/20241012/df831b80bc445aef8dc439ef8f9761a2.png',// 常熟
- 'https://static.ticket.sz-trip.com/uploads/20241012/9a5dc85879e87cc21f4d10286c84ac5f.png',// 太仓
- 'https://static.ticket.sz-trip.com/uploads/20241012/fceaa177de4ed13e7884ccfafb75c6ae.png',// 昆山
- 'https://static.ticket.sz-trip.com/uploads/20241012/c55a59f86b49af4ae15f1b1015887678.png',// 吴江
- 'https://static.ticket.sz-trip.com/uploads/20241012/a96c42d843dd1cc4a9ec30b189b35a6f.png',// 工业园区
- 'https://static.ticket.sz-trip.com/uploads/20241012/c1f61d9b2a13377c31561e6b50274c04.png',// 张家港
- 'https://static.ticket.sz-trip.com/uploads/20241012/b26ebd1a1ed1d5737cd22cc2da7e1b54.png',// 吴中
- 'https://static.ticket.sz-trip.com/uploads/20241012/eec299ac968f0344e124195155d88ed1.png',// 相城
- 'https://static.ticket.sz-trip.com/uploads/20241012/db5fcb0df2d8d326bd2b8d055b9284d2.png',// 姑苏
- 'https://static.ticket.sz-trip.com/uploads/20241012/279e21d3e876379140bf77d01410b07d.png',// 高新区
- ],
-
- isMuted: true,
- videoPlay: false,
-
+ // ---------------2025-5-26改版没用到的------------------
+ fourProduct: [],
+ hotIndex: 0,
+ indexHot: [],
+ weather: null,
+
// 页面图片
- imageSourceList:imageSource,
+ // imageSourceList:imageSource,
+
},
onLoad: function(options) {
+ // 相城小程序跳转获取用户信息
if(options && options.szxcCode) {
commonApi._post("uservice/user/loginByXC", {
code: options.szxcCode
@@ -204,41 +383,10 @@ Page({
app.globalData.from = options.from;
}
return
-
- wx.getLocation({type: 'gcj02'})
-
console.log('options',options)
- // 相城小程序跳转获取用户信息
-
-
-
-
- wx.getLocation({
- type: 'gcj02',
- success: (res) => {
- this.setData({
- lat: res.latitude,
- lon: res.longitude
- })
- this.getList()
- },
- fail: (err) => {
- this.getList()
- }
- })
-
- commonApi._post("pbservice/Other/getClientConfig", {
- unique_key: "urltopage"
- }).then(res => {
- let data = JSON.parse(res.data)
- this.setData({
- urltopage: data
- })
- })
- this.getTwoProduct()
- this.getWeather()
+
// 获取今天的日期
let today = new Date();
this.setData({
@@ -249,12 +397,32 @@ Page({
},
onReady: function() {
- this.getHeight()
+ this.getHeight()
+ this.getIndexSeason()
this.getBanner()
- // 活动日历
- // this.getFourProduct()
+
+ this.getXpthList() // 限时特惠
+ this.getTwoProduct()
- this.getXpthList() // 限时特惠
+ this.getList() // 回购榜
+ // this.getWeather() // 2025-5-26首页改版不需要天气了
+ // this.getFourProduct() // 活动日历
+
+ wx.getLocation({
+ type: 'gcj02',
+ success: (res) => {
+ this.setData({
+ lat: res.latitude,
+ lon: res.longitude
+ })
+ // this.getList() // 2025不需要经纬度了
+ },
+ fail: (err) => {
+ // this.getList()
+ }
+ })
+
+ this.getUrlToPage()
},
@@ -275,14 +443,15 @@ Page({
//获取季节配置
getIndexSeason() {
let mainTypeList = this.data.mainTypeList
- let hotelData = mainTypeList.find(v=>v.type == hotel)
+ let hotelData = mainTypeList.find(v=>v.type == "hotel")
- if (app.globalData.configJson.indexSeason) {
+ if (app.globalData.configJson&&app.globalData.configJson.indexSeason) {
+ console.log('app', app.globalData.configJson)
hotelData.weburl = app.globalData.configJson.hotelUrl
this.setData({
indexHot: app.globalData.configJson.indexHot,
isTest: app.globalData.configJson.isTest,
- otherPlat: app.globalData.configJson.otherPlats,
+ // otherPlat: app.globalData.configJson.otherPlats,
// 正式数据
indexSeason: app.globalData.configJson.indexSeason,
// 开发数据
@@ -298,19 +467,32 @@ Page({
app.globalData.configJson.indexSeason = obj
app.globalData.loadIndexSeason = true
hotelData.weburl = app.globalData.configJson.hotelUrl
+ console.log('webData', app.globalData.configJson)
this.setData({
indexHot: app.globalData.configJson.indexHot,
isTest: app.globalData.configJson.isTest,
- otherPlat: app.globalData.configJson.otherPlats,
+ // otherPlat: app.globalData.configJson.otherPlats,
indexSeason: app.globalData.configJson.indexSeason,
mainTypeList: mainTypeList
})
})
}
console.log(this.data)
- },
+ },
+ // url跳转(不知道什么东西)
+ getUrlToPage () {
+ commonApi._post("pbservice/Other/getClientConfig", {
+ unique_key: "urltopage"
+ }).then(res => {
+ let data = JSON.parse(res.data)
+ this.setData({
+ urltopage: data
+ })
+ })
+ },
+
// --------------------banner 相关---------------------------
- // 获取banner
+ // 获取banner 和开屏广告
getBanner: function() {
let _this = this
//全屏广告
@@ -362,7 +544,6 @@ Page({
}
})
},
-
// 统一的banner change 需要时可以放开
changeBannerIndex: function(e) {
return
@@ -371,7 +552,6 @@ Page({
[keyname]: e.detail.current,
})
},
-
// 轮播图点击
bannerClick: function(e) {
if (this.data.isTest) return;
@@ -463,6 +643,7 @@ Page({
},
//------------------------金刚区点击-------------------------------------
+ // 自定义数据的跳转
mainIconClick: function(e) {
let item = e.currentTarget.dataset.item
// 埋点
@@ -497,12 +678,31 @@ Page({
}
},
+ // 后台配置数据的跳转
+ gotoOther: function(e) {
+ let item = e.currentTarget.dataset.item;
+ if (item.type == 'h5') {
+ app.globalData.weburl = item.url
+ wx.navigateTo({
+ url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.url)
+ })
+ } else if (item.type == 'mini') {
+ wx.navigateToMiniProgram({
+ appId: item.appid,
+ path: item.path
+ })
+ } else if (item.type == 'page') {
+ wx.navigateTo({
+ url: item.page,
+ })
+ }
+ },
// 滚动监听
listenScroll(e) {
- console.log(e.detail.scrollLeft)
+ let keyname = e.currentTarget.dataset.keyname
this.setData({
- scrollLeft: e.detail.scrollLeft
+ [keyname]: e.detail.scrollLeft,
})
},
@@ -519,84 +719,8 @@ Page({
})
},
- goFeiyi: function() {
- app.globalData.weburl = 'https://m.cloud.sz-trip.com/mlgCoupons'
- wx.navigateTo({
- url: "/pages/pbService/web/index"
- })
- },
-
- // 一城百馆
- city: function() {
- wx.navigateToMiniProgram({
- appId: 'wx114d514f39cb1fed',
- path: "pages/entry/index"
- })
- commonApi._post("browse/burying_point", {
- drive: "mini",
- title: "一城百馆",
- uuid: app.globalData.uuid
- }).then(res => {
-
- })
- },
- changeHotIndex: function(e) {
- this.setData({
- hotIndex: e.currentTarget.dataset.index,
- fourProduct: []
- })
- this.getFourProduct()
- },
-
- //关闭弹窗广告
- closeAdv: function() {
- this.setData({
- showAdv: false
- })
- wx.showTabBar({
- animation: true,
- })
- },
- //关闭全屏广告
- closeFullAdv: function() {
- this.setData({showFullAdv: false})
- clearInterval(this.data.fullAdvTimer)
- if (!this.data.alertSwipeList.length > 0) {
- wx.showTabBar({animation: true})
- }
- },
- // 是否静音
- closeMuted: function() {
- this.setData({
- isMuted: this.data.isMuted = !this.data.isMuted
- })
- },
- // 播放视频
- videoPlay: function() {
- let videoplay = wx.createVideoContext('myVideo', this)
- videoplay.play();
- this.setData({
- videoPlay: false
- })
- },
- // 暂停视频
- videoPause: function() {
- let videoplay = wx.createVideoContext('myVideo', this)
- videoplay.pause();
- this.setData({
- videoPlay: true
- })
- },
- getWeather: function() {
- commonApi._post('pbservice/Ztfw/getWeather').then(res => {
- this.setData({
- weather: res.data
- })
- })
- },
- saleDetail: function() {},
getTwoProduct: function() {
// 获取首页限时特惠
commonApi._post('act/fast_sale_now', {
@@ -646,194 +770,14 @@ Page({
})
}
})
- },
- getFourProduct: function() {
- let item = this.data.indexHot[this.data.hotIndex],
- service = "product/get_product_by_tag",
- data = {
- tag_id: item.id,
- offset: 0,
- limit: 4,
- sort: 'weight',
- order: 'desc'
- };
- if (item.type == 'scene') {
- service = "scene/get_scene_by_tag";
- } else if (item.type == 'movie') {
- service = "Cinema/getHotMovieList";
- data = {
- page: 1,
- pageSize: 4
- };
- }
- commonApi._post(service, data).then(res => {
- this.setData({
- fourProduct: res.data.list || res.data
- })
- })
- },
- tagGotoDetail: function(e) {
- let item = e.currentTarget.dataset.item;
- if (this.data.indexHot[this.data.hotIndex].type == 'movie') {
- // wx.navigateTo({
- // url: '/pages/list/movieticket/list/info/index?id=' + item.third_id + '&title=' +
- // item.title,
- // })
- util.goMovieDetail(item.third_id, item.title)
- } else {
- util.gotoDetail(item)
- }
- },
+ },
+
+
productGotoDetail: function(e) {
let item = e.currentTarget.dataset.item;
util.gotoDetail(item)
},
- gotoPath: function(e) {
- if (e.currentTarget.dataset.title == '书香借阅') {
- wx.navigateToMiniProgram({
- appId: 'wx165d4f1727f6bdb0',
- path: 'pages/home/home'
- })
- return;
- } else if (e.currentTarget.dataset.title == '12348') {
- wx.navigateToMiniProgram({
- appId: 'wxcdfd45c001466ba3',
- path: 'pages/index/index'
- })
- return;
- } else if (e.currentTarget.dataset.title == 'e读书') {
- wx.navigateToMiniProgram({
- appId: 'wx26e6f4c0baba005b',
- path: 'pages/index/index'
- })
- return;
- }else if (e.currentTarget.dataset.event == 'kunshan_click') {
- wx.navigateToMiniProgram({
- appId: 'wx8888a3fd0862b4c8',
- path: 'pages/index/index'
- })
- return;
- } else if (e.currentTarget.dataset.event == 'taicang_click') {
- wx.navigateToMiniProgram({
- appId: 'wx8853b0d93cbca75e',
- path: 'pages/home/home'
- })
- return;
- } else if (e.currentTarget.dataset.event == 'changshu_click') {
- wx.navigateToMiniProgram({
- appId: 'wx4df5fd9a6a5ea123',
- path: 'pages/index'
- })
- return;
- } else if (e.currentTarget.dataset.event == 'gongyeyuanqu_click') {
- wx.navigateToMiniProgram({
- appId: 'wxd323e63a10aa6865',
- path: 'pages/home/index'
- })
- return;
- } else if (e.currentTarget.dataset.event == 'wujiang_click') {
- wx.navigateToMiniProgram({
- appId: 'wx8eadea4ee2d42d4b',
- path: 'pages/index/index'
- })
- return;
- }
- wx.navigateTo({
- url: e.currentTarget.dataset.path,
- })
- if (e.currentTarget.dataset.title) {
- commonApi._post("browse/burying_point", {
- uuid: app.globalData.uuid,
- drive: "mini",
- title: e.currentTarget.dataset.title
- }).then(res => {
-
- })
- }
- },
- // 元旦 新品特惠部分
- goBanner: function(e) {
- let url = e.currentTarget.dataset.url;
- app.globalData.weburl = url;
- console.log(url)
- wx.navigateTo({
- url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(url)
- })
- },
- gotoUrl: function(e) {
- if (e.currentTarget.dataset.event) {
- this.pagePoint({
- event: e.currentTarget.dataset.event
- }, 1)
- }
- let url = e.currentTarget.dataset.url;
- app.globalData.weburl = url;
- wx.navigateTo({
- // url: '/pages/pbService/web/index?weburl='+encodeURIComponent('https://m.cloud.sz-trip.com/Cloudperform2022'),
- url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url),
- })
- },
- // 实时路况跳转外链
- gotoUrls() {
- // 判断是否登录
- var token = wx.getStorageSync("jstrip_token"), userId = wx.getStorageSync("jstrip_userid");
- if(!token || !userId) {
- let url = 'https://wlsjzx.zdhxwl.cn/kt_h5/index.html'
-
- app.globalData.weburl = url;
- wx.navigateTo({
- url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url),
- })
- }else {
- commonApi.user_post("uservice/user/userEncry").then(res => {
- if(res.code == 1) {
- let url = 'https://wlsjzx.zdhxwl.cn/kt_h5/index.html?userEncry=' + res.data
-
- app.globalData.weburl = url;
- wx.navigateTo({
- url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url),
- })
- }
- })
- }
- },
- gotoMini: function(e) {
- let appid = e.currentTarget.dataset.appid,
- path = e.currentTarget.dataset.path
- wx.navigateToMiniProgram({
- appId: appid,
- path: path
- })
- },
- garbage: function() {
- wx.navigateToMiniProgram({
- appId: 'wx13be821f3b1afed3',
- path: 'pages/home/home'
- })
- },
- gotoSku: function() {
- commonApi.user_post("pbservice/Ztfw/sukangCode").then(res => {
- app.globalData.weburl = res.data.url;
- wx.navigateTo({
- url: '/pages/pbService/web/index'
- })
- return;
- })
- },
- audioGuide: function() {
- wx.navigateToMiniProgram({
- appId: 'wx74f380bc721a0379',
- path: '/pages/listen/listen?title=君到苏州'
- })
- commonApi._post("browse/burying_point", {
- drive: "mini",
- title: "语音导览",
- uuid: app.globalData.uuid
- }).then(res => {
-
- })
- },
// 热门推荐 去掉经纬度 接口排序方式变更(韩阳)
getList: function() {
if (!this.data.listMore) return;
@@ -881,146 +825,57 @@ Page({
util.gotoDetail(item.ext);
}
},
- meituan: function() {
- wx.navigateToMiniProgram({
- appId: 'wxde8ac0a21135c07d',
- path: "hotel/pages/h5/index?q=https%3A%2F%2Ffenxiao.meituan.com%2Fopdtor%2Fh5%2Fhotel%2Fsearch%3FpartnerId%3D16829"
- })
- },
+
- //博物馆跳转 直接跳君到苏州H5
- goH5: function(e) {
- let weburl = 'https://m.cloud.sz-trip.com/' + e.currentTarget.dataset.path;
- // app.globalData.weburl ='https://m.cloud.sz-trip.com/' + e.currentTarget.dataset.path;
- wx.navigateTo({
- // url: "/pages/pbService/web/index"
- url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(weburl),
- })
- },
+
+ pagePoint: function(e, type) {
+ util.pagePoint(e, type)
+ },
- bannerJumpNew(item) {
- let that = this
- item = item.currentTarget.dataset.item
- if (item.tdata == '') return
- that.pagePoint({
- event: "banner_click",
- type: 'banner'
- }, 1)
- switch (item.jump_type) {
- case 0:
- break;
- case 1:
- util.gotoDetail(item.product_model)
- break;
- case 2:
- if (item.front_model && item.front_model.mini) {
- wx.navigateTo({
- url: "/" + item.front_model.mini
- })
- }
- break;
- case 3:
- if ((item.tdata.url.indexOf('http://') != -1 || item.tdata.url.indexOf('https://') != -1) &&
- item.tdata.url.indexOf('m.cloud.sz-trip.com') == -1) {
- // 外部h5
- app.globalData.weburl = item.tdata.url;
- wx.navigateTo({
- url: "/pages/pbService/web/index"
- })
- } else {
- let page = item.tdata.url.split("/");
- page = page[page.length - 1].split("?")
- let url = this.data.urltopage[page[0]];
- if (url && url.indexOf('map') != -1) {
- let types = ['', 'scenic', 'venue', 'post', 'restaurant', 'relic', 'tenscenic',
- 'cinema', 'academes'
- ],
- type = page[1] ? page[1].split("=") : [];
- wx.reLaunch({
- url: url + "?type=" + (type[1] ? types.findIndex(t => t == type[1]) : null)
- })
- } else if (url) {
- wx.navigateTo({
- url: url,
- })
- } else {
- app.globalData.weburl = item.tdata.url;
- wx.navigateTo({
- url: "/pages/pbService/web/index"
- })
- }
- }
- break;
- case 4:
- if (item.tdata.appid == 'wxe5ca0f71e918e352' && wx.getStorageSync('jstrip_userid')) {
- // 如果是苏心游的小程序 直接把authCode带过去
- userApi.user_post("user/getJumpThirdAppCode", {}).then(res => {
- let weburl = item.tdata.page
- if (weburl.indexOf('?') != -1) {
- weburl += '&authCode=' + res.data;
- } else {
- weburl += '?authCode=' + res.data
- }
- wx.navigateToMiniProgram({
- appId: item.tdata.appid,
- path: weburl
- })
- }).catch(err => {
- wx.navigateToMiniProgram({
- appId: item.tdata.appid,
- path: item.tdata.page
- })
- })
- } else {
- wx.navigateToMiniProgram({
- appId: item.tdata.appid,
- path: item.tdata.page
- })
- }
- break;
- default:
- break;
- }
- return
+ // --------------------------广告----------------------------
+ //关闭弹窗广告
+ closeAdv: function() {
+ this.setData({
+ showAdv: false
+ })
+ wx.showTabBar({
+ animation: true,
+ })
},
-
- gotoOther: function(e) {
- let item = e.currentTarget.dataset.item;
- if (item.type == 'h5') {
- app.globalData.weburl = item.url
- wx.navigateTo({
- url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.url)
- })
- } else if (item.type == 'mini') {
- wx.navigateToMiniProgram({
- appId: item.appid,
- path: item.path
- })
- } else if (item.type == 'page') {
- wx.navigateTo({
- url: item.page,
- })
+ //关闭全屏广告
+ closeFullAdv: function() {
+ this.setData({showFullAdv: false})
+ clearInterval(this.data.fullAdvTimer)
+ if (!this.data.alertSwipeList.length > 0) {
+ wx.showTabBar({animation: true})
}
},
- pagePoint: function(e, type) {
- util.pagePoint(e, type)
+ // 是否静音
+ closeMuted: function() {
+ this.setData({
+ isMuted: this.data.isMuted = !this.data.isMuted
+ })
+ },
+ // 播放视频
+ videoPlay: function() {
+ let videoplay = wx.createVideoContext('myVideo', this)
+ videoplay.play();
+ this.setData({
+ videoPlay: false
+ })
+ },
+ // 暂停视频
+ videoPause: function() {
+ let videoplay = wx.createVideoContext('myVideo', this)
+ videoplay.pause();
+ this.setData({
+ videoPlay: true
+ })
},
- onShow: function() {
- // console.log(app.globalData)
- // if (app.globalData.loadIndexSeason) {
- // this.getIndexSeason()
- // } else {
- // let t = setInterval(() => {
- // if (app.globalData.loadIndexSeason) {
- // this.getIndexSeason()
- // clearInterval(t)
- // t = null
- // }
- // }, 500)
- // }
+ onShow: function() {
this.pagePoint({event: 'home_view'}, 1)
},
@@ -1036,5 +891,93 @@ Page({
query: '',
imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/zwt/logo.png'
}
- }
+ },
+
+
+
+ // --------------------以前的东西 暂时用不到仅做保留------------------------
+ // 一城百馆 以前的活动
+ city: function() {
+ wx.navigateToMiniProgram({
+ appId: 'wx114d514f39cb1fed',
+ path: "pages/entry/index"
+ })
+ commonApi._post("browse/burying_point", {
+ drive: "mini",
+ title: "一城百馆",
+ uuid: app.globalData.uuid
+ }).then(res => {
+
+ })
+ },
+ meituan: function() {
+ wx.navigateToMiniProgram({
+ appId: 'wxde8ac0a21135c07d',
+ path: "hotel/pages/h5/index?q=https%3A%2F%2Ffenxiao.meituan.com%2Fopdtor%2Fh5%2Fhotel%2Fsearch%3FpartnerId%3D16829"
+ })
+ },
+ // 活动日历
+ getFourProduct: function() {
+ let item = this.data.indexHot[this.data.hotIndex],
+ service = "product/get_product_by_tag",
+ data = {
+ tag_id: item.id,
+ offset: 0,
+ limit: 4,
+ sort: 'weight',
+ order: 'desc'
+ };
+ if (item.type == 'scene') {
+ service = "scene/get_scene_by_tag";
+ } else if (item.type == 'movie') {
+ service = "Cinema/getHotMovieList";
+ data = {
+ page: 1,
+ pageSize: 4
+ };
+ }
+ commonApi._post(service, data).then(res => {
+ this.setData({
+ fourProduct: res.data.list || res.data
+ })
+ })
+ },
+ changeHotIndex: function(e) {
+ this.setData({
+ hotIndex: e.currentTarget.dataset.index,
+ fourProduct: []
+ })
+ this.getFourProduct()
+ },
+ getWeather: function() {
+ commonApi._post('pbservice/Ztfw/getWeather').then(res => {
+ this.setData({
+ weather: res.data
+ })
+ })
+ },
+ // Ai避高峰
+ gotoUrls() {
+ // 判断是否登录
+ var token = wx.getStorageSync("jstrip_token"), userId = wx.getStorageSync("jstrip_userid");
+ if(!token || !userId) {
+ let url = 'https://wlsjzx.zdhxwl.cn/kt_h5/index.html'
+
+ app.globalData.weburl = url;
+ wx.navigateTo({
+ url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url),
+ })
+ }else {
+ commonApi.user_post("uservice/user/userEncry").then(res => {
+ if(res.code == 1) {
+ let url = 'https://wlsjzx.zdhxwl.cn/kt_h5/index.html?userEncry=' + res.data
+
+ app.globalData.weburl = url;
+ wx.navigateTo({
+ url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url),
+ })
+ }
+ })
+ }
+ },
})
\ No newline at end of file
diff --git a/subPackages/index/index.wxml b/subPackages/index/index.wxml
index bc09170..67c8287 100644
--- a/subPackages/index/index.wxml
+++ b/subPackages/index/index.wxml
@@ -2,6 +2,7 @@
+
@@ -17,8 +18,8 @@
-
- 搜索想要的旅游产品或服务
+
+ 搜一搜您想要的
@@ -29,499 +30,273 @@
-
-
-
-
+
+
-
+
{{item.title}}
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
- {{item.title}}
-
- {{item.price/100}}
+
+
+
+
+
+
+
+ {{item.title}}
+
+ {{item.price/100}}
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- 更多
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 更多
+
+
-
-
+
+
+
+
+
+
- -->
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- 数字非遗
-
-
-
- 数字博物馆
-
-
-
- 数字名人馆
-
-
-
- 云上观展
-
-
-
- 云上文博会
-
-
-
- 精彩回顾
-
-
-
- 文化场馆查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- 美图鉴赏
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.name}}
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{date}} {{month}}
-
-
- {{item.ext.display_tags[0]}}
- {{item.title}}
-
-
-
-
-
- {{item.ext.subtitle}}
+
+
+
+
+
+
+
+
+
-
- {{item.title}}
-
-
-
- {{item.ext.like_number}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{date}} {{month}}
+
+
+ {{item.ext.display_tags[0]}}
+ {{item.title}}
-
-
- {{item.ext.view_number}}
+
+
+
+ {{item.ext.subtitle}}
+
+
+ {{item.title}}
+
+
+
+ {{item.ext.like_number}}
+
+
+
+ {{item.ext.view_number}}
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ ¥{{item.ext.price/100}}起
+
-
-
-
-
-
-
-
-
- {{item.title}}
-
-
- ¥{{item.ext.price/100}}起
-
+ 查看更多
+ 暂无更多推荐
- 查看更多
- 暂无更多推荐
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
- {{time}}s跳过
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 活动日历
-
-
-
-
-
- 场馆预约
-
-
-
-
-
-
-
- 剧场演出
-
-
-
-
-
-
-
- 夜游苏州
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ {{time}}s跳过
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- 数字非遗
-
-
-
- 数字博物馆
-
-
-
-
- 云上观展
-
-
-
- 云上文博会
-
-
-
-
- 文化场馆查询
-
-
-
-
- 书仓
-
-
+
+
+
-
-
- 数字公共文化
-
-
-
-
-
- 云游苏州
-
-
-
- 美图鉴赏
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/subPackages/index/index.wxss b/subPackages/index/index.wxss
index 78713d2..ec704bd 100644
--- a/subPackages/index/index.wxss
+++ b/subPackages/index/index.wxss
@@ -6,7 +6,7 @@ page {
.swiper,.swiper image {
width: 100%;
display: block;
- height: 600rpx;
+ height: 908rpx;
}
.top-box {
@@ -32,15 +32,14 @@ page {
flex: 1;
width: 100%;
height: 64rpx;
- border-radius: 0rpx;
- color: #15B593;
+ border-radius: 27rpx;
+ color: #666666;
display: flex;
align-items: center;
font-size: 25rpx;
- background-image: url("https://static.ticket.sz-trip.com/uploads/20250312/6cc354588441d7f89a36a91d7e1edd52.png");
- background-size: 100% 100%;
padding: 2rpx 5rpx;
box-sizing: border-box;
+ background: rgba(255, 255, 255, 0.6);
}
.search-box .iconfont {
font-size: 30rpx;
@@ -54,7 +53,7 @@ page {
z-index: 3;
width: 100%;
left: 0;
- bottom: 20rpx;
+ bottom: 30rpx;
right: 0;
display: flex;
justify-content: space-between;
@@ -62,21 +61,25 @@ page {
box-sizing: border-box;
}
.banner-main image{
- width: 150rpx;
- height: 100rpx;
+ width: 153.33rpx;
+ height: 133.33rpx;
}
.main-content{
- background: white;
+ background-color:#E8F9FA;
margin-top: -10rpx;
border-radius: 20rpx;
position: relative;
z-index: 4;
+ background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/150bd1f9312967bd7d9bedc6dbb8dd48.png");
+ background-size: 100% auto;
+ background-repeat: repeat-y;
+ padding-top: 63rpx;
}
.top-icons {
display: flex;
- padding: 20rpx;
+ padding:0 20rpx;
}
.top-icon-item {
margin-bottom: 20rpx;
@@ -86,19 +89,27 @@ page {
text-align: center;
flex-shrink: 0;
width: 20%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction: column;
}
.top-icon-item:nth-child(5n){
margin-right: 0;
}
.top-icon-item image {
- width: 86rpx;
+ width: 100rpx;
+ height: 100rpx;
display: block;
- margin: 0 auto;
- margin-bottom: 10rpx;
+ /* margin: 0 auto; */
+ /* margin-bottom: 10rpx; */
}
.content {
margin: 0 25rpx;
}
+.common-header-img{
+ height: 63.33rpx;
+}
.sale-road-boxes {
display: flex;
justify-content: space-between;
@@ -137,9 +148,7 @@ page {
background: linear-gradient(90deg, #F78C56, #FB6044);
}
-.road-product-bg {
- background: linear-gradient(90deg, #35CFB4, #00A6A0);
-}
+
.sale-img {
position: absolute;
right: 0;
@@ -195,70 +204,9 @@ page {
margin-top: 33rpx;
position: relative;
}
-.product-tags {
- display: flex;
- margin-top: 40rpx;
- margin-bottom: 50rpx;
- overflow-x: auto;
-}
-.product-tag {
- padding: 0 20rpx;
- height: 43rpx;
- background: #F4F4F4;
- border-radius: 21rpx;
- font-size: 27rpx;
- color: #666;
- margin-right: 20rpx;
- flex-shrink: 0;
-}
-.product-tag.active {
- background: #0B898E;
- color: #fff;
-}
-.tag-product-list {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
-}
-.tag-product {
- width: 337rpx;
- background: #FFFFFF;
- box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1);
- border-radius: 13rpx;
- margin-bottom: 35rpx;
-}
-.tag-product image {
- display: block;
- width: 337rpx;
- height: 213rpx;
- border-radius: 13rpx 13rpx 0px 0px;
-}
-.tag-product .product-info {
- padding: 20rpx;
- padding-bottom: 0;
-}
-.tag-product .tag-product-title {
- font-size: 33rpx;
- color: #333333;
- font-weight: 500;
- margin-bottom: 10rpx;
-}
-.tag-product .tag-product-address {
- color: #999;
- font-size: 22rpx;
- line-height: 40rpx;
- padding-bottom: 10rpx;
-}
-.tag-product-price-box {
- display: flex;
- height: 70rpx;
- align-items: center;
- border-top: 1rpx solid #ccc;
- justify-content: space-between;
-}
-.tag-product .tag-product-address .iconfont {
- font-size: 26rpx;
-}
+
+
+
.price {
color: #D62828;
font-size: 24rpx;
@@ -288,63 +236,51 @@ page {
font-size: 31rpx;
font-weight: 500;
}
-/* .pic-list {
- display: flex;
- justify-content: space-between;
- margin: 60rpx 0;
-}
-.pic-list image {
- width: 155.33rpx;
- height: 200rpx;
- display: block;
-} */
-/* 元旦修改 以上两个样式为注释掉的 下面的.pic-list是新改的 */
+
.pic-list {
width: 100%;
display: flex;
- margin-right: 26rpx;
- display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
+.new-pic {
+ width: 340rpx;
+ height: 140rpx;
+ margin-bottom: 20rpx;
+ }
+
.title-more {
font-size: 27rpx;
font-weight: 500;
- color: #29305A;
+ color: #1A9BA7;
z-index: 9;
width: 173rpx;
- height: 80rpx;
+ height: 63.33rpx;
border-radius: 20rpx;
text-align: center;
display: flex;
align-items: center;
- justify-content: center;
+ justify-content: flex-end;
}
.title-more .iconfont {
font-size: 22rpx;
}
.slide-out-box {
- margin-top: 20rpx;
+ margin-top: 30rpx;
border-radius: 27rpx;
padding-bottom: 1rpx;
margin-bottom: 40rpx;
}
.pbservice {
- /* width: calc(175rpx * 6); */
- /* 元旦修改 */
width: calc(190rpx * 7);
display: flex;
- margin-top: 30rpx;
flex-wrap: wrap;
- /* margin-bottom: 60rpx; */
- /* 元旦修改 注释margin-bottom */
}
.pbservice-item {
/* 元旦修改 截止到注释的width*/
- width: 120rpx;
- margin-bottom: 33.33rpx;
- margin-right: 62.33rpx;
- /* width: 175rpx; */
+ width: 158rpx;
+ margin-bottom: 22rpx;
+ margin-right: 22rpx;
text-align: center;
font-size: 25rpx;
color: #111111;
@@ -358,12 +294,9 @@ page {
width: 200rpx;
}
.pbservice-item image {
- /* width: 60rpx;
- margin-bottom: 20rpx;
- margin-top: 50rpx; */
- /* 元旦修改 以上都是之前的*/
- width: 106rpx;
- margin-bottom: 10rpx;
+ width: 158rpx;
+ height: 152rpx;
+ /* margin-bottom: 10rpx; */
}
.six-box {
margin-top: 43rpx;
@@ -518,42 +451,34 @@ page {
letter-spacing: 3rpx;
font-weight: 500;
}
-.title-header .icon-fanhui1 {
- display: none;
-}
+
.more-btn-text {
text-align: center;
margin: 20rpx auto;
width: 200rpx;
height: 67rpx;
line-height: 67rpx;
- border: 1px solid #169D7E;
+ border: 1px solid #2BB2D2;
font-size: 27rpx;
font-family: PingFang SC;
font-weight: 500;
- color: #169D7E;
+ color: #2BB2D2;
}
.scroll-line {
- width: 73rpx !important;
+ width: 34rpx !important;
height: 7rpx;
- /* background: #DDCEAC; */
- background: #97D0EC;
+ background: #87E1EC;
border-radius: 3rpx;
margin: 33.33rpx auto;
}
.scroll-line-bg {
height: 7rpx;
- background: #5184B0;
- border-radius: 3rpx;
-}
-/* 元旦修改 新增样式 */
-.scroll-line-bg2 {
- margin-left: 37.33rpx;
- background: #5184B0;
- height: 7rpx;
+ background: #30A7CD;
border-radius: 3rpx;
}
+
+
.nomore-tip-btn {
position: absolute;
left: 0;
@@ -561,100 +486,12 @@ page {
height: 78rpx;
bottom: 0;
}
-.prize-tip-text {
- width: 267rpx;
- display: block;
- top: 39rpx;
- left: 134rpx;
- position: absolute;
-}
-.prize-name {
- position: absolute;
- text-align: center;
- left: 132rpx;
- right: 132rpx;
- top: 169rpx;
- font-size: 31rpx;
- color: #333333;
-}
-.prize-img {
- width: 333rpx;
- height: 240rpx;
- border-radius: 13rpx;
- overflow: hidden;
- position: absolute;
- left: 100rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- top: 269rpx;
-}
-.prize-img image {
- display: block;
- width: 333rpx;
- height: 240rpx;
-}
-.btn-box {
- position: absolute;
- width: 400rpx;
- height: 87rpx;
- left: 67rpx;
- bottom: 78rpx;
- text-align: center;
- line-height: 87rpx;
-}
-.btn-box image {
- display: block;
- width: 100%;
-}
-.btn-box navigator,.btn-box view {
- color: #fff;
- font-size: 35rpx;
- font-weight: bold;
- position: absolute;
- left: 0;
- top: 0;
- z-index: 1;
- right: 0;
-}
-.prize-coupon {
- width: 293rpx;
- height: 227rpx;
- position: absolute;
- top: 274rpx;
- left: 120rpx;
- color: #fff;
- font-size: 24rpx;
- text-align: center;
-}
-.prize-coupon image {
- display: block;
- width: 100%;
-}
-.prize-coupon-money {
- position: absolute;
- left: 0;
- right: 0;
- font-size: 80rpx;
- font-weight: bold;
- line-height: 110rpx;
- top: 12rpx;
-}
-.prize-coupon-money::before{
- content: "¥";
- font-size: 32rpx;
-}
-.prize-coupon-tip {
- position: absolute;
- left: 0;
- right: 0;
- top: 120rpx;
-}
+
.other-plats {
display: flex;
font-size: 25rpx;
text-align: center;
- margin-bottom: 30rpx;
+ margin: 30rpx 0;
color: #333333;
line-height: 42rpx;
flex-wrap: wrap;
@@ -664,44 +501,12 @@ page {
align-items: center;
}
.other-plats image {
- width: 80rpx;
+ width: 153.33rpx;
display: block;
- height: 80rpx;
+ height: 146.67rpx;
margin-bottom: 15rpx;
}
-.other-plat {
- /* 春节新增样式 */
- color: #111111;
-}
-.other-plat:nth-child(4n){
- margin-right: 0;
-}
-.old-btn {
- position: fixed;
- left: 0;
- top: 170rpx;
- writing-mode:tb-rl;
- margin-top: 142rpx;
- color: #0B898E;
- font-size: 29rpx;
- width: 64rpx;
- height: 140rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- letter-spacing: 3rpx;
- background: rgba(255, 255, 255, 0.7);
- box-shadow: 0px 0px 13rpx 0px rgba(0, 0, 0, 0.3);
- border-radius: 0 13rpx 13rpx 0;
- font-weight: 500;
- z-index: 1;
-}
-.top-bg-img {
- display: block;
- width: 100%;
- position: absolute;
- left: 0;
-}
+
.dot-list {
display: flex;
position: absolute;
@@ -862,7 +667,7 @@ page {
border-radius: 0rpx;
overflow: hidden;
position: relative;
- background-image: url("https://static.ticket.sz-trip.com/uploads/20250312/004153a812042b46ca750146f5259ef7.png");
+ background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/90645448ce9a82c91916543bc6c4935c.png");
background-size: 100% 100%;
padding: 3rpx;
}
@@ -903,7 +708,7 @@ page {
height: 153rpx;
display: flex;
margin-bottom: 13rpx;
- background-image: url("https://static.ticket.sz-trip.com/uploads/20250312/a41b881279749fba4c506c164914b601.png");
+ background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/ed62e372f9c8874f9b50b40f70982202.png");
background-size: 100% 100%;
padding: 1rpx;
}
@@ -981,12 +786,7 @@ page {
text-align: center;
line-height: 36rpx;
}
-/* 元旦修改新增样式 */
-.new-pic {
- width: 160rpx !important;
- height: 220rpx !important;
- margin-bottom: 26.67rpx;
-}
+
.ggfw-list {
display: flex;
@@ -995,9 +795,9 @@ page {
}
.ggfw-list .ggfw {
- width: 30%;
- height: 70rpx;
- margin-bottom: 20rpx;
+ width: 220rpx;
+ height: 72rpx;
+ margin-bottom: 14rpx;
}
.ggfw image{
width: 100%;
@@ -1012,7 +812,7 @@ page {
justify-content: space-between;
align-items: center;
overflow: scroll;
- margin-bottom: 53.33rpx;
+ margin: 32rpx 0 53.33rpx;
z-index: 1;
position: relative;
}
@@ -1134,4 +934,10 @@ page {
.xsth-left>image{
max-width: 100%;
overflow: hidden;
-}
\ No newline at end of file
+}
+
+::-webkit-scrollbar{
+ width: 0;
+ height: 0;
+ color: transparent;
+}