jiazhipeng 10 months ago
parent
commit
598cc9a3aa
  1. 2
      app.js
  2. 18
      pages/index/index.wxml
  3. 8
      pages/index/index.wxss
  4. 4
      pages/list/six/index.wxml
  5. 1
      pages/map/index.wxml
  6. 7
      project.private.config.json

2
app.js

@ -38,7 +38,7 @@ App({
// 获取前端配置文件 // 获取前端配置文件
commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => { commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
data.isTest = data.isTest115? true : false; data.isTest = data.isTest118? true : false;
data.indexSeason = null data.indexSeason = null
this.globalData.configJson = data this.globalData.configJson = data
}).then(() => { }).then(() => {

18
pages/index/index.wxml

@ -4,7 +4,7 @@
<view class="bg" wx:if="{{!isTest}}" style="background-image: url({{indexSeason.background}});"> <view class="bg" wx:if="{{!isTest}}" style="background-image: url({{indexSeason.background}});">
<!-- 顶部banner --> <!-- 顶部banner -->
<view style="position:relative;z-index: 1;"> <view style="position:relative;z-index: 1;">
<swiper class="swiper" autoplay="{{true}}" interval="{{5000}}" duration="{{300}}" <swiper class="swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{300}}"
bindchange="changeBannerIndex" data-keyname="activeBannerIndex" circular> bindchange="changeBannerIndex" data-keyname="activeBannerIndex" circular>
<block wx:for="{{banner}}" wx:key="index"> <block wx:for="{{banner}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}"> <swiper-item bindtap="bannerClick" data-item="{{item}}">
@ -62,7 +62,7 @@
<view class="content-box"> <view class="content-box">
<!-- 苏城环游记 todo--> <!-- 苏城环游记 todo-->
<view class="small-swiper-box" wx:if="{{ztbanner.length>0 && func_data.tour_guide}}"> <view class="small-swiper-box" wx:if="{{ztbanner.length>0 && func_data.tour_guide}}">
<swiper class="small-swiper" autoplay="{{true}}" interval="{{5000}}" duration="{{300}}" <swiper class="small-swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{300}}"
bindchange="changeBannerIndex" data-keyname="ztBannerIndex"> bindchange="changeBannerIndex" data-keyname="ztBannerIndex">
<block wx:for="{{ztbanner}}" wx:key="index"> <block wx:for="{{ztbanner}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}"> <swiper-item bindtap="bannerClick" data-item="{{item}}">
@ -94,9 +94,9 @@
<view class="season-hot"> <view class="season-hot">
<view class="season-item" wx:for="{{list}}" wx:key="index" bind:tap="productGotoDetail" data-item="{{item}}"> <view class="season-item" wx:for="{{list}}" wx:key="index" bind:tap="productGotoDetail" data-item="{{item}}">
<image src="{{item.headimg}}"></image> <image src="{{item.headimg}}"></image>
<view class="season-content" style="padding:6rpx 12rpx 0;height: 120rpx;"> <view class="season-content" style="padding:6rpx 12rpx;min-height: 130rpx;">
<view class="textOver2">{{item.title}}</view> <view class="textOver2">{{item.title}}</view>
<view class="price" style="padding-top: 8rpx;"> <view class="price">
<text>¥</text><text>{{item.price/100}}</text><text>起</text> <text>¥</text><text>{{item.price/100}}</text><text>起</text>
</view> </view>
</view> </view>
@ -123,7 +123,7 @@
</view> </view>
<!-- 右边的banner --> <!-- 右边的banner -->
<view class="xpth-banner" wx:if="{{xpth&&xpth.adv&&xpth.adv.length>0}}"> <view class="xpth-banner" wx:if="{{xpth&&xpth.adv&&xpth.adv.length>0}}">
<swiper class="xpth-banner-swiper" autoplay="{{true}}" interval="{{5000}}" duration="{{300}}" <swiper class="xpth-banner-swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{300}}"
bindchange="changeBannerIndex" data-keyname="XPathBannerIndex"> bindchange="changeBannerIndex" data-keyname="XPathBannerIndex">
<block wx:for="{{xpth.adv}}" wx:key="index"> <block wx:for="{{xpth.adv}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}"> <swiper-item bindtap="bannerClick" data-item="{{item}}">
@ -141,7 +141,7 @@
</view> </view>
<view class="small-swiper-box" wx:if="{{xiaobanner.length>0 && func_data.banner_mini}}"> <view class="small-swiper-box" wx:if="{{xiaobanner.length>0 && func_data.banner_mini}}">
<swiper class="small-swiper" autoplay="{{true}}" interval="{{5000}}" duration="{{300}}" <swiper class="small-swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{300}}"
bindchange="changeBannerIndex" data-keyname="smBannerIndex"> bindchange="changeBannerIndex" data-keyname="smBannerIndex">
<block wx:for="{{xiaobanner}}" wx:key="index"> <block wx:for="{{xiaobanner}}" wx:key="index">
<swiper-item bindtap="bannerClick" data-item="{{item}}" style="position: relative;"> <swiper-item bindtap="bannerClick" data-item="{{item}}" style="position: relative;">
@ -310,7 +310,7 @@
<view class="bg" wx:else style="background-image: url({{indexSeason.background}});"> <view class="bg" wx:else style="background-image: url({{indexSeason.background}});">
<!-- 顶部banner --> <!-- 顶部banner -->
<view style="position:relative;z-index: 1;"> <view style="position:relative;z-index: 1;">
<swiper class="swiper" autoplay="{{true}}" interval="{{5000}}" duration="{{300}}" <swiper class="swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{300}}"
bindchange="changeBannerIndex" data-keyname="activeBannerIndex" circular> bindchange="changeBannerIndex" data-keyname="activeBannerIndex" circular>
<block wx:for="{{banner}}" wx:key="index"> <block wx:for="{{banner}}" wx:key="index">
<swiper-item data-item="{{item}}"> <swiper-item data-item="{{item}}">
@ -336,7 +336,7 @@
<view class="content-box"> <view class="content-box">
<!-- 苏城环游记 todo--> <!-- 苏城环游记 todo-->
<view class="small-swiper-box" wx:if="{{ztbanner.length>0 && func_data.tour_guide}}"> <view class="small-swiper-box" wx:if="{{ztbanner.length>0 && func_data.tour_guide}}">
<swiper class="small-swiper" autoplay="{{true}}" interval="{{5000}}" duration="{{300}}" <swiper class="small-swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{300}}"
bindchange="changeBannerIndex" data-keyname="ztBannerIndex"> bindchange="changeBannerIndex" data-keyname="ztBannerIndex">
<block wx:for="{{ztbanner}}" wx:key="index"> <block wx:for="{{ztbanner}}" wx:key="index">
<swiper-item data-item="{{item}}"> <swiper-item data-item="{{item}}">
@ -350,7 +350,7 @@
<view class="small-swiper-box" wx:if="{{xiaobanner.length>0 && func_data.banner_mini}}"> <view class="small-swiper-box" wx:if="{{xiaobanner.length>0 && func_data.banner_mini}}">
<swiper class="small-swiper" autoplay="{{true}}" interval="{{5000}}" duration="{{300}}" <swiper class="small-swiper" autoplay="{{true}}" interval="{{3000}}" duration="{{300}}"
bindchange="changeBannerIndex" data-keyname="smBannerIndex"> bindchange="changeBannerIndex" data-keyname="smBannerIndex">
<block wx:for="{{xiaobanner}}" wx:key="index"> <block wx:for="{{xiaobanner}}" wx:key="index">
<swiper-item data-item="{{item}}" style="position: relative;"> <swiper-item data-item="{{item}}" style="position: relative;">

8
pages/index/index.wxss

@ -63,7 +63,7 @@
right: 0; right: 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 187rpx 20rpx 30rpx; padding: 0rpx 20rpx 30rpx;
box-sizing: border-box; box-sizing: border-box;
background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.2)) background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.2))
} }
@ -186,7 +186,6 @@
} }
.season-hot .season-item{ .season-hot .season-item{
width: 266rpx; width: 266rpx;
height: 332rpx;
margin-right: 14rpx; margin-right: 14rpx;
flex-shrink: 0; flex-shrink: 0;
font-weight: bold; font-weight: bold;
@ -196,6 +195,11 @@
background: white; background: white;
border-radius: 20rpx; border-radius: 20rpx;
} }
.season-hot .season-content{
display: flex;
flex-direction: column;
justify-content: space-between;
}
.season-hot .season-item image{ .season-hot .season-item image{
width: 100%; width: 100%;

4
pages/list/six/index.wxml

@ -39,10 +39,10 @@
</view> </view>
<view class="new-title">公共服务</view> <view class="new-title">公共服务</view>
<view class="new-icons"> <view class="new-icons">
<view data-event="comfort_click" data-title="景区舒适度" bindtap="gotoUrl" data-url="https://wlsjzx.zdhxwl.cn/kt_h5/index.html#/morecopy" class="new-icon"> <navigator data-title="景区舒适度" url="/pages/pbService/sceneComfort/index" class="new-icon">
<image class="green-shadow" src="https://static.ticket.sz-trip.com/xcxImages/six/icon5.png" mode="widthFix"></image> <image class="green-shadow" src="https://static.ticket.sz-trip.com/xcxImages/six/icon5.png" mode="widthFix"></image>
<view>景区舒适度</view> <view>景区舒适度</view>
</view> </navigator>
<navigator url="/pages/pbService/bike/index?type=2&lat={{areas[areaIndex].lat}}&lon={{areas[areaIndex].lon}}" class="new-icon"> <navigator url="/pages/pbService/bike/index?type=2&lat={{areas[areaIndex].lat}}&lon={{areas[areaIndex].lon}}" class="new-icon">
<image class="blue-shadow" src="https://static.ticket.sz-trip.com/xcxImages/six/icon6.png" mode="widthFix"></image> <image class="blue-shadow" src="https://static.ticket.sz-trip.com/xcxImages/six/icon6.png" mode="widthFix"></image>
<view>停车场</view> <view>停车场</view>

1
pages/map/index.wxml

@ -322,6 +322,7 @@
<image src="https://static.ticket.sz-trip.com/uploads/20240624/28e0cadbb7363dec9b51b1174bd2c5a5.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/uploads/20240624/28e0cadbb7363dec9b51b1174bd2c5a5.png" mode="widthFix"></image>
<view>电子社保卡</view> <view>电子社保卡</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" style="margin-right: 32.33rpx;"> <view bindtap="gotoUrl" data-event="comfort_click" data-title="景区舒适度" data-url="https://wlsjzx.zdhxwl.cn/kt_h5/index.html#/morecopy" class="pbservice-item ggfw" style="margin-right: 32.33rpx;">
<image src="https://static.ticket.sz-trip.com/uploads/20240606/55bbad2e7dcec9bd9753fc848488b8f2.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/uploads/20240606/55bbad2e7dcec9bd9753fc848488b8f2.png" mode="widthFix"></image>
<view>景区舒适度</view> <view>景区舒适度</view>

7
project.private.config.json

@ -6,6 +6,13 @@
"condition": { "condition": {
"miniprogram": { "miniprogram": {
"list": [ "list": [
{
"name": "pages/login/index",
"pathName": "pages/login/index",
"query": "",
"launchMode": "default",
"scene": null
},
{ {
"name": "subPackages/index/index", "name": "subPackages/index/index",
"pathName": "subPackages/indexGQ/index", "pathName": "subPackages/indexGQ/index",

Loading…
Cancel
Save