Browse Source

修改首页

修改首页
master
jintaotao 4 years ago
parent
commit
5a9ea135f9
  1. 2
      app.js
  2. 182
      pages/index/index.wxml
  3. 17
      pages/index/index.wxss
  4. 2
      pages/pbService/appreciate/index.wxml
  5. 4
      pages/pbService/index.wxml
  6. 12
      pages/pbService/security/index.js
  7. 3
      pages/pbService/security/index.wxml
  8. 5
      pages/pbService/security/index.wxss

2
app.js

@ -22,7 +22,7 @@ App({
unique_key: "wechatxcx"
}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest23?true:false;
data.isTest = data.isTest24?true:false;
this.globalData.configJson = data
})

182
pages/index/index.wxml

@ -42,51 +42,51 @@
</swiper> -->
<view class="top-icons">
<view bindtap="gotoPath" data-event="activity_click" data-title="活动日历" data-path="/pages/list/activitynew/index" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon1.png" mode="widthFix"></image>
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon1New.png" mode="widthFix"></image>
<view class="top-icon-text">活动日历</view>
</view>
<view bindtap="gotoPath" data-event="ticket_click" data-title="景点门票" data-path="/pages/list/scene/index" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon3.png" mode="widthFix"></image>
<view class="top-icon-text">景点门票</view>
</view>
<view bindtap="gotoPath" data-event="hotel_click" data-title="酒店住宿" data-path="/pages/list/hotel/index" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon4.png" mode="widthFix"></image>
<view class="top-icon-text">酒店住宿</view>
</view>
<view bindtap="gotoPath" data-event="night_sz" data-title="夜游苏州" data-path="/pages/list/night/index" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon5.png" mode="widthFix"></image>
<view class="top-icon-text">夜游苏州</view>
</view>
<view bindtap="gotoPath" data-event="card" data-title="一卡游苏州" data-path="/pages/list/card/index" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon2.png" mode="widthFix"></image>
<view class="top-icon-text">一卡游苏州</view>
</view>
<view bindtap="gotoPath" data-event="museum" data-title="场馆预约" data-path="/pages/list/{{isTest?'scene':'museum'}}/index" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon6.png" mode="widthFix"></image>
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon2New.png" mode="widthFix"></image>
<view class="top-icon-text">场馆预约</view>
</view>
<view bindtap="gotoPath" data-event="legacy" data-title="非遗专卖" data-path="/pages/list/{{isTest?'scene':'feiyi'}}/index"
class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon7.png" mode="widthFix"></image>
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon3New.png" mode="widthFix"></image>
<view class="top-icon-text">非遗专卖</view>
</view>
<view bindtap="gotoPath" data-event="show" data-title="剧场演出" data-path="/pages/list/{{isTest?'activity':'theatre'}}/index"
class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon8.png" mode="widthFix"></image>
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon4New.png" mode="widthFix"></image>
<view class="top-icon-text">剧场演出</view>
</view>
<view bindtap="gotoPath" data-event="specialty" data-title="文创特产" data-path="/pages/list/{{isTest?'road':'techan'}}/index"
class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon9.png" mode="widthFix"></image>
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon5New.png" mode="widthFix"></image>
<view class="top-icon-text">文创特产</view>
</view>
<view bindtap="gotoPath" data-event="movie" data-title="电影购票" data-path="/pages/list/movieticket/index" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon10.png" mode="widthFix"></image>
<view class="top-icon-text">电影购票</view>
<view bindtap="gotoPath" data-event="ticket_click" data-title="景点门票" data-path="/pages/list/scene/index" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon6New.png" mode="widthFix"></image>
<view class="top-icon-text">景点门票</view>
</view>
<view bindtap="gotoPath" data-event="hotel_click" data-title="酒店住宿" data-path="/pages/list/hotel/index" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon7New.png" mode="widthFix"></image>
<view class="top-icon-text">酒店住宿</view>
</view>
<view bindtap="gotoPath" data-event="night_sz" data-title="夜游苏州" data-path="/pages/list/night/index" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon8New.png" mode="widthFix"></image>
<view class="top-icon-text">夜游苏州</view>
</view>
<view bindtap="gotoUrl" data-event="card" data-title="一卡游苏州" data-url="https://m.cloud.sz-trip.com/OneDayTravelNew" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon9New.png" mode="widthFix"></image>
<view class="top-icon-text">一日游</view>
</view>
<view bindtap="gotoUrl" data-event="movie" data-title="研学游" data-url="https://m.cloud.sz-trip.com/LearningTravel" class="top-icon-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/icon10New.png" mode="widthFix"></image>
<view class="top-icon-text">研学游</view>
</view>
</view>
<view class="content">
<view class="sale-road-boxes">
<view class="sale-road-boxes" wx:if="{{false}}">
<view class="sale-box" bindtap="gotoPath" data-event="discount_click" data-title="特惠新品"
data-path="/pages/list/{{isTest==false?'sale':'scene'}}/index">
<view class="sale-title"><text>特惠新品</text>超值商品限时抢购</view>
@ -136,51 +136,11 @@
<view class="dot{{smBannerIndex==index?' active':''}}" wx:for="{{xiaobanner}}"></view>
</view>
</view>
<view class="sale-road-boxes" style="margin-top:0">
<image mode="heightFix" style="height:86rpx" src="{{indexSeason.lyzs}}"></image>
</view>
<view class="pic-list" style="margin-top:20rpx">
<image bindtap="gotoPath" data-event="food_click" data-title="街巷美食" data-path="/pages/list/{{isTest?'road':'food'}}/index"
src="https://static.ticket.sz-trip.com/xcxImages/index/pic1.png" mode="aspectFill"></image>
<image bindtap="audioGuide" data-event="voice_click" src="https://static.ticket.sz-trip.com/xcxImages/index/pic2.png" mode="aspectFill">
</image>
<image bindtap="gotoPath" data-event="guide_click" data-title="游记攻略" data-path="/pages/list/strategy/index"
src="https://static.ticket.sz-trip.com/xcxImages/index/pic3.png" mode="aspectFill"></image>
<image bindtap="city" data-event="city_click" src="https://static.ticket.sz-trip.com/xcxImages/index/pic4.png" mode="aspectFill"></image>
</view>
<view class="sale-road-boxes" style="margin-top:0;align-items:center">
<image mode="heightFix" style="height:86rpx" src="{{indexSeason.ggfw}}"></image>
<navigator url="/pages/pbService/index" catchtap="pagePoint" data-event="public_view" class="title-more">更多<text class="iconfont icon-you"></text> </navigator>
</view>
<view style="overflow-x:auto">
<view class="pbservice" style="width:100%">
<view bindtap="gotoPath" data-event="comfort_click" data-title="景区舒适度" data-path="/pages/pbService/sceneComfort/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/pbservice/pb4.png" mode="widthFix"></image>
<view>景区舒适度</view>
</view>
<view bindtap="gotoPath" data-event="toilet_home_click" data-title="找厕所" data-path="/pages/pbService/bike/index?type=1" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/pb2.png" mode="widthFix"></image>
<view>找厕所</view>
</view>
<view bindtap="gotoPath" data-event="car_park_home_click" data-title="停车场" data-path="/pages/pbService/bike/index?type=2" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/pb3.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">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/pb4.png" mode="widthFix"></image>
<view>安全服务</view>
</view>
</view>
</view>
<view class="sale-road-boxes" style="margin-top:0">
<image mode="heightFix" style="height:86rpx" src="{{indexSeason.wlcx}}"></image>
</view>
<scroll-view scroll-x style="height:360rpx" bindscroll="listenScroll" class="slide-box">
<view class="pbservice" style="margin-bottom:30rpx">
<view bindtap="gotoUrl" data-event="investment_click" data-title="投资导引图" data-url="https://hot-map.sz-trip.com/" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb1.png" mode="widthFix"></image>
<view>投资导引图</view>
</view>
<view bindtap="gotoPath" data-title="非遗传承" data-path="/pages/pbService/feiyi/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb2.png" mode="widthFix"></image>
<view>非遗传承</view>
@ -189,53 +149,89 @@
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb3.png" mode="widthFix"></image>
<view>文物查询</view>
</view>
<view bindtap="gotoPath" data-event="appreciate_click" data-title="在线鉴赏" data-path="/pages/pbService/appreciate/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb4.png" mode="widthFix"></image>
<view>在线鉴赏</view>
<view bindtap="gotoPath" data-event="museum_search_click" data-title="博物馆查询" data-path="/pages/pbService/museum/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb6.png" mode="widthFix"></image>
<view>博物馆查询</view>
</view>
<view bindtap="gotoUrl" data-title="数字文物" data-url="https://foxnut-gffcu6t2.pai.tcloudbase.com/suzhouguobao/index.html#/" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb12.png" mode="widthFix"></image>
<view>数字文物</view>
</view>
<view bindtap="gotoPath" data-event="institution_click" data-title="文旅单位" data-path="/pages/list/culturalUnit/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb11.png" mode="widthFix"></image>
<view>文旅单位</view>
</view>
<view bindtap="gotoPath" data-event="team_click" data-title="团体预约" data-path="/pages/pbService/group/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb9.png" mode="widthFix"></image>
<view>团体预约</view>
</view>
<view bindtap="gotoUrl" data-event="investment_click" data-title="投资导引图" data-url="https://hot-map.sz-trip.com/" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb1.png" mode="widthFix"></image>
<view>投资导引图</view>
</view>
<view bindtap="gotoUrl" data-title="廉洁地图" data-url="https://ljwhdt.lianshi.gov.cn:8443/Web/WebChatJCW/Mobile/EduBase/MobileMap.aspx" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb10.png" mode="widthFix"></image>
<view>廉洁地图</view>
</view>
<!-- <view bindtap="gotoPath" data-title="文化配送" data-path="/pages/culture/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb7.png" mode="widthFix"></image>
<view>文化配送</view>
</view> -->
<view bindtap="gotoPath" data-event="book_click" data-title="书香借阅" data-path="/pages/pbService/library/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb5.png" mode="widthFix"></image>
<view>书香借阅</view>
</view>
<view bindtap="gotoPath" data-event="museum_search_click" data-title="博物馆查询" data-path="/pages/pbService/museum/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb6.png" mode="widthFix"></image>
<view>博物馆查询</view>
</view>
<view bindtap="gotoUrl" data-event="cloud_click" data-title="云上观展" data-url="https://m.cloud.sz-trip.com/CloudPerform2022" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb13.png" mode="widthFix"></image>
<view>云上观展</view>
</view>
<view bindtap="gotoPath" data-event="review_click" data-title="精彩回顾" data-path="/pages/pbService/activity/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb8.png" mode="widthFix"></image>
<view>精彩回顾</view>
</view>
<!-- <view bindtap="gotoUrl" data-title="廉洁地图" data-url="https://www.lianshi.gov.cn:6295/jianchawei/Web/WebChatJCW/Mobile/EduBase/MobileMap.aspx" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb10.png" mode="widthFix"></image>
<view>廉洁地图</view>
</view> -->
<view bindtap="gotoPath" data-event="institution_click" data-title="文旅单位" data-path="/pages/list/culturalUnit/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb11.png" mode="widthFix"></image>
<view>文旅单位</view>
</view>
<view bindtap="gotoMini" data-title="国保微展示" data-path="pages/index/index" data-appid="wxe21b8429555d777a" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb12.png" mode="widthFix"></image>
<view>国保微展示</view>
</view>
<view bindtap="gotoPath" data-event="team_click" data-title="团体预约" data-path="/pages/pbService/group/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb9.png" mode="widthFix"></image>
<view>团体预约</view>
<view bindtap="gotoPath" data-event="appreciate_click" data-title="视觉中心" data-path="/pages/pbService/appreciate/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/newpb4.png" mode="widthFix"></image>
<view>视觉中心</view>
</view>
</view>
</scroll-view>
<view class="scroll-line">
<view class="scroll-line-bg" style="width:{{4 / 5 * 100}}%;margin-left:{{scrollLeft}}px"></view>
</view>
<view class="sale-road-boxes" style="margin-top:0">
<image mode="heightFix" style="height:86rpx" src="{{indexSeason.lyzs}}"></image>
</view>
<view class="pic-list" style="margin-top:20rpx">
<image bindtap="gotoUrl" data-event="dou_click" data-title="抖in苏州" data-url="https://m.cloud.sz-trip.com/ShakeInDetail?id=350&class_id=27&index=1"
src="https://static.ticket.sz-trip.com/xcxImages/index/cxzs0.png" mode="aspectFill"></image>
<image bindtap="gotoPath" data-event="food_click" data-title="街巷美食" data-path="/pages/list/{{isTest?'road':'food'}}/index"
src="https://static.ticket.sz-trip.com/xcxImages/index/cxzs1.png" mode="aspectFill"></image>
<image bindtap="audioGuide" data-event="voice_click" src="https://static.ticket.sz-trip.com/xcxImages/index/cxzs2.png" mode="aspectFill">
</image>
<image bindtap="gotoPath" data-event="guide_click" data-title="游记攻略" data-path="/pages/list/strategy/index"
src="https://static.ticket.sz-trip.com/xcxImages/index/cxzs3.png" mode="aspectFill"></image>
<image bindtap="city" data-event="city_click" src="https://static.ticket.sz-trip.com/xcxImages/index/cxzs4.png" mode="aspectFill"></image>
</view>
<view class="sale-road-boxes" style="margin-top:0;align-items:center">
<image mode="heightFix" style="height:86rpx" src="{{indexSeason.ggfw}}"></image>
<navigator url="/pages/pbService/index" catchtap="pagePoint" data-event="public_view" class="title-more">更多<text class="iconfont icon-you"></text> </navigator>
</view>
<view style="overflow-x:auto">
<view class="pbservice" style="width:100%">
<view bindtap="gotoPath" data-event="comfort_click" data-title="景区舒适度" data-path="/pages/pbService/sceneComfort/index" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/pbservice/pb4.png" mode="widthFix"></image>
<view>景区舒适度</view>
</view>
<view bindtap="gotoPath" data-event="toilet_home_click" data-title="找厕所" data-path="/pages/pbService/bike/index?type=1" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/pb2.png" mode="widthFix"></image>
<view>找厕所</view>
</view>
<view bindtap="gotoPath" data-event="car_park_home_click" data-title="停车场" data-path="/pages/pbService/bike/index?type=2" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/pb3.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">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/pb4.png" mode="widthFix"></image>
<view>安全服务</view>
</view>
</view>
</view>
<view class="sale-road-boxes" style="margin-top:0">
<image mode="heightFix" style="height:86rpx" src="{{indexSeason.sqj}}"></image>
</view>

