From c407c00e9e1a8297fa7e6800a4663037868688b6 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Mon, 23 Sep 2024 13:52:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E5=BA=86=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 11 +- images/index_seld_1.png | Bin 0 -> 4591 bytes images/map_seld_1.png | Bin 0 -> 7019 bytes images/user_seld_1.png | Bin 0 -> 5070 bytes pages/index/index.js | 806 +++++++++++------- pages/index/index.wxml | 1099 +++++++----------------- pages/index/index.wxss | 458 +++++++--- project.private.config.json | 10 +- subPackages/index/index.js | 74 +- subPackages/index/index.wxml | 1446 ++++++++++++++++--------------- subPackages/index/index.wxss | 25 +- subPackages/indexGQ/index.js | 1224 +++++++++++++++++++++++++++ subPackages/indexGQ/index.json | 6 + subPackages/indexGQ/index.wxml | 316 +++++++ subPackages/indexGQ/index.wxss | 1448 ++++++++++++++++++++++++++++++++ 15 files changed, 5031 insertions(+), 1892 deletions(-) create mode 100644 images/index_seld_1.png create mode 100644 images/map_seld_1.png create mode 100644 images/user_seld_1.png create mode 100644 subPackages/indexGQ/index.js create mode 100644 subPackages/indexGQ/index.json create mode 100644 subPackages/indexGQ/index.wxml create mode 100644 subPackages/indexGQ/index.wxss diff --git a/app.json b/app.json index 4007d30..c86da7a 100644 --- a/app.json +++ b/app.json @@ -197,7 +197,8 @@ "techanCart/index", "feiyiNew/index", "postSearch/index", - "gwcOrder/index" + "gwcOrder/index", + "indexGQ/index" ] } ], @@ -228,26 +229,26 @@ "sitemapLocation": "sitemap.json", "tabBar": { "color": "#999", - "selectedColor": "#4285F4", + "selectedColor": "#FF6756", "borderStyle": "white", "list": [ { "pagePath": "pages/index/index", "iconPath": "/images/home.png", - "selectedIconPath": "/images/index_seld.png", + "selectedIconPath": "/images/index_seld_1.png", "text": "首页", "shareTimeline": true }, { "pagePath": "pages/map/index", "iconPath": "/images/map.png", - "selectedIconPath": "/images/map_seld.png", + "selectedIconPath": "/images/map_seld_1.png", "text": "图游" }, { "pagePath": "pages/user/user", "iconPath": "/images/user.png", - "selectedIconPath": "/images/user_seld.png", + "selectedIconPath": "/images/user_seld_1.png", "text": "我的" } ] diff --git a/images/index_seld_1.png b/images/index_seld_1.png new file mode 100644 index 0000000000000000000000000000000000000000..d8fdc23753c947b1fa3be29e018467c59b152935 GIT binary patch literal 4591 zcmVPx`sYygZRCr$PoqLp2)s=_8eXIIG^OA=^06~qCkxVo*lZ?^0B8rcQ!;FvBf-yQi zu!V+hXuAbekTzyzCPV`P>Be>$W7fD57lVQV3W~NO5+68fj3J<8Vr+E~1%p7-Rrl_x zb8o%+Mb)jY>aNLj{nLNcy{FFk?moZ0&p!Ly7J5H9B_KI%y|;0C0q58VdI9$W&M|=; zH{WZ)|DORX2-ByYjpNiHd5|w2_f=x!p(~)>NAkA-hpscl4Llbn^BpQ zkC5{Qu$GsegpHAfi(OgpdKLzG7_3@Z`Ro67mAGumm$B?00#^|EA|V%SA{>}4_dl|; zOD31)oAUy&PM>-_8omeNQV>rTB4Gl`BRJtj(y->e7p)1aFnPU;nwI(dmrKPDJGnkbh13UQua8 zTV_kc+Pr|=qky%nbPSdnS-7-Kw6Gf01#;i&T}Lw=oi_Odf(3UWOhF~+T`La4Ge}^L z)IIY1j7={~H})7{t+;G7A?qi=lq82{;H*Ic3(|$7H(WNB0;vV20>w#OHe=g0a{rn) zvcxK*W_kp$R$MijQ1eo-E(Nus5rG4;7IA8%{?XljMx)a&IUcnZAaX=OGIP8`?5v~TJa^e2MbBI(){pz>; zJhW_G+pU0g_Lajq((+^Anz$?|iX|Iy?D=xvV{dk4U^?xx(FBd-)2k3llC1f89IHm| zTm4#B+Rxlo>!Q3ui8S*|p>qYhU&Y%82=mhM13OSW$ZnU+{qyE)KpAeBvqsNQn&8KRIoDnKC6JWZ1PZo z!G$<7BksMuB*UwSJ*&Gzq;{HIQF<)l=G)9xDo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0 HcmV?d00001 diff --git a/images/user_seld_1.png b/images/user_seld_1.png new file mode 100644 index 0000000000000000000000000000000000000000..10da26cef647a92e4f15feaa81768dd0c79a0682 GIT binary patch literal 5070 zcmV;<6EWPx|h)G02RCr$Poq3!U#kI%3r~A%|I06c8i6%xxV>CY802d5P1c4}vF$*TfIO5>2 z#C?ln%mRsQGYkW03`#UlMBpJ6`JT~+7Tr%s(Z=XVNWcZ(DOiM03KowFO@h?QVBz`FsC7=ehp|BusPoie2t zIrT@A;~WRx;fV7Ye2Nh51yYadM>z5?JYL1+1>*V~zpUOapb=x$rSAVD0M@c$G5+1B zFB%&M&PYVR0J0yd{Se8slBp8x7zRr9P_`kw4g3Rm23J?|E?cF#y0J@0MD$XR1FYXY zYcKM0&qbMta5S#d--2oM(fn+$HG%B_p8qlMGOBBE{S{Jm->VVfm3Fs13a}QRdm`dr z1)PFNzZO7^whA~+(`)+K3UC9y-|BbsylO2XFQPJ!C3mk9>3Or!BLFKZT=eyGllJsd zg#QZGeRE3yH3*yW<$2J*qw+oub;SG}Jm~{+FsjEO3`N-si0#zJR+K6V<4a`0Z$C&| z?K1d6)&bU8lMATR^H8}4$N4P2-z1Lt$5!AzMAp%$uhA>_EvdM3$IkKweYgYgy#o<7 z+CLfPC`59=2gd>5{}5pbUe3+3>^JXa5VN$p%09psPWUcP>_?!Vu`@L@P-|@O#HWh< zye(~k+MZN8dUPHK7aoqv*HKDwrFSdS@gY!7O~D*lv7#m|WHR({Rsq%vCk?@oCBTZXTD#14&{Fn&?`|nuZ_H0tTh;*9?~fmV zo3|X{j8+o<8{r1(dfg$*m)B=PaxI=T3PnGD zG6U5c5pshGY66kVsoP^orogqm8l!X3Iiqp>TY&uo|JiyN%kgtB&$d0z4!{>rJ{Wr1PkoUCtYu{m?`-)&Qphrt zUMX$*3%*R2Wz~O5XSt>GtQJo$!ts9%jBQ>qupDW)LaH9xo=#ugc{X~0FPqYfkLw-+ zPD^+YJ@;o)U2QZuvZhlfo&$b4$bi%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57?$&Ki6g$~+WPak`ZH_)lfo=Fm|;oqnP@HdiAYlj?Xo z1+hb9cIOm?@Bqi;ouqc8`q$UU(P1)oS7Fk?CnJyQ%##jAoWn?XFH6OCOxjf8TmpX zI?*c!6;U5E*WwIqHmYu7ADP?vDhLPgv=jQ_=4?f5wWeurBHlT&;P+X%5+DQykv?L5 zVOLj!1osY^BXeUzf2nw}Q{F^4fX$g)n*5NWU?E>WQ#rl%QMpOyk!gQex=| z!JR*bb5}yqbN5P_y`G`N78+m+vI+X+)c*qI0;DO8Vh>FJ1I}#n>wm}W%{#(GnL3+T zPyRiigynq}xA6*_F;NY;A3+>rIbQ7gj(qOcb59H40OV6YLr&w;WSP|{(4fvO82AHl zHX+_U3cva}>iO)^X9J&?bE{yACjZH}(5<2l=L zwH{B*?SDp~2wDe)`>qNJ;%F>^_#WnW$H~X@&Gm~1pz?XddI`oAHA#g%n?nPEY%d}H zWz2iw;dEALmjJdPUpAyajq#a?oS(caecv|FGWN;Ch^59>S?1$TWnHq((9g5#8cekD~PnD>psRBl8|+&xXHC*~=XkHFgAa zMgUHUA(Wojn;gFgaR%afUj+FA=wV6M?f@K9l0|R3X-G%^#Y-5y=)yC`K#AS3%!fBW z&8;i77EpK#OfpknBF3}S)%}hB1v{iHJsw(Hv&tC2T@d;I#Vfl3j`%b026#8X5hD { - if(res.data && res.data.id && res.data.token) { - https.set_logininfo(res); - } - }) - } this.getHeight() //全屏广告 wx.hideTabBar() //这里隐藏了底部导航栏 @@ -87,9 +140,11 @@ Page({ 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] @@ -132,7 +187,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; @@ -143,10 +212,12 @@ Page({ lat: res.latitude, lon: res.longitude }) - this.getList() + this.getList() + this.getHdrlList() }, fail: (err) => { - this.getList() + this.getList() + this.getHdrlList() } }) this.setData({ @@ -165,78 +236,232 @@ 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({ 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 => { - 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 @@ -368,6 +593,7 @@ Page({ }, getWeather: function() { commonApi._post('pbservice/Ztfw/getWeather').then(res => { + console.log(res) this.setData({ weather: res.data }) @@ -465,6 +691,7 @@ Page({ util.gotoDetail(item) }, gotoPath: function(e) { + console.log(e) // if (e.currentTarget.dataset.event) { // if (e.currentTarget.dataset.event=='gongyeyuanqu_click') { // wx.navigateToMiniProgram({ @@ -490,19 +717,13 @@ Page({ 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.title == 'e读书') { + } else if (e.currentTarget.dataset.event == 'wuzhong_click') { wx.navigateToMiniProgram({ - appId: 'wx26e6f4c0baba005b', + appId: 'wxdd39069b9a91dbfe', path: 'pages/index/index' }) return; - }else if (e.currentTarget.dataset.event == 'kunshan_click') { + } else if (e.currentTarget.dataset.event == 'kunshan_click') { wx.navigateToMiniProgram({ appId: 'wx8888a3fd0862b4c8', path: 'pages/index/index' @@ -548,6 +769,7 @@ Page({ }, // 元旦 新品特惠部分 goBanner: function(e) { + console.log('新品特惠', e.currentTarget.dataset.url); let url = e.currentTarget.dataset.url; app.globalData.weburl = url; wx.navigateTo({ @@ -555,6 +777,7 @@ Page({ }) }, gotoUrl: function(e) { + console.log(e) if (e.currentTarget.dataset.event) { this.pagePoint({ event: e.currentTarget.dataset.event @@ -566,8 +789,8 @@ Page({ // url: '/pages/pbService/web/index?weburl='+encodeURIComponent('https://m.cloud.sz-trip.com/Cloudperform2022'), url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url), }) - }, - // 实时路况跳转外链 + }, + // 实时路况跳转外链 gotoUrls() { // 判断是否登录 var token = wx.getStorageSync("jstrip_token"), userId = wx.getStorageSync("jstrip_userid"); @@ -607,6 +830,7 @@ Page({ }, 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' @@ -628,33 +852,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; @@ -705,6 +929,7 @@ Page({ if ((item.tdata.url.indexOf('http://') != -1 || item.tdata.url.indexOf('https://') != -1) && item.tdata.url.indexOf('m.cloud.sz-trip.com') == -1) { // 外部h5 + console.log(111, item.tdata) app.globalData.weburl = item.tdata.url; wx.navigateTo({ url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.tdata @@ -713,6 +938,7 @@ Page({ } else { let page = item.tdata.url.split("/"); page = page[page.length - 1].split("?") + console.log(page[0]) let url = this.data.urltopage[page[0]]; if (url && url.indexOf('map') != -1) { let types = ['', 'scenic', 'venue', 'post', 'restaurant', 'relic', 'tenscenic', @@ -729,6 +955,7 @@ Page({ }) } else { app.globalData.weburl = item.tdata.url; + console.log(2222, item.tdata.url, app.globalData.weburl) wx.navigateTo({ url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item .tdata.url) @@ -771,6 +998,7 @@ Page({ }, //博物馆跳转 直接跳君到苏州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({ @@ -778,184 +1006,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 - app.globalData.weburl = item.tdata.url; - wx.navigateTo({ - url: "/pages/pbService/web/index" - }) - } else { - let page = item.tdata.url.split("/"); - page = page[page.length - 1].split("?") - let url = this.data.urltopage[page[0]]; - if (url && url.indexOf('map') != -1) { - let types = ['', 'scenic', 'venue', 'post', 'restaurant', 'relic', 'tenscenic', - 'cinema', 'academes' - ], - type = page[1] ? page[1].split("=") : []; - wx.reLaunch({ - url: url + "?type=" + (type[1] ? types.findIndex(t => t == type[1]) : null) - }) - } else if (url) { - wx.navigateTo({ - url: url, - }) - } else { - app.globalData.weburl = item.tdata.url; - wx.navigateTo({ - url: "/pages/pbService/web/index" - }) - } - } - break; - case 4: - if (item.tdata.appid == 'wxe5ca0f71e918e352' && wx.getStorageSync('jstrip_userid')) { - // 如果是苏心游的小程序 直接把authCode带过去 - userApi.user_post("user/getJumpThirdAppCode", {}).then(res => { - let weburl = item.tdata.page - if (weburl.indexOf('?') != -1) { - weburl += '&authCode=' + res.data; - } else { - weburl += '?authCode=' + res.data - } - wx.navigateToMiniProgram({ - appId: item.tdata.appid, - path: weburl - }) - }).catch(err => { - wx.navigateToMiniProgram({ - appId: item.tdata.appid, - path: item.tdata.page - }) - }) - } else { - wx.navigateToMiniProgram({ - appId: item.tdata.appid, - path: item.tdata.page - }) - } - break; - default: - break; - } - return - }, + // 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 a8b12df..ad62e9a 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -1,811 +1,316 @@ - + - - - - - - - - {{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}} - - - - - - - - - - - - - - - - - - - - - 数字非遗 - - - - 数字博物馆 - - - - 数字名人馆 - - - - 云上观展 - - - - 云上文博会 - - - - 精彩回顾 - - - - 文化场馆查询 - - - - 苏影通 - - - - 书仓 - - - - e读书 - - - - - 数字公共文化 - - - - - - 云游苏州 - - - - 美图鉴赏 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 查看全部 - - - - - - - - - - - - - - - 电子社保卡 - - - - 景区舒适度 - - - - - - 行李寄存 - - - - - - 实时路况 - - - - - - - - - - - - - - - - - - - - - - - - {{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跳过 - - - - - - - - - - - - - - - - - + + + + - - - - - - + + + + + 更多 > + + + + {{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跳过 + + + + + + + + + + + + + + + + - - - \ No newline at end of file diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 34cd243..69871b7 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -1,12 +1,12 @@ -/**index.wxss**/ +/* pages/indexs/index.wxss */ /* 元旦修改 */ page { - /* background: #9DDCF5; */ + height: fit-content; 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; + background: url("https://static.ticket.sz-trip.com/uploads/20240923/69d4d68f5207c84146739951d07dbda4.jpg"); + background-size: 100% 300%; + /* background-repeat: round; */ + background-repeat: no-repeat; } .swiper,.swiper image { width: 697rpx; @@ -39,18 +39,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 +51,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; @@ -81,20 +73,18 @@ page { /* background: #FFFFFF; */ /* box-shadow: 0px 3rpx 26rpx 0px rgba(6, 0, 1, 0.13); */ border-radius: 0 0 27rpx 27rpx; - width: 710rpx; + width: 697rpx; margin: 0 auto; position: relative; z-index: 0; display: flex; padding: 34rpx 0; - padding-bottom: 29.33rpx; + padding-bottom: 7rpx; justify-content: space-between; flex-wrap: wrap; - /* background: #FFFED6; */ - margin-top: -50rpx; - padding-top: 84rpx; - background: url('https://static.ticket.sz-trip.com/uploads/20240606/80bc185bf83b276b114415d670eaa57f.png'); - background-size: 100% 100%; + background: #FFFED6; + margin-top: -20rpx; + padding-top: 54rpx; } .top-icon-item { margin-bottom: 20rpx; @@ -115,7 +105,8 @@ page { margin-bottom: 10rpx; } .content { - margin: 0 25rpx; + /* margin: 0 25rpx; */ + margin-top: 20.67rpx; } .sale-road-boxes { display: flex; @@ -205,13 +196,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 { @@ -319,12 +308,15 @@ page { } */ /* 元旦修改 以上两个样式为注释掉的 下面的.pic-list是新改的 */ .pic-list { - width: 100%; + /* width: 100%; display: flex; margin-right: 26rpx; display: flex; justify-content: space-between; - flex-wrap: wrap; + flex-wrap: wrap; */ + display: flex; + justify-content: space-between; + margin: 0 28rpx; } .title-more { font-size: 24rpx; @@ -334,48 +326,38 @@ page { z-index: 9; width: 173rpx; height: 40rpx; - /* line-height: 40rpx; */ + line-height: 40rpx; background: rgba(255, 255, 255, 0.5); border-radius: 20rpx; text-align: center; - display: flex; - align-items: center; - justify-content: center; } .title-more .iconfont { 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; - background: url('https://static.ticket.sz-trip.com/uploads/20240606/88feacc675386ac7c8144633ccbd6f76.png'); - background-size: 100% 100%; + /* margin-bottom: 40rpx; */ } .pbservice { - /* width: calc(175rpx * 6); */ - /* 元旦修改 */ - width: calc(190rpx * 7); + width: calc(160rpx * 8); display: flex; - margin-top: 30rpx; - 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; */ + width: 106rpx; + 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; @@ -390,7 +372,7 @@ page { margin-bottom: 20rpx; margin-top: 50rpx; */ /* 元旦修改 以上都是之前的*/ - width: 106rpx; + width: 80rpx; margin-bottom: 10rpx; } .six-box { @@ -574,29 +556,24 @@ page { overflow: hidden; margin: 30rpx auto; */ /* 元旦修改 以上为注释部分 下面为新内容*/ - width: 73rpx !important; - height: 7rpx; + width: 48rpx !important; + height: 8rpx; /* background: #DDCEAC; */ background: #fff; - border-radius: 3rpx; - margin: 33.33rpx auto; + border-radius: 4rpx; + margin: 15rpx auto 10rpx; } .scroll-line-bg { - /* width: 300rpx; - height: 6rpx; - border-radius: 3rpx; - background: #0B898E; */ - /* 元旦修改 以上为注释部分 下面为新内容*/ - height: 7rpx; - background: #56A5EA; - border-radius: 3rpx; + height: 8rpx; + background: #FF4848; + border-radius: 4rpx; } /* 元旦修改 新增样式 */ .scroll-line-bg2 { - margin-left: 37.33rpx; - background: #56A5EA; - height: 7rpx; - border-radius: 3rpx; + margin-left: 24rpx; + background: #078565; + height: 8rpx; + border-radius: 4rpx; } .nomore-tip-btn { position: absolute; @@ -708,8 +685,6 @@ page { 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; @@ -867,16 +842,23 @@ page { } /* 元旦修改新增样式 */ .xsth-time { + /* margin: 0 5rpx; */ + /* width: 50rpx; */ + /* height: 33rpx; */ width: 43rpx; height: 43rpx; line-height: 43rpx; - background: #FFEF47; + background: #4AB648; + /* background: #F9F1DB; */ + /* border-radius: 5rpx; */ border-radius: 13rpx; font-size: 25rpx; font-family: DIN; font-weight: 500; - color: #000; + /* color: #D62828; */ + color: white; text-align: center; + /* line-height: 33rpx; */ } .time-box text { width: 18rpx; @@ -923,20 +905,18 @@ page { /* 元旦修改新增样式 */ .xpth-product { /* position: absolute; */ - width: 700rpx; + width: 697rpx; height: 373rpx; - /* background: #FFFED6; */ + background: #FFFED6; box-shadow: 0rpx 0rpx 3rpx 0rpx rgba(103,103,103,0.2); border-radius: 27rpx; - padding: 25rpx; + padding: 25rpx 15rpx; 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 { @@ -1007,7 +987,7 @@ page { } /* 元旦修改新增样式 */ .xpth-item-title { - width: 210rpx; + width: 230rpx; font-size: 27rpx; font-family: PingFang SC; font-weight: 500; @@ -1055,21 +1035,20 @@ page { } /* 元旦修改新增样式 */ .new-pic { - width: 158.67rpx !important; - height: 218.67rpx !important; - margin-bottom: 26.67rpx; + width: 160rpx !important; + height: 255rpx !important; + /* margin-bottom: 26.67rpx; */ } -.ggfw-list { - justify-content: space-around !important; -} + .ggfw { - width: auto; + width: 132rpx; + margin:0 22rpx; } .ggfw image{ margin-bottom: 16.67rpx; - width: 70rpx !important; - height: 70rpx !important; + width: 113.33rpx !important; + height: 113.33rpx !important; } .six-box-new { @@ -1177,22 +1156,293 @@ page { 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; + +.right-more { + width: 120rpx; + height: 47rpx; + background-color: rgba(255,255,255,.3); + border-radius: 23rpx; + font-weight: 500; + font-size: 27rpx; + color: #FFFFFF; + 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: rgba(255,250,245,0.3); + border-radius: 13rpx; + border: 1px solid #FFFFFF; + + font-size: 32rpx; + color: #FFFFFF; + text-align: center; + line-height: 53rpx; + margin-right: 14rpx; } -.jqssd image, .sslk image{ - width: 100%; - height: 100%; +.hdrlNavActive { + background: linear-gradient(180deg, #FFFAF5, #FFE3C2); + font-size: 32rpx; + color: #FF4848; + border: none; +} +.hdrlItem { + flex-shrink: 0; + padding: 26.67rpx 22rpx 26.67rpx 20rpx; + /* width: 593.33rpx; */ + display: flex; + background: url("https://static.ticket.sz-trip.com/uploads/20240923/d4c9e6e558796b0ff89726d0857a5d03.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/20240923/0220a6adf111a97a9b12746438e87967.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 { - /* background: url("https://static.ticket.sz-trip.com/uploads/20240729/c1554fdd645a0d3a47c8e683186e1a73.png"); - background-size: 100% 100%; */ - width: 365.33rpx; - height: 166rpx; + 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; - margin-left: -20rpx; + height: 206.67rpx; +} +.movieItem-img { + width: 213rpx; + height: 213rpx; + 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/20240923/0220a6adf111a97a9b12746438e87967.png"); + /* padding: 43.33rpx 59rpx 46.67rpx 58rpx; */ + background-size: 100% 100%; + width: 733.33rpx; + height: 320rpx; + padding-top: 33.33rpx; +} +.ysz-more { + width: 267rpx; + height: 53rpx; + background: #FFFFFF; + border-radius: 27rpx; + margin: 38rpx auto 0; + text-align: center; + line-height: 53rpx; + font-weight: 500; + font-size: 25rpx; + color: #320000; +} +.ysz-box2 { + /* padding: 20rpx 35rpx; */ + padding-top: 23.33rpx; +} +.tjbd-title { + width: 286.67rpx; + height: 80rpx; +} + +.bd-box { + position: relative; + padding: 36rpx 30.67rpx 44.67rpx 28.67rpx; + margin-left: 26.67rpx; + width: 582rpx; + /* height: 1133rpx; */ + background: linear-gradient(-8deg, #F4F9FF, #B9E1F0); + box-shadow: 0rpx 7rpx 20rpx 0rpx rgba(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: 125.33rpx; + height: 38.67rpx; +} +.bd-more { + width: 120rpx; + height: 47rpx; + background: rgba(255,255,255,.7); + border-radius: 23rpx; + font-weight: 500; + font-size: 27rpx; + color: #320000; + 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; +} +.public-box { + width: 593.33rpx; + height: 266.67rpx; + background: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/calendarBg.png"); + background-size: 100% 100%; } +.one::-webkit-scrollbar{ + display:none; +} \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json index 615b7db..e52bcf5 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -7,16 +7,16 @@ "miniprogram": { "list": [ { - "name": "pages/user/suggest/suggest", - "pathName": "pages/user/suggest/suggest", + "name": "pages/info/postProductInfo/index", + "pathName": "subPackages/index/index", "query": "", "launchMode": "default", "scene": null }, { - "name": "pages/info/postProductInfo/index", - "pathName": "pages/info/postProductInfo/index", - "query": "id=428628", + "name": "subPackages/indexs/index", + "pathName": "subPackages/indexGQ/index", + "query": "", "launchMode": "default", "scene": null }, diff --git a/subPackages/index/index.js b/subPackages/index/index.js index cb95008..fb73f07 100644 --- a/subPackages/index/index.js +++ b/subPackages/index/index.js @@ -4,6 +4,7 @@ let app = getApp() import commonApi from "../../utils/https/common" import userApi from "../../utils/https/user" import util from "../../utils/util" +import https from "../../utils/https.js" Page({ data: { banner: [], @@ -17,9 +18,7 @@ Page({ fourProduct: [], hotIndex: 0, indexHot: [], - area_ids: ["zhangjiagang", "changshu", "taicang", "kunshan", "wujiang", "wuzhong", "xiangcheng", "gusu", - "gongyeyuanqu", "gaoxin" - ], + area_ids: [ "changshu", "taicang", "kunshan", "wujiang", "gongyeyuanqu", "zhangjiagang", "wuzhong", "xiangcheng", "gusu", "gaoxin"], month: "", months: ['JAN', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'oct', 'nov', 'dec'], date: "", @@ -50,15 +49,15 @@ Page({ djs: null, // 元旦新增 新品特惠倒计时 djsTime: null, sqjNew: [ - 'https://static.ticket.sz-trip.com/uploads/20240617/09325c6e6d94e1b23c1019f95ec05f3f.png',// 张家港 - 'https://static.ticket.sz-trip.com/uploads/20240617/3acf736c1dc9c7af08d3363833669896.png',// 常熟 + 'https://static.ticket.sz-trip.com/uploads/20240617/3acf736c1dc9c7af08d3363833669896.png',// 常熟 'https://static.ticket.sz-trip.com/uploads/20240617/4f33191399b2ec1b6b8af77a9d976389.png',// 太仓 'https://static.ticket.sz-trip.com/uploads/20240617/7c62e1438242fc6db47f96cff8a43e9b.png',// 昆山 'https://static.ticket.sz-trip.com/uploads/20240617/4ac7bd7e59edef07d5079bb802dae99b.png',// 吴江 + 'https://static.ticket.sz-trip.com/uploads/20240617/fc20f4d0582ac8611dc9ce7a933deda3.png',// 工业园区 + 'https://static.ticket.sz-trip.com/uploads/20240617/09325c6e6d94e1b23c1019f95ec05f3f.png',// 张家港 'https://static.ticket.sz-trip.com/uploads/20240617/56ccaab57aaf050bb6feccc3a70983bb.png',// 吴中 'https://static.ticket.sz-trip.com/uploads/20240617/fbb3b7bdaa0cafed88015aa3f8d3da96.png',// 相城 'https://static.ticket.sz-trip.com/uploads/20240617/d83cb13156ad76bb8051dbc2b60126af.png',// 姑苏 - 'https://static.ticket.sz-trip.com/uploads/20240617/fc20f4d0582ac8611dc9ce7a933deda3.png',// 工业园区 'https://static.ticket.sz-trip.com/uploads/20240617/b28afa0861eb54f5f3d483a7c08fdbda.png',// 高新区 ], viewHeight: "0px", @@ -66,6 +65,17 @@ Page({ videoPlay: false, }, onLoad: function(options) { + console.log('options',options) + // 相城小程序跳转获取用户信息 + if(options && options.szxcCode) { + commonApi._post("uservice/user/loginByXC", { + code: options.szxcCode + }).then(res => { + if(res.data && res.data.id && res.data.token) { + https.set_logininfo(res); + } + }) + } this.getHeight() //全屏广告 wx.hideTabBar() //这里隐藏了底部导航栏 @@ -77,11 +87,9 @@ Page({ 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] @@ -171,11 +179,9 @@ Page({ let that = this wx.getSystemInfo({ success(res) { - console.log(res) that.setData({ viewHeight: res.windowHeight + 'px' }) - console.log(that.data.viewHeight) } }) }, @@ -185,7 +191,6 @@ Page({ tag_id: 275, typeId: 3, }).then(res => { - console.log('data', res.data); this.setData({ xpth: res.data, djsTime: res.data.time @@ -363,7 +368,6 @@ Page({ }, getWeather: function() { commonApi._post('pbservice/Ztfw/getWeather').then(res => { - console.log(res) this.setData({ weather: res.data }) @@ -461,7 +465,6 @@ Page({ util.gotoDetail(item) }, gotoPath: function(e) { - console.log(e) // if (e.currentTarget.dataset.event) { // if (e.currentTarget.dataset.event=='gongyeyuanqu_click') { // wx.navigateToMiniProgram({ @@ -487,13 +490,19 @@ Page({ path: 'pages/index/index' }) return; - } else if (e.currentTarget.dataset.event == 'wuzhong_click') { + // } else if (e.currentTarget.dataset.event == 'wuzhong_click') { + // wx.navigateToMiniProgram({ + // appId: 'wxdd39069b9a91dbfe', + // path: 'pages/index/index' + // }) + // return; + } else if (e.currentTarget.dataset.title == 'e读书') { wx.navigateToMiniProgram({ - appId: 'wxdd39069b9a91dbfe', + appId: 'wx26e6f4c0baba005b', path: 'pages/index/index' }) return; - } else if (e.currentTarget.dataset.event == 'kunshan_click') { + }else if (e.currentTarget.dataset.event == 'kunshan_click') { wx.navigateToMiniProgram({ appId: 'wx8888a3fd0862b4c8', path: 'pages/index/index' @@ -539,7 +548,6 @@ Page({ }, // 元旦 新品特惠部分 goBanner: function(e) { - console.log('新品特惠', e.currentTarget.dataset.url); let url = e.currentTarget.dataset.url; app.globalData.weburl = url; wx.navigateTo({ @@ -547,7 +555,6 @@ Page({ }) }, gotoUrl: function(e) { - console.log(e) if (e.currentTarget.dataset.event) { this.pagePoint({ event: e.currentTarget.dataset.event @@ -560,6 +567,30 @@ Page({ url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url), }) }, + // 实时路况跳转外链 + gotoUrls() { + // 判断是否登录 + var token = wx.getStorageSync("jstrip_token"), userId = wx.getStorageSync("jstrip_userid"); + if(!token || !userId) { + let url = 'https://wlsjzx.zdhxwl.cn/kt_h5/index.html' + + app.globalData.weburl = url; + wx.navigateTo({ + url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url), + }) + }else { + commonApi.user_post("uservice/user/userEncry").then(res => { + if(res.code == 1) { + let url = 'https://wlsjzx.zdhxwl.cn/kt_h5/index.html?userEncry=' + res.data + + app.globalData.weburl = url; + wx.navigateTo({ + url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url), + }) + } + }) + } + }, gotoMini: function(e) { let appid = e.currentTarget.dataset.appid, path = e.currentTarget.dataset.path @@ -576,7 +607,6 @@ Page({ }, 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' @@ -675,7 +705,6 @@ Page({ if ((item.tdata.url.indexOf('http://') != -1 || item.tdata.url.indexOf('https://') != -1) && item.tdata.url.indexOf('m.cloud.sz-trip.com') == -1) { // 外部h5 - console.log(111, item.tdata) app.globalData.weburl = item.tdata.url; wx.navigateTo({ url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item.tdata @@ -684,7 +713,6 @@ Page({ } else { let page = item.tdata.url.split("/"); page = page[page.length - 1].split("?") - console.log(page[0]) let url = this.data.urltopage[page[0]]; if (url && url.indexOf('map') != -1) { let types = ['', 'scenic', 'venue', 'post', 'restaurant', 'relic', 'tenscenic', @@ -701,7 +729,6 @@ Page({ }) } else { app.globalData.weburl = item.tdata.url; - console.log(2222, item.tdata.url, app.globalData.weburl) wx.navigateTo({ url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(item .tdata.url) @@ -744,7 +771,6 @@ Page({ }, //博物馆跳转 直接跳君到苏州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({ @@ -848,7 +874,6 @@ Page({ if ((item.tdata.url.indexOf('http://') != -1 || item.tdata.url.indexOf('https://') != -1) && item.tdata.url.indexOf('m.cloud.sz-trip.com') == -1) { // 外部h5 - console.log(item.tdata) app.globalData.weburl = item.tdata.url; wx.navigateTo({ url: "/pages/pbService/web/index" @@ -856,7 +881,6 @@ Page({ } else { let page = item.tdata.url.split("/"); page = page[page.length - 1].split("?") - console.log(page[0]) let url = this.data.urltopage[page[0]]; if (url && url.indexOf('map') != -1) { let types = ['', 'scenic', 'venue', 'post', 'restaurant', 'relic', 'tenscenic', diff --git a/subPackages/index/index.wxml b/subPackages/index/index.wxml index 13ecfd3..a8b12df 100644 --- a/subPackages/index/index.wxml +++ b/subPackages/index/index.wxml @@ -4,680 +4,808 @@ - - - - {{weather.max_temp}}° - {{weather.weather}} - - - - - - - - 搜索想要的旅游产品或服务 - - - - + + + + + {{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}} + + + + + + + + + + + + + + + + + + + + + 数字非遗 + + + + 数字博物馆 + + + + 数字名人馆 + + + + 云上观展 + + + + 云上文博会 + + + + 精彩回顾 + + + + 文化场馆查询 + + + + 苏影通 + + + + 书仓 + + + + e读书 + - - - - - - - 活动日历 - - - - - - 场馆预约 - - - - - - - - 非遗专卖 - - - - - - 剧场演出 - - - - - - 文创特产 - - - - - - 景点门票 - - - - - - 酒店住宿 - - - - - - 夜游苏州 - - - - - - 一日游 - - - - - - 研学游 - - - - - - 特惠新品超值商品限时抢购 - - - - + + + 数字公共文化 + + + + + + 云游苏州 + + + + 美图鉴赏 + + + + + + + + + + + + + + + + + + + + + + + + + + - - - 限时特惠 - 新品推荐 - - - ¥{{saleProduct.price?saleProduct.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}} + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 查看全部 - - - - - - - - - - - - 安全服务 - - - - - - 景区舒适度 - - - - - - 行李寄存 - - - - - - 实时路况 - - - - - - - - - - - - - - - - - - - - - - - - {{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跳过 + + + + + + + + + + + + + + + + {{time}}s跳过 - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + + + 活动日历 + + + + + + 场馆预约 + + + + + + + + 剧场演出 + + + + + + + + 夜游苏州 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 数字非遗 + + + + 数字博物馆 + + + + + 云上观展 + + + + 云上文博会 + + + + + 文化场馆查询 + + + + + 书仓 + + + + + + 数字公共文化 + + + + + + 云游苏州 + + + + 美图鉴赏 + + + + + + + + + + + + + + + + + - - {{time}}s - 跳过 + + + + + + + - --> + \ No newline at end of file diff --git a/subPackages/index/index.wxss b/subPackages/index/index.wxss index 6195ca8..34cd243 100644 --- a/subPackages/index/index.wxss +++ b/subPackages/index/index.wxss @@ -334,10 +334,13 @@ page { z-index: 9; width: 173rpx; height: 40rpx; - line-height: 40rpx; + /* line-height: 40rpx; */ background: rgba(255, 255, 255, 0.5); border-radius: 20rpx; text-align: center; + display: flex; + align-items: center; + justify-content: center; } .title-more .iconfont { font-size: 22rpx; @@ -355,9 +358,9 @@ page { .pbservice { /* width: calc(175rpx * 6); */ /* 元旦修改 */ - width: calc(190rpx * 8); + width: calc(190rpx * 7); display: flex; - margin-top: 20rpx; + margin-top: 30rpx; flex-wrap: wrap; /* margin-bottom: 60rpx; */ /* 元旦修改 注释margin-bottom */ @@ -1004,7 +1007,7 @@ page { } /* 元旦修改新增样式 */ .xpth-item-title { - width: 230rpx; + width: 210rpx; font-size: 27rpx; font-family: PingFang SC; font-weight: 500; @@ -1175,17 +1178,21 @@ page { bottom: 64rpx; } .jqssd { - background: url("https://static.ticket.sz-trip.com/uploads/20240606/20c06c5bf8d5e498667ebd954a1d95f8.png"); - background-size: 100% 100%; + /* background: url("https://static.ticket.sz-trip.com/uploads/20240606/20c06c5bf8d5e498667ebd954a1d95f8.png"); + background-size: 100% 100%; */ width: 365.33rpx; height: 166rpx; flex-shrink: 0; } +.jqssd image, .sslk image{ + width: 100%; + height: 100%; +} .sslk { - background: url("https://static.ticket.sz-trip.com/uploads/20240606/eec4af8edf598dc7c440cff8a5fdbe98.png"); - background-size: 100% 100%; + /* background: url("https://static.ticket.sz-trip.com/uploads/20240729/c1554fdd645a0d3a47c8e683186e1a73.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/indexGQ/index.js b/subPackages/indexGQ/index.js new file mode 100644 index 0000000..4cc4882 --- /dev/null +++ b/subPackages/indexGQ/index.js @@ -0,0 +1,1224 @@ +//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(172deg, #FFF3E5, #FFD9AD);', + icon:'https://static.ticket.sz-trip.com/uploads/20240923/15ee44a960511cdcf276b5d8df472626.png', //游 + url:'https://m.cloud.sz-trip.com/OneDayTravelNew', + path:'', + }, + { + bg: 'linear-gradient(172deg, #E7F1FF, #ADD1FF);', + icon:'https://static.ticket.sz-trip.com/uploads/20240923/cd652f4bcfcef7f55863bf8587609ca4.png', //非玩不可 + path:'/pages/list/scene/index', + url:'', + }, + { + bg: 'linear-gradient(172deg, #F0EBFF, #E3D9FF);', + icon:'https://static.ticket.sz-trip.com/uploads/20240923/a0b95152b87215dccbb2e5dfa1bfd145.png', //非看不可 + url:'', + path:'/pages/list/theatre/index', + }, + { + bg: 'linear-gradient(172deg, #FFEDF0, #FFC9D2);', + icon:'https://static.ticket.sz-trip.com/uploads/20240923/799befa78b1d474bfb26004cc2ef817d.png', //非买不可 + path:'/pages/list/techan/index', + url:'', + }, + + + ], + 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), + }) + }, + // 实时路况跳转外链 + gotoUrls() { + // 判断是否登录 + var token = wx.getStorageSync("jstrip_token"), userId = wx.getStorageSync("jstrip_userid"); + if(!token || !userId) { + let url = 'https://wlsjzx.zdhxwl.cn/kt_h5/index.html' + + app.globalData.weburl = url; + wx.navigateTo({ + url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url), + }) + }else { + commonApi.user_post("uservice/user/userEncry").then(res => { + if(res.code == 1) { + let url = 'https://wlsjzx.zdhxwl.cn/kt_h5/index.html?userEncry=' + res.data + + app.globalData.weburl = url; + wx.navigateTo({ + url: '/pages/pbService/web/index?weburl=' + encodeURIComponent(url), + }) + } + }) + } + }, + gotoMini: function(e) { + let appid = e.currentTarget.dataset.appid, + path = e.currentTarget.dataset.path + wx.navigateToMiniProgram({ + appId: appid, + path: path + }) + }, + garbage: function() { + wx.navigateToMiniProgram({ + appId: 'wx13be821f3b1afed3', + path: 'pages/home/home' + }) + }, + gotoSku: function() { + commonApi.user_post("pbservice/Ztfw/sukangCode").then(res => { + 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/indexGQ/index.json b/subPackages/indexGQ/index.json new file mode 100644 index 0000000..7c4437e --- /dev/null +++ b/subPackages/indexGQ/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/indexGQ/index.wxml b/subPackages/indexGQ/index.wxml new file mode 100644 index 0000000..ad62e9a --- /dev/null +++ b/subPackages/indexGQ/index.wxml @@ -0,0 +1,316 @@ + + + + + + + {{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/indexGQ/index.wxss b/subPackages/indexGQ/index.wxss new file mode 100644 index 0000000..69871b7 --- /dev/null +++ b/subPackages/indexGQ/index.wxss @@ -0,0 +1,1448 @@ +/* pages/indexs/index.wxss */ +/* 元旦修改 */ +page { + height: fit-content; + padding-bottom: 36.67rpx; + background: url("https://static.ticket.sz-trip.com/uploads/20240923/69d4d68f5207c84146739951d07dbda4.jpg"); + background-size: 100% 300%; + /* background-repeat: round; */ + background-repeat: no-repeat; +} +.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; */ + margin-top: 20.67rpx; +} +.sale-road-boxes { + display: flex; + justify-content: space-between; + margin-top: 40rpx; + position: relative; + align-items: flex-end; + margin-bottom: 28rpx; +} +.sale-box { + flex-shrink: 0; + width: 337rpx; +} +.sale-title { + color: #999999; + font-size: 20rpx; + margin-bottom: 20rpx; +} +.sale-title text { + color: #000000; + font-size: 32rpx; + font-weight: 500; + margin-right: 8rpx; +} +.sale-product { + width: 337rpx; + position: relative; + height: 165rpx; + overflow: hidden; + border-radius: 8rpx; +} +.sale-product-bg { + width: 197rpx; + height: 165rpx; + position: absolute; + left: 0; + top: 0; + background: linear-gradient(90deg, #F78C56, #FB6044); + +} +.road-product-bg { + background: linear-gradient(90deg, #35CFB4, #00A6A0); +} +.sale-img { + position: absolute; + right: 0; + top: 0; + width: 173rpx; + height: 165rpx; +} +.sale-info { + position: absolute; + left: 20rpx; + top: 20rpx; + bottom: 20rpx; + width: 140rpx; +} +.sale-product-title { + font-size: 28rpx; + color: #fff; + font-weight: 500; + line-height: 36rpx; +} +.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; */ + display: flex; + justify-content: space-between; + margin: 0 28rpx; +} +.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: 106rpx; + 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: 15rpx auto 10rpx; +} +.scroll-line-bg { + height: 8rpx; + background: #FF4848; + 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: 160rpx !important; + height: 255rpx !important; + /* margin-bottom: 26.67rpx; */ +} + + +.ggfw { + width: 132rpx; + margin:0 22rpx; +} +.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,.3); + border-radius: 23rpx; + font-weight: 500; + font-size: 27rpx; + color: #FFFFFF; + 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: rgba(255,250,245,0.3); + border-radius: 13rpx; + border: 1px solid #FFFFFF; + + font-size: 32rpx; + color: #FFFFFF; + text-align: center; + line-height: 53rpx; + margin-right: 14rpx; +} +.hdrlNavActive { + background: linear-gradient(180deg, #FFFAF5, #FFE3C2); + font-size: 32rpx; + color: #FF4848; + border: none; +} +.hdrlItem { + flex-shrink: 0; + padding: 26.67rpx 22rpx 26.67rpx 20rpx; + /* width: 593.33rpx; */ + display: flex; + background: url("https://static.ticket.sz-trip.com/uploads/20240923/d4c9e6e558796b0ff89726d0857a5d03.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/20240923/0220a6adf111a97a9b12746438e87967.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; + height: 206.67rpx; +} +.movieItem-img { + width: 213rpx; + height: 213rpx; + 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/20240923/0220a6adf111a97a9b12746438e87967.png"); + /* padding: 43.33rpx 59rpx 46.67rpx 58rpx; */ + background-size: 100% 100%; + width: 733.33rpx; + height: 320rpx; + padding-top: 33.33rpx; +} +.ysz-more { + width: 267rpx; + height: 53rpx; + background: #FFFFFF; + border-radius: 27rpx; + margin: 38rpx auto 0; + text-align: center; + line-height: 53rpx; + font-weight: 500; + font-size: 25rpx; + color: #320000; +} +.ysz-box2 { + /* padding: 20rpx 35rpx; */ + padding-top: 23.33rpx; +} +.tjbd-title { + width: 286.67rpx; + height: 80rpx; +} + +.bd-box { + position: relative; + padding: 36rpx 30.67rpx 44.67rpx 28.67rpx; + margin-left: 26.67rpx; + width: 582rpx; + /* height: 1133rpx; */ + background: linear-gradient(-8deg, #F4F9FF, #B9E1F0); + box-shadow: 0rpx 7rpx 20rpx 0rpx rgba(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: 125.33rpx; + height: 38.67rpx; +} +.bd-more { + width: 120rpx; + height: 47rpx; + background: rgba(255,255,255,.7); + border-radius: 23rpx; + font-weight: 500; + font-size: 27rpx; + color: #320000; + 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; +} +.public-box { + width: 593.33rpx; + height: 266.67rpx; + background: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/calendarBg.png"); + background-size: 100% 100%; +} +.one::-webkit-scrollbar{ + display:none; +} \ No newline at end of file