diff --git a/app.json b/app.json index 5cdd85e..e5d7717 100644 --- a/app.json +++ b/app.json @@ -184,8 +184,14 @@ "pages/user/userPrivacy/index", "pages/user/personalInfo/index", "pages/info/luggageInfo/index" - ], + "subpackages": [{ + "root": "subPackages", + "pages": [ + "indexs/index", + "index/index" + ] + }], "plugins": { "live-player-plugin": { "version": "1.3.5", diff --git a/pages/component/newCalendar/index.wxml b/pages/component/newCalendar/index.wxml index ee667a4..96240dc 100644 --- a/pages/component/newCalendar/index.wxml +++ b/pages/component/newCalendar/index.wxml @@ -58,7 +58,7 @@ - + \ No newline at end of file diff --git a/pages/component/newCalendar/index.wxss b/pages/component/newCalendar/index.wxss index 9c8d8ea..afc1141 100644 --- a/pages/component/newCalendar/index.wxss +++ b/pages/component/newCalendar/index.wxss @@ -13,8 +13,8 @@ margin: 0 auto; padding: 37rpx 22rpx 40rpx; /* 节假日花样 */ - /* background-image: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/calendar-top.png"); - background-size: 100% 100%; */ + background-image: url("https://static.ticket.sz-trip.com/uploads/20240605/82a51ad6c58274c78f99fef4af3c9739.png"); + background-size: 100% 100%; width: 90%; height: 65.67rpx } diff --git a/pages/index/index.js b/pages/index/index.js index 164d0c2..409e869 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -63,7 +63,68 @@ Page({ ], viewHeight: "0px", isMuted: true, - videoPlay: false, + 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:[ + { + bg: 'linear-gradient(-8deg, #B9E1F0, #F4F9FF)', + icon:'https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/feiwan.png', //非玩不可 + path:'/pages/list/scene/index', + url:'', + }, + { + bg: 'linear-gradient(-8deg, #F3FFC4, #F9FFE3)', + icon:'https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/feimai.png', //非买不可 + path:'/pages/list/techan/index', + url:'', + }, + { + bg: 'linear-gradient(-8deg, #A0F292, #E0F7DC)', + icon:'https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/feiyou.png', //非游不可 + url:'https://m.cloud.sz-trip.com/OneDayTravelNew', + path:'', + }, + { + bg: 'linear-gradient(-8deg, #E3D9FF, #F6F2FF)', + icon:'https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/feikan.png', //非看不可 + url:'', + path:'/pages/list/theatre/index', + }, + ], + list1:[], //非玩-景点 + list2:[], //非买-文创 + list3:[], //非游-一日游 + list4:[], //非看-剧场演出 }, onLoad: function(options) { this.getHeight() @@ -124,7 +185,21 @@ Page({ }) 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; @@ -135,10 +210,12 @@ Page({ lat: res.latitude, lon: res.longitude }) - this.getList() + this.getList() + this.getHdrlList() }, fail: (err) => { - this.getList() + this.getList() + this.getHdrlList() } }) this.setData({ @@ -157,16 +234,164 @@ Page({ }) this.getTwoProduct() this.getBanner() - this.getWeather() - // 获取今天的日期 - let today = new Date(); - this.setData({ - month: (this.data.months[today.getMonth()]).toUpperCase(), - date: today.getDate() - }) - this.getVideoPrize() - this.getXpthList() - }, + this.getWeather() + }, + gobdDetail(e) { + console.log(e); + let url = e.currentTarget.dataset.url + wx.navigateTo({ + url: url + }) + }, + 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=>{ + 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'; + } + } + }) + this.setData({ + list1:res.data.list + }) + }) + // 非买不可--文创 + commonApi._post('product/get_product_by_tag',{ + tag_id: 326, + offset: 0, + limit: 6, + }).then(res=>{ + this.setData({ + list2:res.data.list + }) + }) + // 非游不可--线路一日游 + commonApi._post('product/get_product_by_tag',{ + type_id: 23, + tag_id:17, + offset: 0, + limit: 6, + sort: 'weight' + }).then(res=>{ + this.setData({ + list3:res.data.list + }) + }) + // 非看不可--剧场演出 + commonApi._post("product/get_product_by_tag",{ + tag_id:"6", + offset:0, + limit:6, + sort:'', + order:'', + lat:this.data.lat, + lon:this.data.lon, + title:'' + }).then(res=>{ + this.setData({ + list4:res.data.list + }) + }) + }, + 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 + }) + }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 => { + 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, + }) + }, + // 获取导航栏项目标题高度 getHeight() { let that = this wx.getSystemInfo({ @@ -179,59 +404,62 @@ Page({ } }) }, - 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) - } - }) - }, + // 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) - }, + // 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 @@ -461,7 +689,7 @@ Page({ util.gotoDetail(item) }, gotoPath: function(e) { - console.log(e) + console.log(e) // if (e.currentTarget.dataset.event) { // if (e.currentTarget.dataset.event=='gongyeyuanqu_click') { // wx.navigateToMiniProgram({ @@ -598,33 +826,33 @@ 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) - }) - }) - }, + // 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() - } + // if (this.data.list.length < 30) { + // this.getList() + // } }, gotoDetail: function(e) { let item = e.currentTarget.dataset.item; @@ -752,186 +980,186 @@ 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), - }) - } - }, + // 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 - }) - }, + // // 获取短视频大赛是否中奖 中奖详情 + // 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 - }, + // 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() { }, - 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, - }) - } - }, + // 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) }, diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 3f45489..bd08211 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -1,10 +1,7 @@ - + - - - - + {{weather.max_temp}}° @@ -14,11 +11,6 @@ mode="aspectFill"> - @@ -28,633 +20,259 @@ - + - + - - - - - - - - - - 活动日历 - - - - - - - - 场馆预约 - - - - - - - - - - 非遗专卖 - - - - - - - - 剧场演出 - - - - - - - - 文创特产 - - - - - - - - 景点门票 - - - - - - - - 酒店住宿 - - - - - - - - 夜游苏州 - - - - - - - - 一日游 + + + + + 更多 > - - - - - - - 研学游 + + + {{item.title}} + - - - - - 特惠新品超值商品限时抢购 - - - - - - - - 限时特惠 - 新品推荐 + + + + + + + {{item.name}} + {{item.begin_date}}-{{item.end_date}} - - ¥{{saleProduct.price?saleProduct.price/100:0}}起 - - 精品线路带你轻松玩转苏州 - - - - - - - - 四季苏州 - 最是江南 + + + + + + + + {{item.title}} + + 去购票 > + - - ¥{{roadProduct.price?roadProduct.price/100:0}}起 - - - + + + + + + + + + + + + + + 景点门票 + + + + 夜游苏州 + + + + 文创特产 + + + + 场馆预约 + + + + 剧场演出 + + + + 一日游 + + + + 一卡游 + + + + 非遗专卖 + + + + + + + + - + + - - + - - - - - - - - - 倒计时 - {{djs.h}} - : - {{djs.m}} - : - {{djs.s}} - - - - - - - - - - - - {{item.title}} - - - {{item.price/100}} - - - - + + + + + + {{item}} - - + - - - - - - - - - - - - - - 非遗鉴赏 - - - - - - 数字博物馆 - - - - - - 公共文化资源库 - - - - - - 云上文博会 - - - - - - 云上观展 + + + + + + 安全服务 - - - - - 精彩回顾 + + + 高峰预警 - - - - - 文旅单位 - - - - - - 书仓 - - - - - - 苏影通 - - - - - - 视觉中心 - - - - - - - 文化场馆查询 + + + 行李寄存 - - - - - - - 投资导引图 + + + 实时路况 - - - - - - - - - - - - + + 查看更多 > + - - - - - - - - - - - - - - - - - - - - - 查看全部 - - - - - - - - - - - - 安全服务 - - - - - - 景区舒适度 - - - - - - 行李寄存 - - - - - - 实时路况 + + + + + + + - - - - - - - - - - - - - - - - - - - - - {{item.name}} + + + + + + + + + 更多 > - - - - - - - - - - - - - {{date}} {{month}} - - - {{item.ext.display_tags[0]}} - {{item.title}} - - - - - - {{item.ext.subtitle}} - - - {{item.title}} - - - - {{item.ext.like_number}} - - - - {{item.ext.view_number}} - + + + {{index+1}} + + + + + {{item.title}} + + + {{item.price/100}} + {{item.distance}} - - - - - - - - - {{item.title}} - - - {{item.ext.price/100}} - - 查看更多 - 暂无更多推荐 - - - - - - - - - {{prizeInfo.prize_name}} - - + + + {{index+1}} + + + + + {{item.title}} + + + {{item.price/100}} + {{(item.distance/1000)}}km + + + - - - - - - {{prizeInfo.prize_name}} - - + + + {{index+1}} + + + + + {{item.title}} + + + {{item.price/100}} + {{(item.distance/1000)}}km + + + - - - - - - 您与奖品擦肩而过期待下次参与 - - - - - - 我知道了 + + + {{index+1}} + + + + + {{item.title}} + + + {{item.price/100}} + {{(item.distance/1000)}}km + + + - - - - - - + + + + - - - - - - - - - - - - - + + {{time}}s跳过 @@ -685,12 +303,4 @@ - + diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 4809b10..330a3d1 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -1,11 +1,10 @@ -/**index.wxss**/ +/* pages/indexs/index.wxss */ /* 元旦修改 */ page { background: #f5f2ed; padding-bottom: 36.67rpx; - /* background-image: url("https://static.ticket.sz-trip.com/uploads/20240428/7e9d12e2157ba5d4e77ef1b12f049012.png"); */ + background: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/bg.png"); background-size: 100% 100%; - background: url("https://static.ticket.sz-trip.com/uploads/20240428/7e9d12e2157ba5d4e77ef1b12f049012.png"); background-repeat: round; } .swiper,.swiper image { @@ -39,18 +38,10 @@ page { .search-box { flex: 1; width: 100%; - /* height: 64rpx; */ - /* background: rgba(255, 255, 255, 0.6); */ - /* border-radius: 32rpx; */ - /* color: #666; */ - /* height: 70.67rpx; */ height: 64rpx; background: rgba(255,255,255,0.7); border-radius: 32rpx; - /* color: #72674E; */ - color: #333333; - /* background-image: url("https://static.ticket.sz-trip.com//uploads/20240228/10b93c1389ef5dfc02d07c4091af8f2d.png"); - background-size: 100% 100%; */ + color: #000; display: flex; align-items: center; font-size: 25rpx; @@ -59,7 +50,7 @@ page { font-size: 30rpx; margin-left: 20rpx; margin-right: 10rpx; - /* color: #72674E; */ + color: #000; } .top-box .weather-num,.top-box .weather { flex-shrink: 0; @@ -113,7 +104,7 @@ page { margin-bottom: 10rpx; } .content { - margin: 0 25rpx; + /* margin: 0 25rpx; */ } .sale-road-boxes { display: flex; @@ -203,13 +194,11 @@ page { height: 154rpx; } .small-swiper-box { - margin: 50rpx 0; - width: 100%; + margin: 24rpx 26.67rpx 26.67rpx; + /* width: 100%; */ height: 154rpx; border-radius: 20rpx; - /* border-radius: 77rpx; */ overflow: hidden; - margin-bottom: 33rpx; position: relative; } .product-tags { @@ -341,34 +330,29 @@ page { font-size: 22rpx; } .slide-out-box { - margin-top: 20rpx; + /* margin-top: 20rpx; background: #FFFED6; - box-shadow: 0rpx 0rpx 3rpx 0rpx rgba(103,103,103,0.2); + box-shadow: 0rpx 0rpx 3rpx 0rpx rgba(103,103,103,0.2); */ border-radius: 27rpx; padding-bottom: 1rpx; - margin-bottom: 40rpx; + /* margin-bottom: 40rpx; */ } .pbservice { - /* width: calc(175rpx * 6); */ - /* 元旦修改 */ - width: calc(190rpx * 8); + width: calc(160rpx * 8); display: flex; - margin-top: 20rpx; - flex-wrap: wrap; - /* margin-bottom: 60rpx; */ - /* 元旦修改 注释margin-bottom */ + margin-top: 5rpx; + /* flex-wrap: wrap; */ + flex-wrap: nowrap; + /* padding-left: 12rpx; */ + /* overflow-x: scroll; */ } .pbservice-item { - /* 元旦修改 截止到注释的width*/ width: 120rpx; - margin-bottom: 33.33rpx; - margin-right: 62.33rpx; - /* width: 175rpx; */ + margin-bottom: 25rpx; + margin-right: 32.33rpx; text-align: center; - font-size: 25rpx; - /* color: #333; */ - /* 春节调整颜色改版 */ - color: #54504D; + font-size: 27rpx; + color: #000; line-height: 24rpx; display: flex; align-items: center; @@ -383,7 +367,7 @@ page { margin-bottom: 20rpx; margin-top: 50rpx; */ /* 元旦修改 以上都是之前的*/ - width: 106rpx; + width: 80rpx; margin-bottom: 10rpx; } .six-box { @@ -567,30 +551,24 @@ page { overflow: hidden; margin: 30rpx auto; */ /* 元旦修改 以上为注释部分 下面为新内容*/ - width: 73rpx !important; - height: 7rpx; + width: 48rpx !important; + height: 8rpx; /* background: #DDCEAC; */ - background: #CAED72; - border-radius: 3rpx; - margin: 33.33rpx auto; + background: #fff; + border-radius: 4rpx; + margin: 0 auto 25rpx; } .scroll-line-bg { - /* width: 300rpx; - height: 6rpx; - border-radius: 3rpx; - background: #0B898E; */ - /* 元旦修改 以上为注释部分 下面为新内容*/ - height: 7rpx; - /* background: #72674E; */ - background: #3EB978; - border-radius: 3rpx; + height: 8rpx; + background: #078565; + border-radius: 4rpx; } /* 元旦修改 新增样式 */ .scroll-line-bg2 { - margin-left: 37.33rpx; - background: #3EB978; - height: 7rpx; - border-radius: 3rpx; + margin-left: 24rpx; + background: #078565; + height: 8rpx; + border-radius: 4rpx; } .nomore-tip-btn { position: absolute; @@ -1052,7 +1030,7 @@ page { } /* 元旦修改新增样式 */ .new-pic { - width: 158.67rpx !important; + width: 150rpx !important; height: 218.67rpx !important; margin-bottom: 26.67rpx; } @@ -1065,8 +1043,8 @@ page { } .ggfw image{ margin-bottom: 16.67rpx; - width: 70rpx !important; - height: 70rpx !important; + width: 113.33rpx !important; + height: 113.33rpx !important; } .six-box-new { @@ -1173,4 +1151,277 @@ page { height: 38rpx; left: 56.67rpx; bottom: 64rpx; +} + +.right-more { + width: 120rpx; + height: 47rpx; + background-color: rgba(255,255,255,.7); + border-radius: 23rpx; + font-weight: 500; + font-size: 27rpx; + color: #078565; + text-align: center; + line-height: 47rpx; +} + +.hdrlNavList { + display: flex; + margin: 28rpx 26.67rpx 10rpx; + overflow-x: scroll; + flex-wrap: nowrap; +} +.hdrlNav { + flex-shrink: 0; + /* width: 160rpx; */ + padding: 0 20rpx; + height: 53rpx; + background: #F8FFDB; + border-radius: 13rpx; + font-size: 32rpx; + color: #078565; + text-align: center; + line-height: 53rpx; + margin-right: 14rpx; +} +.hdrlNavActive { + background-color: #078565; + font-size: 32rpx; + color: #FFFFFF; +} +.hdrlItem { + flex-shrink: 0; + padding: 26.67rpx 32rpx 26.67rpx 20rpx; + width: 593.33rpx; + display: flex; + background: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/calendarBg.png"); + background-size: 100% 100%; +} +.hdrlItem-img { + width: 280rpx; + height: 213rpx; + background: #8C8C8C; + border-radius: 13rpx; + flex-shrink: 0; + margin-right: 12rpx; +} +.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 { + background-image: url("https://static.ticket.sz-trip.com/uploads/20240603/8ddceea4612d2cfb46d1a0203f4b55ac.png"); + background-size: 100% 100%; + padding: 27.67rpx 20.67rpx 40rpx 20rpx; + margin: 0 8rpx; +} +.main-box-top { + display: flex; + margin-bottom: 5.33rpx; +} +.gfyj,.sslk { + width: 369.33rpx; + height: 146rpx; + flex-shrink: 0; +} +.sslk { + margin-left: -48rpx; +} + +.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; +} +.movieItem-img { + width: 230rpx; + height: 230rpx; + border-radius: 18rpx; + margin-right: 18rpx; + flex-shrink: 0; +} +.ysz-box { + margin: 0 8rpx 15.33rpx; + background-image: url("https://static.ticket.sz-trip.com/uploads/20240604/d59d35c02ced0da92a366971a63a2476.png"); + padding: 43.33rpx 59rpx 46.67rpx 58rpx; + background-size: 100% 100%; +} +.ysz-more { + width: 333rpx; + height: 53rpx; + background: #FFFFFF; + border-radius: 27rpx; + margin: 38rpx auto 0; + text-align: center; + line-height: 53rpx; + font-weight: 500; + font-size: 27rpx; + color: #078565; +} +.ysz-box2 { + padding: 20rpx 35rpx; +} +.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(27,128,97,0.56); + 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: 167.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: #078565; + z-index: 9; + text-align: center; + line-height: 47rpx; +} +.bd-index { + font-weight: bold; + font-size: 40rpx; + color: #000000; +} +.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: #078565; + 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; } \ No newline at end of file diff --git a/pages/info/museumInfo/index.wxml b/pages/info/museumInfo/index.wxml index 0094ca3..b021181 100644 --- a/pages/info/museumInfo/index.wxml +++ b/pages/info/museumInfo/index.wxml @@ -38,7 +38,7 @@ - 预订须知 + 参观须知 场馆介绍 diff --git a/pages/list/activitynew/index.wxml b/pages/list/activitynew/index.wxml index 748360a..77950e4 100644 --- a/pages/list/activitynew/index.wxml +++ b/pages/list/activitynew/index.wxml @@ -4,7 +4,7 @@ - + diff --git a/pages/list/activitynew/index.wxss b/pages/list/activitynew/index.wxss index 3a6de75..45fe3b4 100644 --- a/pages/list/activitynew/index.wxss +++ b/pages/list/activitynew/index.wxss @@ -1,9 +1,9 @@ /* pages/activity/index.wxss */ page { - background: #F2F2F2; + /* background: #F2F2F2; */ /* 节假日花样 */ - /* background: #FFD6B2; */ + background: #CEEDDB; } .types { /* justify-content: space-between; */ @@ -306,6 +306,7 @@ background: rgba(11, 137, 142, .1); background-color: rgba(204,204,204, .3); margin-bottom: 0; font-size: 26rpx; + z-index: 9; } .my-search-box .iconfont { width: 65rpx; @@ -347,6 +348,9 @@ flex-shrink: 0; display: flex; overflow-x: scroll; padding: 31rpx 30rpx 30rpx; + position: relative; + z-index: 9; + align-items: center; } .types-item { border: 1px solid #999999; @@ -359,21 +363,21 @@ flex-shrink: 0; flex-shrink: 0; } .types-item-active { - padding: 0 25rpx; - height: 57rpx; + padding: 0 79rpx; + /* height: 57rpx; */ /* 节假日花样 */ - /* height: 68rpx; */ - line-height: 57rpx; + height: 91.33rpx; + line-height: 91.33rpx; display: inline-block; - background: #0B898E; + /* background: #0B898E; */ color: #FFFFFF; border-radius: 27rpx; margin-right: 13rpx; flex-shrink: 0; /* 节假日花样 */ - /* background-image: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/calendar-bg.png"); + background-image: url("https://static.ticket.sz-trip.com/uploads/20240606/f4ff3a7f81b4be3508592f656e207497.png"); background-size: 100% 100%; - margin-top: -5rpx; */ + margin-top: -15rpx; text-align: center; } /* 不显示滚动条 */ @@ -381,8 +385,9 @@ flex-shrink: 0; display: none; } .bg-pic { - width: 266.67rpx; - height: 106.67rpx; + width: 203.33rpx; + height: 163.33rpx; position: absolute; right: 0; + z-index: 2; } \ No newline at end of file diff --git a/pages/list/museum/index.wxml b/pages/list/museum/index.wxml index c52327f..3a39036 100644 --- a/pages/list/museum/index.wxml +++ b/pages/list/museum/index.wxml @@ -10,7 +10,7 @@ {{item.title}} 地址:{{item.address}} 电话:{{item.tel}} - 点击预约 + 点击查看 {{item.title}} diff --git a/pages/list/scene/index.js b/pages/list/scene/index.js index a0c865f..0938434 100644 --- a/pages/list/scene/index.js +++ b/pages/list/scene/index.js @@ -13,7 +13,13 @@ Page({ longitude:"", keywords:'', area_id:'', - navList:[], + navList:[ + { + id:4, + name:'全部', + icon:'/uploads/20240604/4ac6b939e112ff183aadb95efbf07761.png' + } + ], navIndex:0, }, @@ -48,8 +54,12 @@ Page({ commonApi._post("scene/get_scene_tags",{ pid:4 }).then(res=>{ + let list = this.data.navList + res.data.forEach(item=> { + list.push(item) + }) this.setData({ - navList:res.data + navList:list }) console.log(this.data.navList); this.getList() diff --git a/pages/order/components/contact/index.js b/pages/order/components/contact/index.js index 9699645..d51a4be 100644 --- a/pages/order/components/contact/index.js +++ b/pages/order/components/contact/index.js @@ -60,7 +60,7 @@ Component({ person:{}, personId:null, r:[], - phone:'',//非实名时需要传的电话 + phone:null,//非实名时需要传的电话 }, lifetimes: { attached: function() { @@ -180,31 +180,12 @@ Component({ * 组件的方法列表 */ methods: { - // getPhoneNumber:function(e) { - // console.log(e); - // const code = e.detail.code - // wx.request({ - // url: `https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${app.globalData.appId}&secret=${app.globalData.secret}`, - // method: 'GET', - // success:res=>{ - // if(res.statusCode!==200) return - // const access_token = res.data.access_token - // wx.request({ - // url: `https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=${access_token}`, - // method: 'POST', - // data: { - // code - // }, - // success:data=>{ - // if(data.statusCode!==200) return - // console.log(data.data.phone_info); - // debugger - // const { phoneNumber } = data.data.phone_info // 这里就是获取到的手机号 - // } - // }) - // } - // }) - // }, + delTel() { + this.setData({ + phone: '' + }) + this.triggerEvent("setLinkman",{phone:this.data.phone}) + }, gotoEdit:function(e){ userApi.user_post("user/getContactInfoById", { id: e.currentTarget.dataset.item.id }).then(res => { console.log(res); @@ -313,6 +294,7 @@ Component({ this.setData({ showAdd:!this.data.showAdd }) + this.getLinkmanList() } }) }, diff --git a/pages/order/components/contact/index.wxml b/pages/order/components/contact/index.wxml index 42a67e3..25e85ae 100644 --- a/pages/order/components/contact/index.wxml +++ b/pages/order/components/contact/index.wxml @@ -1,20 +1,24 @@ - {{isGroup==1?'发起人信息':'出行人信息'}} + + 发起人信息 + 出行人信息 + 需填{{productNum}}位出行人 (*预约发起后前往个人中心-团体预约订单中查看详情) - 添加 - 编辑 + - + - 手机号 + 联系手机 + - + + 出行人{{index+1}} 点击填写1位出行人信息 diff --git a/pages/order/components/contact/index.wxss b/pages/order/components/contact/index.wxss index ea9490c..a17cb17 100644 --- a/pages/order/components/contact/index.wxss +++ b/pages/order/components/contact/index.wxss @@ -225,7 +225,7 @@ .tel-input { display: flex; padding: 40rpx 20.67rpx 38.67rpx 21.33rpx; - border-top: 1rpx solid #ccc; + /* border-top: 1rpx solid #ccc; */ font-weight: 400; font-size: 32rpx; color: #000000; @@ -247,4 +247,16 @@ text-align: center; position: absolute; right: 0; +} + +.cha { + width: 20rpx; + height: 20rpx; +} +.bsm { + display: flex; + justify-content: space-between; + align-items: center; + border-top: 1rpx solid #ccc; + padding-right: 50rpx; } \ No newline at end of file diff --git a/pages/order/orderList/index.wxml b/pages/order/orderList/index.wxml index aa9e7c4..a783dba 100644 --- a/pages/order/orderList/index.wxml +++ b/pages/order/orderList/index.wxml @@ -62,10 +62,10 @@ - + diff --git a/pages/order/scene/index.js b/pages/order/scene/index.js index 38c008c..81be03d 100644 --- a/pages/order/scene/index.js +++ b/pages/order/scene/index.js @@ -133,7 +133,7 @@ Page({ }) }, setLinkman: function (e) { - if (e.detail.phone) { + if (e.detail.phone || e.detail.phone=='') { this.setData({ phone:e.detail.phone }) @@ -297,9 +297,11 @@ Page({ }) return } - linkmanList.map(item => { - linkmanIds.push(item.id) - }) + if (this.data.is_authentication == 1) { + linkmanList.map(item => { + linkmanIds.push(item.id) + }) + } let data = { coupon_id: this.data.coupon ? this.data.coupon.id : null, source: "WECHATXCX", diff --git a/pages/order/scene/index.wxml b/pages/order/scene/index.wxml index cb558a8..ac543a2 100644 --- a/pages/order/scene/index.wxml +++ b/pages/order/scene/index.wxml @@ -38,12 +38,12 @@ - + diff --git a/pages/pbService/index.wxml b/pages/pbService/index.wxml index 78cdec0..7201975 100644 --- a/pages/pbService/index.wxml +++ b/pages/pbService/index.wxml @@ -12,7 +12,7 @@ - 景区舒适度 + 高峰预警 diff --git a/subPackages/index/index.js b/subPackages/index/index.js new file mode 100644 index 0000000..31c027a --- /dev/null +++ b/subPackages/index/index.js @@ -0,0 +1,970 @@ +//index.js +//获取应用实例 +let app = getApp() +import commonApi from "../../utils/https/common" +import userApi from "../../utils/https/user" +import util from "../../utils/util" +Page({ + data: { + 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: "", + list: [], + listMore: true, + isTest: false, + lat: "", + lon: "", + urltopage: {}, + scrollLeft: 0, + videoPrize: false, + prizeInfo: null, + otherPlat: null, + activeBannerIndex: 0, + smBannerIndex: 0, + indexSeason: {}, + // startList: [], // 启动页广告 + startList: { + head_img: '' + }, // 启动页广告 + alertSwipeList: [], //弹窗广告 + showAdv: false, //弹窗开关 + showFullAdv: true, //全屏广告开关 + 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/20240607/3acf736c1dc9c7af08d3363833669896.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/20240607/56ccaab57aaf050bb6feccc3a70983bb.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, + }, + 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] + }) + } + + // 图片 + 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 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() + }, + fail: (err) => { + this.getList() + } + }) + this.setData({ + height: height, + padHeight: systemInfo.statusBarHeight, + right: (systemInfo.screenWidth - rect.right) + rect.width + }) + + 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() + // 获取今天的日期 + let today = new Date(); + this.setData({ + month: (this.data.months[today.getMonth()]).toUpperCase(), + date: today.getDate() + }) + this.getVideoPrize() + this.getXpthList() + }, + getHeight() { + let that = this + wx.getSystemInfo({ + success(res) { + console.log(res) + that.setData({ + viewHeight: res.windowHeight + 'px' + }) + console.log(that.data.viewHeight) + } + }) + }, + 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 + }).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() { + this.setData({ + indexHot: app.globalData.configJson.indexHot, + isTest: app.globalData.configJson.isTest, + otherPlat: app.globalData.configJson.otherPlats, + indexSeason: app.globalData.configJson.indexSeason + }) + this.getFourProduct() + }, + //关闭弹窗广告 + closeAdv: function() { + this.setData({ + showAdv: false + }) + wx.showTabBar({ + animation: true, + }) + }, + //关闭全屏广告 + closeFullAdv: function() { + this.setData({ + showFullAdv: false + }) + 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) + this.setData({ + weather: res.data + }) + }) + }, + 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, + }) + } 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', + 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 => { + + }) + } + }, + // 元旦 新品特惠部分 + 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) { + 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), + }) + }, + gotoMini: function(e) { + let appid = e.currentTarget.dataset.appid, + path = e.currentTarget.dataset.path + wx.navigateToMiniProgram({ + appId: appid, + path: path + }) + }, + garbage: function() { + wx.navigateToMiniProgram({ + appId: 'wx13be821f3b1afed3', + path: 'pages/home/home' + }) + }, + gotoSku: function() { + commonApi.user_post("pbservice/Ztfw/sukangCode").then(res => { + console.log(res) + app.globalData.weburl = res.data.url; + wx.navigateTo({ + url: '/pages/pbService/web/index' + }) + return; + }) + }, + audioGuide: function() { + wx.navigateToMiniProgram({ + appId: 'wx74f380bc721a0379', + path: '/pages/listen/listen?title=君到苏州' + }) + commonApi._post("browse/burying_point", { + drive: "mini", + title: "语音导览", + uuid: app.globalData.uuid + }).then(res => { + + }) + }, + // 热门推荐 去掉经纬度 接口排序方式变更(韩阳) + getList: function() { + if (!this.data.listMore) return; + 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; + util.pagePoint({ + event: 'recommend_click', + param: { + id: item.id, + type: item.type + } + }, 1) + if (item.type == 'travels') { + // 游记做特殊处理 其他都按照原来的来 + wx.navigateTo({ + url: '/pages/info/strategyInfo/index?id=' + item.s_id, + }) + } else { + 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; + let item = e.currentTarget.dataset.item; + this.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(111, item.tdata) + app.globalData.weburl = item.tdata.url; + wx.navigateTo({ + url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.tdata + .url) + }) + } 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; + console.log(2222, item.tdata.url, app.globalData.weburl) + wx.navigateTo({ + url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item + .tdata.url) + }) + } + } + 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; + + }, + //博物馆跳转 直接跳君到苏州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), + }) + }, + 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() { + + + }, + 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.pagePoint({ + event: 'home_view' + }, 1) + // this.data.time!=5?wx.showTabBar():1 + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function() { + + }, + onShareTimeline: function() { + return { + title: '君到苏州(文化旅游总入口)', + query: '', + imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/zwt/logo.png' + } + } +}) \ No newline at end of file diff --git a/subPackages/index/index.json b/subPackages/index/index.json new file mode 100644 index 0000000..7c4437e --- /dev/null +++ b/subPackages/index/index.json @@ -0,0 +1,6 @@ +{ + "usingComponents": { + "common-image":"/pages/component/commonImage/index", + "title":"/pages/component/TitleHeader" + } +} \ No newline at end of file diff --git a/subPackages/index/index.wxml b/subPackages/index/index.wxml new file mode 100644 index 0000000..59e3171 --- /dev/null +++ b/subPackages/index/index.wxml @@ -0,0 +1,683 @@ + + + + + + + + + + {{weather.max_temp}}° + {{weather.weather}} + + + + + + + + 搜索想要的旅游产品或服务 + + + + + + + + + + + + + + + + + + + + + + 活动日历 + + + + + + 场馆预约 + + + + + + + + 非遗专卖 + + + + + + 剧场演出 + + + + + + 文创特产 + + + + + + 景点门票 + + + + + + 酒店住宿 + + + + + + 夜游苏州 + + + + + + 一日游 + + + + + + 研学游 + + + + + + 特惠新品超值商品限时抢购 + + + + + + + + 限时特惠 + 新品推荐 + + + ¥{{saleProduct.price?saleProduct.price/100:0}}起 + + + + + 精品线路带你轻松玩转苏州 + + + + + + + + 四季苏州 + 最是江南 + + + ¥{{roadProduct.price?roadProduct.price/100:0}}起 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 倒计时 + {{djs.h}} + : + {{djs.m}} + : + {{djs.s}} + + + + + + + + + + + + {{item.title}} + + + {{item.price/100}} + + + + + + + + + + + + + + + + + + + + + + + 非遗鉴赏 + + + + + + 数字博物馆 + + + + + + 公共文化资源库 + + + + + + 云上文博会 + + + + + + 云上观展 + + + + + + 精彩回顾 + + + + + + 文旅单位 + + + + + + 书仓 + + + + + + 苏影通 + + + + + + 视觉中心 + + + + + + + 文化场馆查询 + + + + + + + + 投资导引图 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查看全部 + + + + + + + + + + + + 安全服务 + + + + + + 景区舒适度 + + + + + + 行李寄存 + + + + + + 实时路况 + + + + + + + + + + + + + + + + + + + + + + + + {{item.name}} + + + + + + + + + + + + + + {{date}} {{month}} + + + {{item.ext.display_tags[0]}} + {{item.title}} + + + + + + {{item.ext.subtitle}} + + + {{item.title}} + + + + {{item.ext.like_number}} + + + + {{item.ext.view_number}} + + + + + + + + + + + {{item.title}} + + + {{item.ext.price/100}} + + + + + + 查看更多 + 暂无更多推荐 + + + + + + + + + {{prizeInfo.prize_name}} + + + + + + + + + + {{prizeInfo.prize_name}} + + + + + + + + + + 您与奖品擦肩而过期待下次参与 + + + + + + 我知道了 + + + + + + + + + + + + + + + + + + + + + + + + + {{time}}s跳过 + + + + + + + + + + + + + + + + + diff --git a/subPackages/index/index.wxss b/subPackages/index/index.wxss new file mode 100644 index 0000000..1b3ab46 --- /dev/null +++ b/subPackages/index/index.wxss @@ -0,0 +1,1191 @@ +/**index.wxss**/ +/* 元旦修改 */ +page { + /* background: #9DDCF5; */ + padding-bottom: 36.67rpx; + /* background: url("https://static.ticket.sz-trip.com/uploads/20240606/f92942021f97786a25c1cd51de779c7c.png"); */ + background: #9DDCF5 url('https://static.ticket.sz-trip.com/uploads/20240606/f92942021f97786a25c1cd51de779c7c.png'); + background-repeat: repeat-y; + background-size: contain; +} +.swiper,.swiper image { + width: 697rpx; + display: block; + height: 335rpx; + border-radius: 27rpx; +} +.swiper { + margin: 0 auto; +} +.top-box { + display: flex; + padding: 10rpx 0; + align-items: center; + margin: 0 30rpx; + justify-content: flex-start; + position: relative; + z-index: 1; +} +.top-box image { + flex-shrink: 0; + width: 40rpx; + height: 40rpx; + /* 样式改版 */ + /* width: 63rpx; + height: 63rpx; */ + display: block; + margin-left: 18rpx; +} +.search-box { + flex: 1; + width: 100%; + /* height: 64rpx; */ + /* background: rgba(255, 255, 255, 0.6); */ + /* border-radius: 32rpx; */ + /* color: #666; */ + /* height: 70.67rpx; */ + height: 64rpx; + background: rgba(255,255,255,0.7); + border-radius: 32rpx; + /* color: #72674E; */ + color: #333333; + /* background-image: url("https://static.ticket.sz-trip.com//uploads/20240228/10b93c1389ef5dfc02d07c4091af8f2d.png"); + background-size: 100% 100%; */ + display: flex; + align-items: center; + font-size: 25rpx; +} +.search-box .iconfont { + font-size: 30rpx; + margin-left: 20rpx; + margin-right: 10rpx; + /* color: #72674E; */ +} +.top-box .weather-num,.top-box .weather { + flex-shrink: 0; + color: #333; + /* color: #72674E; */ +} +.top-box .weather-num { + font-size: 29rpx; + margin-bottom: 10rpx; + margin-left: 4rpx; +} +.top-box .weather { + font-size: 19rpx; + margin-top: 20rpx; + margin-left: -4rpx; + margin-right: 30rpx; +} +.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; + background: url('https://static.ticket.sz-trip.com/uploads/20240606/80bc185bf83b276b114415d670eaa57f.png'); + background-size: 100% 100%; +} +.top-icon-item { + margin-bottom: 20rpx; + line-height: 37rpx; + font-size: 25rpx; + color: #000; + text-align: center; + flex-shrink: 0; + width: 20%; +} +.top-icon-item:nth-child(5n){ + margin-right: 0; +} +.top-icon-item image { + width: 113rpx; + display: block; + margin: 0 auto; + margin-bottom: 10rpx; +} +.content { + margin: 0 25rpx; +} +.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; +} +.sale-price { + padding: 0 10rpx; + color: #F44747; + font-size: 25rpx; + line-height: 39rpx; + background: #FFFFFF; + border-radius: 5rpx; + margin-top: 15rpx; + display: inline-block; +} +.sale-tip-img { + position: absolute; + width: 200rpx; + height: 165rpx; + left: 0; + top: 0; +} +.small-swiper { + height: 154rpx; +} +.small-swiper image { + display: block; + width: 100%; + height: 154rpx; +} +.small-swiper-box { + margin: 50rpx 0; + width: 100%; + height: 154rpx; + border-radius: 20rpx; + /* border-radius: 77rpx; */ + overflow: hidden; + margin-bottom: 33rpx; + position: relative; +} +.product-tags { + display: flex; + margin-top: 40rpx; + margin-bottom: 50rpx; + overflow-x: auto; +} +.product-tag { + padding: 0 20rpx; + height: 43rpx; + background: #F4F4F4; + border-radius: 21rpx; + font-size: 27rpx; + color: #666; + margin-right: 20rpx; + flex-shrink: 0; +} +.product-tag.active { + background: #0B898E; + color: #fff; +} +.tag-product-list { + display: flex; + flex-wrap: wrap; + justify-content: space-between; +} +.tag-product { + width: 337rpx; + background: #FFFFFF; + box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1); + border-radius: 13rpx; + margin-bottom: 35rpx; +} +.tag-product image { + display: block; + width: 337rpx; + height: 213rpx; + border-radius: 13rpx 13rpx 0px 0px; +} +.tag-product .product-info { + padding: 20rpx; + padding-bottom: 0; +} +.tag-product .tag-product-title { + font-size: 33rpx; + color: #333333; + font-weight: 500; + margin-bottom: 10rpx; +} +.tag-product .tag-product-address { + color: #999; + font-size: 22rpx; + line-height: 40rpx; + padding-bottom: 10rpx; +} +.tag-product-price-box { + display: flex; + height: 70rpx; + align-items: center; + border-top: 1rpx solid #ccc; + justify-content: space-between; +} +.tag-product .tag-product-address .iconfont { + font-size: 26rpx; +} +.price { + color: #D62828; + font-size: 24rpx; +} +.price text:nth-child(2){ + font-weight: 500; + font-size: 33rpx; +} +.price text:nth-child(3){ + font-size: 20rpx; + color: #8D8D8D; + margin-left: 4rpx; +} +.sale-number { + font-size: 24rpx; + color: #666; +} +.sale-number text { + font-size: 21rpx; +} +.more-btn { + line-height: 77rpx; + border: 1rpx solid #0B898E; + border-radius: 39rpx; + text-align: center; + color: #0B898E; + font-size: 31rpx; + font-weight: 500; +} +/* .pic-list { + display: flex; + justify-content: space-between; + margin: 60rpx 0; +} +.pic-list image { + width: 155.33rpx; + height: 200rpx; + display: block; +} */ +/* 元旦修改 以上两个样式为注释掉的 下面的.pic-list是新改的 */ +.pic-list { + width: 100%; + display: flex; + margin-right: 26rpx; + display: flex; + justify-content: space-between; + flex-wrap: wrap; +} +.title-more { + font-size: 24rpx; + /* color: #0B898E; */ + /* 元旦修改 */ + color: #54504D; + z-index: 9; + width: 173rpx; + height: 40rpx; + line-height: 40rpx; + background: rgba(255, 255, 255, 0.5); + border-radius: 20rpx; + text-align: center; +} +.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); + border-radius: 27rpx; + padding-bottom: 1rpx; + margin-bottom: 40rpx; + background: url('https://static.ticket.sz-trip.com/uploads/20240606/88feacc675386ac7c8144633ccbd6f76.png'); + background-size: 100% 100%; +} +.pbservice { + /* width: calc(175rpx * 6); */ + /* 元旦修改 */ + width: calc(190rpx * 8); + display: flex; + margin-top: 20rpx; + flex-wrap: wrap; + /* margin-bottom: 60rpx; */ + /* 元旦修改 注释margin-bottom */ +} +.pbservice-item { + /* 元旦修改 截止到注释的width*/ + width: 120rpx; + margin-bottom: 33.33rpx; + margin-right: 62.33rpx; + /* width: 175rpx; */ + text-align: center; + font-size: 25rpx; + /* color: #333; */ + /* 春节调整颜色改版 */ + color: #54504D; + line-height: 24rpx; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; +} +.text { + width: 200rpx; +} +.pbservice-item image { + /* width: 60rpx; + margin-bottom: 20rpx; + margin-top: 50rpx; */ + /* 元旦修改 以上都是之前的*/ + width: 106rpx; + margin-bottom: 10rpx; +} +.six-box { + margin-top: 43rpx; + display: flex; + margin-bottom: 50rpx; + flex-wrap: wrap; + justify-content: space-between; +} +.six-box image { + width: 128rpx; + height: 110rpx; + margin-bottom: 20rpx; +} +.hot-list { + display: flex; + margin-top: 47rpx; + justify-content: space-between; +} +.hot-list-item { + width: 337rpx; +} +.hot-item { + background: white; + box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1); + border-radius: 15rpx; + margin-bottom: 35rpx; +} +.hot-item image:nth-child(1) { + display: block; + width: 100%; + border-radius: 15rpx 15rpx 0 0; +} +.hot-item .hot-info { + padding: 20rpx 25rpx; +} +.hot-item .hot-title { + font-size: 32rpx; + color: #333; + font-weight: 500; +} +.hot-info .tags { + display: flex; + align-items: center; + width: 286rpx; + margin: 15rpx 0; +} +.hot-info .tag { + margin-right: 16rpx; + line-height: 32rpx; + border: 1rpx solid #0B898E; + border-radius: 5rpx; + box-sizing: border-box; + padding: 0 10rpx; + color: #0B898E; + font-size: 20rpx; +} +.hot-info .tag:last-child { + margin-right: 0; +} +.hot-price { + color: #D62828; + font-size: 24rpx; + margin-top:28rpx; + +} +.hot-price text:nth-child(2){ + font-size: 33rpx; + font-weight: 500; +} +.hot-price text:nth-child(3){ + font-size: 20rpx; + color: #8D8D8D; + margin-left: 4rpx; +} +.hot-location { + position: absolute; + color: #fff; + line-height: 32rpx; + font-size: 19rpx; + padding: 20rpx; + bottom: 0; + left: 0; + right: 0; +} +.hot-location .iconfont { + font-size: 22rpx; + margin-right: 10rpx; +} +.hot-info .tags .icon-box { + flex-shrink: 0; + width: 50%; + text-align: left; + color: #666666; + font-size: 21rpx; + display: flex; + align-items: center; +} +.hot-info .tags .icon-box .iconfont { + font-size: 30rpx; + margin-right: 5rpx; +} +.today-hot { + position: relative; + border-radius: 15rpx; + font-size: 0; + overflow: hidden; +} +.today-hot .today-main-img { + border-radius: 15rpx; + height: 615rpx; +} +.today-hot-box { + position: absolute; + left: 10rpx; + right: 10rpx; + bottom: 10rpx; +} +.today-hot-tag { + line-height: 34rpx; + max-width: 265rpx; + background: #FF2245; + border-radius: 15rpx 15rpx 0px 0px; + padding: 0 15rpx; + color: #fff; + font-size: 20rpx; + display: inline-block; + margin: 0 40rpx; +} +.today-hot-title { + background: rgba(255, 255, 255, 0.8); + padding: 20rpx 28rpx; + border-radius: 13rpx; + font-size: 33rpx; + color: #000; + font-weight: 500; + +} +.today-hot .today-tip-img { + position: absolute; + width: 154rpx; + left: 11rpx; + top: 31rpx; +} +.today-date { + position: absolute; + top: 65rpx; + left: 11rpx; + width: 154rpx; + text-align: center; + font-size: 30rpx; + color: #fff; + 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; + font-size: 27rpx; + font-family: PingFang SC; + font-weight: 500; +} +.scroll-line { + /* height: 6rpx; + border-radius: 3rpx; + background: #ccc; + overflow: hidden; + margin: 30rpx auto; */ + /* 元旦修改 以上为注释部分 下面为新内容*/ + width: 73rpx !important; + height: 7rpx; + /* background: #DDCEAC; */ + background: #fff; + border-radius: 3rpx; + margin: 33.33rpx auto; +} +.scroll-line-bg { + /* width: 300rpx; + height: 6rpx; + border-radius: 3rpx; + background: #0B898E; */ + /* 元旦修改 以上为注释部分 下面为新内容*/ + height: 7rpx; + background: #56A5EA; + border-radius: 3rpx; +} +/* 元旦修改 新增样式 */ +.scroll-line-bg2 { + margin-left: 37.33rpx; + background: #56A5EA; + height: 7rpx; + border-radius: 3rpx; +} +.nomore-tip-btn { + position: absolute; + left: 0; + right: 0; + height: 78rpx; + bottom: 0; +} +.prize-tip-text { + width: 267rpx; + display: block; + top: 39rpx; + left: 134rpx; + position: absolute; +} +.prize-name { + position: absolute; + text-align: center; + left: 132rpx; + right: 132rpx; + top: 169rpx; + font-size: 31rpx; + color: #333333; +} +.prize-img { + width: 333rpx; + height: 240rpx; + border-radius: 13rpx; + overflow: hidden; + position: absolute; + left: 100rpx; + display: flex; + align-items: center; + justify-content: center; + top: 269rpx; +} +.prize-img image { + display: block; + width: 333rpx; + height: 240rpx; +} +.btn-box { + position: absolute; + width: 400rpx; + height: 87rpx; + left: 67rpx; + bottom: 78rpx; + text-align: center; + line-height: 87rpx; +} +.btn-box image { + display: block; + width: 100%; +} +.btn-box navigator,.btn-box view { + color: #fff; + font-size: 35rpx; + font-weight: bold; + position: absolute; + left: 0; + top: 0; + z-index: 1; + right: 0; +} +.prize-coupon { + width: 293rpx; + height: 227rpx; + position: absolute; + top: 274rpx; + left: 120rpx; + color: #fff; + font-size: 24rpx; + text-align: center; +} +.prize-coupon image { + display: block; + width: 100%; +} +.prize-coupon-money { + position: absolute; + left: 0; + right: 0; + font-size: 80rpx; + font-weight: bold; + line-height: 110rpx; + top: 12rpx; +} +.prize-coupon-money::before{ + content: "¥"; + font-size: 32rpx; +} +.prize-coupon-tip { + position: absolute; + left: 0; + right: 0; + top: 120rpx; +} +.other-plats { + display: flex; + font-size: 25rpx; + text-align: center; + margin-bottom: 30rpx; + 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; + background: url('https://static.ticket.sz-trip.com/uploads/20240606/e1c3f60baf65787d593c6a7c79f881c7.png'); + background-size: 100% 100%; +} +.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.active { + opacity: 1; +} +.sm-dot-list { + left: 0; + justify-content: center; + bottom: 11rpx; +} +.sm-dot-list .dot { + width: 7rpx; + height: 7rpx; +} +.sm-dot-list .dot:nth-child(1){ + margin-left: 0; +} +.sm-dot-list .dot.active { + width: 20rpx; + height: 7rpx; + border-radius: 3rpx; +} +/* 弹窗广告 */ +.zzc{ + background: gray; + position: fixed; + left: 0px; + top: 0px; + width:100%; + height: 100%; + z-index: 998; + filter: alpha(opacity=80); + opacity: 0.8 !important; +} +.alertavd{ + width: 500rpx; + height: 700rpx; + position: fixed; + top: 50%; + left: 50%; + transform: translate(-250rpx,-300rpx); + z-index: 999; + +} +.alertsp{ + width: 100%; + height: 100%; + z-index: 1000; +} +.fullavd{ + position: fixed; + left: 0px; + top: 0px; + width:100%; + height: 100%; + z-index: 1001; + background-color: #fff; + opacity: 1; + transition: all 1s; + +} +.fullsp{ + width: 100%; + height: 100%; +} +.time{ + width: 150rpx; + height: 60rpx; + background-color: #fff; + color: #000; + position: absolute; + left: 20rpx; + top: 120rpx; + border-radius:6rpx ; + text-align: center; + line-height: 60rpx; + 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 { + width: 43rpx; + height: 43rpx; + line-height: 43rpx; + background: #FFEF47; + border-radius: 13rpx; + font-size: 25rpx; + font-family: DIN; + font-weight: 500; + color: #000; + text-align: center; +} +.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: 700rpx; + height: 373rpx; + /* background: #FFFED6; */ + box-shadow: 0rpx 0rpx 3rpx 0rpx rgba(103,103,103,0.2); + border-radius: 27rpx; + padding: 25rpx; + box-sizing: border-box; + /* left: 0; + bottom: 15.33rpx; + /* width: 710rpx; */ + display: flex; + justify-content: space-between; + background-image: url('https://static.ticket.sz-trip.com/uploads/20240606/88feacc675386ac7c8144633ccbd6f76.png'); + background-size: 100% 100%; +} +/* 元旦修改新增样式 */ +.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 { + display: flex; + 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: 158.67rpx !important; + height: 218.67rpx !important; + margin-bottom: 26.67rpx; +} + +.ggfw-list { + justify-content: space-around !important; +} +.ggfw { + width: auto; +} +.ggfw image{ + margin-bottom: 16.67rpx; + width: 70rpx !important; + height: 70rpx !important; +} + +.six-box-new { + width: 697rpx; + /* background: linear-gradient(-90deg, #FF9B6A, #D02E25); */ + border-radius: 20rpx; + display: flex; + justify-content: space-between; + align-items: center; + padding-left: 13.33rpx; + overflow: scroll; + margin-bottom: 53.33rpx; + z-index: 1; + position: relative; +} + +.six-box-new image { + width: 440rpx; + height: 213.33rpx !important; + /* background: #FFE7C0; */ + border-radius: 20rpx; + flex-shrink: 0; + margin-right: 13.33rpx; +} +/* 春节金刚区字体颜色样式更换 */ +.top-icon-text { + color: #54504D; +} + +.rmtj-right { + /* width: 313.33rpx; + height: 154rpx; */ + width: 240rpx; + height: 66rpx; + position: absolute; + right: -22rpx; + right: 0; + z-index: 2; + /* top: -20rpx; */ +} + +.Qtop{ + width: 100%; +} +.Qtop img{ + width: 100%; +} +.miao{ + position: fixed; + top: 100rpx; + background: antiquewhite; + margin: 18rpx; + width: 129rpx; + height: 63rpx; + background: rgba(17, 17, 17, 0.1); + text-align: center; + border-radius: 13rpx; + line-height: 63rpx; +} +.topBox { + /* display: flex; + padding-top: 120rpx; + padding-left: 20rpx; */ +} +.jumpBox { + color: #000; + background: rgba(255,255,255, 0.911); + display: flex; + align-items: center; + border-radius: 10rpx; + padding: 10rpx 20rpx; + position: fixed; + top: 150rpx; + left: 20rpx; +} +.time{ + padding-right: 10rpx; +} + +.muteImg { + width: 62rpx; + height: 62rpx; + position: absolute; + top: 194rpx; + right: 38rpx; +} +.logoImg { + width: 464.67rpx; + height: 342.67rpx; + position: absolute; + top: 406rpx; + left: 142rpx; +} +.btnImg { + width: 296.67rpx; + height: 79.33rpx; + position: absolute; + left: 226rpx; + bottom: 208rpx; +} +.playImg { + position: absolute; + width: 31.33rpx; + height: 38rpx; + left: 56.67rpx; + bottom: 64rpx; +} +.jqssd { + background: url("https://static.ticket.sz-trip.com/uploads/20240606/20c06c5bf8d5e498667ebd954a1d95f8.png"); + background-size: 100% 100%; + width: 365.33rpx; + height: 166rpx; + flex-shrink: 0; +} +.sslk { + background: url("https://static.ticket.sz-trip.com/uploads/20240606/eec4af8edf598dc7c440cff8a5fdbe98.png"); + background-size: 100% 100%; + width: 365.33rpx; + height: 166rpx; + flex-shrink: 0; + margin-left: -20rpx; +} \ No newline at end of file diff --git a/subPackages/indexs/index.js b/subPackages/indexs/index.js new file mode 100644 index 0000000..409e869 --- /dev/null +++ b/subPackages/indexs/index.js @@ -0,0 +1,1198 @@ +//index.js +//获取应用实例 +let app = getApp() +import commonApi from "../../utils/https/common" +import userApi from "../../utils/https/user" +import util from "../../utils/util" +Page({ + data: { + 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: "", + list: [], + listMore: true, + isTest: false, + lat: "", + lon: "", + urltopage: {}, + scrollLeft: 0, + videoPrize: false, + prizeInfo: null, + otherPlat: null, + activeBannerIndex: 0, + smBannerIndex: 0, + indexSeason: {}, + // startList: [], // 启动页广告 + startList: { + head_img: '' + }, // 启动页广告 + alertSwipeList: [], //弹窗广告 + showAdv: false, //弹窗开关 + showFullAdv: true, //全屏广告开关 + 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:[ + { + bg: 'linear-gradient(-8deg, #B9E1F0, #F4F9FF)', + icon:'https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/feiwan.png', //非玩不可 + path:'/pages/list/scene/index', + url:'', + }, + { + bg: 'linear-gradient(-8deg, #F3FFC4, #F9FFE3)', + icon:'https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/feimai.png', //非买不可 + path:'/pages/list/techan/index', + url:'', + }, + { + bg: 'linear-gradient(-8deg, #A0F292, #E0F7DC)', + icon:'https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/feiyou.png', //非游不可 + url:'https://m.cloud.sz-trip.com/OneDayTravelNew', + path:'', + }, + { + bg: 'linear-gradient(-8deg, #E3D9FF, #F6F2FF)', + icon:'https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/feikan.png', //非看不可 + url:'', + path:'/pages/list/theatre/index', + }, + ], + list1:[], //非玩-景点 + list2:[], //非买-文创 + list3:[], //非游-一日游 + list4:[], //非看-剧场演出 + }, + 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] + }) + } + + // 图片 + 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 + }) + + 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) { + console.log(e); + let url = e.currentTarget.dataset.url + wx.navigateTo({ + url: url + }) + }, + 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=>{ + 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'; + } + } + }) + this.setData({ + list1:res.data.list + }) + }) + // 非买不可--文创 + commonApi._post('product/get_product_by_tag',{ + tag_id: 326, + offset: 0, + limit: 6, + }).then(res=>{ + this.setData({ + list2:res.data.list + }) + }) + // 非游不可--线路一日游 + commonApi._post('product/get_product_by_tag',{ + type_id: 23, + tag_id:17, + offset: 0, + limit: 6, + sort: 'weight' + }).then(res=>{ + this.setData({ + list3:res.data.list + }) + }) + // 非看不可--剧场演出 + commonApi._post("product/get_product_by_tag",{ + tag_id:"6", + offset:0, + limit:6, + sort:'', + order:'', + lat:this.data.lat, + lon:this.data.lon, + title:'' + }).then(res=>{ + this.setData({ + list4:res.data.list + }) + }) + }, + 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 + }) + }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 => { + 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, + }) + }, + // 获取导航栏项目标题高度 + getHeight() { + let that = this + wx.getSystemInfo({ + success(res) { + console.log(res) + that.setData({ + viewHeight: res.windowHeight + 'px' + }) + console.log(that.data.viewHeight) + } + }) + }, + // 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 + }).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() { + this.setData({ + indexHot: app.globalData.configJson.indexHot, + isTest: app.globalData.configJson.isTest, + otherPlat: app.globalData.configJson.otherPlats, + indexSeason: app.globalData.configJson.indexSeason + }) + this.getFourProduct() + }, + //关闭弹窗广告 + closeAdv: function() { + this.setData({ + showAdv: false + }) + wx.showTabBar({ + animation: true, + }) + }, + //关闭全屏广告 + closeFullAdv: function() { + this.setData({ + showFullAdv: false + }) + 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) + this.setData({ + weather: res.data + }) + }) + }, + 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, + }) + } 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', + 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 => { + + }) + } + }, + // 元旦 新品特惠部分 + 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) { + 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), + }) + }, + gotoMini: function(e) { + let appid = e.currentTarget.dataset.appid, + path = e.currentTarget.dataset.path + wx.navigateToMiniProgram({ + appId: appid, + path: path + }) + }, + garbage: function() { + wx.navigateToMiniProgram({ + appId: 'wx13be821f3b1afed3', + path: 'pages/home/home' + }) + }, + gotoSku: function() { + commonApi.user_post("pbservice/Ztfw/sukangCode").then(res => { + console.log(res) + app.globalData.weburl = res.data.url; + wx.navigateTo({ + url: '/pages/pbService/web/index' + }) + return; + }) + }, + audioGuide: function() { + wx.navigateToMiniProgram({ + appId: 'wx74f380bc721a0379', + path: '/pages/listen/listen?title=君到苏州' + }) + commonApi._post("browse/burying_point", { + drive: "mini", + title: "语音导览", + uuid: app.globalData.uuid + }).then(res => { + + }) + }, + // 热门推荐 去掉经纬度 接口排序方式变更(韩阳) + // getList: function() { + // if (!this.data.listMore) return; + // 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; + util.pagePoint({ + event: 'recommend_click', + param: { + id: item.id, + type: item.type + } + }, 1) + if (item.type == 'travels') { + // 游记做特殊处理 其他都按照原来的来 + wx.navigateTo({ + url: '/pages/info/strategyInfo/index?id=' + item.s_id, + }) + } else { + 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; + let item = e.currentTarget.dataset.item; + this.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(111, item.tdata) + app.globalData.weburl = item.tdata.url; + wx.navigateTo({ + url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.tdata + .url) + }) + } 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; + console.log(2222, item.tdata.url, app.globalData.weburl) + wx.navigateTo({ + url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item + .tdata.url) + }) + } + } + 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; + + }, + //博物馆跳转 直接跳君到苏州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), + }) + }, + // 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() { + + + }, + // 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.pagePoint({ + event: 'home_view' + }, 1) + // this.data.time!=5?wx.showTabBar():1 + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function() { + + }, + onShareTimeline: function() { + return { + title: '君到苏州(文化旅游总入口)', + query: '', + imageUrl: 'https://static.ticket.sz-trip.com/xcxImages/zwt/logo.png' + } + } +}) \ No newline at end of file diff --git a/subPackages/indexs/index.json b/subPackages/indexs/index.json new file mode 100644 index 0000000..7c4437e --- /dev/null +++ b/subPackages/indexs/index.json @@ -0,0 +1,6 @@ +{ + "usingComponents": { + "common-image":"/pages/component/commonImage/index", + "title":"/pages/component/TitleHeader" + } +} \ No newline at end of file diff --git a/subPackages/indexs/index.wxml b/subPackages/indexs/index.wxml new file mode 100644 index 0000000..bd08211 --- /dev/null +++ b/subPackages/indexs/index.wxml @@ -0,0 +1,306 @@ + + + + + + + {{weather.max_temp}}° + {{weather.weather}} + + + + + + + 搜索想要的旅游产品或服务 + + + + + + + + + + + + + + + + + + + 更多 > + + + + {{item.title}} + + + + + + + + + {{item.name}} + {{item.begin_date}}-{{item.end_date}} + + + + + + + + + + + + {{item.title}} + + 去购票 > + + + + + + + + + + + + + + + + + + + + 景点门票 + + + + 夜游苏州 + + + + 文创特产 + + + + 场馆预约 + + + + 剧场演出 + + + + 一日游 + + + + 一卡游 + + + + 非遗专卖 + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{item}} + + + + + + + + + + 安全服务 + + + + 高峰预警 + + + + 行李寄存 + + + + 实时路况 + + + + 查看更多 > + + + + + + + + + + + + + + + + + + + + + 更多 > + + + + {{index+1}} + + + + + {{item.title}} + + + {{item.price/100}} + {{item.distance}} + + + + + + + + {{index+1}} + + + + + {{item.title}} + + + {{item.price/100}} + {{(item.distance/1000)}}km + + + + + + + + {{index+1}} + + + + + {{item.title}} + + + {{item.price/100}} + {{(item.distance/1000)}}km + + + + + + + + {{index+1}} + + + + + {{item.title}} + + + {{item.price/100}} + {{(item.distance/1000)}}km + + + + + + + + + + + + + + + {{time}}s跳过 + + + + + + + + + + + + + + + + + diff --git a/subPackages/indexs/index.wxss b/subPackages/indexs/index.wxss new file mode 100644 index 0000000..330a3d1 --- /dev/null +++ b/subPackages/indexs/index.wxss @@ -0,0 +1,1427 @@ +/* pages/indexs/index.wxss */ +/* 元旦修改 */ +page { + background: #f5f2ed; + padding-bottom: 36.67rpx; + background: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/bg.png"); + background-size: 100% 100%; + background-repeat: round; +} +.swiper,.swiper image { + width: 697rpx; + display: block; + height: 335rpx; + border-radius: 27rpx; +} +.swiper { + margin: 0 auto; +} +.top-box { + display: flex; + padding: 10rpx 0; + align-items: center; + margin: 0 30rpx; + justify-content: flex-start; + position: relative; + z-index: 1; +} +.top-box image { + flex-shrink: 0; + width: 40rpx; + height: 40rpx; + /* 样式改版 */ + /* width: 63rpx; + height: 63rpx; */ + display: block; + margin-left: 18rpx; +} +.search-box { + flex: 1; + width: 100%; + height: 64rpx; + background: rgba(255,255,255,0.7); + border-radius: 32rpx; + color: #000; + display: flex; + align-items: center; + font-size: 25rpx; +} +.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; + /* color: #72674E; */ +} +.top-box .weather-num { + font-size: 29rpx; + margin-bottom: 10rpx; + margin-left: 4rpx; +} +.top-box .weather { + font-size: 19rpx; + margin-top: 20rpx; + margin-left: -4rpx; + margin-right: 30rpx; +} +.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; +} +.top-icon-item { + margin-bottom: 20rpx; + line-height: 37rpx; + font-size: 25rpx; + color: #000; + text-align: center; + flex-shrink: 0; + width: 20%; +} +.top-icon-item:nth-child(5n){ + margin-right: 0; +} +.top-icon-item image { + width: 113rpx; + display: block; + margin: 0 auto; + margin-bottom: 10rpx; +} +.content { + /* margin: 0 25rpx; */ +} +.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; +} +.sale-price { + padding: 0 10rpx; + color: #F44747; + font-size: 25rpx; + line-height: 39rpx; + background: #FFFFFF; + border-radius: 5rpx; + margin-top: 15rpx; + display: inline-block; +} +.sale-tip-img { + position: absolute; + width: 200rpx; + height: 165rpx; + left: 0; + top: 0; +} +.small-swiper { + height: 154rpx; +} +.small-swiper image { + 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; +} +.tag-product-price-box { + display: flex; + height: 70rpx; + align-items: center; + border-top: 1rpx solid #ccc; + justify-content: space-between; +} +.tag-product .tag-product-address .iconfont { + font-size: 26rpx; +} +.price { + color: #D62828; + font-size: 24rpx; +} +.price text:nth-child(2){ + font-weight: 500; + font-size: 33rpx; +} +.price text:nth-child(3){ + font-size: 20rpx; + color: #8D8D8D; + margin-left: 4rpx; +} +.sale-number { + font-size: 24rpx; + color: #666; +} +.sale-number text { + font-size: 21rpx; +} +.more-btn { + line-height: 77rpx; + border: 1rpx solid #0B898E; + border-radius: 39rpx; + text-align: center; + color: #0B898E; + font-size: 31rpx; + font-weight: 500; +} +/* .pic-list { + display: flex; + justify-content: space-between; + margin: 60rpx 0; +} +.pic-list image { + width: 155.33rpx; + height: 200rpx; + display: block; +} */ +/* 元旦修改 以上两个样式为注释掉的 下面的.pic-list是新改的 */ +.pic-list { + width: 100%; + display: flex; + margin-right: 26rpx; + display: flex; + justify-content: space-between; + flex-wrap: wrap; +} +.title-more { + font-size: 24rpx; + /* color: #0B898E; */ + /* 元旦修改 */ + color: #54504D; + z-index: 9; + width: 173rpx; + height: 40rpx; + line-height: 40rpx; + background: rgba(255, 255, 255, 0.5); + border-radius: 20rpx; + text-align: center; +} +.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); */ + border-radius: 27rpx; + padding-bottom: 1rpx; + /* margin-bottom: 40rpx; */ +} +.pbservice { + width: calc(160rpx * 8); + display: flex; + margin-top: 5rpx; + /* flex-wrap: wrap; */ + flex-wrap: nowrap; + /* padding-left: 12rpx; */ + /* overflow-x: scroll; */ +} +.pbservice-item { + width: 120rpx; + margin-bottom: 25rpx; + margin-right: 32.33rpx; + text-align: center; + font-size: 27rpx; + color: #000; + line-height: 24rpx; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; +} +.text { + width: 200rpx; +} +.pbservice-item image { + /* width: 60rpx; + margin-bottom: 20rpx; + margin-top: 50rpx; */ + /* 元旦修改 以上都是之前的*/ + width: 80rpx; + margin-bottom: 10rpx; +} +.six-box { + margin-top: 43rpx; + display: flex; + margin-bottom: 50rpx; + flex-wrap: wrap; + justify-content: space-between; +} +.six-box image { + width: 128rpx; + height: 110rpx; + margin-bottom: 20rpx; +} +.hot-list { + display: flex; + margin-top: 47rpx; + justify-content: space-between; +} +.hot-list-item { + width: 337rpx; +} +.hot-item { + background: white; + box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1); + border-radius: 15rpx; + margin-bottom: 35rpx; +} +.hot-item image:nth-child(1) { + display: block; + width: 100%; + border-radius: 15rpx 15rpx 0 0; +} +.hot-item .hot-info { + padding: 20rpx 25rpx; +} +.hot-item .hot-title { + font-size: 32rpx; + color: #333; + font-weight: 500; +} +.hot-info .tags { + display: flex; + align-items: center; + width: 286rpx; + margin: 15rpx 0; +} +.hot-info .tag { + margin-right: 16rpx; + line-height: 32rpx; + border: 1rpx solid #0B898E; + border-radius: 5rpx; + box-sizing: border-box; + padding: 0 10rpx; + color: #0B898E; + font-size: 20rpx; +} +.hot-info .tag:last-child { + margin-right: 0; +} +.hot-price { + color: #D62828; + font-size: 24rpx; + margin-top:28rpx; + +} +.hot-price text:nth-child(2){ + font-size: 33rpx; + font-weight: 500; +} +.hot-price text:nth-child(3){ + font-size: 20rpx; + color: #8D8D8D; + margin-left: 4rpx; +} +.hot-location { + position: absolute; + color: #fff; + line-height: 32rpx; + font-size: 19rpx; + padding: 20rpx; + bottom: 0; + left: 0; + right: 0; +} +.hot-location .iconfont { + font-size: 22rpx; + margin-right: 10rpx; +} +.hot-info .tags .icon-box { + flex-shrink: 0; + width: 50%; + text-align: left; + color: #666666; + font-size: 21rpx; + display: flex; + align-items: center; +} +.hot-info .tags .icon-box .iconfont { + font-size: 30rpx; + margin-right: 5rpx; +} +.today-hot { + position: relative; + border-radius: 15rpx; + font-size: 0; + overflow: hidden; +} +.today-hot .today-main-img { + border-radius: 15rpx; + height: 615rpx; +} +.today-hot-box { + position: absolute; + left: 10rpx; + right: 10rpx; + bottom: 10rpx; +} +.today-hot-tag { + line-height: 34rpx; + max-width: 265rpx; + background: #FF2245; + border-radius: 15rpx 15rpx 0px 0px; + padding: 0 15rpx; + color: #fff; + font-size: 20rpx; + display: inline-block; + margin: 0 40rpx; +} +.today-hot-title { + background: rgba(255, 255, 255, 0.8); + padding: 20rpx 28rpx; + border-radius: 13rpx; + font-size: 33rpx; + color: #000; + font-weight: 500; + +} +.today-hot .today-tip-img { + position: absolute; + width: 154rpx; + left: 11rpx; + top: 31rpx; +} +.today-date { + position: absolute; + top: 65rpx; + left: 11rpx; + width: 154rpx; + text-align: center; + font-size: 30rpx; + color: #fff; + 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; + font-size: 27rpx; + font-family: PingFang SC; + font-weight: 500; +} +.scroll-line { + /* height: 6rpx; + border-radius: 3rpx; + background: #ccc; + overflow: hidden; + margin: 30rpx auto; */ + /* 元旦修改 以上为注释部分 下面为新内容*/ + width: 48rpx !important; + height: 8rpx; + /* background: #DDCEAC; */ + background: #fff; + border-radius: 4rpx; + margin: 0 auto 25rpx; +} +.scroll-line-bg { + height: 8rpx; + background: #078565; + border-radius: 4rpx; +} +/* 元旦修改 新增样式 */ +.scroll-line-bg2 { + margin-left: 24rpx; + background: #078565; + height: 8rpx; + border-radius: 4rpx; +} +.nomore-tip-btn { + position: absolute; + left: 0; + right: 0; + height: 78rpx; + bottom: 0; +} +.prize-tip-text { + width: 267rpx; + display: block; + top: 39rpx; + left: 134rpx; + position: absolute; +} +.prize-name { + position: absolute; + text-align: center; + left: 132rpx; + right: 132rpx; + top: 169rpx; + font-size: 31rpx; + color: #333333; +} +.prize-img { + width: 333rpx; + height: 240rpx; + border-radius: 13rpx; + overflow: hidden; + position: absolute; + left: 100rpx; + display: flex; + align-items: center; + justify-content: center; + top: 269rpx; +} +.prize-img image { + display: block; + width: 333rpx; + height: 240rpx; +} +.btn-box { + position: absolute; + width: 400rpx; + height: 87rpx; + left: 67rpx; + bottom: 78rpx; + text-align: center; + line-height: 87rpx; +} +.btn-box image { + display: block; + width: 100%; +} +.btn-box navigator,.btn-box view { + color: #fff; + font-size: 35rpx; + font-weight: bold; + position: absolute; + left: 0; + top: 0; + z-index: 1; + right: 0; +} +.prize-coupon { + width: 293rpx; + height: 227rpx; + position: absolute; + top: 274rpx; + left: 120rpx; + color: #fff; + font-size: 24rpx; + text-align: center; +} +.prize-coupon image { + display: block; + width: 100%; +} +.prize-coupon-money { + position: absolute; + left: 0; + right: 0; + font-size: 80rpx; + font-weight: bold; + line-height: 110rpx; + top: 12rpx; +} +.prize-coupon-money::before{ + content: "¥"; + font-size: 32rpx; +} +.prize-coupon-tip { + position: absolute; + left: 0; + right: 0; + top: 120rpx; +} +.other-plats { + display: flex; + font-size: 25rpx; + text-align: center; + margin-bottom: 30rpx; + 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.active { + opacity: 1; +} +.sm-dot-list { + left: 0; + justify-content: center; + bottom: 11rpx; +} +.sm-dot-list .dot { + width: 7rpx; + height: 7rpx; +} +.sm-dot-list .dot:nth-child(1){ + margin-left: 0; +} +.sm-dot-list .dot.active { + width: 20rpx; + height: 7rpx; + border-radius: 3rpx; +} +/* 弹窗广告 */ +.zzc{ + background: gray; + position: fixed; + left: 0px; + top: 0px; + width:100%; + height: 100%; + z-index: 998; + filter: alpha(opacity=80); + opacity: 0.8 !important; +} +.alertavd{ + width: 500rpx; + height: 700rpx; + position: fixed; + top: 50%; + left: 50%; + transform: translate(-250rpx,-300rpx); + z-index: 999; + +} +.alertsp{ + width: 100%; + height: 100%; + z-index: 1000; +} +.fullavd{ + position: fixed; + left: 0px; + top: 0px; + width:100%; + height: 100%; + z-index: 1001; + background-color: #fff; + opacity: 1; + transition: all 1s; + +} +.fullsp{ + width: 100%; + height: 100%; +} +.time{ + width: 150rpx; + height: 60rpx; + background-color: #fff; + color: #000; + position: absolute; + left: 20rpx; + top: 120rpx; + border-radius:6rpx ; + text-align: center; + line-height: 60rpx; + 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 { + display: flex; + 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: 150rpx !important; + height: 218.67rpx !important; + margin-bottom: 26.67rpx; +} + +.ggfw-list { + justify-content: space-around !important; +} +.ggfw { + width: auto; +} +.ggfw image{ + margin-bottom: 16.67rpx; + width: 113.33rpx !important; + height: 113.33rpx !important; +} + +.six-box-new { + width: 697rpx; + /* background: linear-gradient(-90deg, #FF9B6A, #D02E25); */ + border-radius: 20rpx; + display: flex; + justify-content: space-between; + align-items: center; + padding-left: 13.33rpx; + overflow: scroll; + margin-bottom: 53.33rpx; + z-index: 1; + position: relative; +} + +.six-box-new image { + width: 440rpx; + height: 213.33rpx !important; + /* background: #FFE7C0; */ + border-radius: 20rpx; + flex-shrink: 0; + margin-right: 13.33rpx; +} +/* 春节金刚区字体颜色样式更换 */ +.top-icon-text { + color: #54504D; +} + +.rmtj-right { + /* width: 313.33rpx; + height: 154rpx; */ + width: 240rpx; + height: 66rpx; + position: absolute; + right: -22rpx; + right: 0; + z-index: 2; + /* top: -20rpx; */ +} + +.Qtop{ + width: 100%; +} +.Qtop img{ + width: 100%; +} +.miao{ + position: fixed; + top: 100rpx; + background: antiquewhite; + margin: 18rpx; + width: 129rpx; + height: 63rpx; + background: rgba(17, 17, 17, 0.1); + text-align: center; + border-radius: 13rpx; + line-height: 63rpx; +} +.topBox { + /* display: flex; + padding-top: 120rpx; + padding-left: 20rpx; */ +} +.jumpBox { + color: #000; + background: rgba(255,255,255, 0.911); + display: flex; + align-items: center; + border-radius: 10rpx; + padding: 10rpx 20rpx; + position: fixed; + top: 150rpx; + left: 20rpx; +} +.time{ + padding-right: 10rpx; +} + +.muteImg { + width: 62rpx; + height: 62rpx; + position: absolute; + top: 194rpx; + right: 38rpx; +} +.logoImg { + width: 464.67rpx; + height: 342.67rpx; + position: absolute; + top: 406rpx; + left: 142rpx; +} +.btnImg { + width: 296.67rpx; + height: 79.33rpx; + position: absolute; + left: 226rpx; + bottom: 208rpx; +} +.playImg { + position: absolute; + width: 31.33rpx; + height: 38rpx; + left: 56.67rpx; + bottom: 64rpx; +} + +.right-more { + width: 120rpx; + height: 47rpx; + background-color: rgba(255,255,255,.7); + border-radius: 23rpx; + font-weight: 500; + font-size: 27rpx; + color: #078565; + text-align: center; + line-height: 47rpx; +} + +.hdrlNavList { + display: flex; + margin: 28rpx 26.67rpx 10rpx; + overflow-x: scroll; + flex-wrap: nowrap; +} +.hdrlNav { + flex-shrink: 0; + /* width: 160rpx; */ + padding: 0 20rpx; + height: 53rpx; + background: #F8FFDB; + border-radius: 13rpx; + font-size: 32rpx; + color: #078565; + text-align: center; + line-height: 53rpx; + margin-right: 14rpx; +} +.hdrlNavActive { + background-color: #078565; + font-size: 32rpx; + color: #FFFFFF; +} +.hdrlItem { + flex-shrink: 0; + padding: 26.67rpx 32rpx 26.67rpx 20rpx; + width: 593.33rpx; + display: flex; + background: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/calendarBg.png"); + background-size: 100% 100%; +} +.hdrlItem-img { + width: 280rpx; + height: 213rpx; + background: #8C8C8C; + border-radius: 13rpx; + flex-shrink: 0; + margin-right: 12rpx; +} +.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 { + background-image: url("https://static.ticket.sz-trip.com/uploads/20240603/8ddceea4612d2cfb46d1a0203f4b55ac.png"); + background-size: 100% 100%; + padding: 27.67rpx 20.67rpx 40rpx 20rpx; + margin: 0 8rpx; +} +.main-box-top { + display: flex; + margin-bottom: 5.33rpx; +} +.gfyj,.sslk { + width: 369.33rpx; + height: 146rpx; + flex-shrink: 0; +} +.sslk { + margin-left: -48rpx; +} + +.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; +} +.movieItem-img { + width: 230rpx; + height: 230rpx; + border-radius: 18rpx; + margin-right: 18rpx; + flex-shrink: 0; +} +.ysz-box { + margin: 0 8rpx 15.33rpx; + background-image: url("https://static.ticket.sz-trip.com/uploads/20240604/d59d35c02ced0da92a366971a63a2476.png"); + padding: 43.33rpx 59rpx 46.67rpx 58rpx; + background-size: 100% 100%; +} +.ysz-more { + width: 333rpx; + height: 53rpx; + background: #FFFFFF; + border-radius: 27rpx; + margin: 38rpx auto 0; + text-align: center; + line-height: 53rpx; + font-weight: 500; + font-size: 27rpx; + color: #078565; +} +.ysz-box2 { + padding: 20rpx 35rpx; +} +.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(27,128,97,0.56); + 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: 167.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: #078565; + z-index: 9; + text-align: center; + line-height: 47rpx; +} +.bd-index { + font-weight: bold; + font-size: 40rpx; + color: #000000; +} +.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: #078565; + 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; +} \ No newline at end of file