Payment flow refined

This commit is contained in:
Vion
2022-01-23 19:29:46 +08:00
parent 8ff86279a0
commit c5e5978615
17 changed files with 141 additions and 74 deletions

View File

@@ -56,7 +56,7 @@ export const getleckCourse = (name, offset) => {
* 加入购物车
*/
export const postCourseId = (productCode, buyCount, memberId, mobile, productImg, productName, productPrice, specifications, leftAllotment) => {
export const postCourseId = (productCode, buyCount, memberId, mobile, productImg, productName, productPrice, specifications, leftAllotment, basePiont) => {
var data = {
buyCount: buyCount,
memberId: memberId,
@@ -66,7 +66,8 @@ export const postCourseId = (productCode, buyCount, memberId, mobile, productImg
productName: productName,
productPrice: productPrice,
specifications: specifications,
leftAllotment: leftAllotment
leftAllotment: leftAllotment,
basePiont: basePiont
}
return fetch('/insertCartProductInfo', data, 'POST')
}
@@ -78,6 +79,14 @@ export const isexistCart = (id, pet, address) => {
return fetch('getCartProductInfo?memberId=' + id, data, 'POST')
}
/**
* 支付监听
*/
export const monitorOrderNotify = (OrderNumber) => {
var data = {}
return fetch('monitorOrderNotify?OrderNumber=' + OrderNumber, data, 'POST')
}
/**
* 删除购物车
*/