y595705120 há 3 dias atrás
pai
commit
f42e6aeed2
1 ficheiros alterados com 3 adições e 4 exclusões
  1. 3 4
      src/containers/center/market/index.vue

+ 3 - 4
src/containers/center/market/index.vue

@@ -449,8 +449,8 @@
         }
         this.width = width + "px";
       },
-      matchPromise(name) {
-        let type = this.type;
+      matchPromise(item) {
+        let {type,name} = item;
         let isMatch = false
         for (let i in this.promiseList) {
           let item = this.promiseList[i];
@@ -589,8 +589,7 @@
         this.buyForm.company = this.userInfo.company;
         this.buyForm.temp = item;
         this.buyForm.courseName = item.name;
-        this.matchType(item.type);
-        this.matchPromise(item.name);
+        this.matchPromise(item);
         // this.testBuyOK(item)
         // return;
         // 检查