浏览代码

fix:pc底部订单价格刷新异常

yangfeng 3 年之前
父节点
当前提交
a10cd68b44
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/web/staticres/js/coupon/coupon.js

+ 6 - 2
src/web/staticres/js/coupon/coupon.js

@@ -106,7 +106,9 @@ var vComponent = {
       this.coupon = this.couponList[this.selectIndex].reduce
 
       try {
-        window.refreshStickyInfo && window.refreshStickyInfo()
+        setTimeout(function(){
+          window.refreshStickyInfo && window.refreshStickyInfo()
+        }, 0)
       } catch (error) {}
     },
     getList: function () {
@@ -138,7 +140,9 @@ var vComponent = {
             _this.couponList = []
           }
           try {
-            window.refreshStickyInfo && window.refreshStickyInfo()
+            setTimeout(function(){
+              window.refreshStickyInfo && window.refreshStickyInfo()
+            }, 0)
           } catch (error) {}
         }).fail(function () {
           _this.couponList = []