Commit 8adcbbaf authored by 潘永坪's avatar 潘永坪

单产品下单bug处理

parent dde8bd22
...@@ -302,11 +302,11 @@ ...@@ -302,11 +302,11 @@
<u-icon name="arrow-down"></u-icon> <u-icon name="arrow-down"></u-icon>
</view> </view>
<view class="bottom-btn" :style="{ background: payBackground }"> <view class="bottom-btn">
<text v-if="productIfo.status == 1">已下架</text> <text v-if="productIfo.status == 1">已下架</text>
<template v-else> <template v-else>
<text v-if="parseInt(maxBookNum) <1">暂无库存</text> <text v-if="parseInt(maxBookNum) <1">暂无库存</text>
<text v-if="parseInt(maxBookNum) >0" @click="goPay()">去支付</text> <text v-if="parseInt(maxBookNum) >0" @click="goPay()" style="background:#3688FF;">去支付</text>
</template> </template>
</view> </view>
...@@ -443,7 +443,6 @@ export default { ...@@ -443,7 +443,6 @@ export default {
beforeBookDays: '', //需提前预定天数 beforeBookDays: '', //需提前预定天数
companyId: '', //公司Id companyId: '', //公司Id
docQuery: '', //元素变量 docQuery: '', //元素变量
payBackground: '', //支付按钮背景颜色
dateScroll: '', //日期滚动值 dateScroll: '', //日期滚动值
timeScroll: '' ,//时间滚动值 timeScroll: '' ,//时间滚动值
openid:uni.getStorageSync('openid') || '',//openid openid:uni.getStorageSync('openid') || '',//openid
...@@ -533,7 +532,6 @@ export default { ...@@ -533,7 +532,6 @@ export default {
//this.chooseService=res.data.data.loadProductResVoList//默认全部选中 //this.chooseService=res.data.data.loadProductResVoList//默认全部选中
if (this.productIfo.status == 1) { if (this.productIfo.status == 1) {
//下架状态 //下架状态
this.payBackground = '#C0C0C0'
return return
} }
if (this.productIfo.productType != 3) { if (this.productIfo.productType != 3) {
...@@ -586,7 +584,6 @@ export default { ...@@ -586,7 +584,6 @@ export default {
title: '没有库存', title: '没有库存',
icon: 'none' icon: 'none'
}) })
this.payBackground = '#C0C0C0'
this.maxBookNum=0 this.maxBookNum=0
return return
} }
...@@ -617,7 +614,6 @@ export default { ...@@ -617,7 +614,6 @@ export default {
title: '没有库存', title: '没有库存',
icon: 'none' icon: 'none'
}) })
this.payBackground = '#C0C0C0'
this.maxBookNum=0 this.maxBookNum=0
return return
} }
...@@ -819,7 +815,7 @@ export default { ...@@ -819,7 +815,7 @@ export default {
if(this.timeList[i].copyLast!='售罄'){ if(this.timeList[i].copyLast!='售罄'){
this.timeActive = i this.timeActive = i
this.cruisePlanId = this.timeList[i].cruisePlanId //获取班次Id this.cruisePlanId = this.timeList[i].cruisePlanId //获取班次Id
this.maxBookNum = Math.min(this.timeList[i].last, this.productIfo.maxBookNum) //获取剩余库存 this.maxBookNum = Math.min(this.timeList[i].last, this.maxBookNum) //获取剩余库存
//如果为班次票,开始时间为班次时间的开始时间,结束时间为班次时间的结束时间,班次时间的结束时间为空时,结束时间为班次时间的开始时间 //如果为班次票,开始时间为班次时间的开始时间,结束时间为班次时间的结束时间,班次时间的结束时间为空时,结束时间为班次时间的开始时间
this.startPlayTime = this.timeList[i].startPlanTime this.startPlayTime = this.timeList[i].startPlanTime
this.endPlayTime = this.timeList[i].endPlanTime || this.timeList[i].startPlanTime this.endPlayTime = this.timeList[i].endPlanTime || this.timeList[i].startPlanTime
...@@ -1732,8 +1728,6 @@ export default { ...@@ -1732,8 +1728,6 @@ export default {
line-height: 80rpx; line-height: 80rpx;
font-size: 32rpx; font-size: 32rpx;
font-weight: bolder; font-weight: bolder;
border-radius: 24rpx;
background: $red;
text-align: center; text-align: center;
} }
.bottom-btn text { .bottom-btn text {
...@@ -1744,6 +1738,8 @@ export default { ...@@ -1744,6 +1738,8 @@ export default {
left: 0; left: 0;
color: #ffffff; color: #ffffff;
top: 0; top: 0;
background:#C0C0C0;
border-radius: 24rpx;
} }
.sortPoptext { .sortPoptext {
font-size: 30rpx; font-size: 30rpx;
......
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