diff --git a/app.json b/app.json
index cc141f1..a23c41d 100644
--- a/app.json
+++ b/app.json
@@ -1,277 +1,283 @@
{
- "pages": [
- "pages/index/index",
- "pages/map/index",
- "pages/pbService/aiHelpYou/index",
- "pages/search/index",
- "pages/search/list/index",
- "pages/login/index",
- "pages/old/index",
- "pages/old/user/index",
- "pages/old/profile/index",
- "pages/old/nickname/index",
- "pages/old/linkman/index",
- "pages/old/linkman/add/index",
- "pages/order/comment/index",
- "pages/order/coupon/index",
- "pages/order/pay/index",
- "pages/order/payresult/index",
- "pages/order/showSeat/index",
- "pages/order/show/index",
- "pages/order/road/index",
- "pages/order/roadOrder/index",
- "pages/order/movie/index",
- "pages/order/food/index",
- "pages/order/scene/index",
- "pages/order/sceneCart/index",
- "pages/order/hotel/index",
- "pages/order/card/index",
- "pages/order/joinOrder/index",
- "pages/order/joinOrder/success/index",
- "pages/order/joinOrder/history/index",
- "pages/order/postOrder/index",
- "pages/order/showOrder/index",
- "pages/info/newsInfo/index",
- "pages/info/hotelProductInfo/index",
- "pages/info/museumInfo/index",
- "pages/info/sceneProductInfo/index",
- "pages/info/sceneProductInfoNew/index",
- "pages/info/foodInfo/index",
- "pages/info/roadInfo/index",
- "pages/info/cardInfo/index",
- "pages/info/foodProductInfo/index",
- "pages/info/postProductInfo/index",
- "pages/info/sceneInfo/index",
- "pages/info/hotelInfo/index",
- "pages/info/activityInfo/index",
- "pages/info/showInfo/index",
- "pages/info/strategyInfo/index",
- "pages/info/guideInfo/index",
- "pages/info/groupOrderInfo/index",
- "pages/info/culturalUnitInfo/index",
- "pages/info/redmapInfo/index",
- "pages/user/user",
- "pages/user/retail/index",
- "pages/user/retail/apply/index",
- "pages/user/retail/goods/index",
- "pages/user/retail/list/index",
- "pages/user/retail/order/index",
- "pages/user/coupon/index",
- "pages/user/videoCoupon/index",
- "pages/user/verify/index",
- "pages/user/cartlist/list",
- "pages/user/couponCenter/index",
- "pages/user/order/list",
- "pages/user/order/team/list",
- "pages/user/order/sceneOrderInfo/index",
- "pages/user/order/foodOrderInfo/index",
- "pages/user/order/lineOrderInfo/index",
- "pages/user/order/couponOrderInfo/index",
- "pages/user/order/hotelOrderInfo/index",
- "pages/user/order/postOrderInfo/index",
- "pages/user/order/expressInfo/index",
- "pages/user/order/movieOrderInfo/index",
- "pages/user/order/activityOrderInfo/index",
- "pages/user/order/museumOrderInfo/index",
- "pages/user/order/refundInfo/index",
- "pages/user/service/index",
- "pages/user/service/list/index",
- "pages/user/service/info/index",
- "pages/user/address/index",
- "pages/user/profile/index",
- "pages/user/bindtel/index",
- "pages/user/nickname/index",
- "pages/user/likes/index",
- "pages/user/email/index",
- "pages/supplier/index",
- "pages/supplier/apply/index",
- "pages/supplier/good/index",
- "pages/list/mayday/index",
- "pages/list/feiyi/index",
- "pages/list/haoxing/index",
- "pages/list/culturalUnit/index",
- "pages/list/food/index",
- "pages/list/techan/index",
- "pages/list/museum/index",
- "pages/list/store/index",
- "pages/list/activity/index",
- "pages/list/activitynew/index",
- "pages/list/road/index",
- "pages/list/hotel/index",
- "pages/list/strategy/index",
- "pages/list/night/index",
- "pages/list/sale/index",
- "pages/list/movieticket/index",
- "pages/list/movieticket/list/seats/index",
- "pages/list/movieticket/list/cinema/index",
- "pages/list/movieticket/list/ticket/index",
- "pages/list/movieticket/list/web/index",
- "pages/list/movieticket/list/info/index",
- "pages/list/theatre/index",
- "pages/list/card/index",
- "pages/list/six/index",
- "pages/list/scene/index",
- "pages/list/comments/index",
- "pages/list/message/index",
- "pages/list/minitrip/index",
- "pages/list/oneday/index",
- "pages/list/daysu/index",
- "pages/list/daysu/detail/index",
- "pages/pbService/index",
- "pages/pbService/activity/index",
- "pages/pbService/museum/index",
- "pages/pbService/museum/info/index",
- "pages/pbService/PRpark/index",
- "pages/pbService/sceneComfort/index",
- "pages/pbService/gym/index",
- "pages/pbService/gym/info/index",
- "pages/pbService/bus/index",
- "pages/pbService/bus/search/index",
- "pages/pbService/bus/lineinfo/index",
- "pages/pbService/security/index",
- "pages/pbService/web/index",
- "pages/pbService/feiyi/index",
- "pages/pbService/bike/index",
- "pages/pbService/feiyi/info/index",
- "pages/pbService/appreciate/index",
- "pages/pbService/appreciate/info/index",
- "pages/pbService/library/index",
- "pages/pbService/library/bookinfo/index",
- "pages/pbService/library/getpoint/index",
- "pages/pbService/library/mybook/index",
- "pages/pbService/wbdw/index",
- "pages/pbService/wbdw/info/index",
- "pages/pbService/wwcx/index",
- "pages/pbService/wwcx/info/index",
- "pages/pbService/wwcx/search/index",
- "pages/pbService/group/index",
- "pages/ask/index",
- "pages/ask/info/index",
- "pages/ask/my/index",
- "pages/activity/graduate/index",
- "pages/activity/year2020/index",
- "pages/activity/suyear/index",
- "pages/activity/spring2021/index",
- "pages/activity/springten/list/index",
- "pages/activity/autumnten/list/index",
- "pages/activity/springten/index",
- "pages/activity/autumnten/index",
- "pages/activity/newarrival/index",
- "pages/activity/artfestival/index",
- "pages/activity/redlist/index",
- "pages/activity/subway/index",
- "pages/activity/tenscenic/index",
- "pages/activity/huawei/index",
- "pages/activity/huawei/form/index",
- "pages/activity/huawei/result/index",
- "pages/activity/huawei/upload/index",
- "pages/activity/huawei/uploadres/index",
- "pages/activity/huawei/list/index",
- "pages/kj/index",
- "pages/kj/his/index",
- "pages/kj/info/index",
- "pages/kj/mine/index",
- "pages/group/index",
- "pages/group/apply/index",
- "pages/group/mine/index",
- "pages/group/info/index",
- "pages/culture/index",
- "pages/culture/info/index",
- "pages/user/logout/index",
- "pages/order/orderList/index",
- "pages/user/linkman/add/index",
- "pages/user/address/add/index",
- "pages/user/linkman/index",
- "pages/user/userPrivacy/index",
- "pages/user/personalInfo/index",
- "pages/info/luggageInfo/index",
- "pages/order/WineSceneOrder/index",
- "pages/order/showOrderNew/index",
- "pages/user/order/showOrderInfo/index",
- "pages/user/suggest/suggest"
- ],
- "subpackages": [
- {
- "root": "subPackages",
- "pages": [
- "indexs/index",
- "index/index",
- "techanNew/index",
- "techanCart/index",
- "feiyiNew/index",
- "postSearch/index",
- "gwcOrder/index",
- "indexGQ/index",
- "transferPage/transferPage",
- "password/overview/overview",
- "password/setting/setting",
- "goods/oneCardTour/info/index",
- "feiyiNew/CGCIndex/index",
- "feiyiNew/CGCLetter/index",
- "feiyiNew/CGCTime/index"
- ]
- },
- {
- "root": "subPackageCheckPoint",
- "pages": [
- "pages/index/index",
- "pages/scopemap/index",
- "pages/detailsmap/index",
- "pages/content/index",
- "pages/web/index"
- ]
- }
- ],
- "plugins": {
- "live-player-plugin": {
- "version": "1.3.5",
- "provider": "wx2b03c6e691cd7370"
- }
- },
- "requiredPrivateInfos": [
- "getLocation",
- "choosePoi",
- "chooseAddress"
- ],
- "permission": {
- "scope.userLocation": {
- "desc": "你的位置信息将用于小程序位置接口的效果展示"
- }
- },
- "window": {
- "backgroundTextStyle": "light",
- "navigationBarBackgroundColor": "#fff",
- "navigationBarTitleText": "君到苏州(文化旅游总入口)",
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
- },
- "lazyCodeLoading": "requiredComponents",
- "style": "v2",
- "sitemapLocation": "sitemap.json",
- "tabBar": {
- "color": "#999999",
- "selectedColor": "#D22A1C",
- "borderStyle": "white",
- "list": [
- {
- "pagePath": "pages/index/index",
- "iconPath": "/images/index.png",
- "selectedIconPath": "/images/aindex_seld.png",
- "text": "首页",
- "shareTimeline": true
- },
+ "pages": [
+ "pages/index/index",
+ "pages/map/index",
+ "pages/pbService/aiHelpYou/index",
+ "pages/search/index",
+ "pages/search/list/index",
+ "pages/login/index",
+ "pages/old/index",
+ "pages/old/user/index",
+ "pages/old/profile/index",
+ "pages/old/nickname/index",
+ "pages/old/linkman/index",
+ "pages/old/linkman/add/index",
+ "pages/order/comment/index",
+ "pages/order/coupon/index",
+ "pages/order/pay/index",
+ "pages/order/payresult/index",
+ "pages/order/showSeat/index",
+ "pages/order/show/index",
+ "pages/order/road/index",
+ "pages/order/roadOrder/index",
+ "pages/order/movie/index",
+ "pages/order/food/index",
+ "pages/order/scene/index",
+ "pages/order/sceneCart/index",
+ "pages/order/hotel/index",
+ "pages/order/card/index",
+ "pages/order/joinOrder/index",
+ "pages/order/joinOrder/success/index",
+ "pages/order/joinOrder/history/index",
+ "pages/order/postOrder/index",
+ "pages/order/showOrder/index",
+ "pages/info/newsInfo/index",
+ "pages/info/hotelProductInfo/index",
+ "pages/info/museumInfo/index",
+ "pages/info/sceneProductInfo/index",
+ "pages/info/sceneProductInfoNew/index",
+ "pages/info/foodInfo/index",
+ "pages/info/roadInfo/index",
+ "pages/info/cardInfo/index",
+ "pages/info/foodProductInfo/index",
+ "pages/info/postProductInfo/index",
+ "pages/info/sceneInfo/index",
+ "pages/info/hotelInfo/index",
+ "pages/info/activityInfo/index",
+ "pages/info/showInfo/index",
+ "pages/info/strategyInfo/index",
+ "pages/info/guideInfo/index",
+ "pages/info/groupOrderInfo/index",
+ "pages/info/culturalUnitInfo/index",
+ "pages/info/redmapInfo/index",
+ "pages/user/user",
+ "pages/user/retail/index",
+ "pages/user/retail/apply/index",
+ "pages/user/retail/goods/index",
+ "pages/user/retail/list/index",
+ "pages/user/retail/order/index",
+ "pages/user/coupon/index",
+ "pages/user/videoCoupon/index",
+ "pages/user/verify/index",
+ "pages/user/cartlist/list",
+ "pages/user/couponCenter/index",
+ "pages/user/order/list",
+ "pages/user/order/team/list",
+ "pages/user/order/sceneOrderInfo/index",
+ "pages/user/order/foodOrderInfo/index",
+ "pages/user/order/lineOrderInfo/index",
+ "pages/user/order/couponOrderInfo/index",
+ "pages/user/order/hotelOrderInfo/index",
+ "pages/user/order/postOrderInfo/index",
+ "pages/user/order/expressInfo/index",
+ "pages/user/order/movieOrderInfo/index",
+ "pages/user/order/activityOrderInfo/index",
+ "pages/user/order/museumOrderInfo/index",
+ "pages/user/order/refundInfo/index",
+ "pages/user/service/index",
+ "pages/user/service/list/index",
+ "pages/user/service/info/index",
+ "pages/user/address/index",
+ "pages/user/profile/index",
+ "pages/user/bindtel/index",
+ "pages/user/nickname/index",
+ "pages/user/likes/index",
+ "pages/user/email/index",
+ "pages/supplier/index",
+ "pages/supplier/apply/index",
+ "pages/supplier/good/index",
+ "pages/list/mayday/index",
+ "pages/list/feiyi/index",
+ "pages/list/haoxing/index",
+ "pages/list/culturalUnit/index",
+ "pages/list/food/index",
+ "pages/list/techan/index",
+ "pages/list/museum/index",
+ "pages/list/store/index",
+ "pages/list/activity/index",
+ "pages/list/activitynew/index",
+ "pages/list/road/index",
+ "pages/list/hotel/index",
+ "pages/list/strategy/index",
+ "pages/list/night/index",
+ "pages/list/sale/index",
+ "pages/list/movieticket/index",
+ "pages/list/movieticket/list/seats/index",
+ "pages/list/movieticket/list/cinema/index",
+ "pages/list/movieticket/list/ticket/index",
+ "pages/list/movieticket/list/web/index",
+ "pages/list/movieticket/list/info/index",
+ "pages/list/theatre/index",
+ "pages/list/card/index",
+ "pages/list/six/index",
+ "pages/list/scene/index",
+ "pages/list/comments/index",
+ "pages/list/message/index",
+ "pages/list/minitrip/index",
+ "pages/list/oneday/index",
+ "pages/list/daysu/index",
+ "pages/list/daysu/detail/index",
+ "pages/pbService/index",
+ "pages/pbService/activity/index",
+ "pages/pbService/museum/index",
+ "pages/pbService/museum/info/index",
+ "pages/pbService/PRpark/index",
+ "pages/pbService/sceneComfort/index",
+ "pages/pbService/gym/index",
+ "pages/pbService/gym/info/index",
+ "pages/pbService/bus/index",
+ "pages/pbService/bus/search/index",
+ "pages/pbService/bus/lineinfo/index",
+ "pages/pbService/security/index",
+ "pages/pbService/web/index",
+ "pages/pbService/feiyi/index",
+ "pages/pbService/bike/index",
+ "pages/pbService/feiyi/info/index",
+ "pages/pbService/appreciate/index",
+ "pages/pbService/appreciate/info/index",
+ "pages/pbService/library/index",
+ "pages/pbService/library/bookinfo/index",
+ "pages/pbService/library/getpoint/index",
+ "pages/pbService/library/mybook/index",
+ "pages/pbService/wbdw/index",
+ "pages/pbService/wbdw/info/index",
+ "pages/pbService/wwcx/index",
+ "pages/pbService/wwcx/info/index",
+ "pages/pbService/wwcx/search/index",
+ "pages/pbService/group/index",
+ "pages/ask/index",
+ "pages/ask/info/index",
+ "pages/ask/my/index",
+ "pages/activity/graduate/index",
+ "pages/activity/year2020/index",
+ "pages/activity/suyear/index",
+ "pages/activity/spring2021/index",
+ "pages/activity/springten/list/index",
+ "pages/activity/autumnten/list/index",
+ "pages/activity/springten/index",
+ "pages/activity/autumnten/index",
+ "pages/activity/newarrival/index",
+ "pages/activity/artfestival/index",
+ "pages/activity/redlist/index",
+ "pages/activity/subway/index",
+ "pages/activity/tenscenic/index",
+ "pages/activity/huawei/index",
+ "pages/activity/huawei/form/index",
+ "pages/activity/huawei/result/index",
+ "pages/activity/huawei/upload/index",
+ "pages/activity/huawei/uploadres/index",
+ "pages/activity/huawei/list/index",
+ "pages/kj/index",
+ "pages/kj/his/index",
+ "pages/kj/info/index",
+ "pages/kj/mine/index",
+ "pages/group/index",
+ "pages/group/apply/index",
+ "pages/group/mine/index",
+ "pages/group/info/index",
+ "pages/culture/index",
+ "pages/culture/info/index",
+ "pages/user/logout/index",
+ "pages/order/orderList/index",
+ "pages/user/linkman/add/index",
+ "pages/user/address/add/index",
+ "pages/user/linkman/index",
+ "pages/user/userPrivacy/index",
+ "pages/user/personalInfo/index",
+ "pages/info/luggageInfo/index",
+ "pages/order/WineSceneOrder/index",
+ "pages/order/showOrderNew/index",
+ "pages/user/order/showOrderInfo/index",
+ "pages/user/suggest/suggest"
+ ],
+ "subpackages": [
{
- "pagePath": "pages/map/index",
- "iconPath": "/images/map.png",
- "selectedIconPath": "/images/amap_seld.png",
- "text": "图游"
+ "root": "subPackages",
+ "pages": [
+ "indexs/index",
+ "index/index",
+ "techanNew/index",
+ "techanCart/index",
+ "feiyiNew/index",
+ "postSearch/index",
+ "gwcOrder/index",
+ "indexGQ/index",
+ "transferPage/transferPage",
+ "password/overview/overview",
+ "password/setting/setting",
+ "goods/oneCardTour/info/index",
+ "feiyiNew/CGCIndex/index",
+ "feiyiNew/CGCLetter/index",
+ "feiyiNew/CGCTime/index"
+ ]
},
{
- "pagePath": "pages/user/user",
- "iconPath": "/images/user.png",
- "selectedIconPath": "/images/auser_seld.png",
- "text": "我的"
+ "root": "subPackageCheckPoint",
+ "pages": [
+ "pages/index/index",
+ "pages/scopemap/index",
+ "pages/detailsmap/index",
+ "pages/content/index",
+ "pages/web/index"
+ ]
}
- ]
- }
-}
\ No newline at end of file
+ ],
+ "plugins": {
+ "live-player-plugin": {
+ "version": "1.3.5",
+ "provider": "wx2b03c6e691cd7370"
+ }
+ },
+ "requiredPrivateInfos": [
+ "getLocation",
+ "choosePoi",
+ "chooseAddress"
+ ],
+ "permission": {
+ "scope.userLocation": {
+ "desc": "你的位置信息将用于小程序位置接口的效果展示"
+ }
+ },
+ "window": {
+ "backgroundTextStyle": "light",
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTitleText": "君到苏州(文化旅游总入口)",
+ "navigationBarTextStyle": "black",
+ "navigationStyle": "custom"
+ },
+ "lazyCodeLoading": "requiredComponents",
+ "style": "v2",
+ "sitemapLocation": "sitemap.json",
+ "tabBar": {
+ "color": "#999999",
+ "selectedColor": "#22A3CD",
+ "borderStyle": "white",
+ "list": [
+ {
+ "pagePath": "pages/index/index",
+ "iconPath": "/images/index.png",
+ "selectedIconPath": "/images/index_seld.png",
+ "text": "首页",
+ "shareTimeline": true
+ },
+ {
+ "pagePath": "pages/pbService/aiHelpYou/index",
+ "iconPath": "/images/ai.png",
+ "selectedIconPath": "/images/ai_seld.png",
+ "text": "AI"
+ },
+ {
+ "pagePath": "pages/map/index",
+ "iconPath": "/images/map.png",
+ "selectedIconPath": "/images/map_seld.png",
+ "text": "图游"
+ },
+ {
+ "pagePath": "pages/user/user",
+ "iconPath": "/images/user.png",
+ "selectedIconPath": "/images/user_seld.png",
+ "text": "我的"
+ }
+ ]
+ }
+ }
\ No newline at end of file
diff --git a/pages/index/imgSource.js b/pages/index/imgSource.js
index 588f666..871e3de 100644
--- a/pages/index/imgSource.js
+++ b/pages/index/imgSource.js
@@ -1,109 +1,37 @@
const imageSource = {
- // 活动日历、场馆预约等
- mainFunImgs: [
- "https://static.ticket.sz-trip.com/uploads/20241225/9a472382adcb3793e6c61ad3ea2fbb05.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/ba19e78aaa629e3ece995d599526d08c.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/9fc20afb60e1e647b511d9973e96bd4b.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/7030de3a317567442f5141d833e5f752.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/fb7ce8cc732bb34bf881dd7129f1e708.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/1faaa62c2d0bd9b912950e742347b0b6.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/661fcc7e02d2c5d734a43d5dbbe79363.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/f0e901bc9ab4c988295e4a2f88cb3ffe.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/ebb4be1738d227f6deb3f895db663eed.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/1c847b7edcee6fec2928da4280ef19ca.png",
- ],
- // 数字文旅
- SZWL: [
- // 非遗,博物馆,名人馆,云上,云上文博,精彩回顾,文化场馆
- // 苏影通 书仓 e读书 数字公共文化 云游苏州 美图鉴赏
- "https://static.ticket.sz-trip.com/uploads/20241225/70e78a734c5f1ec7f9461c071ce05a6b.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/a4a7e0487b417c5ed2140d5e2341da43.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/f7a2d28af1be501b0c104e8f831f3c36.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/003cb24afb80aeef891d73bfeeab4359.png",
-
- "https://static.ticket.sz-trip.com/uploads/20241225/8f4ab6d79b0b2851cd4f7ceff92155f6.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/845592de452a60ad5d9a51cb8cf73d99.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/71e21d53580b8c1dcd1ec6b8f2c1f959.png",
-
- "https://static.ticket.sz-trip.com/uploads/20241225/dd691cdd5cf61f4172a9ee179bab8bc2.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/eae7eed9a19bc1f0c5296da5c3a8c6e2.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/73ce0d4057cca77dbcaaa6b858d84e33.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/1efa141c778d55b471ad950fa886119b.png",
-
- "https://static.ticket.sz-trip.com/uploads/20241225/02be10405480f0139b75fe355f9a8df8.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/2d7514ce60a3843ae04b98660ed2d622.png",
-
- ],
- // 旅游助手
- LVZS: [
- "https://static.ticket.sz-trip.com/uploads/20241225/73567ffad3e927a0ce5a5dab8c13963e.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/96d36ec8e1794d9873ba0687beed9288.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/973b2cc8b0614b28400b6cc04c3c8495.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/200277a64244c067e260da28511a6420.png",
- ],
- // 公共服务
- GGFW: [
- "https://static.ticket.sz-trip.com/uploads/20241225/dd917bfef53fa2fd54d733dad8e435b5.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/d9551507d901dff803b0f06ab545c74f.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/c44aadc6e054f3a2ac9cfcefdad048ea.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/826c8084cde314a4f8b46e91bcd77acc.png",
- ],
-
- // 十全十美
- SQSM: [
- // ["changshu","taicang", "kunshan","wujiang","gongyeyuanqu","zhangjiagang","wuzhong","xiangcheng","gusu","gaoxin"],
- "https://static.ticket.sz-trip.com/uploads/20241225/1a963a3b3a6cf9a4dca822cce6574e3f.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/21fba8904ce6ae5fe7d6a64a2794d93b.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/98b19eb35e6621818b1ba78def011778.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/24f59b0e143a249fec891b2ef22800ef.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/73f11fcdf9e7a3236815a5935ab70253.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/f48f42f53e2a53f0b978684bcbd1b8c5.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/de5ae5de54a255a72f404d688c2ceb3e.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/9be62fc5347411ada17ec9f4b3ea8c28.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/2fcea197a5d9ac98d29cb194d9ab45db.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/d4d91992a844af511498af07e39cab45.png",
-
- ],
-
- // 长三角文旅平台
- CSJWLPT: [
- "https://static.ticket.sz-trip.com/uploads/20241225/ef61d89d6d0f5ca84f56917920a162f2.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/8368833b47ccfe9bc34a395eea74efb4.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/7cc0f4a931bb969f7a063ea6e00325e6.png",
- ],
// 导航标题侧边图片
CBTP: [
- "https://static.ticket.sz-trip.com/uploads/20241225/4e4d8c6b8fad6afb7fd3fc2e04dd3fda.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/caeb000298ff47c053574a60f87ced6e.png",
- "https://static.ticket.sz-trip.com/uploads/20240428/6955225b950d5bbe5168f5d9994a6098.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/1d9433deead99749beacc38be93a79a0.png",
- "https://static.ticket.sz-trip.com/uploads/20241225/7df57b4bd1bb784e6c085c89e9ef883a.png",
+ "https://static.ticket.sz-trip.com/uploads/20250314/5d051d37148757eb5daa6e51439e711a.png",
+ "https://static.ticket.sz-trip.com/uploads/20250314/d47ce5d4f2a780f46192afeb715d873d.png",
+ "",
+ "https://static.ticket.sz-trip.com/uploads/20250314/03413a9bd8a0b7a99141903e04cbc05f.png",
+ "https://static.ticket.sz-trip.com/uploads/20250314/1075c176fb20563a48945fce020db57f.png",
],
// 其他后台配置的图片,开发时使用
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/20241225/164406bfa707e66e6aa5d2e2dd5364d1.png",
+ ai: "https://static.ticket.sz-trip.com/uploads/20250314/3fb020cf3471d3731b4a7efae25e8e64.png",
// ai避高峰
- avoid: "https://static.ticket.sz-trip.com/uploads/20241225/2f7600e95027686eb71ac499abfe14cc.png",
+ avoid: "https://static.ticket.sz-trip.com/uploads/20250314/8c0f1c421b1de36265948d52c249dc57.png",
// 新品特惠
- xpth: "https://static.ticket.sz-trip.com/uploads/20241225/4df3cd8bda55d743d597706efa5fd50a.png",
+ xpth: "https://static.ticket.sz-trip.com/uploads/20250314/349596880742665ac7249b5f4218263f.png",
// 文旅鉴赏
- wlcx: "https://static.ticket.sz-trip.com/uploads/20241225/6cee0a7fce7873444824bc56dc452085.png",
+ wlcx: "https://static.ticket.sz-trip.com/uploads/20250314/073759b9fcd3e217de9ecea774451364.png",
// 出行助手
- lyzs: "https://static.ticket.sz-trip.com/uploads/20241225/6b3ed3f6533470b45bffe44447ed8f86.png",
+ lyzs: "https://static.ticket.sz-trip.com/uploads/20250314/7f5d199286e62ba6c9d43fdfd6f55de3.png",
// 公共服务
- ggfw: "https://static.ticket.sz-trip.com/uploads/20241225/6a9d7e1d968961cbe1aaf9bef994518a.png",
+ ggfw: "https://static.ticket.sz-trip.com/uploads/20250314/271ffedb33dcfacf170ff78c1425f9cf.png",
// 十全十美
- sqj: "https://static.ticket.sz-trip.com/uploads/20241225/c7ce89fec139ff7a530a5d68ef2f56c8.png",
+ sqj: "https://static.ticket.sz-trip.com/uploads/20250314/edceba87f00e37ef50cf6a9fafb8a29f.png",
// 长三角文旅平台
- csjwlpt: "https://static.ticket.sz-trip.com/uploads/20241225/a38194b30ce9a956aa9701a65dc68aea.png",
+ csjwlpt: "https://static.ticket.sz-trip.com/uploads/20250314/c88a44d385e0bf36370475ace8e5669e.png",
// 热门推荐
- rmtj: "https://static.ticket.sz-trip.com/uploads/20241225/b31bfd4ff8cca2071928a1edeab4e818.png",
+ rmtj: "https://static.ticket.sz-trip.com/uploads/20250314/dcc02bb22b721e281037cecf22e74728.png",
}
},
diff --git a/pages/index/index.js b/pages/index/index.js
index 940c872..e70b0ff 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -1,647 +1,556 @@
//index.js
//获取应用实例
let app = getApp()
+import imageSource from "./imgSource"
+
import commonApi from "../../utils/https/common"
import userApi from "../../utils/https/user"
import util from "../../utils/util"
+import https from "../../utils/https.js"
+
Page({
data: {
- fullAdvTimer: null, // 全屏timer
- banner: [],
- xiaobanner: [],
- height: 0,
- padHeight: 0,
- right: 0,
- weather: null,
-
- 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,
- activeBannerIndex: 5,
- smBannerIndex: 0,
- indexSeason: {},
- // startList: [], // 启动页广告
- startList: {
- head_img: ''
- }, // 启动页广告
- alertSwipeList: [], //弹窗广告
- showAdv: false, //弹窗开关
- showFullAdv: true, //全屏广告开关
- opacity: 1,
- time: 3, //全屏广告剩余时间
- showTime: false,
- viewHeight: "0px",
+ startList: {head_img: ''}, // 启动页广告
+ fullAdvTimer: null, // 全屏timer
+ showFullAdv: true, //全屏广告开关
+ opacity: 1, // 全屏广告透明度
+ time: 3, //全屏广告剩余时间
+ showTime: false, // 全屏广告时间展示
+ alertSwipeList: [], //弹窗广告
+ showAdv: false, //弹窗开关
isMuted: true,
videoPlay: false,
- hdrlNavList:[
- {
- type:null,
- title:'全部'
- },
- {
- type:'scene',
- title:'景区活动'
- },
- {
- type:'show',
- title:'演出'
- },
- {
- type:'exhibition',
- title:'展览'
- },
- {
- type:'movie',
- title:'电影'
+
+ systemStyle: {
+ height: 0,
+ padHeight: 0,
+ right: 0,
},
- {
- type:'other',
- title:'其他'
- }
- ], //活动日历板块导航分类
- hdrlNavIndex:0,//活动日历默认选中第一个全部分类
- today:null,
- hdrlList:[],
- yszNav:['公共服务','旅游助手'],
- yszIndex:0,
- bdList:[
+ lat: "",
+ lon: "",
+
+ indexSeason: {}, // 后台UI配置项
+
+ // bannerInterver: 5*1000, // 动态更改banner时间
+ banner: [],
+ xiaobanner: [],
+ activeBannerIndex: 0,
+ smBannerIndex: 0,
+
+ // banner上的金刚区
+ bannerDataList: [
+ // {
+ // title: "景点门票",
+ // 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/20250526/d75d7a3924d832912a2633ee29b30b9b.png",
+ // path: "/pages/list/activitynew/index",
+ // },
+ // {
+ // 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/20250526/4384a93f77d8faba5f504195c77e57c1.png",
+ // path: "/pages/list/scene/index",
+ // },
+ ],
+ // 金刚区
+ mainTypeList: [
+ // {
+ // title: "非遗专卖",
+ // img: "https://static.ticket.sz-trip.com/uploads/20250526/a901ad572bda409e769f92760b812d71.png",
+ // path: "/subPackages/feiyiNew/index",
+ // },
+ // {
+ // title: "场馆预约",
+ // 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/20250526/a901ad572bda409e769f92760b812d71.png",
+ // weburl:"https://m.cloud.sz-trip.com/OneDayTravelNew",
+ // },
+ // {
+ // title: "户外游",
+ // 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/20250526/a901ad572bda409e769f92760b812d71.png",
+ // weburl:"https://m.cloud.sz-trip.com/movies",
+ // },
+ // {
+ // type: 'hotel', // 特殊标识方便查找 更新weburl
+ // title: "酒店住宿",
+ // 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/20250526/a901ad572bda409e769f92760b812d71.png",
+ // path: '/pages/list/night/index'
+ // },
+ // {
+ // title: "剧场演出",
+ // img: "https://static.ticket.sz-trip.com/uploads/20250526/a901ad572bda409e769f92760b812d71.png",
+ // path: '/pages/list/theatre/index'
+ // },
+ ],
+ mainTypeLeft: 0,
+
+ xpth: {}, // 新品特惠
+ XPathBannerIndex: 0,
+ xpthIndex: 0,
+ list: [], // 热门推荐
+
+ // 公共服务
+ publicSerivce: [
+ {
+ title: "高峰预警",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/c7e28d88bde040c386183d69ae9bb228.png",
+ path: "/pages/pbService/sceneComfort/index?title=高峰预警",
+ eventName: "comfort_click",
+ },
+ {
+ title: "实时路况",
+ 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/20250526/66c8614112630ed168a27150f15a3234.png",
+ appId: 'wx757dd1ee184e75e9',
+ pagePath: "pages/tabBar/index/index"
+ },
+ {
+ title: "行李寄存",
+ 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/e8e75d8cd8761d4de4336a35e29e5c6d.png",
+ path: "/pages/pbService/bike/index?type=1",
+ },
+ {
+ title: "停车场",
+ img: "https://static.ticket.sz-trip.com/uploads/20250526/ef3d9cfb4817552288d666d8e5617707.png",
+ weburl: "https://m.cloud.sz-trip.com/ParkingArea",
+ },
+
+ ],
+
+ // 旅游助手
+ travelData: [
{
- color: '#FFE4BC',
- bg: 'linear-gradient(172deg, #F08528, #D1201B);',
- icon:'https://static.ticket.sz-trip.com/uploads/20250429/069ab247bb2ab5a08fa7707d671b1ac5.png', //游 景点
- url:'',
- path:'/pages/list/scene/index',
- list: [],
-
+ 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/20250529/f45acb752680d1b4cce7d25da02c96f5.png',
+ weburl: "https://m.cloud.sz-trip.com/CloudExpo",
+ },
+ {
+ title: "精彩回顾",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250529/74bd8e6b027797a24fbfccaef5c836ad.png',
+ path: "/pages/pbService/activity/index",
+ },
+ {
+ title: "文化场馆查询",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250529/ff56544a00fb1cc78e0b307f16daa821.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/20250529/f3b1ec60b5f069182faadf263ec9dfee.png',
+ weburl: 'https://speed.web.yunyouyizhan.com/downloadApp/index.html#/',
+ },
+ {
+ title: "美图鉴赏",
+ img: 'https://static.ticket.sz-trip.com/uploads/20250529/820de8c4353bde80379f46e474104c04.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/20250529/ed641bf31558381e8d1c372e5cbbd155.png",
+ appId: 'wx4df5fd9a6a5ea123',
+ pagePath: 'pages/index'
},
- {
- color: '#DBD8F6',
- bg: 'linear-gradient(172deg, #A49CE9, #353A68);',
- icon:'https://static.ticket.sz-trip.com/uploads/20250429/8c023b9c626d3821b64d105ae6e65f2d.png', //非玩不可 景点产品
- // path:'/pages/list/night/index',
- url:'https://m.cloud.sz-trip.com/nightTour2025',
- path: '',
- list: [],
-
+ {
+ title: "太仓",
+ img: "https://static.ticket.sz-trip.com/uploads/20250529/f359551295197eff9c0966324659f037.png",
+ appId: 'wx8853b0d93cbca75e',
+ pagePath: 'pages/home/home'
},
{
- color: '#FFE4BC',
- bg: 'linear-gradient(172deg, #F08528, #D1201B);',
- icon:'https://static.ticket.sz-trip.com/uploads/20250429/9928f46523fd57233b6ef3371a6ba460.png', //非看不可
- url:'',
- path:'/pages/list/theatre/index',
- list: [],
-
+ title: "昆山",
+ img: "https://static.ticket.sz-trip.com/uploads/20250529/35f498dbb43e14cdf3c6bbdf83e613db.png",
+ appId: 'wx8888a3fd0862b4c8',
+ pagePath: 'pages/index/index'
},
{
- color: '#DBD8F6',
- bg: 'linear-gradient(172deg, #A49CE9, #353A68);',
- icon:'https://static.ticket.sz-trip.com/uploads/20250429/a4f53072aa51a387593a183799b902e6.png', //非买不可
- path:'/subPackages/techanNew/index',
- url:'',
- list: [],
-
+ title: "吴江",
+ 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/9e947f0ef8addbe5c52b5bd4de205788.png",
+ appId: 'wxd323e63a10aa6865',
+ pagePath: 'pages/home/index'
+ },
+ {
+ title: "张家港",
+ img: "https://static.ticket.sz-trip.com/uploads/20250529/6162e0a86ec7e7b12e568fd5f81b5c9b.png",
+ path: "/pages/list/six/index?area=zhangjiagang"
+ },
+ {
+ 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/ec54fba906166c7512d26ca8a4fa5a9f.png",
+ path: "/pages/list/six/index?area=xiangcheng"
+ },
+ {
+ title: "姑苏",
+ img: "https://static.ticket.sz-trip.com/uploads/20250529/cbb939c4ddfa187489b59adcbe72f7a9.png",
+ path: "/pages/list/six/index?area=gusu"
+ },
+ {
+ title: "高新",
+ img: "https://static.ticket.sz-trip.com/uploads/20250529/f2aa7328af4afaa9d1d4ecac1778300a.png",
+ path: "/pages/list/six/index?area=gaoxin"
+ },
+
+
],
- nowDate: [('0' + (new Date().getMonth() + 1)).slice(-2) , ('0' + new Date().getDate()).slice(-2)],
- isMayDay: new Date().getTime()>new Date('2025/05/01 00:00:00').getTime()
+ // 长三角文旅平台
+ 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"
+ },
- },
- onLoad: function(options) {
- //全屏广告
- let _this = this
- commonApi._post("adv/getAdv", {
- position: 2,
- type_id: 3
- }).then(res => {
- if (res.data.length > 0) {
- wx.hideTabBar() //这里隐藏了底部导航栏
+ ],
- let length = res.data.length
- if (res.data.length > 1) {
- let num = Math.floor(Math.random() * length);
- console.log('num', num);
- this.setData({
- startList: res.data[num]
- })
- console.log(this.data.startList.head_img);
- } else {
- this.setData({
- startList: res.data[0]
- })
- }
-
- // 图片
- if (this.data.startList.media_type) {
- this.setData({
- showTime: true
- })
- this.data.fullAdvTimer = setInterval(() => {
- _this.data.time-=0.5
- if (Number.isInteger(_this.data.time)) {
- _this.setData({time: _this.data.time})
- }
- if (_this.data.time <= 0) {
- // 可以css 优化
- _this.setData({opacity: 0})
- }
- if (_this.data.time <= -1) {
- clearInterval(_this.data.fullAdvTimer)
- wx.showTabBar() //倒计时结束清除定时器显示导航栏
- _this.setData({showFullAdv: false})
- }
- }, 500)
- } else {
- // 视频
- }
- } else {
- this.setData({
- showFullAdv: false
- })
- }
- })
- if (options.from) {
- app.globalData.from = options.from;
- }
- this.getHeight()
-
-
- // 获取今天的日期
- let today = new Date();
- let d = new Date();
- let month = d.getMonth() + 1,day = d.getDate();
- month = month > 10 ? month : ("0" + month);
- day = day > 10 ? day : ("0" + day);
- this.setData({
- month: (this.data.months[today.getMonth()]).toUpperCase(),
- date: today.getDate(),
- today: d.getFullYear() + "-" + month + "-" + day
- })
- },
- gobdDetail(e) {
- let item = e.currentTarget.dataset.item
- util.gotoDetail(item)
- },
- getList() {
- let bdList = this.data.bdList
- // 游--景点
- commonApi._post("scene/get_scene_by_tag",{
- tag_id:"4",
- limit:6,
- lon:this.data.lon,
- lat:this.data.lat,
- offset:0,
- sort:"weight",
- title:'',
- area_id:''
- }).then(res=>{
- console.log('景点', res)
- res.data.list.map(item => {
- if (item.distance || item.distance == 0) {
- if (item.distance >= 1000) {
- item.distance = (item.distance / 1000).toFixed(2) + 'km';
- } else {
- item.distance = (item.distance).toFixed(2) + 'm';
- }
- }
- })
- bdList[0].list = res.data.list
- this.setData({
- bdList: bdList
- })
- })
- // 非买不可--文创
- commonApi._post('product/get_product_by_tag_subject',{
- offset: 0,
- limit: 6,
- tag_id: 60,
- }).then(res=>{
- bdList[3].list = res.data.list
- this.setData({
- bdList: bdList
- })
- })
- // 非玩不可--线路一日游
- commonApi._post('product/get_product_by_tag_subject',{
- tag_id: "58",
- offset: 0,
- limit: 6,
- }).then(res=>{
- bdList[1].list = res.data.list
- this.setData({
- bdList: bdList
- })
- })
- // 非看不可--剧场演出
- commonApi._post("product/get_product_by_tag_subject",{
- tag_id:"59",
- offset:0,
- limit:6,
- }).then(res=>{
- bdList[2].list = res.data.list
- this.setData({
- bdList: bdList
- })
- })
- },
- goDetail(e) {
- let item = e.currentTarget.dataset.item;
- let type = this.data.hdrlNavList[this.data.hdrlNavIndex].type
- if (type == 'movie') {
- // wx.navigateTo({
- // // url: '/pages/list/movieticket/list/info/index?id=' + item.third_id
- // })
- util.goMovieDetail(item.third_id || item.id)
- }else {
- wx.navigateTo({
- url: '/pages/info/activityInfo/index?id=' + item.id,
- })
- }
- },
- // 分类为电影时调这个接口
- getMovieList() {
- let service = "Cinema/getHotChannelMovieList";
- let data = {
- page: 1,
- pageSize: 5
- };
- commonApi._post(service, data).then(res => {
- console.log(res.data);
- this.setData({
- hdrlList: res.data
- })
- })
- console.log(this.data.hdrlList);
- },
- // 推荐榜单更多跳转
- moreBtn(e) {
- console.log(e)
- let item = e.currentTarget.dataset.item
- if (item.path!='') {
- wx.navigateTo({
- url: item.path,
- })
- } else {
- // if (e.currentTarget.dataset.event) {
- // this.pagePoint({
- // event: e.currentTarget.dataset.event
- // }, 1)
- // }
- console.log('error', item)
- let url = item.url;
- app.globalData.weburl = url;
- wx.navigateTo({
- url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url),
- })
+ // 回购榜
+ repurchaseList: [],
+ canGetrepurchase: true,
+
+ urltopage: {},
+
+ // ---------------2025-5-26改版没用到的------------------
+ fourProduct: [],
+ hotIndex: 0,
+ indexHot: [],
+ weather: null,
+
+ // 页面图片
+ // imageSourceList:imageSource,
+
+
+ },
+ onLoad: function(options) {
+ // 相城小程序跳转获取用户信息
+ if(options && options.szxcCode) {
+ commonApi._post("uservice/user/loginByXC", {
+ code: options.szxcCode
+ }).then(res => {
+ if(res.data && res.data.id && res.data.token) {
+ https.set_logininfo(res);
+ }
+ })
}
+ if (options.from) {
+ app.globalData.from = options.from;
+ }
+ return
+ console.log('options',options)
+
},
- // 活动日历下的列表
- getHdrlList() {
- commonApi._post('pbservice/Actcalendar/getActList', {
- page_no: 1,
- date: this.data.today,
- category: this.data.hdrlNavList[this.data.hdrlNavIndex].type,
- keywords: '',
- area_key: '',
- lat: this.data.lat,
- lon: this.data.lon,
- page_num: 5
- }).then(res => {
- res.data.rows.forEach(v=>{
- if (!v.post_url) {
- v.post_url = "https://static.ticket.sz-trip.com/uploads/20240909/c9a0029cc9426d2a17f1dbbb7a179762.jpg"
- }
- })
- this.setData({
- hdrlList:res.data.rows
- })
+
+ onReady: function() {
+ this.getHeight()
+ this.getIndexSeason()
+ this.getBanner()
+
+ 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
+ })
+ },
+ fail: (err) => {
+ }
})
+
+ this.getUrlToPage()
+
+
},
- // 切换活动日历分类
- changeHdrlNav(e) {
- console.log(e.currentTarget.dataset);
- this.setData({
- hdrlList:[],
- hdrlNavIndex:e.currentTarget.dataset.index,
- })
- if (this.data.hdrlNavIndex == 4) {
- this.getMovieList()
+
+ showImg (img) {
+ if (!img) { return img }
+ if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) {
+ return img;
} else {
- this.getHdrlList() //切换分类重新获取活动日历列表
+ return "https://test.api.cloud.sz-trip.com"+img
+ // return "https://static.ticket.sz-trip.com" + img;
}
},
- // 游苏州下的公共服务和旅游助手切换
- changeType(e) {
- this.setData({
- yszIndex:e.currentTarget.dataset.index,
- })
- },
- xlzs: function (e) {
- wx.navigateToMiniProgram({
- appId: 'wx757dd1ee184e75e9',
- page: "pages/tabBar/index/index"
- })
- },
- // 获取导航栏项目标题高度
+ // 获取系统信息
getHeight() {
- let that = this
- let systemInfo = wx.getStorageSync('systemInfo'),rect = wx.getMenuButtonBoundingClientRect();
- if (!systemInfo) {systemInfo = wx.getSystemInfoSync()}
- if (!rect) {rect = wx.getMenuButtonBoundingClientRect()}
- let height = (rect.top - systemInfo.statusBarHeight) * 2 + rect.height;
-
- that.setData({
- viewHeight: systemInfo.windowHeight + 'px',
- height: height,
- padHeight: systemInfo.statusBarHeight,
- right: (systemInfo.screenWidth - rect.right) + rect.width
- })
- },
-
- // 大轮播的监听方法
- changeBannerIndex: function(e) {
- this.setData({
- activeBannerIndex: e.detail.current
+ let systemInfo = wx.getSystemInfoSync(),
+ rect = wx.getMenuButtonBoundingClientRect();
+ let height = (rect.top - systemInfo.statusBarHeight) * 2 + rect.height;
+ let systemStyle = {
+ height: height, // 导航栏
+ padHeight: systemInfo.statusBarHeight, // 状态栏
+ right: (systemInfo.screenWidth - rect.right) + rect.width // 右侧胶囊
+ }
+ this.setData({
+ systemStyle: systemStyle,
})
},
- // 小轮播监听方法
- changeSmBannerIndex: function(e) {
- this.setData({
- smBannerIndex: e.detail.current
- })
- },
-
- getBanner: function() {
- commonApi._post("adv/getAdv", {
- position: 0,
- type_id: 3
- }).then(res => {
- this.setData({
- banner: res.data || []
- })
- })
- commonApi._post("adv/getAdv", {
- position: 1,
- type_id: 3
- }).then(res => {
- this.setData({
- xiaobanner: res.data || []
- })
- })
- //弹窗广告
- commonApi._post("adv/getAdv", {
- position: 3,
- type_id: 3
- }).then(res => {
- if (res.data.length > 0) {
- this.setData({
- alertSwipeList: res.data || [],
- showAdv: true
- })
- } else if (!this.data.showFullAdv) {
- wx.showTabBar({
- animation: true,
- })
- }
- })
-
- },
- //获取季节配置
+ //获取季节配置
getIndexSeason() {
- if (app.globalData.configJson.indexSeason) {
+ if (app.globalData.configJson&&app.globalData.configJson.indexSeason) {
+ console.log('app', app.globalData.configJson)
this.setData({
+ indexHot: app.globalData.configJson.indexHot,
isTest: app.globalData.configJson.isTest,
- otherPlat: app.globalData.configJson.otherPlats,
- indexSeason: app.globalData.configJson.indexSeason
+ // otherPlat: app.globalData.configJson.otherPlats,
+ // 正式数据
+ indexSeason: app.globalData.configJson.indexSeason,
+ // 开发数据
+ // indexSeason: imageSource.testImgs.indexSeason,
+ bannerDataList: (app.globalData.configJson.nav_menu || []),
+ mainTypeList: (app.globalData.configJson.menu_button || []),
})
} else {
commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => {
- let obj = {}
- res.data.content.forEach(item => {
+ let obj = {};
+ (res.data.content||[]).forEach(item => {
obj[item.id] = item.image
});
app.globalData.configJson.indexSeason = obj
app.globalData.loadIndexSeason = true
+ app.globalData.configJson.nav_menu = (res.data.nav_menu || []).map(v=>{
+ return {...v, icon:this.showImg(v.icon)}
+ })
+ app.globalData.configJson.menu_button = (res.data.menu_button || []).map(v=>{
+ return {...v, icon:this.showImg(v.icon)}
+ })
+
+ console.log('webData', app.globalData.configJson)
this.setData({
+ indexHot: app.globalData.configJson.indexHot,
isTest: app.globalData.configJson.isTest,
- otherPlat: app.globalData.configJson.otherPlats,
- indexSeason: app.globalData.configJson.indexSeason
+ // otherPlat: app.globalData.configJson.otherPlats,
+ indexSeason: app.globalData.configJson.indexSeason,
+ bannerDataList: (app.globalData.configJson.nav_menu || []),
+ mainTypeList: (app.globalData.configJson.menu_button || []),
})
})
}
- },
- //关闭弹窗广告
- 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 => {
- console.log(res)
+ console.log(this.data)
+ },
+ // url跳转(不知道什么东西)
+ getUrlToPage () {
+ commonApi._post("pbservice/Other/getClientConfig", {
+ unique_key: "urltopage"
+ }).then(res => {
+ let data = JSON.parse(res.data)
this.setData({
- weather: res.data
+ urltopage: data
})
})
- },
- gotoPath: function(e) {
- console.log(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.event == 'wuzhong_click') {
- wx.navigateToMiniProgram({
- appId: 'wxdd39069b9a91dbfe',
- 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 => {
-
- })
- }
- },
- gotoUrl: function(e) {
- console.log(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),
- })
+
+ // --------------------banner 相关---------------------------
+ // 获取banner 和开屏广告
+ getBanner: function() {
+ let _this = this
+ //全屏广告
+ commonApi._post("adv/getAdv", {position: 2,type_id: 3}).then(res => {
+ if (res.data.length > 0) {
+ let length = res.data.length
+ let num = Math.floor(Math.random() * length);
+ this.setData({startList: res.data[num]})
+ // 图片
+ if (this.data.startList.media_type) {
+ wx.hideTabBar() //这里隐藏了底部导航栏
+ this.setData({showTime: true})
+ this.data.fullAdvTimer = setInterval(() => {
+ _this.data.time-=0.5
+ if (Number.isInteger(_this.data.time)) {
+ _this.setData({time: _this.data.time})
+ }
+ if (_this.data.time <= 0) {
+ _this.setData({opacity: _this.data.opacity - 0.3})
+ }
+ if (_this.data.time <= -1) {
+ clearInterval(_this.data.fullAdvTimer)
+ wx.showTabBar() //倒计时结束清除定时器显示导航栏
+ _this.setData({showFullAdv: false})
+ }
+ }, 500)
+ } else {
+ // 视频
}
- })
- }
- },
- gotoMini: function(e) {
- let appid = e.currentTarget.dataset.appid,
- path = e.currentTarget.dataset.path
- wx.navigateToMiniProgram({
- appId: appid,
- path: path
+ } else {
+ this.setData({showFullAdv: false})
+ }
})
- },
- 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 => {
+ commonApi._post("adv/getAdv", {position: 0,type_id: 3}).then(res => {
+ this.setData({banner: res.data || []})
})
- },
- onReachBottom: function() {
- },
- gotoDetail: function(e) {
- let item = e.currentTarget.dataset.item;
- util.pagePoint({
- event: 'recommend_click',
- param: {
- id: item.id,
- type: item.type
+ commonApi._post("adv/getAdv", {position: 1,type_id: 3}).then(res => {
+ this.setData({xiaobanner: res.data || []})
+ })
+ //弹窗广告
+ commonApi._post("adv/getAdv", {position: 3,type_id: 3}).then(res => {
+ if (res.data.length > 0) {
+ this.setData({
+ alertSwipeList: res.data || [],
+ showAdv: true
+ })
}
- }, 1)
- if (item.type == 'travels') {
- // 游记做特殊处理 其他都按照原来的来
- wx.navigateTo({
- url: '/pages/info/strategyInfo/index?id=' + item.s_id,
- })
- } else {
- util.gotoDetail(item.ext);
- }
+ })
},
-
+ // 统一的banner change 需要时可以放开
+ changeBannerIndex: function(e) {
+ return
+ let keyname = e.currentTarget.dataset.keyname
+ this.setData({
+ [keyname]: e.detail.current,
+ })
+ },
// 轮播图点击
bannerClick: function(e) {
if (this.data.isTest) return;
@@ -667,7 +576,6 @@ Page({
if ((item.tdata.url.indexOf('http://') != -1 || item.tdata.url.indexOf('https://') != -1) &&
item.tdata.url.indexOf('m.cloud.sz-trip.com') == -1) {
// 外部h5
- console.log(111, item.tdata)
app.globalData.weburl = item.tdata.url;
wx.navigateTo({
url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.tdata
@@ -676,7 +584,6 @@ Page({
} else {
let page = item.tdata.url.split("/");
page = page[page.length - 1].split("?")
- console.log(page[0])
let url = this.data.urltopage[page[0]];
if (url && url.indexOf('map') != -1) {
let types = ['', 'scenic', 'venue', 'post', 'restaurant', 'relic', 'tenscenic',
@@ -693,7 +600,6 @@ Page({
})
} else {
app.globalData.weburl = item.tdata.url;
- console.log(2222, item.tdata.url, app.globalData.weburl)
wx.navigateTo({
url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item
.tdata.url)
@@ -734,62 +640,191 @@ Page({
return;
},
- //博物馆跳转 直接跳君到苏州H5
- goH5: function(e) {
- console.log(e.currentTarget.dataset.path);
- 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),
- })
+
+ //------------------------金刚区点击-------------------------------------
+ // 自定义数据的跳转
+ mainIconClick: function(e) {
+ 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) {
+ wx.navigateToMiniProgram({
+ appId: item.appId,
+ path: item.pagePath,
+ })
+ return
+ }
+ if (item.path) {
+ wx.navigateTo({
+ url: item.path
+ })
+ return
+ }
+ if (item.weburl) {
+ wx.navigateTo({
+ url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.weburl)
+ })
+ return
+ }
+
+ },
+ // 后台配置数据跳转
+ mainNavClick:function (e) {
+ let item = e.currentTarget.dataset.item
+ console.log(item)
+ if (item.jump_type == "page") {
+ wx.navigateTo({
+ url: "/"+item.page.mini,
+ })
+ return
+ }
+ if (item.jump_type == "link") {
+ wx.navigateTo({
+ url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.url),
+ })
+ return
+ }
+ },
+
+ // 其他平台配置数据的跳转
+ 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,
+ })
+ }
},
- // 监听文旅查询的scroll
+
+ // 滚动监听
listenScroll(e) {
+ let keyname = e.currentTarget.dataset.keyname
this.setData({
- scrollLeft: e.detail.scrollLeft
+ [keyname]: e.detail.scrollLeft,
})
},
- onReady: function() {
- wx.getLocation({
- type: 'gcj02',
- success: (res) => {
- this.setData({
- lat: res.latitude,
- lon: res.longitude
- })
- this.getList()
- this.getHdrlList()
- let tempData = JSON.stringify({lat: res.latitude,lon: res.longitude})
- wx.setStorageSync('lonAndLat', tempData)
- },
- fail: (err) => {
- this.getList()
- this.getHdrlList()
- }
- })
-
- commonApi._post("pbservice/Other/getClientConfig", {
- unique_key: "urltopage"
+
+ // -----------------------------------------------------------------------
+
+ // 新品特惠
+ getXpthList: function() {
+ commonApi._post("product/get_product_indulgence", {
+ tag_id: 275,
+ typeId: 3,
+ type: 1, // 返回数组
}).then(res => {
- let data = JSON.parse(res.data)
- this.data.urltopage = data
+ this.setData({xpth: res.data,})
})
+ },
+
+ // 更换新品特惠 当即热门
+ changeXpthIndex:function (e) {
+ let value = e.currentTarget.dataset.value
+ this.setData({xpthIndex:value})
+ },
+ productGotoDetail: function(e) {
+ let item = e.currentTarget.dataset.item;
+ util.gotoDetail(item)
+ },
- this.getBanner()
- this.getWeather()
- this.getIndexSeason()
-
+ // 热门推荐
+ getList: function() {
+ commonApi._post("product/get_product_by_tag_subject", {
+ tag_id: 85,offset: 0,limit: 5,
+ }).then(res=>{
+ this.setData({ list: res.data.list || []})
+ })
+ },
+ // 回购
+ getRepurchaseList:function () {
+ commonApi._post("repurchase/repurchase/getRepurchaseList", {}).then(res=>{
+ (res.data || []).forEach(v=>v.headimg = this.showImg(v.headimg))
+ this.setData({ repurchaseList: res.data || []})
+ })
+ },
+ onReachBottom: function() {
+ // if (this.data.list.length < 30) {
+ // this.getList()
+ // }
+ if (this.data.canGetrepurchase) {
+ this.data.canGetrepurchase = false
+ this.getRepurchaseList()
+ }
},
-
+ gotoDetail: function(e) {
+ let item = e.currentTarget.dataset.item;
+ commonApi._post("repurchase/repurchase/recordClick", {product_id:item.product_id})
+ item.id = item.type=='post'?item.product_id:item.scene_id
+ util.gotoDetail(item);
+
+ },
+
pagePoint: function(e, type) {
util.pagePoint(e, type)
+ },
+
+ // --------------------------广告----------------------------
+ //关闭弹窗广告
+ 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
+ })
+ },
+
onShow: function() {
- // this.getIndexSeason()
- this.pagePoint({
- event: 'home_view'
- }, 1)
+ this.pagePoint({event: 'home_view'}, 1)
},
/**
@@ -804,5 +839,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/pages/index/index.wxml b/pages/index/index.wxml
index a5e5282..8edc8e6 100644
--- a/pages/index/index.wxml
+++ b/pages/index/index.wxml
@@ -1,411 +1,292 @@
-
-
-
-
-
-
- {{weather.max_temp}}°
- {{weather.weather}}
-
-
-
-
-
-
-
- 搜索想要的旅游产品或服务
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 更多 >
-
- {{nowDate[0]}}
- 月
- {{nowDate[1]}}
- 日
-
-
-
-
- {{item.title}}
-
-
-
-
-
-
-
-
-
- {{item.name}}
- {{item.begin_date}}-{{item.end_date}}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜一搜您想要的
+
-
-
-
-
-
-
-
-
-
-
-
- {{item.title}}
-
- 去购票 >
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 景点门票
-
-
-
- 水上游
-
-
-
- 夜游苏州
-
-
-
-
- 剧场演出
-
-
-
- 文创特产
-
-
-
- 场馆预约
-
-
-
- 一日游
-
-
-
- 户外游
-
-
-
- 非遗专卖
-
-
-
-
- 酒店住宿
-
-
-
-
- 酒店住宿
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item}}
-
-
-
-
-
-
-
-
-
-
- 高峰预警
-
-
-
- 实时路况
-
-
-
- 行李直送
-
-
-
- 停车场
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+ ¥{{item.price/100}}起
+
+
+
+
+
+
+
-
-
-
-
- 找厕所
-
+
+
+
+
+
+
+
+ {{item.title}}
+
+ {{item.price/100}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- 查看更多 >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 更多 >
-
-
-
- {{index+1}}
-
-
-
-
- {{item.title}}
+
+
+
+
+
+
+
+
+
+
-
- {{item.price/100}}
-
+
+
+
+
+
+ 更多
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
+
-
-
-
-
-
-
-
-
-
-
- 景点门票
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item}}
-
-
-
-
-
-
-
-
-
- 电子社保卡
-
-
-
- 高峰预警
-
-
-
- 行李寄存
-
-
-
- 实时路况
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ ¥{{item.price/100}}起
+
+ 已售{{item.sales_number}}
+
+
+
+
+
+
+
+
-
-
-
-
-
- 查看更多 >
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+ {{time}}s跳过
+
+
+
+
+
+
-
-
- {{time}}s跳过
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/pages/index/index.wxss b/pages/index/index.wxss
index 9272311..b8441ef 100644
--- a/pages/index/index.wxss
+++ b/pages/index/index.wxss
@@ -1,30 +1,22 @@
-/* pages/indexs/index.wxss */
+/**index.wxss**/
/* 元旦修改 */
page {
- height: fit-content;
padding-bottom: 36.67rpx;
- background: #F5C564;
- background-size: 100% auto;
- /* background-repeat: round; */
- background-repeat: no-repeat;
}
.swiper,.swiper image {
- width: 697rpx;
+ width: 100%;
display: block;
- height: 335rpx;
- border-radius: 27rpx;
-}
-.swiper {
- margin: 0 auto;
+ height: 908rpx;
}
+
.top-box {
display: flex;
padding: 10rpx 0;
align-items: center;
- margin: 0 30rpx;
justify-content: flex-start;
- position: relative;
- z-index: 1;
+ position: absolute;
+ left: 30rpx;
+ z-index: 2;
}
.top-box image {
flex-shrink: 0;
@@ -40,51 +32,54 @@ page {
flex: 1;
width: 100%;
height: 64rpx;
- background: rgba(255,248,235,0.7);
- border-radius: 13rpx;
- color: #000;
+ border-radius: 27rpx;
+ color: #666666;
display: flex;
align-items: center;
font-size: 25rpx;
+ padding: 2rpx 5rpx;
+ box-sizing: border-box;
+ background: rgba(255, 255, 255, 0.6);
}
.search-box .iconfont {
font-size: 30rpx;
margin-left: 20rpx;
- margin-right: 10rpx;
- color: #000;
-}
-.top-box .weather-num,.top-box .weather {
- flex-shrink: 0;
- color: #333;
+ margin-right: 20rpx;
/* color: #72674E; */
}
-.top-box .weather-num {
- font-size: 29rpx;
- margin-bottom: 10rpx;
- margin-left: 4rpx;
+
+.banner-main{
+ position: absolute;
+ z-index: 3;
+ width: 100%;
+ left: 0;
+ bottom: 30rpx;
+ right: 0;
+ display: flex;
+ justify-content: space-between;
+ padding: 0 30rpx;
+ box-sizing: border-box;
}
-.top-box .weather {
- font-size: 19rpx;
- margin-top: 20rpx;
- margin-left: -4rpx;
- margin-right: 30rpx;
+.banner-main image{
+ width: 153.33rpx;
+ height: 133.33rpx;
+}
+
+.main-content{
+ 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 {
- /* background: #FFFFFF; */
- /* box-shadow: 0px 3rpx 26rpx 0px rgba(6, 0, 1, 0.13); */
- border-radius: 0 0 27rpx 27rpx;
- width: 697rpx;
- margin: 0 auto;
- position: relative;
- z-index: 0;
display: flex;
- padding: 34rpx 0;
- padding-bottom: 7rpx;
- justify-content: space-between;
- flex-wrap: wrap;
- background: #FFFED6;
- margin-top: -20rpx;
- padding-top: 54rpx;
+ padding:0 20rpx;
}
.top-icon-item {
margin-bottom: 20rpx;
@@ -94,179 +89,246 @@ 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: 113rpx;
+ width: 100rpx;
+ height: 100rpx;
display: block;
- margin: 0 auto;
- margin-bottom: 10rpx;
-}
-.content {
- /* margin: 0 25rpx; */
- margin-top: 37.67rpx;
-}
-.sale-road-boxes {
- display: flex;
- justify-content: space-between;
- margin-top: 40rpx;
- position: relative;
- align-items: flex-end;
- margin-bottom: 28rpx;
-}
-.sale-box {
- flex-shrink: 0;
- width: 337rpx;
-}
-.sale-title {
- color: #999999;
- font-size: 20rpx;
- margin-bottom: 20rpx;
-}
-.sale-title text {
- color: #000000;
- font-size: 32rpx;
- font-weight: 500;
- margin-right: 8rpx;
-}
-.sale-product {
- width: 337rpx;
- position: relative;
- height: 165rpx;
- overflow: hidden;
- border-radius: 8rpx;
-}
-.sale-product-bg {
- width: 197rpx;
- height: 165rpx;
- position: absolute;
- left: 0;
- top: 0;
- background: linear-gradient(90deg, #F78C56, #FB6044);
-
-}
-.road-product-bg {
- background: linear-gradient(90deg, #35CFB4, #00A6A0);
-}
-.sale-img {
- position: absolute;
- right: 0;
- top: 0;
- width: 173rpx;
- height: 165rpx;
-}
-.sale-info {
- position: absolute;
- left: 20rpx;
- top: 20rpx;
- bottom: 20rpx;
- width: 140rpx;
-}
-.sale-product-title {
- font-size: 28rpx;
- color: #fff;
- font-weight: 500;
- line-height: 36rpx;
+ /* margin: 0 auto; */
+ /* margin-bottom: 10rpx; */
}
-.sale-price {
- padding: 0 10rpx;
- color: #F44747;
- font-size: 25rpx;
- line-height: 39rpx;
- background: #FFFFFF;
- border-radius: 5rpx;
- margin-top: 15rpx;
- display: inline-block;
+
+.content-box {
+ margin: 0 25rpx;
}
-.sale-tip-img {
- position: absolute;
- width: 200rpx;
- height: 165rpx;
- left: 0;
- top: 0;
+.common-header-img{
+ height: 63.33rpx;
}
+
.small-swiper {
- height: 154rpx;
+ height: 154rpx;
}
.small-swiper image {
- display: block;
- width: 100%;
- height: 154rpx;
+ display: block;
+ width: 100%;
+ height: 154rpx;
}
.small-swiper-box {
- margin: 24rpx 26.67rpx 26.67rpx;
- /* width: 100%; */
- height: 154rpx;
- border-radius: 20rpx;
- overflow: hidden;
- 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;
+ margin: 50rpx 0;
+ width: 100%;
+ height: 154rpx;
+ border-radius: 20rpx;
+ /* border-radius: 77rpx; */
+ overflow: hidden;
+ margin-top: 33rpx;
+ position: relative;
}
-.tag-product-price-box {
+
+.sale-road-boxes {
display: flex;
- height: 70rpx;
- align-items: center;
- border-top: 1rpx solid #ccc;
justify-content: space-between;
+ margin-top: 40rpx;
+ position: relative;
+ align-items: flex-end;
}
-.tag-product .tag-product-address .iconfont {
- font-size: 26rpx;
-}
+
+/* 元旦修改新增样式 */
+.xpth {
+ border-radius: 20rpx;
+ padding: 22.67rpx 0 15.33rpx 0;
+ position: relative;
+ flex-direction: column;
+ align-items: flex-start;
+ }
+
+
+/* 热门推荐 限时特惠 */
+.xsth-title {
+ display: flex;
+ justify-content: space-between;
+ width: 100%;
+ align-items: flex-end;
+ margin-bottom: 20rpx;
+ }
+ .xpth-left {
+ width: 393rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ }
+ .season-hot{
+ display: flex;
+ }
+ .season-hot .season-item{
+ width: 266rpx;
+ height: 332rpx;
+ margin-right: 14rpx;
+ flex-shrink: 0;
+ font-weight: bold;
+ font-size: 25rpx;
+ color: #000000;
+ position: relative;
+ background: white;
+ }
+
+ .season-hot .season-item image{
+ width: 100%;
+ height: 200rpx;
+ }
+ .season-hot .season-item .hot-cover-img{
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ }
+
+ .xsth-more {
+ margin-top: 19.33rpx;
+ font-size: 27rpx;
+ font-family: HYZhongYuan;
+ font-weight: normal;
+ color: #FFE7C0;
+ }
+ .xsth-more image {
+ margin-left: 14.67rpx;
+ width: 12.67rpx;
+ height: 22.67rpx;
+ vertical-align: middle;
+ }
+
+ /* 元旦修改新增样式 */
+ .xpth-product {
+ width: 700rpx;
+ height: 373rpx;
+ border-radius: 27rpx;
+ padding: 25rpx 13rpx;
+ box-sizing: border-box;
+ display: flex;
+ justify-content: space-between;
+ }
+ /* 元旦修改新增样式 */
+ .xpth-banner {
+ flex: 1;
+ margin-left: 15rpx;
+ height: 322rpx;
+ width: 100%;
+ border-radius: 0rpx;
+ overflow: hidden;
+ position: relative;
+ background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/90645448ce9a82c91916543bc6c4935c.png");
+ background-size: 100% 100%;
+ padding: 3rpx;
+ }
+ .xpth-banner-swiper{
+ height: 100%;
+ border-radius: 20rpx;
+ overflow: hidden;
+ }
+ .xpth-banner image {
+ flex: 1;
+ height: 100%;
+ width: 100%;
+ border-radius: 20rpx;
+ }
+ .xpth-banner-dot-list{
+ position: absolute;
+ right: 0;
+ bottom: 10rpx;
+ padding: 10rpx;
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ }
+ .xpth-banner-dot-list .xpth-dot{
+ width: 9rpx;
+ height: 9rpx;
+ background: #FFFFFF;
+ border-radius: 50%;
+ opacity: 0.6;
+ margin: 0 4rpx;
+ }
+ .xpth-banner-dot-list .xpth-dot.active{
+ opacity: 1;
+ }
+ /* 元旦修改新增样式 */
+ .xpth-item {
+ border-radius: 20rpx;
+ height: 153rpx;
+ display: flex;
+ margin-bottom: 13rpx;
+ background-image: url("https://static.ticket.sz-trip.com/uploads/20250526/ed62e372f9c8874f9b50b40f70982202.png");
+ background-size: 100% 100%;
+ padding: 1rpx;
+ }
+ .xpth-item:last-child {
+ margin-bottom: 0;
+ }
+ /* 元旦修改新增样式 */
+ .xpth-item image {
+ /* width: 160rpx;
+ height: 160rpx;
+ background: #FFE7C0;
+ border-radius: 15rpx 0 0 15rpx; */
+ width: 157rpx;
+ height: 154rpx;
+ /* background: #72707D; */
+ border-radius: 20rpx;
+ /* margin-right: 15.33rpx; */
+ flex-shrink: 0;
+ }
+ /* 元旦修改新增样式 */
+ .xpth-item-content {
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+ /* background: #FBECDE; */
+ padding-left: 15.33rpx;
+ border-radius: 0 15rpx 15rpx 0;
+ }
+ /* 元旦修改新增样式 */
+ .xpth-item-title {
+ width: 210rpx;
+ font-size: 27rpx;
+ font-family: PingFang SC;
+ font-weight: 500;
+ color: #333333;
+ margin-right: 18rpx;
+ /* height: 80rpx; */
+ }
+
+ /* 元旦修改新增样式 */
+ .xpth-item-bottom {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding-right: 13.33rpx;
+ }
+ /* 元旦修改新增样式 */
+ .xpth-item-price {
+ font-size: 31rpx;
+ font-family: PingFang SC;
+ font-weight: bold;
+ color: #ED1C19;
+ }
+ /* 元旦修改新增样式 */
+ .xpth-item-price::before {
+ content: "¥";
+ font-size: 23rpx;
+ }
+
+
+
+
+
.price {
color: #D62828;
font-size: 24rpx;
@@ -296,68 +358,54 @@ 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;
+ width: 100%;
display: flex;
justify-content: space-between;
- flex-wrap: wrap; */
- display: flex;
- justify-content: space-around;
- /* margin: 0 28rpx; */
+ flex-wrap: wrap;
}
+.new-pic {
+ width: 340rpx;
+ height: 140rpx;
+ margin-bottom: 20rpx;
+ }
+
.title-more {
- font-size: 24rpx;
- /* color: #0B898E; */
- /* 元旦修改 */
- color: #54504D;
+ font-size: 27rpx;
+ font-weight: 500;
+ color: #1A9BA7;
z-index: 9;
width: 173rpx;
- height: 40rpx;
- line-height: 40rpx;
- background: rgba(255, 255, 255, 0.5);
+ height: 63.33rpx;
border-radius: 20rpx;
text-align: center;
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
}
.title-more .iconfont {
font-size: 22rpx;
}
.slide-out-box {
- /* margin-top: 20rpx;
- background: #FFFED6;
- box-shadow: 0rpx 0rpx 3rpx 0rpx rgba(103,103,103,0.2); */
+ margin-top: 30rpx;
border-radius: 27rpx;
padding-bottom: 1rpx;
- /* margin-bottom: 40rpx; */
+ margin-bottom: 40rpx;
}
.pbservice {
- width: calc(160rpx * 8);
+ width: calc(186rpx * 7);
display: flex;
- margin-top: 5rpx;
- /* flex-wrap: wrap; */
- flex-wrap: nowrap;
- /* padding-left: 12rpx; */
- /* overflow-x: scroll; */
+ flex-wrap: wrap;
}
.pbservice-item {
- width: 106rpx;
- margin-bottom: 25rpx;
- margin-right: 32.33rpx;
+ /* 元旦修改 截止到注释的width*/
+ width: 158rpx;
+ margin-bottom: 22rpx;
+ margin-right: 22rpx;
text-align: center;
- font-size: 27rpx;
- color: #000;
+ font-size: 25rpx;
+ color: #111111;
line-height: 24rpx;
display: flex;
align-items: center;
@@ -368,12 +416,9 @@ page {
width: 200rpx;
}
.pbservice-item image {
- /* width: 60rpx;
- margin-bottom: 20rpx;
- margin-top: 50rpx; */
- /* 元旦修改 以上都是之前的*/
- width: 80rpx;
- margin-bottom: 10rpx;
+ width: 158rpx;
+ height: 152rpx;
+ /* margin-bottom: 10rpx; */
}
.six-box {
margin-top: 43rpx;
@@ -397,9 +442,9 @@ page {
}
.hot-item {
background: white;
- box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1);
+ /* box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1); */
border-radius: 15rpx;
- margin-bottom: 35rpx;
+ margin-bottom: 15rpx;
}
.hot-item image:nth-child(1) {
display: block;
@@ -407,12 +452,12 @@ page {
border-radius: 15rpx 15rpx 0 0;
}
.hot-item .hot-info {
- padding: 20rpx 25rpx;
+ padding: 12rpx;
}
.hot-item .hot-title {
- font-size: 32rpx;
- color: #333;
- font-weight: 500;
+ font-weight: bold;
+ font-size: 28rpx;
+ color: #000000;
}
.hot-info .tags {
display: flex;
@@ -436,8 +481,6 @@ page {
.hot-price {
color: #D62828;
font-size: 24rpx;
- margin-top:28rpx;
-
}
.hot-price text:nth-child(2){
font-size: 33rpx;
@@ -528,53 +571,34 @@ page {
letter-spacing: 3rpx;
font-weight: 500;
}
-.title-header .icon-fanhui1 {
- display: none;
-}
+
.more-btn-text {
text-align: center;
- /* color: #0b898e;
- font-size: 27rpx;
- width: 200rpx;
- line-height: 65rpx;
- border: 1px solid #0b898e;
- border-radius: 33rpx; */
margin: 20rpx auto;
width: 200rpx;
height: 67rpx;
line-height: 67rpx;
- border: 1px solid #111;
- border-radius: 35rpx;
+ border: 1px solid #2BB2D2;
font-size: 27rpx;
font-family: PingFang SC;
font-weight: 500;
+ color: #2BB2D2;
}
.scroll-line {
- /* height: 6rpx;
+
+ width: 34rpx !important;
+ height: 7rpx;
+ background: #87E1EC;
border-radius: 3rpx;
- background: #ccc;
- overflow: hidden;
- margin: 30rpx auto; */
- /* 元旦修改 以上为注释部分 下面为新内容*/
- width: 48rpx !important;
- height: 8rpx;
- /* background: #DDCEAC; */
- background: #fff;
- border-radius: 4rpx;
- margin: 15rpx auto 10rpx;
+ margin: 33.33rpx auto;
}
.scroll-line-bg {
- height: 8rpx;
- background: #FF4848;
- border-radius: 4rpx;
-}
-/* 元旦修改 新增样式 */
-.scroll-line-bg2 {
- margin-left: 24rpx;
- background: #FF4848;
- height: 8rpx;
- border-radius: 4rpx;
+ height: 7rpx;
+ background: #30A7CD;
+ border-radius: 3rpx;
}
+
+
.nomore-tip-btn {
position: absolute;
left: 0;
@@ -582,162 +606,40 @@ 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;
+
+.other-plats {
display: flex;
+ font-size: 25rpx;
+ text-align: center;
+ margin: 30rpx 0;
+ color: #333333;
+ line-height: 42rpx;
+ flex-wrap: wrap;
+ justify-content: space-around;
+ height: 187rpx;
+ border-radius: 27rpx;
align-items: center;
- justify-content: center;
- top: 269rpx;
}
-.prize-img image {
+.other-plats image {
+ width: 153.33rpx;
display: block;
- width: 333rpx;
- height: 240rpx;
+ height: 146.67rpx;
+ margin-bottom: 15rpx;
}
-.btn-box {
+
+.dot-list {
+ display: flex;
position: absolute;
- width: 400rpx;
- height: 87rpx;
- left: 67rpx;
- bottom: 78rpx;
- text-align: center;
- line-height: 87rpx;
+ right: 43rpx;
+ bottom: 15rpx;
}
-.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;
- color: #333333;
- line-height: 42rpx;
- flex-wrap: wrap;
- background: #FFFED6;
- justify-content: space-around;
- height: 187rpx;
- box-shadow: 0rpx 0rpx 3rpx 0rpx rgba(103,103,103,0.2);
- border-radius: 27rpx;
- align-items: center;
-}
-.other-plats image {
- width: 80rpx;
- display: block;
- height: 80rpx;
- margin-bottom: 15rpx;
-}
-.other-plat {
- /* 春节新增样式 */
- color: #54504D;
-}
-.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;
- right: 43rpx;
- bottom: 15rpx;
-}
-.dot {
- width: 11rpx;
- height: 11rpx;
- background: #FFFFFF;
- opacity: 0.4;
- border-radius: 50%;
- margin-left: 8rpx;
+.dot {
+ width: 11rpx;
+ height: 11rpx;
+ background: #FFFFFF;
+ opacity: 0.4;
+ border-radius: 50%;
+ margin-left: 8rpx;
}
.dot.active {
opacity: 1;
@@ -798,10 +700,7 @@ page {
transition: all 1s;
}
-.fullsp{
- width: 100%;
- height: 100%;
-}
+
.time{
width: 150rpx;
height: 60rpx;
@@ -816,242 +715,23 @@ page {
z-index: 1002;
}
-/* 元旦修改新增样式 */
-.xpth {
- /* width: 697rpx; */
- /* height: 462rpx; */
- /* background: linear-gradient(-90deg, #FF9B6A, #D02E25); */
- border-radius: 20rpx;
- padding: 22.67rpx 0 15.33rpx 0;
- position: relative;
- flex-direction: column;
-}
-/* 元旦修改新增样式 */
-.time-box {
- font-size: 25rpx;
- font-family: DIN;
- font-weight: 500;
- /* color: #54504D; */
- color: #000000;
- display: flex;
- align-items: center;
- height: 37px;
- margin-left: -50rpx;
- z-index: 9;
- flex-wrap: nowrap;
-}
-/* 元旦修改新增样式 */
-.xsth-time {
- /* margin: 0 5rpx; */
- /* width: 50rpx; */
- /* height: 33rpx; */
- width: 43rpx;
- height: 43rpx;
- line-height: 43rpx;
- background: #4AB648;
- /* background: #F9F1DB; */
- /* border-radius: 5rpx; */
- border-radius: 13rpx;
- font-size: 25rpx;
- font-family: DIN;
- font-weight: 500;
- /* color: #D62828; */
- color: white;
- text-align: center;
- /* line-height: 33rpx; */
-}
-.time-box text {
- width: 18rpx;
- text-align: center;
-}
-/* 元旦修改新增样式 */
-.xpth-left {
- width: 393rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
-}
-/* 元旦修改新增样式 */
-.xsth-title {
- display: flex;
- justify-content: space-between;
- width: 100%;
- align-items: flex-end;
- margin-bottom: 20rpx;
-}
-/* 元旦修改新增样式 */
-.xsth-more {
- margin-top: 19.33rpx;
- font-size: 27rpx;
- font-family: HYZhongYuan;
- font-weight: normal;
- color: #FFE7C0;
-}
-/* 元旦修改新增样式 */
-.xsth-more image {
- margin-left: 14.67rpx;
- width: 12.67rpx;
- height: 22.67rpx;
- vertical-align: middle;
-}
-/* 元旦修改新增样式 */
-.yanhua {
- height: 104rpx;
- width: 104rpx;
- position: absolute;
- right: 120rpx;
- z-index: 999;
-}
-/* 元旦修改新增样式 */
-.xpth-product {
- /* position: absolute; */
- width: 697rpx;
- height: 373rpx;
- background: #FFFED6;
- box-shadow: 0rpx 0rpx 3rpx 0rpx rgba(103,103,103,0.2);
- border-radius: 27rpx;
- padding: 25rpx 15rpx;
- box-sizing: border-box;
- /* left: 0;
- bottom: 15.33rpx;
- /* width: 710rpx; */
- display: flex;
- justify-content: space-between;
-}
-/* 元旦修改新增样式 */
-.xpth-banner {
- /* width: 270rpx; */
- /* height: 333rpx; */
- /* height: 340rpx; */
- /* background-image: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/springFestival2024/xpth-hBg.png"); */
- /* background-size: 100% 100%; */
- border-radius: 20rpx;
- flex: 1;
- margin-left: 15rpx;
- /* padding: 4rpx;
- background: #72674e;
- clip-path: polygon(5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%, 0 5%); */
- height: 319rpx;
-}
-.xpth-banner image {
- /* width: 270rpx; */
- flex: 1;
- height: 319rpx;
- border-radius: 20rpx;
- /* height: 333rpx; */
- /* height: 340rpx; */
- /* clip-path: polygon(5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%, 0 5%); */
- /* border-radius: 20rpx; */
-}
-/* 元旦修改新增样式 */
-.xpth-item {
- /* width: 413rpx;
- height: 160rpx; */
- /* background: #FFFFFF; */
- /* background-image: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/springFestival2024/xpth-hBg.png");
- background-size: 100% 100%; */
- border-radius: 20rpx;
- height: 153rpx;
- background: #FFFFFF;
- display: flex;
- margin-bottom: 13rpx;
- /* margin-bottom: 10rpx; */
- /* clip-path: polygon(5% 0, 95% 0, 100% 10%, 100% 90%, 95% 100%, 5% 100%, 0 90%, 0 10%); */
- /* padding: 5rpx; */
-}
-.xpth-item:last-child {
- margin-bottom: 0;
-}
-/* 元旦修改新增样式 */
-.xpth-item image {
- /* width: 160rpx;
- height: 160rpx;
- background: #FFE7C0;
- border-radius: 15rpx 0 0 15rpx; */
- width: 157rpx;
- height: 154rpx;
- background: #72707D;
- border-radius: 20rpx;
- /* margin-right: 15.33rpx; */
- flex-shrink: 0;
-}
-/* 元旦修改新增样式 */
-.xpth-item-content {
- width: 100%;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- /* background: #FBECDE; */
- padding-left: 15.33rpx;
- border-radius: 0 15rpx 15rpx 0;
-}
-/* 元旦修改新增样式 */
-.xpth-item-title {
- width: 230rpx;
- font-size: 27rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- margin-right: 18rpx;
- /* height: 80rpx; */
-}
-.xpth-tag {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #E5A54A;
-}
-/* 元旦修改新增样式 */
-.xpth-item-bottom {
+
+
+
+.ggfw-list {
display: flex;
+ flex-wrap: wrap;
justify-content: space-between;
- align-items: center;
- padding-right: 13.33rpx;
-}
-/* 元旦修改新增样式 */
-.xpth-item-price {
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #D62828;
-}
-/* 元旦修改新增样式 */
-.xpth-item-price::before {
- content: "¥";
- font-size: 20rpx;
-}
-/* 元旦修改新增样式 */
-.xpth-item-buy {
- width: 111rpx;
- height: 36rpx;
- background: linear-gradient(180deg, #FF9B6A, #E63100);
- border-radius: 18rpx;
- font-size: 21rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFE7C0;
- text-align: center;
- line-height: 36rpx;
-}
-/* 元旦修改新增样式 */
-.new-pic {
- width: 155rpx !important;
- height: 255rpx !important;
- /* margin-bottom: 26.67rpx; */
}
-.ggfw-list{
- display: flex;
- justify-content: space-around;
-}
-.ggfw {
- width: auto;
- margin:0;
+.ggfw-list .ggfw {
+ width: 220rpx;
+ height: 72rpx;
+ margin-bottom: 14rpx;
}
.ggfw image{
- margin-bottom: 16.67rpx;
- width: 113.33rpx !important;
- height: 113.33rpx !important;
+ width: 100%;
+ height: 100%;
}
.six-box-new {
@@ -1061,16 +741,15 @@ page {
display: flex;
justify-content: space-between;
align-items: center;
- padding-left: 13.33rpx;
overflow: scroll;
- margin-bottom: 53.33rpx;
+ margin: 32rpx 0 53.33rpx;
z-index: 1;
position: relative;
}
.six-box-new image {
- width: 440rpx;
- height: 213.33rpx !important;
+ width: 334rpx;
+ height: 193.33rpx !important;
/* background: #FFE7C0; */
border-radius: 20rpx;
flex-shrink: 0;
@@ -1078,7 +757,7 @@ page {
}
/* 春节金刚区字体颜色样式更换 */
.top-icon-text {
- color: #54504D;
+ color: #111111;
}
.rmtj-right {
@@ -1159,363 +838,36 @@ page {
left: 56.67rpx;
bottom: 64rpx;
}
-
-.right-more {
- width: 120rpx;
- height: 47rpx;
- border-radius: 7rpx;
- border: 1px solid #111111;
- font-weight: 500;
- font-size: 27rpx;
- color: #111111;
- text-align: center;
- line-height: 47rpx;
-}
-
-.hdrlNavList {
- display: flex;
- margin: 28rpx 26.67rpx 26rpx;
- overflow-x: scroll;
- flex-wrap: nowrap;
-}
-.hdrlNav {
- flex-shrink: 0;
- /* width: 160rpx; */
- padding: 0 20rpx;
- height: 53rpx;
- background: #FCE7BF;
- border-radius: 7rpx;
- /* border: 1px solid #FFFFFF; */
- min-width: 133rpx;
-
- font-size: 32rpx;
- color: #111111;
- text-align: center;
- line-height: 53rpx;
- margin-right: 14rpx;
- box-sizing: border-box;
-}
-.hdrlNavActive {
- background: linear-gradient(180deg, #E2802B, #D1201B);
- font-size: 32rpx;
- color: #FFFFFF;
- border: none;
-}
-.hdrlItem {
- flex-shrink: 0;
- padding: 10rpx;
- /* width: 593.33rpx; */
- display: flex;
- background-size: 100% 100%;
- background: linear-gradient(90deg, #EC2026, #3A3D83);
- border-radius: 13rpx;
- margin-right: 20rpx;
- width: 573rpx;
-}
-.hdrlItem-img {
- width: 240rpx;
- height: 213rpx;
- background: #8C8C8C;
- border-radius: 7rpx;
+.jqssd {
+ /* background: url("https://static.ticket.sz-trip.com/uploads/20240606/20c06c5bf8d5e498667ebd954a1d95f8.png");
+ background-size: 100% 100%; */
+ width: 344.33rpx;
+ height: 160rpx;
flex-shrink: 0;
- margin-right: 12rpx;
- overflow: hidden;
-}
-.hdrlItem-content {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- height: 213rpx;
-}
-.hdrlItem-title {
- font-weight: bold;
- font-size: 28rpx;
- color: #000000;
- margin-top: 15.33rpx;
}
-.hdrlItem-date {
- font-weight: 500;
- font-size: 23rpx;
- color: #000000;
- margin-bottom: 19.33rpx;
-}
-
-.main-box {
- width: 697rpx;
- /* height: 273rpx; */
- background: linear-gradient(180deg, #FFEED6, #FFDCA3);
- border-radius: 13rpx;
- margin: 110rpx auto 43rpx;
- position: relative;
- padding-top: 93rpx;
- padding-bottom: 20rpx;
- /* box-sizing: border-box; */
-}
-.main-box-top {
- display: flex;
- justify-content: space-between;
+.jqssd image, .sslk image{
width: 100%;
- padding: 16rpx;
- box-sizing: border-box;
- position: absolute;
- left: 0;
- right: 0;
- top: -72rpx;
+ height: 100%;
}
-.gfyj,.sslk {
- width: 324.33rpx;
- height: 131rpx;
+.sslk {
+ /* background: url("https://static.ticket.sz-trip.com/uploads/20240729/c1554fdd645a0d3a47c8e683186e1a73.png");
+ background-size: 100% 100%; */
+ width: 344rpx;
+ height: 160rpx;
flex-shrink: 0;
}
-
-.movieItem {
- padding: 26.67rpx 26rpx 26.67rpx 20rpx;
- background: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/calendarBg.png");
- background-size: 100% 100%;
- flex-shrink: 0;
- height: 206.67rpx;
+.xsth-left{
+ /* flex: 1;
+ width: 1rpx; */
}
-.movieItem-img {
- width: 213rpx;
- height: 213rpx;
- border-radius: 18rpx;
- margin-right: 18rpx;
- flex-shrink: 0;
+.xsth-left>image{
+ max-width: 100%;
+ overflow: hidden;
}
-.ysz-box {
- margin: 26rpx auto 15.33rpx;
- width: 697rpx;
- height: 293rpx;
- background: linear-gradient(180deg, #FFEED6, #FFDCA3);
- border-radius: 13rpx;
- padding-top: 3.33rpx;
- position: relative;
- z-index: 1;
- box-sizing: border-box;
+::-webkit-scrollbar{
+ width: 0;
+ height: 0;
+ color: transparent;
}
-.ysz-more {
- width: 183rpx;
- height: 53rpx;
- border-radius: 7rpx;
- border: 1px solid #000000;
-
- margin: 38rpx auto 0;
- text-align: center;
- line-height: 53rpx;
- font-weight: 500;
- font-size: 25rpx;
-
-}
-.ysz-box2 {
- /* padding: 20rpx 35rpx; */
- padding-top: 23.33rpx;
-}
-.tjbd-title {
- width: 286.67rpx;
- height: 80rpx;
-}
-
-.bd-box {
- position: relative;
- padding: 36rpx 30.67rpx 44.67rpx 28.67rpx;
- margin-left: 26.67rpx;
- width: 582rpx;
- /* height: 1133rpx; */
- background: linear-gradient(-8deg, #F4F9FF, #B9E1F0);
- /* box-shadow: 0rpx 7rpx 20rpx 0rpx rgba(224,61,60,0.26); */
- border-radius: 20rpx 80rpx 20rpx 20rpx;
-}
-.bd-top {
- display: flex;
- justify-content: space-between;
- margin-bottom: 30rpx;
- position: relative;
-}
-.zz {
- width: 236.67rpx;
- height: 206.67rpx;
- position: absolute;
- right: 0;
- top: 0;
- z-index: 2;
-}
-.bd-type {
- width: 125.33rpx;
- height: 38.67rpx;
-}
-.bd-more {
- width: 120rpx;
- height: 47rpx;
- background: rgba(255,255,255,.7);
- border-radius: 23rpx;
- font-weight: 500;
- font-size: 27rpx;
- color: #F34017;
- z-index: 9;
- text-align: center;
- line-height: 47rpx;
-}
-.bd-index {
- font-weight: bold;
- font-size: 40rpx;
- color: black;
-}
-.bd-item {
- margin-left: 45.33rpx;
- width: 453rpx;
- height: 147rpx;
- background: #FFFFFF;
- border-radius: 13rpx;
- display: flex;
-}
-.bd-item-img {
- width: 147rpx;
- height: 147rpx;
- background: #D9D9D9;
- border-radius: 13rpx;
- flex-shrink: 0;
- margin-right: 12.67rpx;
-}
-.bd-item-content {
- padding: 14rpx 29.33rpx 13.33rpx 0;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
-}
-.bd-item-title {
- font-weight: bold;
- font-size: 27rpx;
- color: #333333;
-}
-.bd-item-bottom {
- display: flex;
- justify-content: space-between;
- align-items: baseline;
- width: 260rpx;
-}
-.bd-price {
- font-size: 29.33rpx;
- color: #F93434;
- font-weight: bold;
-}
-.bd-price:after {
- content:'起';
- color: #999999;
- font-size: 23rpx;
- font-weight: 700;
-}
-.bd-price::before {
- content:'¥';
- font-size: 23rpx;
-}
-.bd-distance {
- font-weight: 500;
- font-size: 23rpx;
- color: #999999;
-}
-
-.buyMovie {
- width: 160rpx;
- height: 56rpx;
- background: #FF4848;
- color: #fff;
- border-radius: 20rpx;
- text-align: center;
- line-height: 56rpx;
-}
-
-.bg1 {
- background: linear-gradient(-8deg, #F4F9FF, #B9E1F0);
-}
-.bg2 {
- background: linear-gradient(-8deg, #F9FFE3, #F3FFC4);
-}
-.bg3 {
- background: linear-gradient(180deg, #E0F7DC, #A0F292);
-}
-.bg4 {
- background: linear-gradient(-8deg, #F6F2FF, #E3D9FF);
-}
-
-.hdrlNavList::-webkit-scrollbar{
- display:none;
-}
-.hdrlList::-webkit-scrollbar{
- display:none;
-}
-.bottom-box::-webkit-scrollbar{
- display:none;
-}
-.slide-box::-webkit-scrollbar{
- display:none;
-}
-.pbservice::-webkit-scrollbar{
- display:none;
-}
-.textOver3 {
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- overflow: hidden;
-}
-.public-box {
- width: 593.33rpx;
- height: 266.67rpx;
- background: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/calendarBg.png");
- background-size: 100% 100%;
-}
-.one::-webkit-scrollbar{
- display:none;
-}
-
-
-.date-container{
- position: relative;
-}
-.nowDate{
- display: flex;
- position: absolute;
- left: 200.77rpx;
- bottom: 7.33rpx;
-}
-
-.nowDate>view{
-
- width: 44rpx;
- height: 44rpx;
- border-radius: 7rpx;
- text-align: center;
- line-height: 44rpx;
- font-family: PingFang SC;
- font-weight: 500;
- font-size: 29rpx;
- color: #111111;
-}
-.nowDate .num{
- background: #FCE7BF;
- color: #C11A20;
- font-family: PingFang SC;
- font-weight: bold;
- font-size: 29rpx;
- border-radius: 50%;
-}
-
-.ysz-right-img{
- width: 213.33rpx;
- height: 259.33rpx;
- position: absolute;
- right: -26rpx;
- top: 44rpx;
- z-index:1;
-}
-.hidden{
- display: none;
-}
-
-.top-box image.search-icon{
- width: 26.67rpx;
- height: 26.67rpx;
- margin-right: 20rpx;
-}
\ No newline at end of file
diff --git a/subPackages/index/index.js b/subPackages/index/index.js
index 36fb35e..d2f1380 100644
--- a/subPackages/index/index.js
+++ b/subPackages/index/index.js
@@ -416,8 +416,8 @@ Page({
if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) {
return img;
} else {
- // return "https://test.api.cloud.sz-trip.com"+img
- return "https://static.ticket.sz-trip.com" + img;
+ return "https://test.api.cloud.sz-trip.com"+img
+ // return "https://static.ticket.sz-trip.com" + img;
}
},
diff --git a/subPackages/indexGQ/index.js b/subPackages/indexGQ/index.js
index 36eb873..940c872 100644
--- a/subPackages/indexGQ/index.js
+++ b/subPackages/indexGQ/index.js
@@ -6,20 +6,14 @@ import userApi from "../../utils/https/user"
import util from "../../utils/util"
Page({
data: {
+ fullAdvTimer: null, // 全屏timer
banner: [],
xiaobanner: [],
height: 0,
padHeight: 0,
right: 0,
weather: null,
- saleProduct: null,
- roadProduct: null,
- fourProduct: [],
- hotIndex: 0,
- indexHot: [],
- area_ids: ["zhangjiagang", "changshu", "taicang", "kunshan", "wujiang", "wuzhong", "xiangcheng", "gusu",
- "gongyeyuanqu", "gaoxin"
- ],
+
month: "",
months: ['JAN', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'oct', 'nov', 'dec'],
date: "",
@@ -46,500 +40,353 @@ Page({
opacity: 1,
time: 3, //全屏广告剩余时间
showTime: false,
- xpth: {}, // 元旦新增 新品特惠和sqjNew
- djs: null, // 元旦新增 新品特惠倒计时
- djsTime: null,
- sqjNew: [
- 'https://static.ticket.sz-trip.com/uploads/20240428/faede304469bb3e7b9bbf7001008d09a.png',
- 'https://static.ticket.sz-trip.com/uploads/20240428/77c3bd6c3f44ee0e3cc483557c1c7462.png',
- 'https://static.ticket.sz-trip.com/uploads/20240428/ad2324005ba1ed0cabe990ec62bfec76.png',
- 'https://static.ticket.sz-trip.com/uploads/20240428/a90f3ce4519a585cc5cebfe62d8d4043.png',
- 'https://static.ticket.sz-trip.com/uploads/20240428/e6fa6cdef2971c8abdb670be1f36d1ca.png',
- 'https://static.ticket.sz-trip.com/uploads/20240428/9c8186b8249bf81a2ef4fe4a4194cf2b.png',
- 'https://static.ticket.sz-trip.com/uploads/20240428/755ee01ac248aeda8812b025f483a869.png',
- 'https://static.ticket.sz-trip.com/uploads/20240428/2d29f0d14e634b0a78d4ef91b28d5999.png',
- 'https://static.ticket.sz-trip.com/uploads/20240428/71f7b558c7ca6d42728d48508d01819c.png',
- 'https://static.ticket.sz-trip.com/uploads/20240428/23e07551be831036116c2fedbbf7aea5.png',
- ],
+
viewHeight: "0px",
isMuted: true,
- videoPlay: false,
- hdrlNavList:[
- {
- type:null,
- title:'全部'
- },
- {
- type:'scene',
- title:'景区活动'
- },
- {
- type:'show',
- title:'演出'
- },
- {
- type:'exhibition',
- title:'展览'
- },
- {
- type:'movie',
- title:'电影'
- },
- {
- type:'other',
- title:'其他'
- }
- ], //活动日历板块导航分类
- hdrlNavIndex:0,//活动日历默认选中第一个全部分类
- today:null,
- hdrlList:[],
- yszNav:['公共服务','旅游助手'],
- yszIndex:0,
- bdList:[
+ videoPlay: false,
+ hdrlNavList:[
{
- bg: 'linear-gradient(172deg, #FDFADC, #FCD6AA);',
- icon:'https://static.ticket.sz-trip.com/uploads/20250120/4b46ddaa6f9b66fd33c85b4cd34aa2e3.png', //游 景点
- url:'',
- path:'/pages/list/scene/index',
- list: [],
-
+ type:null,
+ title:'全部'
},
{
- bg: 'linear-gradient(172deg, #FFCBA3, #FF9166);',
- icon:'https://static.ticket.sz-trip.com/uploads/20250120/218d224b27b6363e11a5e2ec25990ff2.png', //非玩不可 景点产品
- path:'/pages/list/night/index',
- url:'',
- list: [],
-
+ type:'scene',
+ title:'景区活动'
},
{
- bg: 'linear-gradient(172deg, #FDFADC, #FCD6AA);',
- icon:'https://static.ticket.sz-trip.com/uploads/20250120/b53c5039299b3152f72eae11a88b7eae.png', //非看不可
- url:'',
- path:'/pages/list/theatre/index',
- list: [],
-
+ type:'show',
+ title:'演出'
},
{
- bg: 'linear-gradient(172deg, #FFCBA3, #FF9166);',
- icon:'https://static.ticket.sz-trip.com/uploads/20250120/307d96f6b88be850eb5cd67ef7942f32.png', //非买不可
- path:'/subPackages/techanNew/index',
- url:'',
- list: [],
-
+ type:'exhibition',
+ title:'展览'
},
-
-
- ],
- list1:[], //游-景点
- list2:[], //非晚-夜游
- list3:[], //非看-剧场演出
- list4:[], //非买-文创
-
- nowDate: [('0' + (new Date().getMonth() + 1)).slice(-2) , ('0' + new Date().getDate()).slice(-2)]
+ {
+ type:'movie',
+ title:'电影'
+ },
+ {
+ type:'other',
+ title:'其他'
+ }
+ ], //活动日历板块导航分类
+ hdrlNavIndex:0,//活动日历默认选中第一个全部分类
+ today:null,
+ hdrlList:[],
+ yszNav:['公共服务','旅游助手'],
+ yszIndex:0,
+ bdList:[
+ {
+ color: '#FFE4BC',
+ bg: 'linear-gradient(172deg, #F08528, #D1201B);',
+ icon:'https://static.ticket.sz-trip.com/uploads/20250429/069ab247bb2ab5a08fa7707d671b1ac5.png', //游 景点
+ url:'',
+ path:'/pages/list/scene/index',
+ list: [],
+
+ },
+ {
+ color: '#DBD8F6',
+ bg: 'linear-gradient(172deg, #A49CE9, #353A68);',
+ icon:'https://static.ticket.sz-trip.com/uploads/20250429/8c023b9c626d3821b64d105ae6e65f2d.png', //非玩不可 景点产品
+ // path:'/pages/list/night/index',
+ url:'https://m.cloud.sz-trip.com/nightTour2025',
+ path: '',
+ list: [],
+
+ },
+ {
+ color: '#FFE4BC',
+ bg: 'linear-gradient(172deg, #F08528, #D1201B);',
+ icon:'https://static.ticket.sz-trip.com/uploads/20250429/9928f46523fd57233b6ef3371a6ba460.png', //非看不可
+ url:'',
+ path:'/pages/list/theatre/index',
+ list: [],
+
+ },
+ {
+ color: '#DBD8F6',
+ bg: 'linear-gradient(172deg, #A49CE9, #353A68);',
+ icon:'https://static.ticket.sz-trip.com/uploads/20250429/a4f53072aa51a387593a183799b902e6.png', //非买不可
+ path:'/subPackages/techanNew/index',
+ url:'',
+ list: [],
+
+ },
+
+
+ ],
+
+ nowDate: [('0' + (new Date().getMonth() + 1)).slice(-2) , ('0' + new Date().getDate()).slice(-2)],
+ isMayDay: new Date().getTime()>new Date('2025/05/01 00:00:00').getTime()
},
- onLoad: function(options) {
- this.getHeight()
- //全屏广告
- wx.hideTabBar() //这里隐藏了底部导航栏
- commonApi._post("adv/getAdv", {
- position: 2,
- type_id: 3
- }).then(res => {
- if (res.data.length > 0) {
- let length = res.data.length
- if (res.data.length > 1) {
- let num = Math.floor(Math.random() * length);
- console.log('num', num);
- this.setData({
- startList: res.data[num]
- })
- console.log(this.data.startList.head_img);
- } else {
- this.setData({
- startList: res.data[0]
- })
- }
+ onLoad: function(options) {
+ //全屏广告
+ let _this = this
+ commonApi._post("adv/getAdv", {
+ position: 2,
+ type_id: 3
+ }).then(res => {
+ if (res.data.length > 0) {
+ wx.hideTabBar() //这里隐藏了底部导航栏
- // 图片
- if (this.data.startList.media_type) {
- this.setData({
- showTime: true
- })
- var timer = setInterval(() => {
- this.setData({
- time: this.data.time - 1
- })
- if (this.data.time === 0) {
- var opacityTimer = setInterval(() => {
- this.setData({
- opacity: this.data.opacity - 0.3
- })
- }, 100)
- }
- if (this.data.time == -1) {
- clearInterval(timer)
- clearInterval(opacityTimer)
- wx.showTabBar() //倒计时结束清除定时器显示导航栏
- this.setData({
- showFullAdv: false
- })
- }
- }, 1000)
- } else {
- // 视频
- }
- } else {
- this.setData({
- showFullAdv: false
- })
- }
- })
- if (options.from) {
- app.globalData.from = options.from;
- }
- // 获取今天的日期
- let today = new Date();
- this.setData({
- month: (this.data.months[today.getMonth()]).toUpperCase(),
- date: today.getDate()
- })
- let d = new Date();
- let month = d.getMonth() + 1,
- day = d.getDate();
- month = month > 10 ? month : ("0" + month);
- day = day > 10 ? day : ("0" + day);
- this.setData({
- today: d.getFullYear() + "-" + month + "-" + day
- })
- let systemInfo = wx.getSystemInfoSync(),
- rect = wx.getMenuButtonBoundingClientRect();
- let height = (rect.top - systemInfo.statusBarHeight) * 2 + rect.height;
- wx.getLocation({
- type: 'gcj02',
- success: (res) => {
- this.setData({
- lat: res.latitude,
- lon: res.longitude
- })
- this.getList()
- this.getHdrlList()
- },
- fail: (err) => {
- this.getList()
- this.getHdrlList()
- }
- })
- this.setData({
- height: height,
- padHeight: systemInfo.statusBarHeight,
- right: (systemInfo.screenWidth - rect.right) + rect.width
- })
+ let length = res.data.length
+ if (res.data.length > 1) {
+ let num = Math.floor(Math.random() * length);
+ console.log('num', num);
+ this.setData({
+ startList: res.data[num]
+ })
+ console.log(this.data.startList.head_img);
+ } else {
+ this.setData({
+ startList: res.data[0]
+ })
+ }
- commonApi._post("pbservice/Other/getClientConfig", {
- unique_key: "urltopage"
- }).then(res => {
- let data = JSON.parse(res.data)
- this.setData({
- urltopage: data
- })
- })
- this.getTwoProduct()
- this.getBanner()
- this.getWeather()
- },
- gobdDetail(e) {
- let item = e.currentTarget.dataset.item
- // wx.navigateTo({
- // url: url
- // })
- util.gotoDetail(item)
- },
- getList() {
- let bdList = this.data.bdList
- // 游--景点
- commonApi._post("scene/get_scene_by_tag",{
- tag_id:"4",
- limit:6,
- lon:this.data.lon,
- lat:this.data.lat,
- offset:0,
- sort:"weight",
- title:'',
- area_id:''
- }).then(res=>{
- console.log('景点', res)
- res.data.list.map(item => {
- if (item.distance || item.distance == 0) {
- if (item.distance >= 1000) {
- item.distance = (item.distance / 1000).toFixed(2) + 'km';
- } else {
- item.distance = (item.distance).toFixed(2) + 'm';
- }
- }
- })
- bdList[0].list = res.data.list
- this.setData({
- list1:res.data.list,
- bdList: bdList
- })
- })
- // 非买不可--文创
- commonApi._post('product/get_product_by_tag',{
- product_model: 'post',
- offset: 0,
- limit: 6,
- sort:'sales_number',
- order:'desc',
- }).then(res=>{
- bdList[3].list = res.data.list
- this.setData({
- list4:res.data.list,
- bdList: bdList
- })
- })
- // 非游不可--线路一日游
- commonApi._post('product/get_product_by_tag',{
- // type_id: 23,
- tag_id: "10,11,12",
- offset: 0,
- limit: 6,
- sort: 'weight'
- }).then(res=>{
- bdList[1].list = res.data.list
- this.setData({
- list2:res.data.list,
- bdList: bdList
- })
- })
- // 非看不可--剧场演出
- commonApi._post("product/get_product_by_tag",{
- tag_id:"477",
- offset:0,
- limit:6,
- sort:'',
- order:'',
- lat:this.data.lat,
- lon:this.data.lon,
- title:''
- }).then(res=>{
- bdList[2].list = res.data.list
- this.setData({
- list3:res.data.list,
- bdList: bdList
- })
- })
- },
- goDetail(e) {
- let item = e.currentTarget.dataset.item;
- let type = this.data.hdrlNavList[this.data.hdrlNavIndex].type
- if (type == 'movie') {
- // wx.navigateTo({
- // url: '/pages/list/movieticket/list/info/index?id=' + item.third_id
- // })
- util.goMovieDetail(item.third_id)
- }else {
- wx.navigateTo({
- url: '/pages/info/activityInfo/index?id=' + item.id,
- })
- }
- },
- // 分类为电影时调这个接口
- getMovieList() {
- let service = "Cinema/getHotMovieList";
- let data = {
- page: 1,
- pageSize: 5
- };
- commonApi._post(service, data).then(res => {
- console.log(res.data);
- this.setData({
- hdrlList: res.data
- })
- })
- console.log(this.data.hdrlList);
- },
- // 推荐榜单更多跳转
- moreBtn(e) {
- let item = e.currentTarget.dataset.item
- if (item.path!='') {
- wx.navigateTo({
- url: item.path,
- })
- } else {
- // if (e.currentTarget.dataset.event) {
- // this.pagePoint({
- // event: e.currentTarget.dataset.event
- // }, 1)
- // }
- let url = item.url;
- app.globalData.weburl = url;
- wx.navigateTo({
- url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url),
- })
- }
- },
- // 活动日历下的列表
- getHdrlList() {
- commonApi._post('pbservice/Actcalendar/getActList', {
- page_no: 1,
- date: this.data.today,
- category: this.data.hdrlNavList[this.data.hdrlNavIndex].type,
- keywords: '',
- area_key: '',
- lat: this.data.lat,
- lon: this.data.lon,
- page_num: 5
- }).then(res => {
- res.data.rows.forEach(v=>{
- if (!v.post_url) {
- v.post_url = "https://static.ticket.sz-trip.com/uploads/20240909/c9a0029cc9426d2a17f1dbbb7a179762.jpg"
+ // 图片
+ if (this.data.startList.media_type) {
+ this.setData({
+ showTime: true
+ })
+ this.data.fullAdvTimer = setInterval(() => {
+ _this.data.time-=0.5
+ if (Number.isInteger(_this.data.time)) {
+ _this.setData({time: _this.data.time})
+ }
+ if (_this.data.time <= 0) {
+ // 可以css 优化
+ _this.setData({opacity: 0})
+ }
+ if (_this.data.time <= -1) {
+ clearInterval(_this.data.fullAdvTimer)
+ wx.showTabBar() //倒计时结束清除定时器显示导航栏
+ _this.setData({showFullAdv: false})
+ }
+ }, 500)
+ } else {
+ // 视频
+ }
+ } else {
+ this.setData({
+ showFullAdv: false
+ })
+ }
+ })
+ if (options.from) {
+ app.globalData.from = options.from;
}
+ this.getHeight()
+
+
+ // 获取今天的日期
+ let today = new Date();
+ let d = new Date();
+ let month = d.getMonth() + 1,day = d.getDate();
+ month = month > 10 ? month : ("0" + month);
+ day = day > 10 ? day : ("0" + day);
+ this.setData({
+ month: (this.data.months[today.getMonth()]).toUpperCase(),
+ date: today.getDate(),
+ today: d.getFullYear() + "-" + month + "-" + day
+ })
+ },
+ gobdDetail(e) {
+ let item = e.currentTarget.dataset.item
+ util.gotoDetail(item)
+ },
+ getList() {
+ let bdList = this.data.bdList
+ // 游--景点
+ commonApi._post("scene/get_scene_by_tag",{
+ tag_id:"4",
+ limit:6,
+ lon:this.data.lon,
+ lat:this.data.lat,
+ offset:0,
+ sort:"weight",
+ title:'',
+ area_id:''
+ }).then(res=>{
+ console.log('景点', res)
+ res.data.list.map(item => {
+ if (item.distance || item.distance == 0) {
+ if (item.distance >= 1000) {
+ item.distance = (item.distance / 1000).toFixed(2) + 'km';
+ } else {
+ item.distance = (item.distance).toFixed(2) + 'm';
+ }
+ }
+ })
+ bdList[0].list = res.data.list
+ this.setData({
+ bdList: bdList
+ })
+ })
+ // 非买不可--文创
+ commonApi._post('product/get_product_by_tag_subject',{
+ offset: 0,
+ limit: 6,
+ tag_id: 60,
+ }).then(res=>{
+ bdList[3].list = res.data.list
+ this.setData({
+ bdList: bdList
+ })
+ })
+ // 非玩不可--线路一日游
+ commonApi._post('product/get_product_by_tag_subject',{
+ tag_id: "58",
+ offset: 0,
+ limit: 6,
+ }).then(res=>{
+ bdList[1].list = res.data.list
+ this.setData({
+ bdList: bdList
})
- this.setData({
- hdrlList:res.data.rows
- })
- })
- },
- // 切换活动日历分类
- changeHdrlNav(e) {
- console.log(e.currentTarget.dataset);
- this.setData({
- hdrlList:[],
- hdrlNavIndex:e.currentTarget.dataset.index,
- })
- if (this.data.hdrlNavIndex == 4) {
- this.getMovieList()
- } else {
- this.getHdrlList() //切换分类重新获取活动日历列表
- }
- },
- // 游苏州下的公共服务和旅游助手切换
- changeType(e) {
- this.setData({
- yszIndex:e.currentTarget.dataset.index,
- })
- },
- xlzs: function (e) {
+ })
+ // 非看不可--剧场演出
+ commonApi._post("product/get_product_by_tag_subject",{
+ tag_id:"59",
+ offset:0,
+ limit:6,
+ }).then(res=>{
+ bdList[2].list = res.data.list
+ this.setData({
+ bdList: bdList
+ })
+ })
+ },
+ goDetail(e) {
+ let item = e.currentTarget.dataset.item;
+ let type = this.data.hdrlNavList[this.data.hdrlNavIndex].type
+ if (type == 'movie') {
+ // wx.navigateTo({
+ // // url: '/pages/list/movieticket/list/info/index?id=' + item.third_id
+ // })
+ util.goMovieDetail(item.third_id || item.id)
+ }else {
+ wx.navigateTo({
+ url: '/pages/info/activityInfo/index?id=' + item.id,
+ })
+ }
+ },
+ // 分类为电影时调这个接口
+ getMovieList() {
+ let service = "Cinema/getHotChannelMovieList";
+ let data = {
+ page: 1,
+ pageSize: 5
+ };
+ commonApi._post(service, data).then(res => {
+ console.log(res.data);
+ this.setData({
+ hdrlList: res.data
+ })
+ })
+ console.log(this.data.hdrlList);
+ },
+ // 推荐榜单更多跳转
+ moreBtn(e) {
+ console.log(e)
+ let item = e.currentTarget.dataset.item
+ if (item.path!='') {
+ wx.navigateTo({
+ url: item.path,
+ })
+ } else {
+ // if (e.currentTarget.dataset.event) {
+ // this.pagePoint({
+ // event: e.currentTarget.dataset.event
+ // }, 1)
+ // }
+ console.log('error', item)
+ let url = item.url;
+ app.globalData.weburl = url;
+ wx.navigateTo({
+ url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url),
+ })
+ }
+ },
+ // 活动日历下的列表
+ getHdrlList() {
+ commonApi._post('pbservice/Actcalendar/getActList', {
+ page_no: 1,
+ date: this.data.today,
+ category: this.data.hdrlNavList[this.data.hdrlNavIndex].type,
+ keywords: '',
+ area_key: '',
+ lat: this.data.lat,
+ lon: this.data.lon,
+ page_num: 5
+ }).then(res => {
+ res.data.rows.forEach(v=>{
+ if (!v.post_url) {
+ v.post_url = "https://static.ticket.sz-trip.com/uploads/20240909/c9a0029cc9426d2a17f1dbbb7a179762.jpg"
+ }
+ })
+ this.setData({
+ hdrlList:res.data.rows
+ })
+ })
+ },
+ // 切换活动日历分类
+ changeHdrlNav(e) {
+ console.log(e.currentTarget.dataset);
+ this.setData({
+ hdrlList:[],
+ hdrlNavIndex:e.currentTarget.dataset.index,
+ })
+ if (this.data.hdrlNavIndex == 4) {
+ this.getMovieList()
+ } else {
+ this.getHdrlList() //切换分类重新获取活动日历列表
+ }
+ },
+ // 游苏州下的公共服务和旅游助手切换
+ changeType(e) {
+ this.setData({
+ yszIndex:e.currentTarget.dataset.index,
+ })
+ },
+ xlzs: function (e) {
- wx.navigateToMiniProgram({
- appId: 'wx757dd1ee184e75e9',
- page: "pages/tabBar/index/index"
- })
- },
+ wx.navigateToMiniProgram({
+ appId: 'wx757dd1ee184e75e9',
+ page: "pages/tabBar/index/index"
+ })
+ },
// 获取导航栏项目标题高度
getHeight() {
let that = this
- wx.getSystemInfo({
- success(res) {
- console.log(res)
- that.setData({
- viewHeight: res.windowHeight + 'px'
- })
- console.log(that.data.viewHeight)
- }
+ let systemInfo = wx.getStorageSync('systemInfo'),rect = wx.getMenuButtonBoundingClientRect();
+ if (!systemInfo) {systemInfo = wx.getSystemInfoSync()}
+ if (!rect) {rect = wx.getMenuButtonBoundingClientRect()}
+ let height = (rect.top - systemInfo.statusBarHeight) * 2 + rect.height;
+
+ that.setData({
+ viewHeight: systemInfo.windowHeight + 'px',
+ height: height,
+ padHeight: systemInfo.statusBarHeight,
+ right: (systemInfo.screenWidth - rect.right) + rect.width
})
},
- // getXpthList: function() {
- // // 元旦新增 新品特惠
- // commonApi._post("product/get_product_indulgence", {
- // tag_id: 275,
- // typeId: 3,
- // }).then(res => {
- // console.log('data', res.data);
- // this.setData({
- // xpth: res.data,
- // djsTime: res.data.time
- // })
- // let time = setInterval(() => {
- // this.setData({
- // djsTime: this.data.djsTime - 1
- // })
- // this.formatDate(this.data.djsTime)
- // }, 1000)
- // if (this.data.djsTime == 0) {
- // clearInterval(time)
- // }
- // })
- // },
- // 元旦新品特惠 倒计时
- // formatDate: function(oTime) {
- // let h = parseInt(oTime / 3600)
- // let m = parseInt((oTime % 3600) / 60)
- // let s = parseInt(oTime % 60)
- // h = h < 10 ? "0" + h : h;
- // m = m < 10 ? "0" + m : m;
- // s = s < 10 ? "0" + s : s;
- // this.setData({
- // djs: {
- // h: h,
- // m: m,
- // s: s
- // }
- // })
- // return
- // },
- // 非遗跳转
- // goFeiyi: function() {
- // app.globalData.weburl = 'https://m.cloud.sz-trip.com/mlgCoupons'
- // wx.navigateTo({
- // url: "/pages/pbService/web/index"
- // })
- // },
- // onTabItemTap: function(e) {
- // console.log(e, 99999999)
- // },
- // 大轮播的监听方法
+
+ // 大轮播的监听方法
changeBannerIndex: function(e) {
this.setData({
activeBannerIndex: e.detail.current
})
- },
- // 小轮播监听方法
+ },
+ // 小轮播监听方法
changeSmBannerIndex: function(e) {
this.setData({
smBannerIndex: e.detail.current
})
},
- // 一城百馆
- 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()
- },
getBanner: function() {
- // commonApi._post("adv/getAdvByKey",{
- // key:"xcxBanner"
- // }).then(res=>{
- // console.log(res)
- // this.setData({
- // banner:res.data.content || []
- // })
- // })
- // commonApi._post("adv/getAdvByKey",{
- // key:"xiaobanner"
- // }).then(res=>{
- // this.setData({
- // xiaobanner:res.data.content || []
- // })
- // })
- // return;
commonApi._post("adv/getAdv", {
position: 0,
type_id: 3
@@ -576,13 +423,27 @@ Page({
},
//获取季节配置
getIndexSeason() {
- this.setData({
- indexHot: app.globalData.configJson.indexHot,
- isTest: app.globalData.configJson.isTest,
- otherPlat: app.globalData.configJson.otherPlats,
- indexSeason: app.globalData.configJson.indexSeason
- })
- this.getFourProduct()
+ if (app.globalData.configJson.indexSeason) {
+ this.setData({
+ isTest: app.globalData.configJson.isTest,
+ otherPlat: app.globalData.configJson.otherPlats,
+ indexSeason: app.globalData.configJson.indexSeason
+ })
+ } else {
+ commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => {
+ let obj = {}
+ res.data.content.forEach(item => {
+ obj[item.id] = item.image
+ });
+ app.globalData.configJson.indexSeason = obj
+ app.globalData.loadIndexSeason = true
+ this.setData({
+ isTest: app.globalData.configJson.isTest,
+ otherPlat: app.globalData.configJson.otherPlats,
+ indexSeason: app.globalData.configJson.indexSeason
+ })
+ })
+ }
},
//关闭弹窗广告
closeAdv: function() {
@@ -597,7 +458,8 @@ Page({
closeFullAdv: function() {
this.setData({
showFullAdv: false
- })
+ })
+ clearInterval(this.data.fullAdvTimer)
if (!this.data.alertSwipeList.length > 0) {
wx.showTabBar({
animation: true,
@@ -634,113 +496,9 @@ Page({
})
})
},
- saleDetail: function() {},
- getTwoProduct: function() {
- // 获取首页限时特惠
- commonApi._post('act/fast_sale_now', {
- offset: 0,
- limit: 1
- }).then(res => {
- if (res.data[0] && res.data[0].fast_sales_sku[0]) {
- if (res.data[0].fast_sales_sku.length > 0) {
- let price = res.data[0].fast_sales_sku[0].price
- let data = res.data[0].fast_sales_sku[0]
- for (let item of res.data[0].fast_sales_sku) {
- if (price > item.price) price = item.price
- }
- data.price = price
- this.setData({
- saleProduct: data
- })
- } else {
- this.setData({
- saleProduct: res.data[0].fast_sales_sku[0]
- })
- }
- }
- })
- commonApi._post("product/get_product_by_tag", {
- tag_id: 17,
- offset: 0,
- limit: 1,
- sort: 'price',
- order: 'asc'
- }).then(res => {
- if (res.data.list.length > 0) {
- let price = res.data.list[0].price
- for (let item of res.data.list) {
- if (item.price > price) {
- price = item.price
- }
- }
- let data = res.data.list[0]
- data.price = price
- this.setData({
- roadProduct: data
- })
- } else {
- this.setData({
- roadProduct: [111]
- })
- }
- })
- },
- 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) {
console.log(e)
- // if (e.currentTarget.dataset.event) {
- // if (e.currentTarget.dataset.event=='gongyeyuanqu_click') {
- // wx.navigateToMiniProgram({
- // appId: 'wxd323e63a10aa6865',
- // path: 'pages/home/index'
- // })
- // return
- // }else{
- // this.pagePoint({
- // event: e.currentTarget.dataset.event
- // }, 1)
- // }
- // }
+
if (e.currentTarget.dataset.title == '书香借阅') {
wx.navigateToMiniProgram({
appId: 'wx165d4f1727f6bdb0',
@@ -803,15 +561,6 @@ Page({
})
}
},
- // 元旦 新品特惠部分
- goBanner: function(e) {
- console.log('新品特惠', e.currentTarget.dataset.url);
- let url = e.currentTarget.dataset.url;
- app.globalData.weburl = url;
- wx.navigateTo({
- url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(url)
- })
- },
gotoUrl: function(e) {
console.log(e)
if (e.currentTarget.dataset.event) {
@@ -826,7 +575,7 @@ Page({
url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url),
})
},
- // 实时路况跳转外链
+ // 实时路况跳转外链
gotoUrls() {
// 判断是否登录
var token = wx.getStorageSync("jstrip_token"), userId = wx.getStorageSync("jstrip_userid");
@@ -858,22 +607,7 @@ Page({
path: path
})
},
- garbage: function() {
- wx.navigateToMiniProgram({
- appId: 'wx13be821f3b1afed3',
- path: 'pages/home/home'
- })
- },
- gotoSku: function() {
- commonApi.user_post("pbservice/Ztfw/sukangCode").then(res => {
- console.log(res)
- app.globalData.weburl = res.data.url;
- wx.navigateTo({
- url: '/pages/pbService/web/index'
- })
- return;
- })
- },
+
audioGuide: function() {
wx.navigateToMiniProgram({
appId: 'wx74f380bc721a0379',
@@ -887,34 +621,7 @@ Page({
})
},
- // 热门推荐 去掉经纬度 接口排序方式变更(韩阳)
- // getList: function() {
- // if (!this.data.listMore) return;
- // commonApi._post("search/recommend", {
- // offset: this.data.list.length,
- // limit: 16
- // }).then(res => {
- // res.data.map(item => {
- // if (item.ext.display_tags) {
- // item.ext.display_tags = item.ext.display_tags.split(",").splice(0, 2)
- // } else {
- // item.ext.display_tags = []
- // }
- // })
- // if (res.data.length < 15) {
- // this.setData({
- // listMore: false
- // })
- // }
- // this.setData({
- // list: this.data.list.concat(res.data)
- // })
- // })
- // },
onReachBottom: function() {
- // if (this.data.list.length < 30) {
- // this.getList()
- // }
},
gotoDetail: function(e) {
let item = e.currentTarget.dataset.item;
@@ -934,12 +641,7 @@ 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"
- })
- },
+
// 轮播图点击
bannerClick: function(e) {
if (this.data.isTest) return;
@@ -1042,206 +744,52 @@ Page({
url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(weburl),
})
},
- // bannerClick2: function(e) {
- // let item = e.currentTarget.dataset.item;
- // if (item.action == 'href') {
- // if (item.href.indexOf(",") != -1) {
- // let info = item.href.split(",");
- // wx.navigateToMiniProgram({
- // appId: info[0],
- // path: info[1]
- // })
- // } else if (item.href.indexOf('map/index') != -1) {
- // wx.reLaunch({
- // url: item.href
- // })
- // } else {
- // wx.navigateTo({
- // url: item.href,
- // })
- // }
- // } else if (item.action == "web") {
- // app.globalData.weburl = item.href;
- // wx.navigateTo({
- // url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.href),
- // })
- // }
- // },
// 监听文旅查询的scroll
listenScroll(e) {
this.setData({
scrollLeft: e.detail.scrollLeft
})
},
- // // 获取短视频大赛是否中奖 中奖详情
- // getVideoPrize() {
- // let user_id = wx.getStorageSync('jstrip_userid');
- // if (!user_id || wx.getStorageSync('indexPriceNoTip')) return;
- // commonApi.user_post('actonline/video_act/getRaffle', {
- // act_id: 5
- // }).then(res => {
- // this.setData({
- // videoPrize: res.data
- // })
- // })
- // },
- // noMoreTip() {
- // wx.setStorageSync('indexPriceNoTip', true)
- // this.closePrice()
- // },
- // closePrice() {
- // this.setData({
- // videoPrize: false,
- // prizeInfo: null
- // })
- // },
- // 抽奖
- // choosePrize() {
- // commonApi.user_post('actonline/video_act/luckyDraw', {
- // act_id: 5
- // }).then(res => {
- // this.setData({
- // prizeInfo: res.data
- // })
- // if (res.data.type != 'none') {
- // // 抽奖成功的话 弹框
- // wx.showModal({
- // title: "提示",
- // content: "中奖人员请联系君到苏州客服,领奖方式以客服通知为准",
- // showCancel: false
- // })
- // }
- // })
- // },
- // 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
- // console.log(item.tdata)
- // 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("?")
- // console.log(page[0])
- // 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
- // },
onReady: function() {
+ wx.getLocation({
+ type: 'gcj02',
+ success: (res) => {
+ this.setData({
+ lat: res.latitude,
+ lon: res.longitude
+ })
+ this.getList()
+ this.getHdrlList()
+ let tempData = JSON.stringify({lat: res.latitude,lon: res.longitude})
+ wx.setStorageSync('lonAndLat', tempData)
+ },
+ fail: (err) => {
+ this.getList()
+ this.getHdrlList()
+ }
+ })
+ commonApi._post("pbservice/Other/getClientConfig", {
+ unique_key: "urltopage"
+ }).then(res => {
+ let data = JSON.parse(res.data)
+ this.data.urltopage = data
+ })
+
+ this.getBanner()
+ this.getWeather()
+ this.getIndexSeason()
},
- // 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,
- // })
- // }
- // },
+
pagePoint: function(e, type) {
util.pagePoint(e, type)
},
onShow: function() {
- if (app.globalData.loadIndexSeason) {
- this.getIndexSeason()
- } else {
- let t = setInterval(() => {
- if (app.globalData.loadIndexSeason) {
- this.getIndexSeason()
- clearInterval(t)
- t = null
- }
- }, 500)
- }
-
+ // this.getIndexSeason()
this.pagePoint({
event: 'home_view'
}, 1)
- // this.data.time!=5?wx.showTabBar():1
},
/**
diff --git a/subPackages/indexGQ/index.wxml b/subPackages/indexGQ/index.wxml
index 1551e47..a5e5282 100644
--- a/subPackages/indexGQ/index.wxml
+++ b/subPackages/indexGQ/index.wxml
@@ -1,20 +1,21 @@
-
+
-
+
{{weather.max_temp}}°
{{weather.weather}}
-
-
+ mode="aspectFill"> -->
+
-
+
+
搜索想要的旅游产品或服务
@@ -22,7 +23,7 @@
-
+
@@ -33,7 +34,7 @@
-
+
更多 >
{{nowDate[0]}}
@@ -48,10 +49,10 @@
-
-
-
-
+
+
+
+
{{item.name}}
@@ -62,10 +63,10 @@
-
+
-
-
+
+
@@ -82,64 +83,73 @@
-
-
+
+
+
-
+
-
+
景点门票
-
- 夜游苏州
+
+ 水上游
-
-
- 文创特产
+
+
+ 夜游苏州
+
-
+
剧场演出
-
-
- 酒店住宿
-
-
-
-
-
-
- 一日游
+
+
+ 文创特产
+
-
+
场馆预约
-
-
-
- 一卡游
+
+
+ 一日游
+
+
+
+ 户外游
-
+
非遗专卖
-
-
- 研学游
+
+
+ 酒店住宿
+
+
+
+
+ 酒店住宿
+
+
@@ -154,7 +164,7 @@
bindchange="changeSmBannerIndex">
-
+
@@ -165,55 +175,54 @@
-
+
{{item}}
-
+
-
-
+
高峰预警
-
+
实时路况
-
- 行李直送
+
+ 行李直送
-
-
- 停车场
-
+
+ 停车场
+
-
+
找厕所
@@ -223,38 +232,38 @@
查看更多 >
-
-
-
-
+
+
+
-
+ src="https://static.ticket.sz-trip.com/uploads/20250429/e86972b98e8fbb5c5983f38124a77cb2.png" mode="aspectFill">
+
-
+
-
+
-
+
-
- 更多 >
+
+ 更多 >
- {{index+1}}
+ {{index+1}}
-
+
{{item.title}}
@@ -283,7 +292,7 @@
-
+
景点门票
@@ -298,7 +307,7 @@
bindchange="changeSmBannerIndex">
-
+
@@ -309,39 +318,39 @@
-
+
{{item}}
-
+
-
+
电子社保卡
-
+
高峰预警
-
+
行李寄存
-
+
实时路况
@@ -353,14 +362,14 @@
-
-
-
@@ -372,7 +381,7 @@
{{time}}s跳过
-
+
@@ -391,12 +400,12 @@
object-fit="fill"
>
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/subPackages/indexGQ/index.wxss b/subPackages/indexGQ/index.wxss
index 11f779a..9272311 100644
--- a/subPackages/indexGQ/index.wxss
+++ b/subPackages/indexGQ/index.wxss
@@ -3,7 +3,7 @@
page {
height: fit-content;
padding-bottom: 36.67rpx;
- background: url("https://static.ticket.sz-trip.com/uploads/20250120/b42c1ac742bee3ddff35151ecd860f81.jpg");
+ background: #F5C564;
background-size: 100% auto;
/* background-repeat: round; */
background-repeat: no-repeat;
@@ -40,8 +40,8 @@ page {
flex: 1;
width: 100%;
height: 64rpx;
- background: rgba(255,255,255,0.7);
- border-radius: 32rpx;
+ background: rgba(255,248,235,0.7);
+ border-radius: 13rpx;
color: #000;
display: flex;
align-items: center;
@@ -62,14 +62,12 @@ page {
font-size: 29rpx;
margin-bottom: 10rpx;
margin-left: 4rpx;
- color: white;
}
.top-box .weather {
font-size: 19rpx;
margin-top: 20rpx;
margin-left: -4rpx;
margin-right: 30rpx;
- color: white;
}
.top-icons {
/* background: #FFFFFF; */
@@ -108,7 +106,7 @@ page {
}
.content {
/* margin: 0 25rpx; */
- margin-top: 20.67rpx;
+ margin-top: 37.67rpx;
}
.sale-road-boxes {
display: flex;
@@ -317,8 +315,8 @@ page {
justify-content: space-between;
flex-wrap: wrap; */
display: flex;
- justify-content: space-between;
- margin: 0 28rpx;
+ justify-content: space-around;
+ /* margin: 0 28rpx; */
}
.title-more {
font-size: 24rpx;
@@ -1037,7 +1035,7 @@ page {
}
/* 元旦修改新增样式 */
.new-pic {
- width: 160rpx !important;
+ width: 155rpx !important;
height: 255rpx !important;
/* margin-bottom: 26.67rpx; */
}
@@ -1165,18 +1163,18 @@ page {
.right-more {
width: 120rpx;
height: 47rpx;
- background: rgba(255,208,165,0.4);
- border-radius: 23rpx;
+ border-radius: 7rpx;
+ border: 1px solid #111111;
font-weight: 500;
font-size: 27rpx;
- color: #FFFFFF;
+ color: #111111;
text-align: center;
line-height: 47rpx;
}
.hdrlNavList {
display: flex;
- margin: 28rpx 26.67rpx 10rpx;
+ margin: 28rpx 26.67rpx 26rpx;
overflow-x: scroll;
flex-wrap: nowrap;
}
@@ -1185,37 +1183,40 @@ page {
/* width: 160rpx; */
padding: 0 20rpx;
height: 53rpx;
- background: rgba(255,208,165,0.4);
- border-radius: 13rpx;
+ background: #FCE7BF;
+ border-radius: 7rpx;
/* border: 1px solid #FFFFFF; */
min-width: 133rpx;
font-size: 32rpx;
- color: #FFFFFF;
+ color: #111111;
text-align: center;
line-height: 53rpx;
margin-right: 14rpx;
box-sizing: border-box;
}
.hdrlNavActive {
- background: linear-gradient(180deg, #FFECD9, #FFBD7A);
+ background: linear-gradient(180deg, #E2802B, #D1201B);
font-size: 32rpx;
- color: #E6201C;
+ color: #FFFFFF;
border: none;
}
.hdrlItem {
flex-shrink: 0;
- padding: 26.67rpx 22rpx 26.67rpx 20rpx;
+ padding: 10rpx;
/* width: 593.33rpx; */
display: flex;
- background: url("https://static.ticket.sz-trip.com/uploads/20250117/8d7f5ce0ecafbc2f836342e4226ec364.png");
background-size: 100% 100%;
+ background: linear-gradient(90deg, #EC2026, #3A3D83);
+ border-radius: 13rpx;
+ margin-right: 20rpx;
+ width: 573rpx;
}
.hdrlItem-img {
width: 240rpx;
height: 213rpx;
background: #8C8C8C;
- border-radius: 13rpx;
+ border-radius: 7rpx;
flex-shrink: 0;
margin-right: 12rpx;
overflow: hidden;
@@ -1240,23 +1241,33 @@ page {
}
.main-box {
- background-image: url("https://static.ticket.sz-trip.com/uploads/20250117/98ca9dfa8253e50d624ce64d24295570.png");
- background-size: 100% 100%;
- padding: 27.67rpx 20.67rpx 40rpx 20rpx;
- margin: 0 8rpx;
+ width: 697rpx;
+ /* height: 273rpx; */
+ background: linear-gradient(180deg, #FFEED6, #FFDCA3);
+ border-radius: 13rpx;
+ margin: 110rpx auto 43rpx;
+ position: relative;
+ padding-top: 93rpx;
+ padding-bottom: 20rpx;
+ /* box-sizing: border-box; */
}
.main-box-top {
display: flex;
- margin-bottom: 5.33rpx;
+ justify-content: space-between;
+ width: 100%;
+ padding: 16rpx;
+ box-sizing: border-box;
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: -72rpx;
}
.gfyj,.sslk {
- width: 369.33rpx;
- height: 146rpx;
+ width: 324.33rpx;
+ height: 131rpx;
flex-shrink: 0;
}
-.sslk {
- margin-left: -48rpx;
-}
+
.movieItem {
padding: 26.67rpx 26rpx 26.67rpx 20rpx;
@@ -1273,27 +1284,29 @@ page {
flex-shrink: 0;
}
.ysz-box {
- margin: 0 8rpx 15.33rpx;
- background-image: url("https://static.ticket.sz-trip.com/uploads/20250117/8efd4c072b3c95fe7c31d1e7b79759d3.png");
- /* padding: 43.33rpx 59rpx 46.67rpx 58rpx; */
- background-size: 100% 100%;
- width: 733.33rpx;
- height: 320rpx;
- padding-top: 33.33rpx;
+ margin: 26rpx auto 15.33rpx;
+ width: 697rpx;
+ height: 293rpx;
+ background: linear-gradient(180deg, #FFEED6, #FFDCA3);
+ border-radius: 13rpx;
+
+ padding-top: 3.33rpx;
position: relative;
z-index: 1;
+ box-sizing: border-box;
}
.ysz-more {
- width: 267rpx;
+ width: 183rpx;
height: 53rpx;
- background: #FFFFFF;
- border-radius: 27rpx;
+ border-radius: 7rpx;
+ border: 1px solid #000000;
+
margin: 38rpx auto 0;
text-align: center;
line-height: 53rpx;
font-weight: 500;
font-size: 25rpx;
- color: #FF4D48;
+
}
.ysz-box2 {
/* padding: 20rpx 35rpx; */
@@ -1347,7 +1360,7 @@ page {
.bd-index {
font-weight: bold;
font-size: 40rpx;
- color: #000000;
+ color: black;
}
.bd-item {
margin-left: 45.33rpx;
@@ -1464,7 +1477,7 @@ page {
.nowDate{
display: flex;
position: absolute;
- left: 228.77rpx;
+ left: 200.77rpx;
bottom: 7.33rpx;
}
@@ -1478,26 +1491,31 @@ page {
font-family: PingFang SC;
font-weight: 500;
font-size: 29rpx;
- color: #FFFFFF;
+ color: #111111;
}
.nowDate .num{
- background: #FFD0A5;
- color: #111111;
-
+ background: #FCE7BF;
+ color: #C11A20;
font-family: PingFang SC;
font-weight: bold;
font-size: 29rpx;
- color: #111111;
+ border-radius: 50%;
}
.ysz-right-img{
- width: 200.8rpx;
- height: 207.33rpx;
+ width: 213.33rpx;
+ height: 259.33rpx;
position: absolute;
right: -26rpx;
- top: 0;
+ top: 44rpx;
z-index:1;
}
.hidden{
display: none;
+}
+
+.top-box image.search-icon{
+ width: 26.67rpx;
+ height: 26.67rpx;
+ margin-right: 20rpx;
}
\ No newline at end of file
diff --git a/utils/https.js b/utils/https.js
index 67031b4..1a81b17 100644
--- a/utils/https.js
+++ b/utils/https.js
@@ -1,8 +1,8 @@
var app = getApp();
import util from "../utils/util"
// import userApi from "../utils/https/user.js";
-// const baseUrl = "https://test.api.cloud.sz-trip.com/api/";
-let baseUrl = "https://api.cloud.sz-trip.com/api/";
+const baseUrl = "https://test.api.cloud.sz-trip.com/api/";
+// let baseUrl = "https://api.cloud.sz-trip.com/api/";
const env = wx.getAccountInfoSync().miniProgram.envVersion
if (env == 'develop1') {
baseUrl = "https://test.api.cloud.sz-trip.com/api/"