jufubao-mall 2.0.27-beta5 → 2.0.27-beta6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.27-beta5",
3
+ "version": "2.0.27-beta6",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -208,7 +208,7 @@
208
208
  }">
209
209
  <view>
210
210
  <view class="t_price">实付:<xd-unit :price="orderNeedPayPrice" :isOld="false"></xd-unit></view>
211
- <view v-if="isShowPlusSavingMoney" class="b_price">共省<xd-unit :price="orderFee.plus_saving_money" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit></view>
211
+ <view v-if="orderDiscountPrice > 0" class="b_price">共省<xd-unit :price="orderDiscountPrice" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit></view>
212
212
  </view>
213
213
  </view>
214
214
  <view>
@@ -667,6 +667,16 @@
667
667
  let result = this.$xdUniHelper.cutFloatNumber(total_amount, total);
668
668
  return result;
669
669
  },
670
+ orderDiscountPrice(){
671
+ let total = 0;
672
+ if(this.orderFee.user_logistics_discount_amount){
673
+ total = this.$xdUniHelper.addFloatNumber(total, this.orderFee.user_logistics_discount_amount);
674
+ }
675
+ if(this.isShowPlusSavingMoney){
676
+ total = this.$xdUniHelper.addFloatNumber(total, this.orderFee.plus_saving_money);
677
+ }
678
+ return total;
679
+ },
670
680
  bottomBoxStyle(){
671
681
  return {
672
682
  padding: this.getMarginAndPadding(this.bottomPadding, 16)
@@ -111,7 +111,7 @@ export default {
111
111
  <style lang="less" scoped>
112
112
  .chose_shop_list{
113
113
  background: #F7F7F7;
114
- padding: 16rpx;
114
+ padding: 0 16rpx 16rpx;
115
115
  position: relative;
116
116
  height: 45vh;
117
117
  }
@@ -191,6 +191,7 @@ export default {
191
191
  .shop_list{
192
192
  height: 100%;
193
193
  overflow-y: auto;
194
+ padding-top: 16rpx;
194
195
  .shop_item{
195
196
  display: flex;
196
197
  background: #FFFFFF;