Commit e9727a0b authored by youjie's avatar youjie

线路

parent 1fefc2ab
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<view style="font-size: 12px; padding-bottom: 3px" v-if="priceStauts.length > 0"> <view style="font-size: 12px; padding-bottom: 3px" v-if="priceStauts.length > 0">
<view v-if="priceStauts[line][index] > 0" style="color:#FF3166"> <view v-if="priceStauts[line][index] > 0" style="color:#FF3166">
{{ priceStauts[line][index] }}</view> {{ priceStauts[line][index] }}</view>
<view v-if="priceStauts[line][index] == -1">售罄</view> <view v-if="priceStauts[line][index] == -1">售罄</view>
<view v-if="priceStauts[line][index] == -2">候补</view> <view v-if="priceStauts[line][index] == -2">候补</view>
</view> </view>
</view> </view>
...@@ -313,8 +313,16 @@ ...@@ -313,8 +313,16 @@
const price = this.priceList.find(p => p.startDate == ds) const price = this.priceList.find(p => p.startDate == ds)
if (price) { if (price) {
isexsit = true isexsit = true
if (price.remainNum > 0) if (price.remainNum > 0){
days.push(this.$utils.getretailer() ? price.b2BPrice : price.b2CPrice) let priceNum = 0
// #ifdef MP-DI
priceNum = price.b2CPrice
/// #endif
// #ifdef MP-AG
priceNum = price.b2BPrice
/// #endif
days.push(priceNum)
}
else if (price.isSubstitution == 1) else if (price.isSubstitution == 1)
days.push(-2) days.push(-2)
else else
...@@ -334,7 +342,14 @@ ...@@ -334,7 +342,14 @@
// if (x.startDate == `${year}-${m}-${d}`) { // if (x.startDate == `${year}-${m}-${d}`) {
// isexsit = true; // isexsit = true;
// if (x.remainNum > 0) { // if (x.remainNum > 0) {
// days.push(this.$utils.getretailer() ? x.b2BPrice : x.b2CPrice); // let priceNum = 0
// // #ifdef MP-DI
// priceNum = x.b2CPrice
// // #endif
// // #ifdef MP-AG
// priceNum = x.b2BPrice
// // #endif
// days.push(priceNum);
// //days.push(x.b2CPrice); // //days.push(x.b2CPrice);
// } else { // } else {
// days.push(-1); // days.push(-1);
......
...@@ -94,7 +94,12 @@ ...@@ -94,7 +94,12 @@
<view v-if="TotalDiscount>0" class="jz_LineDetaYJDKQ" style="padding: 0rpx 0 0 0;"> <view v-if="TotalDiscount>0" class="jz_LineDetaYJDKQ" style="padding: 0rpx 0 0 0;">
<view class="jz_LineDetaYJ"> <view class="jz_LineDetaYJ">
<view class="jz_LineDetaYJL"> <view class="jz_LineDetaYJL">
<!-- 原价 ¥{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}/人起 --> <!-- #ifdef MP-DI -->
<!-- 原价 ¥{{ currentPrice.b2CPrice }}/人起 -->
<!-- #endif -->
<!-- #ifdef MP-AG -->
<!-- 原价 ¥{{ currentPrice.b2BPrice }}/人起 -->
<!-- #endif -->
</view> </view>
<view class="jz_LineDetaYJR">最高可减{{TotalDiscount}}</view> <view class="jz_LineDetaYJR">最高可减{{TotalDiscount}}</view>
</view> </view>
...@@ -287,7 +292,14 @@ ...@@ -287,7 +292,14 @@
<text style="font-size: 28rpx; font-weight: 600">可候补</text> <text style="font-size: 28rpx; font-weight: 600">可候补</text>
</view> </view>
<view v-if="item.remainNum > 0 || item.isSubstitution==1" style="color: #ff3166; font-size: 26rpx"> <view v-if="item.remainNum > 0 || item.isSubstitution==1" style="color: #ff3166; font-size: 26rpx">
{{ $utils.getretailer()?item.b2BPrice:item.b2CPrice}}</view>
<!-- #ifdef MP-DI -->
{{ item.b2CPrice }}
<!-- #endif -->
<!-- #ifdef MP-AG -->
{{ item.b2BPrice }}
<!-- #endif -->
</view>
<view v-if="item.remainNum <= 0 && item.isSubstitution!=1" style="padding: 20rpx 0"> <view v-if="item.remainNum <= 0 && item.isSubstitution!=1" style="padding: 20rpx 0">
<text style="font-size: 32rpx; font-weight: 600">已售罄</text> <text style="font-size: 32rpx; font-weight: 600">已售罄</text>
</view> </view>
...@@ -306,7 +318,14 @@ ...@@ -306,7 +318,14 @@
<text style="font-size: 28rpx; font-weight: 600">可候补</text> <text style="font-size: 28rpx; font-weight: 600">可候补</text>
</view> </view>
<view style="color: #ff3166; font-size: 26rpx" v-if="customerDate.b2BPrice"> <view style="color: #ff3166; font-size: 26rpx" v-if="customerDate.b2BPrice">
¥{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}</view>
<!-- #ifdef MP-DI -->
{{ currentPrice.b2CPrice }}
<!-- #endif -->
<!-- #ifdef MP-AG -->
{{ currentPrice.b2BPrice }}
<!-- #endif -->
</view>
<view v-if="!customerDate.startDate" style="height: 100%;width: 100%; display: flex; align-items: center;justify-content: center;"> <view v-if="!customerDate.startDate" style="height: 100%;width: 100%; display: flex; align-items: center;justify-content: center;">
<view style="font-size: 24rpx; color: #999999">更多<br />班期</view> <view style="font-size: 24rpx; color: #999999">更多<br />班期</view>
</view> </view>
...@@ -949,34 +968,36 @@ ...@@ -949,34 +968,36 @@
<rich-text :nodes="dataList.feature.shopRemark"></rich-text> <rich-text :nodes="dataList.feature.shopRemark"></rich-text>
</view> </view>
</view> </view>
<view class="jz_TripDays" v-if="dataList.feature && dataList.feature.b2BRemark && $utils.getretailer()"> <!-- #ifdef MP-AG -->
<span style=" <view class="jz_TripDays" v-if="dataList.feature && dataList.feature.b2BRemark">
display: inline-block;
position: relative;
margin-bottom: 40rpx;
">
<text style="
position: relative;
z-index: 2;
color: #1f1f1f;
font-size: 36rpx;
font-weight: bold;
">同行备注</text>
<span style=" <span style="
width: 40px; display: inline-block;
background-color: #dfbe6e; position: relative;
height: 6px; margin-bottom: 40rpx;
bottom: 2px; ">
left: 0; <text style="
right: 0; position: relative;
position: absolute; z-index: 2;
z-index: 1; color: #1f1f1f;
"></span> font-size: 36rpx;
</span> font-weight: bold;
<view class="jz_TripMain"> ">同行备注</text>
<rich-text :nodes="dataList.feature.b2BRemark"></rich-text> <span style="
width: 40px;
background-color: #dfbe6e;
height: 6px;
bottom: 2px;
left: 0;
right: 0;
position: absolute;
z-index: 1;
"></span>
</span>
<view class="jz_TripMain">
<rich-text :nodes="dataList.feature.b2BRemark"></rich-text>
</view>
</view> </view>
</view> <!-- #endif -->
<view class="jz_TripDays" v-if="dataList.feature && dataList.feature.visaRemark"> <view class="jz_TripDays" v-if="dataList.feature && dataList.feature.visaRemark">
<span style=" <span style="
display: inline-block; display: inline-block;
...@@ -1121,7 +1142,14 @@ ...@@ -1121,7 +1142,14 @@
<text style="font-size: 22rpx">¥</text> <text style="font-size: 22rpx">¥</text>
<!-- b2b --> <!-- b2b -->
<!--<text style="font-size: 40rpx;font-family: nav-font;">{{discountPrice}}</text>--> <!--<text style="font-size: 40rpx;font-family: nav-font;">{{discountPrice}}</text>-->
<text style="font-size: 40rpx;font-family: nav-font;">{{$utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice}}</text> <text style="font-size: 40rpx;font-family: nav-font;">
<!-- #ifdef MP-DI -->
{{ currentPrice.b2CPrice }}
<!-- #endif -->
<!-- #ifdef MP-AG -->
{{ currentPrice.b2BPrice }}
<!-- #endif -->
</text>
<text style="font-size: 22rpx">/起</text> <text style="font-size: 22rpx">/起</text>
</view> </view>
<view style="display: flex; align-items: center"> <view style="display: flex; align-items: center">
...@@ -1160,7 +1188,14 @@ ...@@ -1160,7 +1188,14 @@
</view> </view>
<view style="color: #ff3166;"> <view style="color: #ff3166;">
<text class="jz_renmin">¥</text> <text class="jz_renmin">¥</text>
<text class="jz_B2bPrice">{{ $utils.getretailer()?(currentPrice.originalB2BPrice+x.BackAddPrice+x.GoAddPrice):(currentPrice.originalB2CPrice+x.BackAddPrice+x.GoAddPrice) }}</text> <text class="jz_B2bPrice">
<!-- #ifdef MP-DI -->
{{currentPrice.originalB2CPrice+x.BackAddPrice+x.GoAddPrice}}
<!-- #endif -->
<!-- #ifdef MP-AG -->
{{ currentPrice.originalB2BPrice+x.BackAddPrice+x.GoAddPrice }}
<!-- #endif -->
</text>
<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> </view>
...@@ -1235,6 +1270,7 @@ ...@@ -1235,6 +1270,7 @@
tcnum: "", tcnum: "",
cityId: 0, cityId: 0,
customerId: 0, customerId: 0,
directCustomerId: 0,//直客Id
}, },
d: {}, d: {},
scenicNum: 0, // 景点数量 scenicNum: 0, // 景点数量
...@@ -1380,9 +1416,7 @@ ...@@ -1380,9 +1416,7 @@
}, },
}, },
created() { created() {
// #ifdef MP-DI
this.Discounts = 0
// #endif
}, },
onLoad(option) { onLoad(option) {
this.mc = this.$uiConfig.mainColor; this.mc = this.$uiConfig.mainColor;
...@@ -1481,7 +1515,6 @@ ...@@ -1481,7 +1515,6 @@
SelectSales(item){ SelectSales(item){
this.SaleName = item.EmName this.SaleName = item.EmName
this.SaleId = item.CreateBy this.SaleId = item.CreateBy
console.log("SaleId--------444444", this.SaleId);
}, },
getUserCouponList() { getUserCouponList() {
let couponParams = { let couponParams = {
...@@ -1759,7 +1792,9 @@ ...@@ -1759,7 +1792,9 @@
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.stepNumber>4) this.Discounts += 1
if(this.dataList.currentPriceInfo.teamType==0) this.Discounts += 1 // #ifdef MP-AG
if(this.dataList.currentPriceInfo.teamType==0) this.Discounts += 1
// #endif
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