Commit 5525234a authored by 潘永坪's avatar 潘永坪

场次票bug处理

parent 5273d112
......@@ -127,7 +127,7 @@ export default {
}
//大按钮
.big-btn{
background:linear-gradient(132deg, #ED400C 0%, #FB862C 100%);
background:#3688FF;
display: inline-block;
color: #FFFFFF;
width: 240rpx;
......
......@@ -331,15 +331,15 @@
"navigationBarTextStyle": "black"
}
},
{
"path": "vlogface/vlogface",
"style": {
"navigationBarTitleText": "扫脸获取视频",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black"
}
},
// {
// "path": "vlogface/vlogface",
// "style": {
// "navigationBarTitleText": "扫脸获取视频",
// "enablePullDownRefresh": false,
// "navigationBarBackgroundColor": "#ffffff",
// "navigationBarTextStyle": "black"
// }
// },
{
"path": "scenicList/scenicList",
"style": {
......@@ -461,42 +461,47 @@
"navigationStyle": "custom"
}
},
// {
// "path": "getPortrait",
// "style": {
// "navigationBarTitleText": "获取人像",
// "enablePullDownRefresh": false,
// "navigationStyle": "custom"
// }
// },
{
"path": "getPortrait",
"style": {
"navigationBarTitleText": "获取人像",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}, {
"path": "myPhotoAlbum/myPhotoAlbum",
"style": {
"navigationBarTitleText": "我的相册",
"enablePullDownRefresh": false
}
}, {
},
{
"path": "albumOrderdetail/albumOrderdetail",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}, {
},
{
"path": "purchasedPhotoAlbum/purchasedPhotoAlbum",
"style": {
"navigationBarTitleText": "我的影集",
"enablePullDownRefresh": false
}
}, {
},
{
"path": "DIYPurchase/DIYPurchase",
"style": {
"navigationBarTitleText": "影像DIY",
"enablePullDownRefresh": false
}
}, {
},
{
"path": "DIYDetails/DIYDetails",
"style": {
"navigationBarTitleText": "我的相片",
......
......@@ -174,6 +174,7 @@
<u-modal :show="showModal" @confirm="chooseConfirm" @cancel="chooseCancel" title="提示" content="该产品不支持多选" show-cancel-button="true">
</u-modal>
</scroll-view>
<image class="suodaoImg" v-if="showSuodaoImg" src="https://lx.pangdly.com/img/cjsdFirst.50a2e63.jpg"></image>
</view>
</template>
......@@ -194,6 +195,7 @@ export default {
data() {
return {
detailData:'',//详情数据
showSuodaoImg:false,//索道耳麦图片是否显示隐藏
companyId:'',//公司Id
merchantId: '', //商户Id
// tabbar:['热门景点','一日游','摄影/旅拍','文创DIY'],//tabbar标题列表
......@@ -314,6 +316,13 @@ export default {
this.channelType = this.$commonjs.getKey(option,'channelType')|| 0
},
onShow() {
//如果是索道
if(this.merchantId=='z0015605022691a5945bbe463141668c'){
this.showSuodaoImg=true
setTimeout(() => {
this.showSuodaoImg = false
}, 2500)
}
//清空之前选中的数据
this.detailData=''
this.chooseProduct=[]
......@@ -884,6 +893,12 @@ export default {
justify-content: center;
padding-left: 8rpx;
}
.suodaoImg{
position: fixed;
z-index: 9999;
width: 100%;
height: 100%;
}
.swiper-item /deep/ .u-waterfall{
padding-top:8rpx;
}
......
......@@ -219,7 +219,7 @@ export default {
}
this.background = '#E6E6E6'
setTimeout(() => {
this.background = 'f9690e'
this.background = '#3688FF'
}, 1000)
// #ifdef MP-WEIXIN
if(!this.timeStamp||!this.nonceStr||!this.package||!this.signType||!this.paySign){
......@@ -383,7 +383,7 @@ export default {
display: inline-block;
text-align: center;
line-height: 70rpx;
background: #f9690e;
background: #3688FF;
color: #ffffff;
margin-left: 30rpx;
border-radius: 20rpx;
......
......@@ -9,11 +9,11 @@
</u-swiper>
</view>
<view class="middle">
<view class="tabbar" :style="tabbarObj">
<!-- <view class="tabbar" :style="tabbarObj">
<text v-for="(item, index) in tabbar" :key="index" @click="tabbarChange(index)" :class="{ on: active == index }">
{{ item }}
</text>
</view>
</view> -->
<swiper :current="active" @animationfinish="animationfinish" class="swiper-box" :style="{ height: swiperHeight + 'px' }">
<swiper-item class="swiper-item">
<checkbox-group @change="checkboxChange" class="checkbox-box">
......@@ -174,6 +174,7 @@
<u-modal :show="showModal" @confirm="chooseConfirm" @cancel="chooseCancel" title="提示" content="该产品不支持多选" show-cancel-button="true">
</u-modal>
</scroll-view>
<image class="suodaoImg" v-if="showSuodaoImg" src="https://lx.pangdly.com/img/cjsdFirst.50a2e63.jpg"></image>
</view>
</template>
......@@ -194,6 +195,7 @@ export default {
data() {
return {
detailData:'',//详情数据
showSuodaoImg:false,//索道耳麦图片是否显示隐藏
companyId:'',//公司Id
merchantId: '', //商户Id
// tabbar:['热门景点','一日游','摄影/旅拍','文创DIY'],//tabbar标题列表
......@@ -314,6 +316,13 @@ export default {
this.merchantId = option.merchantId || ''
},
onShow() {
//如果是索道
if(this.merchantId=='z0015605022691a5945bbe463141668c'){
this.showSuodaoImg=true
setTimeout(() => {
this.showSuodaoImg = false
}, 2500)
}
//清空之前选中的数据
this.detailData=''
this.chooseProduct=[]
......@@ -884,6 +893,12 @@ export default {
justify-content: center;
padding-left: 8rpx;
}
.suodaoImg{
position: fixed;
z-index: 9999;
width: 100%;
height: 100%;
}
.swiper-item /deep/ .u-waterfall{
padding-top:8rpx;
}
......
......@@ -520,14 +520,6 @@ export default {
}
//默认选择每个产品第一个日期的值
this.dateChoose(item,item.priceStockList[0],0)
//解决如果班次票不是第一个产品时,dateChoose方法里面不会执行下面代码
if(item.productType==3){
//productType=3为场次票
item.cruisePlanId=''
item.timeActive=10000
this.timeActive=10000
this.getTimeStock(item)
}
}else{
uni.showToast({title: '没有库存',icon: 'none'})
this.maxBookNum=0
......@@ -602,6 +594,7 @@ export default {
},
//---获取班次票---已修改
getTimeStock(item) {
item.timeList=[]
let data = {
endDate: item.endDate, //结束日期
startDate: item.startDate, //开始日期
......@@ -766,16 +759,14 @@ export default {
this.$refs.calendar.defaultDate=item.chooseDate//日历组件选中日期
item.endDate=item2.endTime//开始日期
item.startDate=item2.startTime//结束日期
uni.$u.throttle(()=>{
this.initCoupon(item)
if(item.productType==3){
//productType=3为场次票
item.cruisePlanId=''
item.timeActive=10000
this.timeActive=10000
this.getTimeStock(item)
}
},3000)
this.initCoupon(item)
if(item.productType==3){
//productType=3为场次票
item.cruisePlanId=''
item.timeActive=10000
this.timeActive=10000
this.getTimeStock(item)
}
this.computedPrice()
//解决点击日期无反应的情况
this.$forceUpdate()
......
......@@ -45,7 +45,6 @@ export default {
methods: {
//---日期确认事件
onConfirm(date){
console.log(date)
this.showPop = false
this.$emit('dateConfig', date[0])
},
......
......@@ -684,6 +684,7 @@ export default {
},
//---获取班次票
getTimeStock() {
this.timeList=[]
let data = {
endDate: this.endDate, //结束日期
startDate: this.startDate, //开始日期
......@@ -782,13 +783,17 @@ export default {
this.endDate = this.dateList[index].endTime //开始日期
this.startDate = this.dateList[index].startTime //结束日期
this.$refs.calendar.defaultDate = this.dateList[index].startTime.substr(0, 10) //日历组件选中日期
if (this.productIfo.productType == 3) {
//如果为班次票,点击时,请求班次票接口
this.initCoupon()
if(this.productIfo.productType == 3){
//productType=3为场次票
this.cruisePlanId = '' //清空班次id
this.timeActive = 10000
uni.$u.throttle(this.getTimeStock, 3000)
this.getTimeStock()
}
uni.$u.throttle(this.initCoupon, 3000)
// uni.$u.throttle(()=>{
// 1.通过日历插件选择日期之后未执行该方法
// 2.用了该方法之后点击其他日期也会3秒之内无效果,
// },3000)
},
//---日历确认事件
......@@ -796,7 +801,7 @@ export default {
let index = this.dateList.findIndex(item => {
return item.startTime.substr(0, 10) == data
})
this.dateChoose(index) //选中确认的日期
this.dateChoose(index)
this.docQuery.selectAll('.date-list').boundingClientRect(data => {
this.dateScroll = (data[index].width + 6) * index
}).exec()
......
<template>
<view>
<web-view :src="outUrl"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
enterUrl:'',//进入页面路由
outUrl:'',//跳出页面路由
}
},
onLoad(option) {
//#ifdef MP-WEIXIN
this.enterUrl=option.q
//#endif
//#ifdef MP-ALIPAY
this.enterUrl=uni.getStorageSync('alipayQrCode')
//#endif
if(this.enterUrl){//普通二维码扫码进入
let merchantId=this.getUrlKey('merchantId')
let productId=this.getUrlKey('productId')
let orderSource=this.getUrlKey('orderSource')
let companyId=this.getUrlKey('companyId')
let pdOpenid=uni.getStorageSync('openid')//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync('userId')
let baseUrl=this.$wxurl+'scenicSingleOrder?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
let url='&merchantId='+merchantId+'&productId='+productId+'&orderSource='+orderSource+'&companyId='+companyId
this.outUrl=baseUrl+url
}else{//小程序页面跳转进入
let merchantId=option.merchantId||''
let productId=option.productId||''
let orderSource=option.orderSource||''
let companyId=option.companyId||''
let ifyukuaiCode=option.ifyukuaiCode||''//是否是渝快码跳入,渝快码跳入需要在H5端另外走流程
let pdOpenid=uni.getStorageSync('openid')//胖丁小程序openid,临时用,当公众号授权做好之后可以删除
let pdToken=uni.getStorageSync('token')
let pdCreateUserId=uni.getStorageSync('createUserId')
let pdUserId=uni.getStorageSync('userId')
let baseUrl=this.$wxurl+'scenicSingleOrder?pdOpenid='+pdOpenid+'&pdToken='+pdToken+'&pdCreateUserId='+pdCreateUserId+'&pdUserId='+pdUserId
let url='&merchantId='+merchantId+'&productId='+productId+'&orderSource='+orderSource+'&companyId='+companyId+'&ifyukuaiCode='+ifyukuaiCode
this.outUrl=baseUrl+url
}
},
methods: {
getUrlKey(name){//---------------------------------------------------------------获取url
return(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(decodeURIComponent(this.enterUrl)) || [, ''])[1].replace(/\+/g, '%20') || ''
},
}
}
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment