Browse Source

货币筛选与展示栏的交互。

yangc 8 years ago
parent
commit
33500a098d
1 changed files with 7 additions and 2 deletions
  1. 7 2
      pages/search/_keyword.vue

+ 7 - 2
pages/search/_keyword.vue

@@ -159,8 +159,13 @@
         }
       },
       listenCrnameFlag: function (obj) {
-        this.crname_click_flag.rmb_click_flag = obj.rmb_click_flag
-        this.crname_click_flag.usd_click_flag = obj.usd_click_flag
+        if (obj.rmb_click_flag && obj.usd_click_flag) {
+          this.crname_click_flag.rmb_click_flag = false
+          this.crname_click_flag.usd_click_flag = false
+        } else {
+          this.crname_click_flag.rmb_click_flag = obj.rmb_click_flag
+          this.crname_click_flag.usd_click_flag = obj.usd_click_flag
+        }
       }
     }
   }