Browse Source

首页改版

master
jiazhipeng 12 months ago
parent
commit
501589f2f5
  1. 2
      app.js
  2. 34
      pages/index/imgSource.js
  3. 8
      pages/index/index.wxml
  4. 4
      pages/index/index.wxss

2
app.js

@ -21,7 +21,7 @@ App({
unique_key: "wechatxcx"
}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest184? true : false;
data.isTest = data.isTest185? true : false;
this.globalData.configJson = data
}).then(() => {
// 获取ui配置文件

34
pages/index/imgSource.js

@ -38,7 +38,7 @@ const imageSource = {
],
// 旅游助手
LVZS: [
"https://static.ticket.sz-trip.com/uploads/20250312/ae847f6081edb82a14a75b3e19146eeb.png",
"https://static.ticket.sz-trip.com/uploads/20250423/662eb322f8851e04df41fd836c6a88f3.png",
"https://static.ticket.sz-trip.com/uploads/20250312/d12ad76fbb7a46c1669c403e66e510ad.png",
"https://static.ticket.sz-trip.com/uploads/20250312/3b8941467df369032b70052b60095857.png",
"https://static.ticket.sz-trip.com/uploads/20250312/54b2063e28eacfeb220905563e802786.png",
@ -72,9 +72,35 @@ const imageSource = {
// 长三角文旅平台
CSJWLPT: [
"https://static.ticket.sz-trip.com/uploads/20250312/e44c2f4756948e8a5d837c759f643edc.png",
"https://static.ticket.sz-trip.com/uploads/20250312/194a5636ecd849ce1f8b8f42c9d5b08b.png",
"https://static.ticket.sz-trip.com/uploads/20250312/ea3bd8e0418d4ff2c07498d2cbef49c1.png",
{
"name":"玉见昆山",
"icon":"https://static.ticket.sz-trip.com/uploads/20250423/40319f04a78f25c2741e4ce11b375597.png",
"type":"mini",
"path":"",
"appid":"wx8888a3fd0862b4c8"
},
{
"name":"智游常熟",
"icon":"https://static.ticket.sz-trip.com/uploads/20250423/619870022ca676c31d2d6395f81dd3d7.png",
"type":"mini",
"path":"",
"appid":"wxdaf3d5edd07dc7af"
},
{
"name":"常享游",
"icon":"https://static.ticket.sz-trip.com/uploads/20250312/194a5636ecd849ce1f8b8f42c9d5b08b.png",
"type":"h5",
"url":"https://tour.wlczy.com/h5/"
},
{
"name":"畅游宿迁",
"icon":"https://static.ticket.sz-trip.com/uploads/20250312/ea3bd8e0418d4ff2c07498d2cbef49c1.png",
"type":"mini",
"path":"/pages/index/index",
"appid":"wxcb00a59c4fba136e"
},
],
// 导航标题侧边图片

8
pages/index/index.wxml

@ -313,7 +313,9 @@
<image class="rmtj-right" src="{{imageSourceList.CBTP[1]}}" mode="" style="width: 276rpx;height: 100rpx;"/>
</view>
<view class="pic-list" style="margin-top:20rpx" wx:if="{{!isTest}}">
<image 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"
<!-- <image 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="{{imageSourceList.LVZS[0]}}" mode="aspectFill"></image> -->
<image class="new-pic" bindtap="gotoMini" data-appid="wx241e4ce1442c5de4" data-path=""
src="{{imageSourceList.LVZS[0]}}" mode="aspectFill"></image>
<image class="new-pic" bindtap="gotoPath" data-event="food_click" data-title="街巷美食" data-path="/pages/list/{{isTest?'road':'food'}}/index"
src="{{imageSourceList.LVZS[1]}}" mode="aspectFill"></image>
@ -378,8 +380,8 @@
<image class="rmtj-right" src="{{imageSourceList.CBTP[3]}}" mode="" style="width: 276rpx;height: 100rpx;"/>
</view>
<view class="other-plats" wx:if="{{otherPlat&&!isTest}}">
<view class="other-plat" wx:for="{{otherPlat}}" bindtap="gotoOther" data-item="{{item}}" wx:key="index">
<image src="{{imageSourceList.CSJWLPT[index]}}" mode="widthFix"></image>
<view class="other-plat" wx:for="{{imageSourceList.CSJWLPT}}" bindtap="gotoOther" data-item="{{item}}" wx:key="index">
<image src="{{item.icon}}" mode="heightFix"></image>
<view>{{item.name}}</view>
</view>
</view>

4
pages/index/index.wxss

@ -673,9 +673,9 @@ page {
align-items: center;
}
.other-plats image {
width: 106rpx;
width: 80rpx;
display: block;
height: 106rpx;
height: 80rpx;
margin-bottom: 15rpx;
}
.other-plat {

Loading…
Cancel
Save