Browse Source

H5-商品列表增加售罄按钮

panyong 3 years ago
parent
commit
139631e617
1 changed files with 33 additions and 0 deletions
  1. 33 0
      htmldev/dashboard/src/views/sell/pay/api/index.js

+ 33 - 0
htmldev/dashboard/src/views/sell/pay/api/index.js

@@ -0,0 +1,33 @@
+import request from '@/api/request'
+
+/**
+ * 获取预付款
+ */
+export const apiBarList = (id) => request({
+  method: 'GET',
+  url: '/api/v1/user/prepare/order/list',
+  params: {
+    bar_id: id // 酒吧ID
+  }
+})
+
+/**
+ * 获取优惠券
+ */
+export const apiCouponList = (id) => request({
+  method: 'GET',
+  url: '/api/v1/user/coupon/list',
+  params: {
+    bar_id: id // 酒吧ID
+  }
+})
+
+/**
+ * 创建订座
+ * @param postData 表单提交
+ */
+export const apiPlacePreOrder = (postData) => request({
+  method: 'POST',
+  url: '/api/v1/user/preorder/create',
+  data: postData
+})