Browse Source

fix: 修复节点未获取

zhangyuhan 3 years ago
parent
commit
4b5a4c2f55

+ 3 - 0
src/jfw/modules/app/src/web/templates/weixin/historypush.html

@@ -1681,6 +1681,9 @@ function hasNoData() {
                 this.$refs.vKeepComponent.ajaxAddKeep(id, type)
             },
             changeKeepStatus (type, that) {
+                if (!that) {
+                  that = $('*[data-id="'+this.nowOpenBid+'"]')
+                }
                 changeCollectStatus(type, that)
                 changeCollectDataStatus(type, this.nowOpenBid)
             }

+ 3 - 0
src/web/templates/weixin/historypush.html

@@ -1772,6 +1772,9 @@
                 this.$refs.vKeepComponent.ajaxAddKeep(id, type)
             },
             changeKeepStatus (type, that) {
+                if (!that) {
+                  that = $('*[data-id="'+this.nowOpenBid+'"]')
+                }
                 changeCollectStatus(type, that)
                 changeCollectDataStatus(type, this.nowOpenBid)
             }