jufubao-mall 2.0.27-beta5 → 2.0.27-beta7

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-beta7",
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)
@@ -775,18 +785,6 @@
775
785
  this.jwxSDK = res.jwxSDK;
776
786
  })
777
787
  // #endif
778
-
779
- if(this.ticketPositionStatus === 'Y'){
780
- this.$nextTick(() => {
781
- setTimeout(() => {
782
- uni.pageScrollTo({
783
- scrollTop: 10000,
784
- duration: 200
785
- })
786
- }, 1000)
787
- })
788
-
789
- }
790
788
  },
791
789
  /**
792
790
  * @description 监听事件变化
@@ -938,11 +936,14 @@
938
936
  },
939
937
  handleCardChoseAlert(){
940
938
  this.hasAlertCardChose = true;
941
- //滚动到底部
942
- uni.pageScrollTo({
943
- scrollTop: 99999,
944
- duration: 0
945
- })
939
+ if(this.ticketPositionStatus === 'Y'){
940
+ //滚动到底部
941
+ uni.pageScrollTo({
942
+ scrollTop: 99999,
943
+ duration: 0
944
+ })
945
+ }
946
+
946
947
  },
947
948
  handleCardInit(cardList){
948
949
  this.cardList = cardList;
@@ -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;