Browse Source

首页

master
jiazhipeng 12 months ago
parent
commit
25986a56b2
  1. 29
      pages/index/index.js
  2. 6
      pages/index/index.wxml
  3. 19
      project.private.config.json

29
pages/index/index.js

@ -97,7 +97,8 @@ Page({
yszIndex:0, yszIndex:0,
bdList:[ bdList:[
{ {
bg: 'linear-gradient(-8deg,#f4f9ff,#b9e1f0)', color: '#FFE4BC',
bg: 'linear-gradient(172deg, #F08528, #D1201B);',
icon:'https://static.ticket.sz-trip.com/uploads/20250429/069ab247bb2ab5a08fa7707d671b1ac5.png', //游 景点 icon:'https://static.ticket.sz-trip.com/uploads/20250429/069ab247bb2ab5a08fa7707d671b1ac5.png', //游 景点
url:'', url:'',
path:'/pages/list/scene/index', path:'/pages/list/scene/index',
@ -105,14 +106,17 @@ Page({
}, },
{ {
color: '#DBD8F6',
bg: 'linear-gradient(172deg, #A49CE9, #353A68);', bg: 'linear-gradient(172deg, #A49CE9, #353A68);',
icon:'https://static.ticket.sz-trip.com/uploads/20250429/8c023b9c626d3821b64d105ae6e65f2d.png', //非玩不可 景点产品 icon:'https://static.ticket.sz-trip.com/uploads/20250429/8c023b9c626d3821b64d105ae6e65f2d.png', //非玩不可 景点产品
path:'/pages/list/night/index', // path:'/pages/list/night/index',
url:'', url:'http://m.cloud.sz-trip.com/nightTour2025',
path: '',
list: [], list: [],
}, },
{ {
color: '#FFE4BC',
bg: 'linear-gradient(172deg, #F08528, #D1201B);', bg: 'linear-gradient(172deg, #F08528, #D1201B);',
icon:'https://static.ticket.sz-trip.com/uploads/20250429/9928f46523fd57233b6ef3371a6ba460.png', //非看不可 icon:'https://static.ticket.sz-trip.com/uploads/20250429/9928f46523fd57233b6ef3371a6ba460.png', //非看不可
url:'', url:'',
@ -121,6 +125,7 @@ Page({
}, },
{ {
color: '#DBD8F6',
bg: 'linear-gradient(172deg, #A49CE9, #353A68);', bg: 'linear-gradient(172deg, #A49CE9, #353A68);',
icon:'https://static.ticket.sz-trip.com/uploads/20250429/a4f53072aa51a387593a183799b902e6.png', //非买不可 icon:'https://static.ticket.sz-trip.com/uploads/20250429/a4f53072aa51a387593a183799b902e6.png', //非买不可
path:'/subPackages/techanNew/index', path:'/subPackages/techanNew/index',
@ -328,9 +333,10 @@ Page({
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
let type = this.data.hdrlNavList[this.data.hdrlNavIndex].type let type = this.data.hdrlNavList[this.data.hdrlNavIndex].type
if (type == 'movie') { if (type == 'movie') {
wx.navigateTo({ // wx.navigateTo({
url: '/pages/list/movieticket/list/info/index?id=' + item.third_id // // url: '/pages/list/movieticket/list/info/index?id=' + item.third_id
}) // })
util.goMovieDetail(item.third_id || item.id)
}else { }else {
wx.navigateTo({ wx.navigateTo({
url: '/pages/info/activityInfo/index?id=' + item.id, url: '/pages/info/activityInfo/index?id=' + item.id,
@ -354,6 +360,7 @@ Page({
}, },
// 推荐榜单更多跳转 // 推荐榜单更多跳转
moreBtn(e) { moreBtn(e) {
console.log(e)
let item = e.currentTarget.dataset.item let item = e.currentTarget.dataset.item
if (item.path!='') { if (item.path!='') {
wx.navigateTo({ wx.navigateTo({
@ -365,6 +372,7 @@ Page({
// event: e.currentTarget.dataset.event // event: e.currentTarget.dataset.event
// }, 1) // }, 1)
// } // }
console.log('error', item)
let url = item.url; let url = item.url;
app.globalData.weburl = url; app.globalData.weburl = url;
wx.navigateTo({ wx.navigateTo({
@ -705,10 +713,11 @@ Page({
tagGotoDetail: function(e) { tagGotoDetail: function(e) {
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
if (this.data.indexHot[this.data.hotIndex].type == 'movie') { if (this.data.indexHot[this.data.hotIndex].type == 'movie') {
wx.navigateTo({ // wx.navigateTo({
url: '/pages/list/movieticket/list/info/index?id=' + item.third_id + '&title=' + // url: '/pages/list/movieticket/list/info/index?id=' + item.third_id + '&title=' +
item.title, // item.title,
}) // })
util.goMovieDetail(item.third_id || item.id, item.title)
} else { } else {
util.gotoDetail(item) util.gotoDetail(item)
} }

6
pages/index/index.wxml

@ -101,7 +101,7 @@
<image src="https://static.ticket.sz-trip.com/uploads/20250429/b797b57b9a132f6e815dbf95d459bffa.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/uploads/20250429/b797b57b9a132f6e815dbf95d459bffa.png" mode="widthFix"></image>
<view class="text">水上游</view> <view class="text">水上游</view>
</view> </view>
<view bindtap="gotoPath" data-event="night_sz" data-title="夜游苏州" data-path="/pages/list/night/index" class="pbservice-item"> <view bindtap="gotoUrl" data-url="https://m.cloud.sz-trip.com/nightTour2025" data-event="night_sz" data-title="夜游苏州" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/uploads/20250429/b797b57b9a132f6e815dbf95d459bffa.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/uploads/20250429/b797b57b9a132f6e815dbf95d459bffa.png" mode="widthFix"></image>
<view class="text">夜游苏州</view> <view class="text">夜游苏州</view>
</view> </view>
@ -124,7 +124,7 @@
<view class="text">一日游</view> <view class="text">一日游</view>
</view> </view>
<view bindtap="gotoUrl" data-url="https://m.cloud.sz-trip.com/LearningTravel" data-event="one_card" data-title="户外游" class="pbservice-item"> <view bindtap="gotoUrl" data-url="https://m.cloud.sz-trip.com/LearningTravel" data-event="one_card" data-title="户外游" class="pbservice-item">
<image src="https://static.ticket.sz-trip.com/uploads/20250429/9de152fe23a392b5b1f86a112d97e644.png" mode="widthFix"></image> <image src="https://static.ticket.sz-trip.com/uploads/20250430/4329eb909a6660062235f4a6cc7b2963.png" mode="widthFix"></image>
<view class="text">户外游</view> <view class="text">户外游</view>
</view> </view>
<view bindtap="gotoPath" data-event="legacy" data-title="非遗专卖" data-path="/subPackages/feiyiNew/index" class="pbservice-item"> <view bindtap="gotoPath" data-event="legacy" data-title="非遗专卖" data-path="/subPackages/feiyiNew/index" class="pbservice-item">
@ -259,7 +259,7 @@
<view style="position: relative;z-index: 9;"> <view style="position: relative;z-index: 9;">
<view bindtap="gobdDetail" style="display: flex;align-items: center;margin-bottom: 20rpx;" wx:for="{{bdItem.list}}" <view bindtap="gobdDetail" style="display: flex;align-items: center;margin-bottom: 20rpx;" wx:for="{{bdItem.list}}"
wx:key="id" data-item="{{item}}"> wx:key="id" data-item="{{item}}">
<view class="bd-index">{{index+1}}</view> <view class="bd-index" style="color: {{bdItem.color}};">{{index+1}}</view>
<view class="bd-item"> <view class="bd-item">
<image class="bd-item-img" src="{{item.headimg}}" mode=""/> <image class="bd-item-img" src="{{item.headimg}}" mode=""/>
<view class="bd-item-content"> <view class="bd-item-content">

19
project.private.config.json

@ -1,22 +1,22 @@
{ {
"setting": { "setting": {
"compileHotReLoad": true, "compileHotReLoad": true,
"urlCheck": true "urlCheck": false
}, },
"condition": { "condition": {
"miniprogram": { "miniprogram": {
"list": [ "list": [
{ {
"name": "subPackageCheckPoint/pages/index/index", "name": "subPackages/indexGQ/index",
"pathName": "subPackageCheckPoint/pages/index/index", "pathName": "subPackages/index/index",
"query": "", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
}, },
{ {
"name": "pages/pbService/web/index", "name": "subPackageCheckPoint/pages/index/index",
"pathName": "pages/pbService/web/index", "pathName": "subPackageCheckPoint/pages/index/index",
"query": "weburl=https://test.m.cloud.sz-trip.com/culturalTravelHelp", "query": "",
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
}, },
@ -34,13 +34,6 @@
"launchMode": "default", "launchMode": "default",
"scene": null "scene": null
}, },
{
"name": "subPackages/indexGQ/index",
"pathName": "subPackages/indexGQ/index",
"query": "",
"launchMode": "default",
"scene": null
},
{ {
"name": "subPackages/index/index", "name": "subPackages/index/index",
"pathName": "subPackages/index/index", "pathName": "subPackages/index/index",

Loading…
Cancel
Save