xiongzhu 4 роки тому
батько
коміт
7c5f9853f7
1 змінених файлів з 1 додано та 15 видалено
  1. 1 15
      src/main/comos/src/views/Submit.vue

+ 1 - 15
src/main/comos/src/views/Submit.vue

@@ -295,21 +295,7 @@ export default {
             });
         },
         submit() {
-            if (!this.payType) {
-                this.$toast('请选择支付方式');
-                return;
-            }
-            this.$toast.loading('加载中');
-            let url = '/order/create?collectionId=' + this.$route.query.id + '&qty=1';
-            if (this.couponInfo) {
-                url += '&couponId=' + this.couponInfo.id;
-            }
-            let invitor = sessionStorage.getItem('invitor');
-            if (invitor) {
-                url += '&invitor=' + invitor;
-            }
-            this.$http
-                .post(url)
+            this.createOrder()
                 .then(res => {
                     if (this.money) {
                         this.$toast.clear();