17
pages/index/index.wxss

@ -1,8 +1,8 @@
/**index.wxss**/
.swiper,.swiper image {
width: 700rpx;
width: 690rpx;
display: block;
height: 335rpx;
height: 358rpx;
border-radius: 13rpx;
}
.swiper {
@ -174,7 +174,7 @@
height: 154rpx;
}
.small-swiper-box {
margin: 83rpx 0;
margin: 50rpx 0;
width: 100%;
height: 154rpx;
border-radius: 77rpx;
@ -281,7 +281,7 @@
margin: 60rpx 0;
}
.pic-list image {
width: 160rpx;
width: 122rpx;
height: 200rpx;
display: block;
}
@ -293,7 +293,7 @@
font-size: 22rpx;
}
.pbservice {
width: calc(175rpx * 5);
width: calc(175rpx * 8);
display: flex;
margin-top: 20rpx;
flex-wrap: wrap;
@ -611,8 +611,9 @@
margin-right: 0;
}
.old-btn {
position: absolute;
right: 0;
position: fixed;
left: 0;
top: 170rpx;
writing-mode:tb-rl;
margin-top: 142rpx;
color: #0B898E;
@ -625,7 +626,7 @@
letter-spacing: 3rpx;
background: rgba(255, 255, 255, 0.7);
box-shadow: 0px 0px 13rpx 0px rgba(0, 0, 0, 0.3);
border-radius: 13rpx 0px 0px 13rpx;
border-radius: 0 13rpx 13rpx 0;
font-weight: 500;
z-index: 1;
}

