Commit b0a1e37f authored by zhengke's avatar zhengke

修改

parent feae3a32
......@@ -28,7 +28,7 @@
</view>
<view class="price">
<text></text>
<text class="money">{{item.B2BPrice}}</text>
<text class="money">{{$utils.getretailer()==true? item.B2BPrice:item.SalesPrice}}</text>
<text></text>
</view>
</view>
......
......@@ -27,7 +27,7 @@
</view>
<view class="price">
<text></text>
<text class="money">{{item.B2BPrice}}</text>
<text class="money">{{$utils.getretailer()==true? item.B2BPrice:item.SalesPrice}}</text>
<text></text>
</view>
</view>
......
......@@ -24,7 +24,7 @@
<view class="f11 king" style="margin-top:15rpx;">{{item.IsCancelStr}}</view>
<view class="price">
<text class="f11" style="margin-right: 10rpx;"></text>
<text>{{item.B2BPrice}}</text>
<text>{{$utils.getretailer()==true? item.B2BPrice:item.SalesPrice}}</text>
</view>
</view>
<view class="rm-opera" v-if="item.Inventory>0&&item.Inventory<5">
......
......@@ -75,7 +75,7 @@
<text style="margin-right: 30rpx;">{{item.DateStr}}</text>
<text v-if="index!=0">{{item.BreakfastTypeStr}}</text>
</view>
<view style="text-align: right;" v-if="index!=priceList.length-1">{{orderMsg.RoomNumber}}间 × ¥{{item.B2BPrice}}</view>
<view style="text-align: right;" v-if="index!=priceList.length-1">{{orderMsg.RoomNumber}}间 × ¥{{$utils.getretailer()==true? item.B2BPrice:item.SalesPrice}}</view>
</view>
</view>
......@@ -230,7 +230,11 @@
CalTotalPrice(){
this.orderMsg.Final_Price=0;
this.priceList.forEach(x=>{
this.orderMsg.Final_Price += parseInt(this.orderMsg.RoomNumber)*x.B2BPrice;
if(this.$utils.getretailer){
this.orderMsg.Final_Price += parseInt(this.orderMsg.RoomNumber)*x.B2BPrice;
}else{
this.orderMsg.Final_Price += parseInt(this.orderMsg.RoomNumber)*x.SalesPrice;
}
})
console.log(this.orderMsg.Final_Price,'this.orderMsg.Final_Price');
},
......
......@@ -382,16 +382,16 @@
{{item.productRecommend}}
</view>
<view style="margin:10px 0;display: flex;align-items: center;">
<view class="start-city">
<view class="start-city" style="margin-right: 20rpx;" v-if="item.startCityName">
<text>{{item.startCityName}}出发</text>
</view>
<view style="margin-left: 20rpx;">
<view>
<u-tag mode="plain" border-color="#DFBE6E" color="#DFBE6E" :text="`${item.dayNum}天`" size="mini"></u-tag>
</view>
</view>
<view class="price">
<text></text>
<text class="money">{{item.b2BPrice}}</text>
<text class="money">{{$utils.getretailer()==true? item.b2BPrice:item.b2CPrice}}</text>
<text></text>
</view>
</view>
......
......@@ -199,14 +199,22 @@
//去支付
goPay() {
this.userInfo = uni.getStorageSync('mall_UserInfo');
this.basedataObj = uni.getStorageSync('basedata').mall;
var CustomerId = 0;
if(this.$utils.getretailer()){
CustomerId = this.basedataObj.virtualB2BCustomerId
}else{
CustomerId = this.basedataObj.virtualB2CCustomerId
}
return;
let msg = {
OrderId: 0,
TCID: this.currentPriceInfo.tcid,
CustomerType: 1,
GroupType: 1,
ContactName: '陕西中旅南二环分公司',
ContactMobile: '18602977416',
CustomerId: '49',
ContactName: '',
ContactMobile: '',
CustomerId: CustomerId,
DepartureCityId: 262,
IsIntermodal: 2,
Unit_Price: this.currentPriceInfo.b2BMemberPrice,
......
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