浏览代码

导航栏高度优化

yuwenjun1997 2 年之前
父节点
当前提交
af019a3ffd
共有 1 个文件被更改,包括 13 次插入0 次删除
  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)