Commit b77e147e authored by youjie's avatar youjie

no message

parent 94242990
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<text style="color: #999999; font-size: 28rpx; font-weight: 400">/人起</text> <text style="color: #999999; font-size: 28rpx; font-weight: 400">/人起</text>
</view> </view>
<view v-if="stepNumber==0&&currentPrice.teamType==0" class="row items-center jz_LineDetaCZ" style="border-radius: 4px;overflow: hidden;font-size: 12px;" > <view v-if="stepNumber==0&&dataList.teamType==0" class="row items-center jz_LineDetaCZ" style="border-radius: 4px;overflow: hidden;font-size: 12px;" >
<view class="jz_LineDetaCZL"> <view class="jz_LineDetaCZL">
<view style="opacity: 0;">1</view> <view style="opacity: 0;">1</view>
</view> </view>
...@@ -66,19 +66,19 @@ ...@@ -66,19 +66,19 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="maxCouponDiscount>0" class="jz_LineDetaYJDKQ" style="padding: 0rpx 0 0 0;"> <view v-if="maxCouponDiscount>0||stepNumber>4" class="jz_LineDetaYJDKQ" style="padding: 0rpx 0 0 0;">
<view class="jz_LineDetaYJ"> <view class="jz_LineDetaYJ">
<view class="jz_LineDetaYJL">原价 ¥{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}/人起</view> <view class="jz_LineDetaYJL">原价 ¥{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}/人起</view>
<view class="jz_LineDetaYJR">已减{{maxCouponDiscount}}</view> <view class="jz_LineDetaYJR">已减{{maxCouponDiscount}}</view>
</view> </view>
<view v-if="stepNumber>0" class="jz_LineDetaRDKQ"> <view v-if="couponList.length>0" class="jz_LineDetaRDKQ">
<view>1张抵扣券</view> <view>{{couponList.length}}张抵扣券</view>
<u-icon name="arrow" size="30" color="#cecece" style="margin-left: 5px;"></u-icon> <u-icon name="arrow" size="30" color="#cecece" style="margin-left: 5px;"></u-icon>
</view> </view>
</view> </view>
<view class="jz_LineDetaYJDKQ" v-if="stepNumber>0"> <view class="jz_LineDetaYJDKQ" v-if="dataList.teamType==0||stepNumber>0||couponList.length>0">
<view class="jz_LineDetaFL"> <view class="jz_LineDetaFL">
<view v-if="currentPrice.teamType==0" class="row items-center jz_LineDetaCZ" <view v-if="stepNumber>0&&dataList.teamType==0" class="row items-center jz_LineDetaCZ"
style="border-radius: 4px;overflow: hidden;font-size: 12px;margin-right: 15rpx;" > style="border-radius: 4px;overflow: hidden;font-size: 12px;margin-right: 15rpx;" >
<view class="jz_LineDetaCZL"> <view class="jz_LineDetaCZL">
<view style="opacity: 0;">1</view> <view style="opacity: 0;">1</view>
...@@ -88,12 +88,12 @@ ...@@ -88,12 +88,12 @@
<template v-else>30</template>元/人 <template v-else>30</template>元/人
</view> </view>
</view> </view>
<view class="jz_LineDetaFLJf"> <view class="jz_LineDetaFLJf" >
278.25积分 278.25积分
</view> </view>
</view> </view>
<view class="jz_LineDetaRDKQ"> <view class="jz_LineDetaRDKQ">
<view>共{{currentPrice.teamType==0?'3':'2'}}项福利</view> <view>共{{Discounts}}项福利</view>
<u-icon name="arrow" size="30" color="#cecece" style="margin-left: 5px;"></u-icon> <u-icon name="arrow" size="30" color="#cecece" style="margin-left: 5px;"></u-icon>
</view> </view>
</view> </view>
...@@ -1279,6 +1279,7 @@ ...@@ -1279,6 +1279,7 @@
stepNumber: 0, stepNumber: 0,
UnfOddNumber: 0, UnfOddNumber: 0,
discountPrice: 0, discountPrice: 0,
Discounts: 1,
}; };
}, },
watch: { watch: {
...@@ -1424,6 +1425,9 @@ ...@@ -1424,6 +1425,9 @@
x.denomination =x.expansionModel.denomination x.denomination =x.expansionModel.denomination
} }
}) })
// setTimeout(()=>{
// console.log(this.currentPrice,'=======222')
// ,1000})
}, },
SelectSales(item){ SelectSales(item){
this.SaleName = item.EmName this.SaleName = item.EmName
...@@ -1454,6 +1458,9 @@ ...@@ -1454,6 +1458,9 @@
(res) => { (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.couponList = res.data this.couponList = res.data
if(this.couponList.length>0) {
this.Discounts += 1
}
this.calcPzCouponHandler() this.calcPzCouponHandler()
this.couponList.forEach(x=>{ this.couponList.forEach(x=>{
if(x.couponsType==1 && x.denomination>this.maxCouponDiscount) this.maxCouponDiscount=x.denomination if(x.couponsType==1 && x.denomination>this.maxCouponDiscount) this.maxCouponDiscount=x.denomination
...@@ -1463,8 +1470,23 @@ ...@@ -1463,8 +1470,23 @@
} }
}) })
let money = this.$utils.getretailer()?this.currentPrice.b2BPrice:this.currentPrice.b2CPrice let money = this.$utils.getretailer()?this.currentPrice.b2BPrice:this.currentPrice.b2CPrice
this.discountPrice = money-this.maxCouponDiscount let maxCouponDiscount = this.maxCouponDiscount
if(this.stepNumber<5){
this.discountPrice = money-this.maxCouponDiscount
}else{
let discountPrice = money-this.maxCouponDiscount
if(this.dataList.lineId==168){
this.discountPrice = (discountPrice*0.95).toFixed(2)
maxCouponDiscount += money-Number(this.discountPrice)
console.log(discountPrice*0.95,'-----欧洲线')
}else{
this.discountPrice = Number(discountPrice)-100
maxCouponDiscount+=100
console.log(Number(discountPrice)-100,'-----其他线')
}
console.log(maxCouponDiscount,'------已减')
this.maxCouponDiscount = maxCouponDiscount.toFixed(2)
}
} }
}, },
(err) => { } (err) => { }
...@@ -1665,6 +1687,8 @@ ...@@ -1665,6 +1687,8 @@
this.dataList = res.data; this.dataList = res.data;
this.stepNumber = this.dataList.orderNum this.stepNumber = this.dataList.orderNum
this.UnfOddNumber = (Number(this.stepNumber)-5)*-1 this.UnfOddNumber = (Number(this.stepNumber)-5)*-1
if(this.stepNumber>4) this.Discounts += 1
if(this.dataList.teamType==0) this.Discounts += 1
try { try {
this.formatDay(); this.formatDay();
} catch (e) { } catch (e) {
......
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