Browse Source

提交

master
shaojing 2 years ago
parent
commit
22fd7a703f
  1. 9
      pages/index/index.js
  2. 15
      pages/index/index.wxml
  3. 33
      pages/index/index.wxss
  4. 17
      pages/list/movieticket/list/info/index.js
  5. 7
      pages/list/movieticket/list/info/index.wxml
  6. 1
      pages/order/components/coupon/index.js
  7. 1
      pages/order/movie/index.js
  8. 71
      pages/pbService/web/index.js

9
pages/index/index.js

@ -475,7 +475,8 @@ Page({
let url = e.currentTarget.dataset.url;
app.globalData.weburl = url;
wx.navigateTo({
url: "/pages/pbService/web/index"
// url: '/pages/pbService/web/index?weburl='+encodeURIComponent('https://m.cloud.sz-trip.com/Cloudperform2022'),
url: '/pages/pbService/web/index?weburl='+encodeURIComponent(url),
})
},
gotoMini: function (e) {
@ -657,9 +658,11 @@ Page({
//博物馆跳转 直接跳君到苏州H5
goH5:function(e){
console.log(e.currentTarget.dataset.path);
app.globalData.weburl ='https://m.cloud.sz-trip.com/' + e.currentTarget.dataset.path;
let weburl = 'https://m.cloud.sz-trip.com/' + e.currentTarget.dataset.path;
// app.globalData.weburl ='https://m.cloud.sz-trip.com/' + e.currentTarget.dataset.path;
wx.navigateTo({
url: "/pages/pbService/web/index"
// url: "/pages/pbService/web/index"
url: '/pages/pbService/web/index?weburl='+encodeURIComponent(weburl),
})
},
bannerClick2: function (e) {

15
pages/index/index.wxml

@ -171,7 +171,8 @@
bindchange="changeSmBannerIndex">
<block wx:for="{{xiaobanner}}" wx:key="*this">
<swiper-item bindtap="bannerClick" data-item="{{item}}">
<image style="border-radius:77rpx" src="{{item.head_img}}" mode="aspectFill"></image>
<!-- 原 圆角77rpx,现改为20rpx -->
<image style="border-radius:20rpx" src="{{item.head_img}}" mode="aspectFill"></image>
</swiper-item>
</block>
</swiper>
@ -186,7 +187,7 @@
<view class="xsth-left" style="display: flex;">
<image mode="heightFix" style="height:86rpx" src="{{indexSeason.xpth}}"></image>
</view>
<view class="time-box">
<view class="time-box" style="z-index: 9;">
倒计时
<view class="xsth-time" style="margin-left: 20rpx;">{{djs.h}}</view>:
<view class="xsth-time">{{djs.m}}</view>:
@ -311,7 +312,7 @@
<!-- <image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/syt.png" mode="widthFix"></image>
<view>苏影通</view> -->
<!-- 元旦修改 -->
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/springFestival2024/syt.png" mode="widthFix"></image>
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/springFestival2024/syts.png" mode="widthFix"></image>
<view class="text">苏影通</view>
</view>
@ -320,14 +321,14 @@
<image src="https://static.ticket.sz-trip.com/uploads/20220818/e02af6e8bf9170060ed7295d367d72c1.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"> -->
<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> -->
<!-- 元旦修改 -->
<!-- <image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/springFestival2024/ysgz.png" mode="widthFix"></image>
<image src="https://static.ticket.sz-trip.com/jundaosuzhou/images/springFestival2024/syt.png" mode="widthFix"></image>
<view>云上观展</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>

33
pages/index/index.wxss

@ -2,6 +2,9 @@
/* 元旦修改 */
page {
background: #8F1D22;
padding-bottom: 36.67rpx;
background-image: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/springFestival2024/indexBg.png");
background-size: 100% 100%;
/* background: #FFF6E8; */
}
.swiper,.swiper image {
@ -54,7 +57,8 @@ page {
}
.top-box .weather-num,.top-box .weather {
flex-shrink: 0;
color: #333;
/* color: #333; */
color: #FFF0DB;
}
.top-box .weather-num {
font-size: 29rpx;
@ -190,7 +194,8 @@ page {
margin: 50rpx 0;
width: 100%;
height: 154rpx;
border-radius: 77rpx;
border-radius: 20rpx;
/* border-radius: 77rpx; */
overflow: hidden;
margin-bottom: 63rpx;
position: relative;
@ -376,7 +381,8 @@ page {
width: 337rpx;
}
.hot-item {
background: white;
/* background: white; */
background: #F9F1DB;
box-shadow: -1rpx 1rpx 16rpx 0px rgba(6, 0, 1, 0.1);
border-radius: 15rpx;
margin-bottom: 35rpx;
@ -513,13 +519,22 @@ page {
}
.more-btn-text {
text-align: center;
color: #0b898e;
/* color: #0b898e;
font-size: 27rpx;
width: 200rpx;
line-height: 65rpx;
border: 1px solid #0b898e;
border-radius: 33rpx;
border-radius: 33rpx; */
margin: 20rpx auto;
width: 200rpx;
height: 67rpx;
line-height: 67rpx;
border: 1px solid #FFEEDB;
border-radius: 7rpx;
font-size: 27rpx;
font-family: PingFang SC;
font-weight: 500;
color: #FFEEDB;
}
.scroll-line {
/* height: 6rpx;
@ -791,7 +806,7 @@ page {
height: 462rpx;
/* background: linear-gradient(-90deg, #FF9B6A, #D02E25); */
border-radius: 20rpx;
padding: 22.67rpx 18rpx 15.33rpx;
padding: 22.67rpx 18rpx 15.33rpx 0;
position: relative;
}
/* 元旦修改新增样式 */
@ -804,6 +819,7 @@ page {
align-items: center;
height: 37px;
margin-left: -50rpx;
z-index: 9;
}
/* 元旦修改新增样式 */
.xsth-time {
@ -879,18 +895,19 @@ page {
/* 元旦修改新增样式 */
.xpth-item {
width: 413rpx;
height: 170rpx;
height: 160rpx;
/* background: #FFFFFF; */
background-image: url("https://static.ticket.sz-trip.com/jundaosuzhou/images/springFestival2024/xpth-hBg.png");
background-size: 100% 100%;
border-radius: 20rpx;
display: flex;
margin-bottom: 10rpx;
/* padding: 5rpx; */
}
/* 元旦修改新增样式 */
.xpth-item image {
width: 160rpx;
height: 170rpx;
height: 160rpx;
background: #FFE7C0;
border-radius: 15rpx 0 0 15rpx;
/* margin-right: 15.33rpx; */

17
pages/list/movieticket/list/info/index.js

@ -1,5 +1,6 @@
// pages/list/movieticket/list/info/index.js
import commonApi from "../../../../../utils/https/common"
import userApi from "../../../../../utils/https/user"
let app = getApp()
Page({
@ -8,13 +9,20 @@ Page({
*/
data: {
info:null,
showFlag:false
showFlag:false,
token:''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
userApi.user_post("user/getMyInfo").then(res=>{
this.setData({
token:res.data.token
})
console.log(this.data.token);
})
commonApi._post("Cinema/getMovieDetail",{
show_id:options.id
}).then(res=>{
@ -28,6 +36,13 @@ Page({
console.log(showFlag)
})
},
gotoWeb:function(e){
let item = e.currentTarget.dataset.item;
// app.globalData.weburl = 'https://m.cloud.sz-trip.com/MovieDetail?id='+item.third_id
wx.navigateTo({
url: '/pages/pbService/web/index?weburl='+encodeURIComponent('https://test.m.cloud.sz-trip.com/MovieDetail?id='+item.third_id+'&token='+this.data.token),
})
},
BroswerRecord:function(){
setTimeout(()=>{
if(app.globalData.uuid){

7
pages/list/movieticket/list/info/index.wxml

@ -24,6 +24,9 @@
<!-- <view class="line"></view> -->
</view>
<view style="height:104rpx" wx:if="{{showFlag}}"></view>
<navigator url="../ticket/index?id={{info.third_id}}&title={{info.title}}" class="fixed-bottom">
<!-- <navigator url="../ticket/index?id={{info.third_id}}&title={{info.title}}" class="fixed-bottom">
<view class="order-btn">立即购票</view>
</navigator>
</navigator> -->
<view catchtap="gotoWeb" class="fixed-bottom" data-item="{{info}}">
<view class="order-btn">立即购票</view>
</view>

1
pages/order/components/coupon/index.js

@ -62,6 +62,7 @@ Component({
console.log("我用的原来的数据");
}else{
console.log("我用的新的数据");
console.log('123123132',res.data);
if ( Object.keys(res.data).length!=0) {
app.globalData.couponInfo = res.data
this.setData({

1
pages/order/movie/index.js

@ -26,6 +26,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(JSON.parse(options));
app.globalData.couponInfo = null
this.setData({
coupon:app.globalData.couponInfo

71
pages/pbService/web/index.js

@ -16,47 +16,48 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log('options',decodeURIComponent(options.weburl))
console.log('options',decodeURIComponent(options.weburl))
options.weburl = decodeURIComponent(options.weburl)
if(options.weburl.indexOf('m.cloud.sz-trip.com')!=-1){
userApi.user_post("user/getMyInfo").then(res=>{
let weburl = options.weburl
if(weburl.indexOf('?')!=-1){
weburl += '&token='+res.data.token;
}
else {
weburl += '?token='+res.data.token
}
this.setData({
info:res.data,
webUrl:weburl
})
})
}
else if(options.weburl.indexOf('m.jszhwlpt.com')!=-1 || options.weburl.indexOf('wechat.b2c.zj-trip.net')!=-1){
// 如果是去苏心游或者镇江的话
userApi.user_post("user/getJumpThirdAppCode",{}).then(res=>{
let weburl = options.weburl
if(weburl.indexOf('?')!=-1){
weburl += '&original_sys_name=jdsz&auth_code='+res.data;
}
else {
weburl += '?original_sys_name=jdsz&auth_code='+res.data
}
this.setData({
info:res.data,
webUrl:weburl
})
})
}
else {
// if(options.weburl.indexOf('m.cloud.sz-trip.com')!=-1){
// userApi.user_post("user/getMyInfo").then(res=>{
// let weburl = options.weburl
// if(weburl.indexOf('?')!=-1){
// weburl += '&token='+res.data.token;
// }
// else {
// weburl += '?token='+res.data.token
// }
// this.setData({
// info:res.data,
// webUrl:weburl
// })
// })
// }
// else if(options.weburl.indexOf('m.jszhwlpt.com')!=-1 || options.weburl.indexOf('wechat.b2c.zj-trip.net')!=-1){
// // 如果是去苏心游或者镇江的话
// userApi.user_post("user/getJumpThirdAppCode",{}).then(res=>{
// let weburl = options.weburl
// if(weburl.indexOf('?')!=-1){
// weburl += '&original_sys_name=jdsz&auth_code='+res.data;
// }
// else {
// weburl += '?original_sys_name=jdsz&auth_code='+res.data
// }
// this.setData({
// info:res.data,
// webUrl:weburl
// })
// })
// }
// else {
this.setData({
webUrl:options.weburl
})
}
console.log('打印',this.data.webUrl);
// }
},
handleMessage(data) {
console.log(data)
console.log(data)
this.setData({
shareTitle:data.shareTitle,
shareUrl:data.shareUrl

Loading…
Cancel
Save