|
|
@@ -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();
|