Kaynağa Gözat

导航栏高度优化

yuwenjun1997 2 yıl önce
ebeveyn
işleme
af019a3ffd
1 değiştirilmiş dosya ile 13 ekleme ve 0 silme
  1. 13 0
      src/main/resources/static/js/shopping/confirm.js

+ 13 - 0
src/main/resources/static/js/shopping/confirm.js

@@ -164,6 +164,19 @@ var shoppingConfirm = new Vue({
             }
         }
     },
+    watch:{
+        returnGoodsStutas(nval){
+            this.$nextTick(function(){
+                // 底部导航栏高度不一致问题
+                var height = $('#shoppingConfirm .summaryWrap').height() + 'px'
+                if(isPC){
+                    $('#shoppingConfirm .summary-wrapper').css('height', height)
+                }else{
+                    $('#shoppingConfirm .wrap').css('padding-bottom', height)
+                }
+            })
+        }
+    },
     methods: {
         handleCheckboxChange: function(){
             console.log(this.agreementActive)