yuanyuan 3 лет назад
Родитель
Сommit
7a6a2fbf9b
1 измененных файлов с 9 добавлено и 2 удалено
  1. 9 2
      src/views/user/ShoppingCartSubmit.vue

+ 9 - 2
src/views/user/ShoppingCartSubmit.vue

@@ -107,10 +107,8 @@ export default {
     },
     methods: {
         getCollectionList(index, list, allList) {
-            console.log('gagagfasfa');
             if (index >= allList.length) {
                 this.collectionList = list;
-                console.log('cgcgvcg', this.collectionList.length, this.$route.query.id.length);
                 this.collectionList.forEach(item => {
                     this.price += Number(item.price);
                 });
@@ -269,6 +267,15 @@ export default {
             });
         },
         submit() {
+            if (this.collectionList.length == 0) {
+                this.$dialog
+                    .alert({
+                        title: '提示',
+                        message: '订单列表正在刷新,请稍等'
+                    })
+                    .then(res => {});
+                return;
+            }
             if (this.payType == 'BALANCE') {
                 this.showPwdDialog = true;
             }