2
pages/pbService/appreciate/index.wxml

@ -1,5 +1,5 @@
<!--pages/pbService/appreciate/index.wxml-->
<title title="在线鉴赏"></title>
<title title="视觉中心"></title>
<view class="top-menus">
<view class="appreciate-types">
<view class="appreciate-type{{type==2?' active':''}}" bindtap="changeType" data-type="2">图片鉴赏</view>

4
pages/pbService/index.wxml

@ -72,9 +72,9 @@
<image src="https://static.ticket.sz-trip.com/xcxImages/pbservice/pb11.png" mode="widthFix"></image>
<view>文物查询</view>
</view>
<view class="pb-item" data-title="在线鉴赏" bindtap="gotoPath" data-path="/pages/pbService/appreciate/index">
<view class="pb-item" data-title="视觉中心" bindtap="gotoPath" data-path="/pages/pbService/appreciate/index">
<image src="https://static.ticket.sz-trip.com/xcxImages/pbservice/pb12.png" mode="widthFix"></image>
<view>在线鉴赏</view>
<view>视觉中心</view>
</view>
<view class="pb-item" data-title="书香借阅" bindtap="gotoPath" data-path="/pages/pbService/library/index">
<image src="https://static.ticket.sz-trip.com/xcxImages/pbservice/pb13.png" mode="widthFix"></image>

12
pages/pbService/security/index.js

@ -1,4 +1,5 @@
// pages/pbService/security/index.js
let app = getApp()
Page({
/**
@ -7,7 +8,16 @@ Page({
data: {
},
gotoUrl: function (e) {
if (e.currentTarget.dataset.event) {
this.pagePoint({ event: e.currentTarget.dataset.event }, 1)
}
let url = e.currentTarget.dataset.url;
app.globalData.weburl = url;
wx.navigateTo({
url: "/pages/pbService/web/index"
})
},
/**
* 生命周期函数--监听页面加载
*/

3
pages/pbService/security/index.wxml

@ -18,3 +18,6 @@
<text class="iconfont icon-dianhua"></text>
<text>拨打</text>
</view>
<!-- <view class="tel-item" bindtap="gotoUrl" data-url="https://m.cloud.sz-trip.com/EpidemicPolicyNew">
<view class="title">游客疫情防控通知</view>
</view> -->

5
pages/pbService/security/index.wxss

@ -29,4 +29,9 @@ page {
.tel-item text.tel-type {
width: 150rpx;
color: #333;
}
.tel-item .title{
text-align: center;
color: #0B898E;
}
Loading…
Cancel
Save