Browse Source

提交

master
shaojing 2 years ago
parent
commit
5eae0094f0
  1. 9
      pages/list/movieticket/list/cinema/index.js
  2. 16
      pages/order/movie/index.js
  3. 9
      pages/order/movie/index.wxml

9
pages/list/movieticket/list/cinema/index.js

@ -101,9 +101,9 @@ Page({
},
selectMovieSeat(e){
let info = e.currentTarget.dataset.info
const areaInfo = JSON.parse(info.schedule_area).map(item => ({...item, price:item.areaPrice,areaId:item.seatAreaId}));
// const areaInfo = JSON.parse(info.schedule_area).map(item => ({...item, price:item.areaPrice,areaId:item.seatAreaId}));
let planData = {
areaInfo,
// areaInfo,
fee:info.service_fee,
movieName: this.data.movie[this.data.currentNum].title,
planId : info.schedule_id,
@ -137,8 +137,11 @@ Page({
start_end_time:info.show_time
}
}
// 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),
url: '/pages/pbService/web/index?weburl='+encodeURIComponent('https://film.jstqsdy.com/?appkey=TQS65aa175129fd2&jump=&type=WECHATXCX&featureAppNo=' + info.schedule_id),
})
})
},

16
pages/order/movie/index.js

@ -19,7 +19,8 @@ Page({
sPrice:0,
hideMx:false,
showModel:false,
agree:false
agree:false,
sPriceList:[]
},
/**
@ -39,14 +40,23 @@ Page({
price =price +Math.ceil(Number(item)*1.006 * 100) / 100
num = num + 1
sPrice = Math.ceil(Number(item)*1.006 * 100) / 100
})
})
console.log(product.info.selectSeatInfo.price);
let priceList = []
product.info.selectSeatInfo.price.forEach(item => {
item = Math.ceil(Number(item)*1.006 * 100) / 100
priceList.push(item)
})
console.log('-----',priceList);
this.setData({
sPriceList:priceList,
product:product,
price:(price*100).toFixed(2),
num:num,
sPrice:sPrice
})
})
console.log('222',this.data.sPriceList);
userApi.user_post("user/getMyInfo").then(res=>{
this.setData({
tel:res.data.mobile

9
pages/order/movie/index.wxml

@ -33,7 +33,7 @@
</view>
<coupon bind:getNewCoupon='getNewCoupon' money="{{price}}" sku="{{product.product.sku_info.id}}"></coupon>
<view class="fix-info {{!hideMx?'hide':''}}">
<view class="info-item">
<view class="info-item" style="margin-bottom: 20rpx;">
<view>
费用明细
</view>
@ -41,15 +41,16 @@
¥{{price/100}}
</view>
</view>
<view class="info-item">
<view wx:for="{{sPriceList}}" style="font-size: 31rpx;font-family: PingFang SC;font-weight: 500;color: #999999;display: flex;align-items: center;justify-content: space-between;margin-bottom: 20rpx;">
<view>
票价
</view>
<view>
¥{{sPrice}} x {{num}}
¥{{item}}
<!-- ¥{{sPrice}} x {{num}} -->
</view>
</view>
<view class="info-item">
<view class="info-item" style="margin-bottom: 20rpx;">
<view>
优惠券
</view>

Loading…
Cancel
Save