Sfoglia il codice sorgente

商品购买增加未选商品提示

kevin_zhangl 3 anni fa
parent
commit
757df29cb4
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      frontendEle/src/views/shop/index.vue

+ 5 - 0
frontendEle/src/views/shop/index.vue

@@ -119,6 +119,11 @@
                 console.log(val);
             },
             goToAccounts() {
+                if (this.multipleSelection.length <= 0) {
+                  this.$message.error('Please choose the products.')
+                  return false
+                }
+
                 this.is_go_order=true;
                 // this.multipleSelection.map((item,index)=>{
                 //     item.chose_num = parseInt(item.chose_num);