Browse Source

处理BUG

wangcz 7 years ago
parent
commit
37da4caa3b
1 changed files with 6 additions and 1 deletions
  1. 6 1
      pages/mobile/center/vendor/sample/index.vue

+ 6 - 1
pages/mobile/center/vendor/sample/index.vue

@@ -245,7 +245,12 @@
         this.showModal = true
         if (this.isUnread(bill.id)) {
           let lists = []
-          this.$http.post(`/sale/sample/setRead`, {params: lists.push(bill.id)})
+          lists[0] = bill.id
+          let _then = this
+          this.$http.post(`/sale/sample/setRead`, lists)
+            .then(() => {
+              _then.getHasUser()
+            })
         }
         this.$http.get(`/sale/sample/${bill.id}/send`)
           .then(res => {