Browse Source

苏影通

master
chenkainan 2 years ago
parent
commit
8ae742c928
  1. 4
      pages/list/activitynew/index.wxml
  2. 7
      pages/list/movieticket/list/info/index.js
  3. 7
      pages/list/movieticket/list/info/index.wxml
  4. 21
      pages/list/movieticket/list/ticket/index.js
  5. 12
      pages/order/movie/index.js
  6. 12
      pages/pbService/web/index.js

4
pages/list/activitynew/index.wxml

@ -31,10 +31,10 @@
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon2{{type==2?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==2?'color:#C155E9':''}}">展览</view>
</view>
<!-- <view class="type-item" bindtap="changeType" data-type="4">
<view class="type-item" bindtap="changeType" data-type="4">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon4{{type==4?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==4?'color:#63B71F':''}}">电影</view>
</view> -->
</view>
<view class="type-item" bindtap="changeType" data-type="7">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon8{{type==7?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==7?'color:#F75D2A':''}}">文化惠民</view>

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

@ -36,13 +36,6 @@ 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,9 +24,6 @@
<!-- <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> -->
<view catchtap="gotoWeb" class="fixed-bottom" data-item="{{info}}">
<view class="order-btn">立即购票</view>
</view>
</navigator>

21
pages/list/movieticket/list/ticket/index.js

@ -177,13 +177,13 @@ Page({
let index = e.currentTarget.dataset.index
console.log(index);
console.log(info.schedules);
const areaInfo = JSON.parse(info.schedules[index].schedule_area).map(item => ({
...item,
price: item.areaPrice,
areaId: item.seatAreaId
}));
// const areaInfo = JSON.parse(info.schedules[index].schedule_area).map(item => ({
// ...item,
// price: item.areaPrice,
// areaId: item.seatAreaId
// }));
let planData = {
areaInfo,
// areaInfo,
fee: info.schedules[index].service_fee,
movieName: this.data.title,
planId: info.schedules[index].schedule_id,
@ -215,9 +215,12 @@ Page({
}
}
console.log(planData);
wx.navigateTo({
url: "/pages/list/movieticket/list/web/index?planData=" + JSON.stringify(planData),
})
// wx.navigateTo({
// url: "/pages/list/movieticket/list/web/index?planData=" + JSON.stringify(planData),
// })
wx.navigateTo({
url: '/pages/pbService/web/index?weburl='+encodeURIComponent('https://film.jstqsdy.com/?appkey=TQS65aa175129fd2&jump=&type=WECHATXCX&featureAppNo=' + info.schedules[index].schedule_id),
})
})
}})
},

12
pages/order/movie/index.js

@ -26,7 +26,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(JSON.parse(options));
app.globalData.couponInfo = null
this.setData({
coupon:app.globalData.couponInfo
@ -36,12 +35,11 @@ Page({
})
let product = app.globalData.product,price=0,num=0,sPrice=0;
product.info.selectSeatInfo = JSON.parse(options.selectSeatInfo)
product.info.selectSeatInfo.seatPriceInfo.map(item=>{
price =price +Math.ceil(Number(item.split('-')[1])*1.006 * 100) / 100
product.info.selectSeatInfo.price.map(item=>{
price =price +Math.ceil(Number(item)*1.006 * 100) / 100
num = num + 1
sPrice = Math.ceil(Number(item.split('-')[1])*1.006 * 100) / 100
sPrice = Math.ceil(Number(item)*1.006 * 100) / 100
})
console.log(price*100);
this.setData({
product:product,
@ -49,7 +47,6 @@ Page({
num:num,
sPrice:sPrice
})
console.log(this.data.price);
userApi.user_post("user/getMyInfo").then(res=>{
this.setData({
tel:res.data.mobile
@ -105,7 +102,8 @@ Page({
"seats_list": product.info.selectSeatInfo.seatInfo.join(","),//座位中文名称,多个座位逗号分隔,必填
// "key": this.data.key,//锁座返回的key,必填
"schedules_id": product.info.schedule_id,//淘票票场次id,必填
"seats_ids": product.info.selectSeatInfo.seatPriceInfo
"seats_ids": product.info.selectSeatInfo.seatPriceInfo,
"seatnames": product.info.selectSeatInfo.seatInfo.join("|")
}];
let data = {
product_list:product_list,

12
pages/pbService/web/index.js

@ -16,7 +16,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
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=>{
@ -53,15 +52,14 @@ Page({
this.setData({
webUrl:options.weburl
})
console.log('打印',this.data.webUrl);
// }
},
handleMessage(data) {
console.log(data)
this.setData({
shareTitle:data.shareTitle,
shareUrl:data.shareUrl
})
// this.setData({
// shareTitle:data.shareTitle,
// shareUrl:data.shareUrl
// })
console.log('打印22222',data);
},
/**
* 生命周期函数--监听页面初次渲染完成

Loading…
Cancel
Save