Browse Source

首页优化

master
jiazhipeng 11 months ago
parent
commit
4a4d44d6fd
  1. 306
      pages/index/index.js
  2. 100
      pages/index/index.wxml
  3. 14
      project.private.config.json

306
pages/index/index.js

@ -12,14 +12,7 @@ Page({
padHeight: 0,
right: 0,
weather: null,
saleProduct: null,
roadProduct: null,
fourProduct: [],
hotIndex: 0,
indexHot: [],
area_ids: ["zhangjiagang", "changshu", "taicang", "kunshan", "wujiang", "wuzhong", "xiangcheng", "gusu",
"gongyeyuanqu", "gaoxin"
],
month: "",
months: ['JAN', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'oct', 'nov', 'dec'],
date: "",
@ -46,21 +39,7 @@ Page({
opacity: 1,
time: 3, //全屏广告剩余时间
showTime: false,
xpth: {}, // 元旦新增 新品特惠和sqjNew
djs: null, // 元旦新增 新品特惠倒计时
djsTime: null,
sqjNew: [
'https://static.ticket.sz-trip.com/uploads/20240428/faede304469bb3e7b9bbf7001008d09a.png',
'https://static.ticket.sz-trip.com/uploads/20240428/77c3bd6c3f44ee0e3cc483557c1c7462.png',
'https://static.ticket.sz-trip.com/uploads/20240428/ad2324005ba1ed0cabe990ec62bfec76.png',
'https://static.ticket.sz-trip.com/uploads/20240428/a90f3ce4519a585cc5cebfe62d8d4043.png',
'https://static.ticket.sz-trip.com/uploads/20240428/e6fa6cdef2971c8abdb670be1f36d1ca.png',
'https://static.ticket.sz-trip.com/uploads/20240428/9c8186b8249bf81a2ef4fe4a4194cf2b.png',
'https://static.ticket.sz-trip.com/uploads/20240428/755ee01ac248aeda8812b025f483a869.png',
'https://static.ticket.sz-trip.com/uploads/20240428/2d29f0d14e634b0a78d4ef91b28d5999.png',
'https://static.ticket.sz-trip.com/uploads/20240428/71f7b558c7ca6d42728d48508d01819c.png',
'https://static.ticket.sz-trip.com/uploads/20240428/23e07551be831036116c2fedbbf7aea5.png',
],
viewHeight: "0px",
isMuted: true,
videoPlay: false,
@ -136,22 +115,20 @@ Page({
],
list1:[], //游-景点
list2:[], //非晚-夜游
list3:[], //非看-剧场演出
list4:[], //非买-文创
nowDate: [('0' + (new Date().getMonth() + 1)).slice(-2) , ('0' + new Date().getDate()).slice(-2)],
isMayDay: new Date().getTime()>new Date('2025/05/01 00:00:00').getTime()
},
onLoad: function(options) {
//全屏广告
commonApi._post("adv/getAdv", {
position: 2,
type_id: 3
}).then(res => {
if (res.data.length > 0) {
wx.hideTabBar() //这里隐藏了底部导航栏
let length = res.data.length
if (res.data.length > 1) {
let num = Math.floor(Math.random() * length);
@ -204,8 +181,7 @@ Page({
app.globalData.from = options.from;
}
this.getHeight()
//全屏广告
wx.hideTabBar() //这里隐藏了底部导航栏
// 获取今天的日期
let today = new Date();
@ -221,9 +197,6 @@ Page({
},
gobdDetail(e) {
let item = e.currentTarget.dataset.item
// wx.navigateTo({
// url: url
// })
util.gotoDetail(item)
},
getList() {
@ -251,7 +224,6 @@ Page({
})
bdList[0].list = res.data.list
this.setData({
list1:res.data.list,
bdList: bdList
})
})
@ -263,7 +235,6 @@ Page({
}).then(res=>{
bdList[3].list = res.data.list
this.setData({
list4:res.data.list,
bdList: bdList
})
})
@ -275,7 +246,6 @@ Page({
}).then(res=>{
bdList[1].list = res.data.list
this.setData({
list2:res.data.list,
bdList: bdList
})
})
@ -287,7 +257,6 @@ Page({
}).then(res=>{
bdList[2].list = res.data.list
this.setData({
list3:res.data.list,
bdList: bdList
})
})
@ -406,55 +375,7 @@ Page({
right: (systemInfo.screenWidth - rect.right) + rect.width
})
},
// getXpthList: function() {
// // 元旦新增 新品特惠
// commonApi._post("product/get_product_indulgence", {
// tag_id: 275,
// typeId: 3,
// }).then(res => {
// console.log('data', res.data);
// this.setData({
// xpth: res.data,
// djsTime: res.data.time
// })
// let time = setInterval(() => {
// this.setData({
// djsTime: this.data.djsTime - 1
// })
// this.formatDate(this.data.djsTime)
// }, 1000)
// if (this.data.djsTime == 0) {
// clearInterval(time)
// }
// })
// },
// 元旦新品特惠 倒计时
// formatDate: function(oTime) {
// let h = parseInt(oTime / 3600)
// let m = parseInt((oTime % 3600) / 60)
// let s = parseInt(oTime % 60)
// h = h < 10 ? "0" + h : h;
// m = m < 10 ? "0" + m : m;
// s = s < 10 ? "0" + s : s;
// this.setData({
// djs: {
// h: h,
// m: m,
// s: s
// }
// })
// return
// },
// 非遗跳转
// goFeiyi: function() {
// app.globalData.weburl = 'https://m.cloud.sz-trip.com/mlgCoupons'
// wx.navigateTo({
// url: "/pages/pbService/web/index"
// })
// },
// onTabItemTap: function(e) {
// console.log(e, 99999999)
// },
// 大轮播的监听方法
changeBannerIndex: function(e) {
this.setData({
@ -467,44 +388,8 @@ Page({
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
@ -541,13 +426,27 @@ Page({
},
//获取季节配置
getIndexSeason() {
if (app.globalData.configJson.indexSeason) {
this.setData({
isTest: app.globalData.configJson.isTest,
otherPlat: app.globalData.configJson.otherPlats,
indexSeason: app.globalData.configJson.indexSeason
})
} else {
commonApi._post("adv/get_home_ui", {type_id: 3}).then(res => {
let obj = {}
res.data.content.forEach(item => {
obj[item.id] = item.image
});
app.globalData.configJson.indexSeason = obj
app.globalData.loadIndexSeason = true
this.setData({
indexHot: app.globalData.configJson.indexHot,
isTest: app.globalData.configJson.isTest,
otherPlat: app.globalData.configJson.otherPlats,
indexSeason: app.globalData.configJson.indexSeason
})
this.getFourProduct()
})
}
},
//关闭弹窗广告
closeAdv: function() {
@ -599,113 +498,9 @@ Page({
})
})
},
saleDetail: function() {},
getTwoProduct: function() {
// 获取首页限时特惠
commonApi._post('act/fast_sale_now', {
offset: 0,
limit: 1
}).then(res => {
if (res.data[0] && res.data[0].fast_sales_sku[0]) {
if (res.data[0].fast_sales_sku.length > 0) {
let price = res.data[0].fast_sales_sku[0].price
let data = res.data[0].fast_sales_sku[0]
for (let item of res.data[0].fast_sales_sku) {
if (price > item.price) price = item.price
}
data.price = price
this.setData({
saleProduct: data
})
} else {
this.setData({
saleProduct: res.data[0].fast_sales_sku[0]
})
}
}
})
commonApi._post("product/get_product_by_tag", {
tag_id: 17,
offset: 0,
limit: 1,
sort: 'price',
order: 'asc'
}).then(res => {
if (res.data.list.length > 0) {
let price = res.data.list[0].price
for (let item of res.data.list) {
if (item.price > price) {
price = item.price
}
}
let data = res.data.list[0]
data.price = price
this.setData({
roadProduct: data
})
} else {
this.setData({
roadProduct: [111]
})
}
})
},
getFourProduct: function() {
let item = this.data.indexHot[this.data.hotIndex],
service = "product/get_product_by_tag",
data = {
tag_id: item.id,
offset: 0,
limit: 4,
sort: 'weight',
order: 'desc'
};
if (item.type == 'scene') {
service = "scene/get_scene_by_tag";
} else if (item.type == 'movie') {
service = "Cinema/getHotMovieList";
data = {
page: 1,
pageSize: 4
};
}
commonApi._post(service, data).then(res => {
this.setData({
fourProduct: res.data.list || res.data
})
})
},
tagGotoDetail: function(e) {
let item = e.currentTarget.dataset.item;
if (this.data.indexHot[this.data.hotIndex].type == 'movie') {
// wx.navigateTo({
// url: '/pages/list/movieticket/list/info/index?id=' + item.third_id + '&title=' +
// item.title,
// })
util.goMovieDetail(item.third_id || item.id, item.title)
} else {
util.gotoDetail(item)
}
},
productGotoDetail: function(e) {
let item = e.currentTarget.dataset.item;
util.gotoDetail(item)
},
gotoPath: function(e) {
console.log(e)
// if (e.currentTarget.dataset.event) {
// if (e.currentTarget.dataset.event=='gongyeyuanqu_click') {
// wx.navigateToMiniProgram({
// appId: 'wxd323e63a10aa6865',
// path: 'pages/home/index'
// })
// return
// }else{
// this.pagePoint({
// event: e.currentTarget.dataset.event
// }, 1)
// }
// }
if (e.currentTarget.dataset.title == '书香借阅') {
wx.navigateToMiniProgram({
appId: 'wx165d4f1727f6bdb0',
@ -768,15 +563,6 @@ Page({
})
}
},
// 元旦 新品特惠部分
goBanner: function(e) {
console.log('新品特惠', e.currentTarget.dataset.url);
let url = e.currentTarget.dataset.url;
app.globalData.weburl = url;
wx.navigateTo({
url: "/pages/pbService/web/index?weburl=" + encodeURIComponent(url)
})
},
gotoUrl: function(e) {
console.log(e)
if (e.currentTarget.dataset.event) {
@ -823,22 +609,7 @@ Page({
path: path
})
},
garbage: function() {
wx.navigateToMiniProgram({
appId: 'wx13be821f3b1afed3',
path: 'pages/home/home'
})
},
gotoSku: function() {
commonApi.user_post("pbservice/Ztfw/sukangCode").then(res => {
console.log(res)
app.globalData.weburl = res.data.url;
wx.navigateTo({
url: '/pages/pbService/web/index'
})
return;
})
},
audioGuide: function() {
wx.navigateToMiniProgram({
appId: 'wx74f380bc721a0379',
@ -872,12 +643,7 @@ Page({
util.gotoDetail(item.ext);
}
},
meituan: function() {
wx.navigateToMiniProgram({
appId: 'wxde8ac0a21135c07d',
path: "hotel/pages/h5/index?q=https%3A%2F%2Ffenxiao.meituan.com%2Fopdtor%2Fh5%2Fhotel%2Fsearch%3FpartnerId%3D16829"
})
},
// 轮播图点击
bannerClick: function(e) {
if (this.data.isTest) return;
@ -1007,13 +773,12 @@ Page({
unique_key: "urltopage"
}).then(res => {
let data = JSON.parse(res.data)
this.setData({
urltopage: data
this.data.urltopage = data
})
})
// this.getTwoProduct()
this.getBanner()
this.getWeather()
this.getIndexSeason()
},
@ -1021,18 +786,7 @@ Page({
util.pagePoint(e, type)
},
onShow: function() {
if (app.globalData.loadIndexSeason) {
this.getIndexSeason()
} else {
let t = setInterval(() => {
if (app.globalData.loadIndexSeason) {
this.getIndexSeason()
clearInterval(t)
t = null
}
}, 500)
}
// this.getIndexSeason()
this.pagePoint({
event: 'home_view'
}, 1)

100
pages/index/index.wxml

@ -1,21 +1,21 @@
<!--pages/indexs/index.wxml-->
<title title="君到苏州(文化旅游总入口)"></title>
<!-- 后台获取的季节动图 -->
<image class="top-bg-img" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/index51/topBgs.gif" mode="widthFix"></image>
<image lazy-load class="top-bg-img" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/index51/topBgs.gif" mode="widthFix"></image>
<view wx:if="{{weather}}" class="top-box" style="height: 63rpx">
<image src="{{weather.icon2}}" style="margin-left:0" mode="aspectFill"></image>
<image lazy-load src="{{weather.icon2}}" style="margin-left:0" mode="aspectFill"></image>
<view class="weather-num">{{weather.max_temp}}°</view>
<view class="weather">{{weather.weather}}</view>
<!-- <image bindtap="gotoPath" style="margin-left:0" data-path="/pages/user/service/index"
<!-- <image lazy-load bindtap="gotoPath" style="margin-left:0" data-path="/pages/user/service/index"
data-event="customer_service_click" src="https://static.ticket.sz-trip.com/uploads/20250120/2186b1d4a689243273d78ae71563a81f.png"
mode="aspectFill"></image> -->
<image bindtap="gotoPath" data-event="message_click" data-path="/pages/list/message/index"
<image lazy-load bindtap="gotoPath" data-event="message_click" data-path="/pages/list/message/index"
src="https://static.ticket.sz-trip.com/uploads/20250429/224929eeb4520d0c3ea8f10a657825b4.png" mode="aspectFill"></image>
</view>
<view class="top-box" style="padding:0;margin-bottom:18rpx" wx:if="{{!isTest}}">
<navigator url="/pages/search/index" catchtap="pagePoint" data-event="search_click" class="search-box textOver">
<!-- <view class="iconfont icon-sousuo"></view> -->
<image class="search-icon" src="https://static.ticket.sz-trip.com/uploads/20250429/d58f99bf233dbd34a83d002681f5fec6.png"></image>
<image lazy-load class="search-icon" src="https://static.ticket.sz-trip.com/uploads/20250429/d58f99bf233dbd34a83d002681f5fec6.png"></image>
<view class="textOver">搜索想要的旅游产品或服务</view>
</navigator>
</view>
@ -23,7 +23,7 @@
<swiper class="swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{300}}" bindchange="changeBannerIndex" current="5" circular>
<block wx:for="{{banner}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}">
<image src="{{item.head_img}}" mode="scaleToFill"></image>
<image lazy-load src="{{item.head_img}}" mode="scaleToFill"></image>
</swiper-item>
</block>
</swiper>
@ -34,7 +34,7 @@
<view class="content" wx:if="{{!isTest}}">
<!-- 活动日历 -->
<view class="sale-road-boxes date-container" style="margin: 0 26.67rpx;">
<image mode="heightFix" style="height:66rpx;width: 358rpx;" src="https://static.ticket.sz-trip.com/uploads/20250429/3e5717a0cf9198daa1e078b50b7d5c41.png"></image>
<image lazy-load mode="heightFix" style="height:66rpx;width: 358rpx;" src="https://static.ticket.sz-trip.com/uploads/20250429/3e5717a0cf9198daa1e078b50b7d5c41.png"></image>
<navigator url="/pages/list/activitynew/index" class="right-more">更多 ></navigator>
<view class="nowDate">
<view class="num">{{nowDate[0]}}</view>
@ -52,7 +52,7 @@
<view style="margin-left:24.67rpx;margin-right: 14.67rpx;display: flex;overflow-x: scroll;" class="hdrlList" wx:if="{{!isTest}}">
<view class="hdrlItem" wx:for="{{hdrlList}}" bindtap="goDetail" data-item="{{item}}" wx:key="index" >
<view style="background: #fff;display: flex;border-radius: 7rpx;width: 100%;">
<!-- <image class="hdrlItem-img" src="{{item.post_url}}" mode="aspectFill"/> -->
<!-- <image lazy-load class="hdrlItem-img" src="{{item.post_url}}" mode="aspectFill"/> -->
<common-image class="hdrlItem-img" width="240rpx" height='213rpx' src="{{item.post_url || item.cover}}" defaultImage="https://static.ticket.sz-trip.com/uploads/20240909/c9a0029cc9426d2a17f1dbbb7a179762.jpg" mode="aspectFill"></common-image>
<view class="hdrlItem-content">
<view class="hdrlItem-title textOver3">{{item.name}}</view>
@ -66,7 +66,7 @@
<view style="margin-left:24.67rpx;margin-right: 14.67rpx;display: flex;overflow-x: scroll;" wx:if="{{!isTest}}" class="one">
<view class="hdrlItem" wx:for="{{hdrlList}}" bindtap="goDetail" data-item="{{item}}" wx:key="index">
<view style="background: #fff;width: 100%;display: flex;border-radius: 7rpx;width: 100%;">
<!-- <image class="movieItem-img" src="{{item.headimg}}" mode=""/> -->
<!-- <image lazy-load class="movieItem-img" src="{{item.headimg}}" mode=""/> -->
<common-image class="hdrlItem-img" width="240rpx" height='213rpx' src="{{item.headimg}}" defaultImage="https://static.ticket.sz-trip.com/uploads/20240909/c9a0029cc9426d2a17f1dbbb7a179762.jpg" mode="aspectFill"></common-image>
<view style="display: flex;flex-direction: column;justify-content: space-between;padding: 10rpx 10rpx 10rpx 0;font-size: 30rpx;font-weight: bold;width: 500rpx;box-sizing: border-box;">
@ -83,10 +83,10 @@
<view class="main-box" wx:if="{{!isTest}}">
<!-- 上面的高峰预警、实时路况 -->
<view class="main-box-top">
<image bindtap="gotoUrl" data-event="comfort_click" data-title="ai伴你游"
<image lazy-load bindtap="gotoUrl" data-event="comfort_click" data-title="ai伴你游"
data-url="https://m.cloud.sz-trip.com/aiPlay" class="gfyj"
src="https://static.ticket.sz-trip.com/uploads/20250429/4bb075515851ae9a760e60a736a40b5b.png" mode=""/>
<image bindtap="gotoUrls" data-event="xlqc" class="sslk"
<image lazy-load bindtap="gotoUrls" data-event="xlqc" class="sslk"
src="https://static.ticket.sz-trip.com/uploads/20250429/81596463b9f18a3a8d3998a1dd222e7a.png" mode=""/>
</view>
<!-- 下面几大板块 -->
@ -144,7 +144,7 @@
</view>
<!-- <view bindtap="gotoUrl" data-event="movie" data-title="研学游" data-url="https://m.cloud.sz-trip.com/LearningTravel" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/uploads/20250122/0022aa79a96e8c6e23aa914c74cfb136.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20250122/0022aa79a96e8c6e23aa914c74cfb136.png" mode="widthFix"></image>
<view class="text">研学游</view>
</view> -->
@ -162,7 +162,7 @@
bindchange="changeSmBannerIndex">
<block wx:for="{{xiaobanner}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}">
<image style="border-radius:13rpx" src="{{item.head_img}}" mode="aspectFill"></image>
<image lazy-load style="border-radius:13rpx" src="{{item.head_img}}" mode="aspectFill"></image>
</swiper-item>
</block>
</swiper>
@ -173,54 +173,54 @@
<!-- 游苏州 -->
<view class="sale-road-boxes" style="margin: 0 26.67rpx;">
<view style="margin-bottom:6rpx;">
<image style="width: 358.67rpx;height: 66.67rpx;margin-bottom: 14.67rpx;" src="https://static.ticket.sz-trip.com/uploads/20250429/0790204f33d4fbc1255df668e3613e6f.png" mode=""/>
<image lazy-load style="width: 358.67rpx;height: 66.67rpx;margin-bottom: 14.67rpx;" src="https://static.ticket.sz-trip.com/uploads/20250429/0790204f33d4fbc1255df668e3613e6f.png" mode=""/>
<view>
<text style="padding: 11.33rpx 18rpx;" class="hdrlNav{{index==yszIndex?' hdrlNavActive':''}}" wx:for="{{yszNav}}" data-index="{{index}}" bindtap="changeType" wx:key="this">{{item}}</text>
</view>
</view>
<image class="ysz-right-img" src="https://static.ticket.sz-trip.com/uploads/20250429/113c0e62bb9bf2345f9b95ddc1171481.png" mode=""/>
<image lazy-load class="ysz-right-img" src="https://static.ticket.sz-trip.com/uploads/20250429/113c0e62bb9bf2345f9b95ddc1171481.png" mode=""/>
</view>
<view class="ysz-box {{yszIndex==1?'ysz-box2':''}}">
<view wx:if="{{yszIndex == 0}}" style="margin: 20rpx 14rpx 0;">
<view class="pbservice ggfw-list" style="width:100%;overflow-x: auto;height: 160rpx;">
<!-- <view bindtap="gotoUrl" data-event="sbk" data-title="电子社保卡" data-url="https://m.cloud.sz-trip.com/sbkLogin" class="pbservice-item ggfw">
<image src="https://static.ticket.sz-trip.com/uploads/20240923/4c0ee81974879d5160b932a7e526e90d.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20240923/4c0ee81974879d5160b932a7e526e90d.png" mode="widthFix"></image>
<view>电子社保卡</view>
</view> -->
<view bindtap="gotoUrl" data-event="comfort_click" data-title="高峰预警"
data-url="https://wlsjzx.zdhxwl.cn/kt_h5/index.html#/morecopy"
class="pbservice-item ggfw" >
<image src="https://static.ticket.sz-trip.com/uploads/20250429/29cb73cdbaa44f4b2c7300d4a55cd40a.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20250429/29cb73cdbaa44f4b2c7300d4a55cd40a.png" mode="widthFix"></image>
<view>高峰预警</view>
</view>
<view bindtap="gotoUrl" data-event="xlqc"
data-url="https://jiaotonghao2.amap.com/?channel=amap&unitId=257&src=app_share#/" class="pbservice-item ggfw">
<image src="https://static.ticket.sz-trip.com/uploads/20250429/068d421a83e215b455ac7820bb93b64d.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20250429/068d421a83e215b455ac7820bb93b64d.png" mode="widthFix"></image>
<view>实时路况</view>
</view>
<view bindtap="xlzs" class="pbservice-item ggfw" >
<image src="https://static.ticket.sz-trip.com/uploads/20250429/97de98ec65e23c40749e6cb1bde75874.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20250429/97de98ec65e23c40749e6cb1bde75874.png" mode="widthFix"></image>
<view>行李直送</view>
</view>
<view class="pb-item" data-title="停车场" bindtap="gotoUrl" data-url="https://m.cloud.sz-trip.com/ParkingArea" class="pbservice-item ggfw">
<image src="https://static.ticket.sz-trip.com/uploads/20250429/106a059913416dc311a466989ab4dd38.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20250429/106a059913416dc311a466989ab4dd38.png" mode="widthFix"></image>
<view>停车场</view>
</view>
<!-- <view bindtap="gotoUrl" data-event="xlqc"
data-url="https://weixin.2500sz.net/zt/2023/07/luggage_storage/" class="pbservice-item ggfw" >
<image src="https://static.ticket.sz-trip.com/uploads/20250117/785044f09a3de0cb3b540f5ba11f8afb.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20250117/785044f09a3de0cb3b540f5ba11f8afb.png" mode="widthFix"></image>
<view>行李寄存</view>
</view> -->
<view class="pbservice-item ggfw" data-event="toilet_public_click" data-title="找厕所" bindtap="gotoPath"
data-path="/pages/pbService/bike/index?type=1">
<image src="https://static.ticket.sz-trip.com/uploads/20250429/8b2fdbd75401fba8cf26c8613bb56718.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20250429/8b2fdbd75401fba8cf26c8613bb56718.png" mode="widthFix"></image>
<view>找厕所</view>
</view>
<!-- <view bindtap="gotoPath" data-event="security_home_click" data-title="安全服务" data-path="/pages/pbService/security/index" class="pbservice-item ggfw">
<image src="https://static.ticket.sz-trip.com/uploads/20240923/38fa0db45de3290d44341699dd81d8b8.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20240923/38fa0db45de3290d44341699dd81d8b8.png" mode="widthFix"></image>
<view>安全服务</view>
</view> -->
@ -232,28 +232,28 @@
</view>
<view wx:else style="margin: 0rpx 14rpx 0;">
<view class="pic-list" wx:if="{{!isTest}}">
<image class="new-pic" bindtap="gotoPath" data-path="/subPackageCheckPoint/pages/index/index"
<image lazy-load class="new-pic" bindtap="gotoPath" data-path="/subPackageCheckPoint/pages/index/index"
src="https://static.ticket.sz-trip.com/uploads/20250429/eacfc180904e8f1e8717afe2aa959c28.png" mode="aspectFill"></image>
<image class="new-pic" bindtap="gotoPath" data-event="food_click" data-title="街巷美食"
<image lazy-load class="new-pic" bindtap="gotoPath" data-event="food_click" data-title="街巷美食"
data-path="/pages/list/{{isTest?'road':'food'}}/index"
src="https://static.ticket.sz-trip.com/uploads/20250429/e86972b98e8fbb5c5983f38124a77cb2.png" mode="aspectFill"></image>
<image class="new-pic" bindtap="audioGuide" data-event="voice_click"
<image lazy-load class="new-pic" bindtap="audioGuide" data-event="voice_click"
src="https://static.ticket.sz-trip.com/uploads/20250429/62637ab5923016ef9baa573372d2452f.png" mode="aspectFill">
</image>
<image class="new-pic" bindtap="gotoPath" data-event="guide_click" data-title="游记攻略" data-path="/pages/list/strategy/index"
<image lazy-load class="new-pic" bindtap="gotoPath" data-event="guide_click" data-title="游记攻略" data-path="/pages/list/strategy/index"
src="https://static.ticket.sz-trip.com/uploads/20250429/13060c57ee40d1f92145968a0fbd8378.png" mode="aspectFill"></image>
</view>
</view>
</view>
<!-- 推荐榜单 -->
<image class="tjbd-title" style="width: 358rpx;height: 53rpx;margin:64rpx 26rpx 20rpx;"
<image lazy-load class="tjbd-title" style="width: 358rpx;height: 53rpx;margin:64rpx 26rpx 20rpx;"
src="https://static.ticket.sz-trip.com/uploads/20250429/179e3d1e09a17149f260c8d51458ed15.png" mode=""/>
<!-- 4个产品榜单 -->
<view style="display: flex;overflow-x: scroll;padding-right: 20rpx;" class="bottom-box" wx:if="{{!isTest}}">
<view class="bd-box" style="background:{{bdItem.bg}};" wx:for-item="bdItem" wx:for-index="i" wx:for="{{bdList}}" wx:key="i">
<!-- <image class="zz" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/zzIcon.png" mode=""/> -->
<!-- <image lazy-load class="zz" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/zzIcon.png" mode=""/> -->
<view class="bd-top">
<image class="bd-type" src="{{bdItem.icon}}" mode=""/>
<image lazy-load class="bd-type" src="{{bdItem.icon}}" mode=""/>
<view bindtap="moreBtn" class="bd-more" style="color:{{i%2==1?'#55578E':'#F34017'}}" data-item="{{bdItem}}">更多 ></view>
</view>
<view style="position: relative;z-index: 9;">
@ -261,7 +261,7 @@
wx:key="id" data-item="{{item}}">
<view class="bd-index" style="color: {{bdItem.color}};">{{index+1}}</view>
<view class="bd-item">
<image class="bd-item-img" src="{{item.headimg}}" mode=""/>
<image lazy-load class="bd-item-img" src="{{item.headimg}}" mode=""/>
<view class="bd-item-content">
<view class="bd-item-title textOver2">
{{item.title}}
@ -290,7 +290,7 @@
<scroll-view scroll-x bindscroll="listenScroll" class="slide-box no-scrollbar">
<view class="pbservice no-scrollbar" style="margin:0 auto;width: fit-content;">
<view bindtap="gotoPath" data-event="ticket_click" style="margin-left: 10rpx;" data-title="景点门票" data-path="/pages/list/scene/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/jdmp.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/jdmp.png" mode="widthFix"></image>
<view class="text">景点门票</view>
</view>
@ -305,7 +305,7 @@
bindchange="changeSmBannerIndex">
<block wx:for="{{xiaobanner}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}">
<image style="border-radius:13rpx" src="{{item.head_img}}" mode="aspectFill"></image>
<image lazy-load style="border-radius:13rpx" src="{{item.head_img}}" mode="aspectFill"></image>
</swiper-item>
</block>
</swiper>
@ -316,39 +316,39 @@
<!-- 游苏州 -->
<view class="sale-road-boxes" style="margin: 0 26.67rpx;">
<view style="margin-bottom:6rpx;">
<image style="width: 333rpx;height: 80rpx;margin-bottom: 14.67rpx;" src="https://static.ticket.sz-trip.com/uploads/20240923/2e6fb944c77767ef49602e7ae0b3e12d.png" mode=""/>
<image lazy-load style="width: 333rpx;height: 80rpx;margin-bottom: 14.67rpx;" src="https://static.ticket.sz-trip.com/uploads/20240923/2e6fb944c77767ef49602e7ae0b3e12d.png" mode=""/>
<view>
<text style="padding: 11.33rpx 18rpx;" class="hdrlNav{{index==yszIndex?' hdrlNavActive':''}}" wx:for="{{yszNav}}" data-index="{{index}}" bindtap="changeType" wx:key="this">{{item}}</text>
</view>
</view>
<image style="width: 192rpx;height: 164rpx;" src="https://static.ticket.sz-trip.com/uploads/20240923/ad8c0a411610938ec234d0afc864ccff.png" mode=""/>
<image lazy-load style="width: 192rpx;height: 164rpx;" src="https://static.ticket.sz-trip.com/uploads/20240923/ad8c0a411610938ec234d0afc864ccff.png" mode=""/>
</view>
<view class="ysz-box {{yszIndex==1?'ysz-box2':''}}">
<view wx:if="{{yszIndex == 0}}" style="margin: 20rpx 14rpx 0;">
<view class="pbservice ggfw-list" style="width:100%;overflow-x: auto;">
<view bindtap="gotoUrl" data-event="sbk" data-title="电子社保卡" data-url="https://m.cloud.sz-trip.com/sbkLogin" class="pbservice-item ggfw">
<image src="https://static.ticket.sz-trip.com/uploads/20240923/4c0ee81974879d5160b932a7e526e90d.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20240923/4c0ee81974879d5160b932a7e526e90d.png" mode="widthFix"></image>
<view>电子社保卡</view>
</view>
<view bindtap="gotoUrl" data-event="comfort_click" data-title="高峰预警"
data-url="https://wlsjzx.zdhxwl.cn/kt_h5/index.html#/morecopy"
class="pbservice-item ggfw" >
<image src="https://static.ticket.sz-trip.com/uploads/20240923/43f561c40ef50aafa30a0a637fb016fb.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20240923/43f561c40ef50aafa30a0a637fb016fb.png" mode="widthFix"></image>
<view>高峰预警</view>
</view>
<view bindtap="gotoUrl" data-event="xlqc"
data-url="https://weixin.2500sz.net/zt/2023/07/luggage_storage/" class="pbservice-item ggfw" >
<image src="https://static.ticket.sz-trip.com/uploads/20240923/d59d84a7d728f4b2671b5d2e52d1d72e.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20240923/d59d84a7d728f4b2671b5d2e52d1d72e.png" mode="widthFix"></image>
<view>行李寄存</view>
</view>
<view bindtap="gotoUrl" data-event="xlqc"
data-url="https://jiaotonghao2.amap.com/?channel=amap&unitId=257&src=app_share#/" class="pbservice-item ggfw">
<image src="https://static.ticket.sz-trip.com/uploads/20240923/18818826384a788ab7ac457572174b39.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20240923/18818826384a788ab7ac457572174b39.png" mode="widthFix"></image>
<view>实时路况</view>
</view>
<!-- <view bindtap="gotoPath" data-event="security_home_click" data-title="安全服务" data-path="/pages/pbService/security/index" class="pbservice-item ggfw">
<image src="https://static.ticket.sz-trip.com/uploads/20240923/38fa0db45de3290d44341699dd81d8b8.png" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/uploads/20240923/38fa0db45de3290d44341699dd81d8b8.png" mode="widthFix"></image>
<view>安全服务</view>
</view> -->
@ -360,14 +360,14 @@
</view>
<view wx:else>
<view class="pic-list" style="margin-top:20rpx" >
<image class="new-pic" bindtap="gotoUrl" data-event="dou_click" data-title="抖in苏州"
<image lazy-load class="new-pic" bindtap="gotoUrl" data-event="dou_click" data-title="抖in苏州"
data-url="https://m.cloud.sz-trip.com/ShakeInDetailList?id=350&class_id=27&index=1"
src="https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/douyin.png" mode="aspectFill"></image>
<image class="new-pic" bindtap="audioGuide" data-event="voice_click"
<image lazy-load class="new-pic" bindtap="audioGuide" data-event="voice_click"
src="https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/yuyin.png" mode="aspectFill">
</image>
<image class="new-pic" bindtap="gotoPath" data-event="guide_click" data-title="游记攻略" data-path="/pages/list/strategy/index"
<image lazy-load class="new-pic" bindtap="gotoPath" data-event="guide_click" data-title="游记攻略" data-path="/pages/list/strategy/index"
src="https://static.ticket.sz-trip.com/jundaosuzhou/images/holiday/youji.png" mode="aspectFill"></image>
</view>
</view>
@ -379,7 +379,7 @@
<view class="fullavd" wx:if="{{showFullAdv && startList.head_img}}" style="opacity: {{opacity}}">
<view class="time" bindtap="closeFullAdv" wx:if="{{showTime && startList.media_type}}">{{time}}s跳过</view>
<view class="Qtop" style="min-height:100vh" wx:if="{{showTime && startList.media_type}}">
<image src="{{startList.head_img}}" mode="widthFix" style="width: 100%;height: 100%;"></image>
<image lazy-load src="{{startList.head_img}}" mode="widthFix" style="width: 100%;height: 100%;"></image>
</view>
<!-- 视频 -->
@ -398,12 +398,12 @@
object-fit="fill"
></video>
<!-- <image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/mute.png" class="muteImg" mode="widthFix" wx:if="{{isMuted}}" bindtap="closeMuted"></image> -->
<!-- <image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/sound.png" class="muteImg" mode="widthFix" wx:else bindtap="closeMuted"></image> -->
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/logo.png" class="logoImg" mode="widthFix"></image>
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/btn.png" class="btnImg" mode="widthFix" bindtap="closeFullAdv"></image>
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/play.png" class="playImg" mode="widthFix" wx:if="{{videoPlay}}" bindtap="videoPlay"></image>
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/pause.png" class="playImg" mode="widthFix" wx:else bindtap="videoPause"></image>
<!-- <image lazy-load src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/mute.png" class="muteImg" mode="widthFix" wx:if="{{isMuted}}" bindtap="closeMuted"></image> -->
<!-- <image lazy-load src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/sound.png" class="muteImg" mode="widthFix" wx:else bindtap="closeMuted"></image> -->
<image lazy-load src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/logo.png" class="logoImg" mode="widthFix"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/btn.png" class="btnImg" mode="widthFix" bindtap="closeFullAdv"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/play.png" class="playImg" mode="widthFix" wx:if="{{videoPlay}}" bindtap="videoPlay"></image>
<image lazy-load src="https://static.ticket.sz-trip.com/jundaosuzhou/images/startPage/pause.png" class="playImg" mode="widthFix" wx:else bindtap="videoPause"></image>
</view>
</view>

14
project.private.config.json

@ -7,22 +7,22 @@
"miniprogram": {
"list": [
{
"name": "subPackages/feiyiNew/CGCIndex/index",
"pathName": "subPackages/feiyiNew/CGCIndex/index",
"name": "pages/user/order/movieOrderInfo/index",
"pathName": "pages/activity/year2020/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "pages/user/order/movieOrderInfo/index",
"pathName": "pages/order/payresult/index",
"query": "id=28182505151342456109",
"name": "subPackages/index/index",
"pathName": "subPackages/index/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "subPackages/indexGQ/index",
"pathName": "subPackages/index/index",
"name": "subPackages/feiyiNew/CGCIndex/index",
"pathName": "subPackages/feiyiNew/CGCIndex/index",
"query": "",
"launchMode": "default",
"scene": null

Loading…
Cancel
Save