Browse Source

客户端展示订单优惠明细

AddValidOverTime
shanji 2 years ago
parent
commit
66a5bcf417
  1. 2
      BBWY.Client/GlobalContext.cs
  2. 170
      BBWY.Client/Views/Order/OrderCouponDetailWindow.xaml

2
BBWY.Client/GlobalContext.cs

@ -13,7 +13,7 @@ namespace BBWY.Client
{
ShopServiceGroupList = new List<string>();
ShopServiceGroupLowerList = new List<string>();
ClientVersion = "10188";
ClientVersion = "10189";
}
private User user;

170
BBWY.Client/Views/Order/OrderCouponDetailWindow.xaml

@ -11,6 +11,7 @@
DataContext="{Binding OrderCouponDetailVM,Source={StaticResource Locator}}"
MinButtonVisibility="Collapsed"
MaxButtonVisibility="Collapsed">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
@ -21,7 +22,9 @@
<TextBlock Text="{Binding OrderId,StringFormat=\{0\}优惠明细}" Style="{StaticResource middleTextBlock}"/>
</Border>
<Grid Grid.Row="1" Margin="5">
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto"
Grid.Row="1">
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="40"/>
@ -139,6 +142,171 @@
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.ColumnSpan="5" HorizontalAlignment="Right"/>
</Grid>
</Grid>
<TextBlock Text="金额明细拆分" Grid.Row="1" VerticalAlignment="Center"/>
<Border Grid.Row="2" Width="250" HorizontalAlignment="Left"
BorderBrush="{StaticResource Border.Brush}" BorderThickness="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.4*"/>
</Grid.ColumnDefinitions>
<Grid Background="{StaticResource Border.Background}" Grid.ColumnSpan="2"></Grid>
<TextBlock Text="项目" Style="{StaticResource middleTextBlock}"/>
<TextBlock Text="金额" Style="{StaticResource middleTextBlock}" Grid.Column="1"/>
<Border Width="1" Background="{StaticResource Border.Brush}" HorizontalAlignment="Right" Grid.RowSpan="30"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2"/>
<TextBlock Text="合计单品金额" Style="{StaticResource middleTextBlock}" Grid.Row="1"/>
<TextBlock Text="{Binding Coupon.TotalItemPrice}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="1"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="1"/>
<TextBlock Text="合计基础优惠" Style="{StaticResource middleTextBlock}" Grid.Row="2"/>
<TextBlock Text="{Binding Coupon.TotalBaseDiscount}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="2"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="2"/>
<TextBlock Text="合计满减" Style="{StaticResource middleTextBlock}" Grid.Row="3"/>
<TextBlock Text="{Binding Coupon.TotalManJian}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="3"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="3"/>
<TextBlock Text="合计商家运费" Style="{StaticResource middleTextBlock}" Grid.Row="4"/>
<TextBlock Text="{Binding Coupon.TotalVenderFee}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="4"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="4"/>
<TextBlock Text=" 合计基础运费" Style="{StaticResource middleTextBlock}" Grid.Row="5"/>
<TextBlock Text="{Binding Coupon.TotalBaseFee}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="5"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="5"/>
<TextBlock Text="合计偏远运费" Style="{StaticResource middleTextBlock}" Grid.Row="6"/>
<TextBlock Text="{Binding Coupon.TotalRemoteFee}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="6"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="6"/>
<TextBlock Text="合计优惠券" Style="{StaticResource middleTextBlock}" Grid.Row="7"/>
<TextBlock Text="{Binding Coupon.TotalCoupon}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="7"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="7"/>
<TextBlock Text="合计京豆" Style="{StaticResource middleTextBlock}" Grid.Row="8"/>
<TextBlock Text="{Binding Coupon.TotalJingDou}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="8"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="8"/>
<TextBlock Text="合计余额" Style="{StaticResource middleTextBlock}" Grid.Row="9"/>
<TextBlock Text="{Binding Coupon.TotalBalance}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="9"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="9"/>
<TextBlock Text="合计超级红包" Style="{StaticResource middleTextBlock}" Grid.Row="10"/>
<TextBlock Text="{Binding Coupon.TotalSuperRedEnvelope}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="10"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="10"/>
<TextBlock Text="合计plus会员95折优惠" Style="{StaticResource middleTextBlock}" Grid.Row="11"/>
<TextBlock Text="{Binding Coupon.TotalPlus95}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="11"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="11"/>
<TextBlock Text="合计退换货无忧" Style="{StaticResource middleTextBlock}" Grid.Row="12"/>
<TextBlock Text="{Binding Coupon.TotalTuiHuanHuoWuYou}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="12"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="12"/>
<TextBlock Text="合计全球购税费" Style="{StaticResource middleTextBlock}" Grid.Row="13"/>
<TextBlock Text="{Binding Coupon.TotalTaxFee}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="13"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="13"/>
<TextBlock Text="合计落地配服务" Style="{StaticResource middleTextBlock}" Grid.Row="14"/>
<TextBlock Text="{Binding Coupon.TotalLuoDiPeiService}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="14"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="14"/>
<TextBlock Text="合计应付金额" Style="{StaticResource middleTextBlock}" Grid.Row="15"/>
<TextBlock Text="{Binding Coupon.TotalShouldPay}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="15"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="15"/>
<TextBlock Text="合计京券" Style="{StaticResource middleTextBlock}" Grid.Row="16"/>
<TextBlock Text="{Binding Coupon.TotalJingQuan}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="16"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="16"/>
<TextBlock Text="合计东券" Style="{StaticResource middleTextBlock}" Grid.Row="17"/>
<TextBlock Text="{Binding Coupon.TotalDongQuan}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="17"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="17"/>
<TextBlock Text="合计限品类京券" Style="{StaticResource middleTextBlock}" Grid.Row="18"/>
<TextBlock Text="{Binding Coupon.TotalXianPinLeiJingQuan}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="18"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="18"/>
<TextBlock Text="合计限品类东券" Style="{StaticResource middleTextBlock}" Grid.Row="19"/>
<TextBlock Text="{Binding Coupon.TotalXianPinLeiDongQuan}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="19"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="19"/>
<TextBlock Text="合计按比例平台承担优惠券" Style="{StaticResource middleTextBlock}" Grid.Row="20"/>
<TextBlock Text="{Binding Coupon.TotalPingTaiChengDanYouHuiQuan}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="20"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="20"/>
<TextBlock Text="合计礼金优惠" Style="{StaticResource middleTextBlock}" Grid.Row="21"/>
<TextBlock Text="{Binding Coupon.TotalLiJinYouHui}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="21"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="21"/>
<TextBlock Text="合计支付营销优惠" Style="{StaticResource middleTextBlock}" Grid.Row="22"/>
<TextBlock Text="{Binding Coupon.TotalZhiFuYingXiaoYouHui}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="22"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="22"/>
<TextBlock Text="合计京东支付优惠" Style="{StaticResource middleTextBlock}" Grid.Row="23"/>
<TextBlock Text="{Binding Coupon.TotalJdZhiFuYouHui}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="23"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="23"/>
<TextBlock Text="合计全球购一般税" Style="{StaticResource middleTextBlock}" Grid.Row="24"/>
<TextBlock Text="{Binding Coupon.TotalGlobalGeneralTax}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="24"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="24"/>
<TextBlock Text="合计全球购一般包税" Style="{StaticResource middleTextBlock}" Grid.Row="25"/>
<TextBlock Text="{Binding Coupon.TotalGlobalGeneralIncludeTax}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="25"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="25"/>
<TextBlock Text="合计京享礼金" Style="{StaticResource middleTextBlock}" Grid.Row="26"/>
<TextBlock Text="{Binding Coupon.TotalJingXiangLiJin}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="26"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="26"/>
<TextBlock Text="合计跨店满减促销" Style="{StaticResource middleTextBlock}" Grid.Row="27"/>
<TextBlock Text="{Binding Coupon.TotalPromotionDiscount}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="27"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="27"/>
<TextBlock Text="合计满期赠促销" Style="{StaticResource middleTextBlock}" Grid.Row="28"/>
<TextBlock Text="{Binding Coupon.TotalExpiryGiftDiscount}" Style="{StaticResource middleTextBlock}" Grid.Column="1" Grid.Row="28"/>
<Border Height="1" Background="{StaticResource Border.Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" Grid.Row="28"/>
</Grid>
</Border>
</Grid>
</ScrollViewer>
</Grid>
</c:BWindow>

Loading…
Cancel
Save