diff --git a/pages/main/order.vue b/pages/main/order.vue
new file mode 100644
index 0000000..b086607
--- /dev/null
+++ b/pages/main/order.vue
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/shop/order.vue b/pages/shop/order.vue
index 4c54641..cd6ebc7 100644
--- a/pages/shop/order.vue
+++ b/pages/shop/order.vue
@@ -44,8 +44,8 @@
合计:
¥{{total | formatPrice}}
-
+
提交订单
Checkout
@@ -64,6 +64,7 @@
export default {
data() {
return {
+ isPressed: false, //提交按钮是否锁定
remark: '' //用户备注
}
},
@@ -90,6 +91,10 @@
totalPrice,
//提交订单
handleCheckout() {
+ if (this.isPressed) {//防止提交订单按钮重复点击
+ return
+ }
+ this.isPressed = true
//提交订单
uni.$u.http.post('/Api/Check/checkout', {
cartList: JSON.stringify(this.cartList), //购物车列表
@@ -126,6 +131,7 @@
title: res.data.msg,
icon: 'error'
})
+ this.isPressed = false
}
})
}