Commit e9727a0b authored by youjie's avatar youjie

线路

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