Commit d69f3150 authored by youjie's avatar youjie

线路列表

parent b19165c0
...@@ -498,7 +498,14 @@ ...@@ -498,7 +498,14 @@
</view> </view>
<view class="price" style="text-align: unset;"> <view class="price" style="text-align: unset;">
<text></text> <text></text>
<text class="money">{{parseFloat($utils.getretailer()?item.b2BPrice:item.b2CPrice).toFixed(2)}}</text> <text class="money">
<!-- #ifdef MP-DI -->
{{parseFloat(item.b2CPrice).toFixed(2)}}
<!-- #endif -->
<!-- #ifdef MP-AG -->
{{parseFloat(item.b2BPrice).toFixed(2)}}
<!-- #endif -->
</text>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -54,10 +54,20 @@ ...@@ -54,10 +54,20 @@
<view class="col"> <view class="col">
<!-- <text>同业价:</text> <!-- <text>同业价:</text>
<text class="jz_renmin">¥</text><text class="jz_B2bPrice">{{ discountPrice }}</text> --> <text class="jz_renmin">¥</text><text class="jz_B2bPrice">{{ discountPrice }}</text> -->
<!-- #ifdef MP-AG -->
<text>原价:</text> <text>原价:</text>
<text class="jz_renmin">¥</text><text class="jz_B2bPrice">{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}</text> <!-- #endif -->
<text class="jz_renmin">¥</text>
<text class="jz_B2bPrice">
<!-- #ifdef MP-DI -->
{{currentPrice.b2CPrice}}
<!-- #endif -->
<!-- #ifdef MP-AG -->
{{currentPrice.b2BPrice}}
<!-- #endif -->
</text>
<text style="color: #999999; font-size: 28rpx; font-weight: 400">/人起</text> <text style="color: #999999; font-size: 28rpx; font-weight: 400">/人起</text>
<!-- #ifdef MP-AG -->
<view class="" v-if="stepNumber==0&&dataList.currentPriceInfo.teamType==0"> <view class="" v-if="stepNumber==0&&dataList.currentPriceInfo.teamType==0">
<text style="font-size: 13px;color:#111"> <text style="font-size: 13px;color:#111">
直客价:<text style="font-size: 20rpx;">¥</text>{{ currentPrice.b2CPrice}} 直客价:<text style="font-size: 20rpx;">¥</text>{{ currentPrice.b2CPrice}}
...@@ -66,8 +76,9 @@ ...@@ -66,8 +76,9 @@
<text style="font-size: 13px;color:#111;margin-left: 10px;" v-else> <text style="font-size: 13px;color:#111;margin-left: 10px;" v-else>
直客价:<text style="font-size: 20rpx;">¥</text>{{ currentPrice.b2CPrice}} 直客价:<text style="font-size: 20rpx;">¥</text>{{ currentPrice.b2CPrice}}
</text> </text>
<!-- #endif -->
</view> </view>
<!-- #ifdef MP-AG -->
<view v-if="stepNumber==0&&dataList.currentPriceInfo.teamType==0" class="row items-center jz_LineDetaCZ" style="border-radius: 4px;overflow: hidden;font-size: 12px;" > <view v-if="stepNumber==0&&dataList.currentPriceInfo.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>
...@@ -77,6 +88,8 @@ ...@@ -77,6 +88,8 @@
<template v-else>30</template>元/人 <template v-else>30</template>元/人
</view> </view>
</view> </view>
<!-- #endif -->
</view> </view>
<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">
...@@ -92,7 +105,8 @@ ...@@ -92,7 +105,8 @@
</view> </view>
<view class="jz_LineDetaYJDKQ" v-if="stepNumber>0 && dataList.currentPriceInfo.teamType==0"> <view class="jz_LineDetaYJDKQ" v-if="stepNumber>0 && dataList.currentPriceInfo.teamType==0">
<view class="jz_LineDetaFL"> <view class="jz_LineDetaFL">
<view v-if="" class="row items-center jz_LineDetaCZ" <!-- #ifdef MP-AG -->
<view 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>
...@@ -102,6 +116,7 @@ ...@@ -102,6 +116,7 @@
<template v-else>30</template>元/人 <template v-else>30</template>元/人
</view> </view>
</view> </view>
<!-- #endif -->
<!-- <view class="jz_LineDetaFLJf" > <!-- <view class="jz_LineDetaFLJf" >
预计:{{}}积分 预计:{{}}积分
</view> --> </view> -->
...@@ -1364,7 +1379,11 @@ ...@@ -1364,7 +1379,11 @@
}, },
}, },
}, },
created() {}, created() {
// #ifdef MP-DI
this.Discounts = 0
// #endif
},
onLoad(option) { onLoad(option) {
this.mc = this.$uiConfig.mainColor; this.mc = this.$uiConfig.mainColor;
if(!uni.getStorageSync("b2b_user")){ if(!uni.getStorageSync("b2b_user")){
...@@ -1474,6 +1493,12 @@ ...@@ -1474,6 +1493,12 @@
"CustomerType": 0, //客户类型 0-同行,1-直客 "CustomerType": 0, //客户类型 0-同行,1-直客
"TCID": this.currentPrice.tcid, "TCID": this.currentPrice.tcid,
} }
// #ifdef MP-DI
couponParams.CustomerType = 1
// #endif
// #ifdef MP-AG
couponParams.CustomerType = 0
// #endif
if (this.currentPrice.teamType == "0") { if (this.currentPrice.teamType == "0") {
//跟团游 //跟团游
couponParams.CouponsUseScope = 2; couponParams.CouponsUseScope = 2;
...@@ -1500,7 +1525,13 @@ ...@@ -1500,7 +1525,13 @@
this.maxCouponDiscount = this.maxCouponDiscount<disMoney?disMoney:this.maxCouponDiscount this.maxCouponDiscount = this.maxCouponDiscount<disMoney?disMoney:this.maxCouponDiscount
} }
}) })
let money = this.$utils.getretailer()?this.currentPrice.b2BPrice:this.currentPrice.b2CPrice let money = 0
//#ifdef MP-DI
money = this.currentPrice.b2CPrice
//#endif
//#ifdef MP-AG
money = this.currentPrice.b2BPrice
//#endif
let maxCouponDiscount = this.maxCouponDiscount let maxCouponDiscount = this.maxCouponDiscount
this.TotalDiscount = this.maxCouponDiscount this.TotalDiscount = this.maxCouponDiscount
if(this.stepNumber<5){ if(this.stepNumber<5){
......
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