Merge branch 'sit-Carl' of gitee.com:carl_Ming_1/smart-admin into sit-He-v3

This commit is contained in:
Admin
2022-01-23 06:40:06 +00:00
committed by Gitee
18 changed files with 154 additions and 180 deletions

View File

@@ -81,11 +81,12 @@ export const isexistCart = (id, pet, address) => {
/**
* 删除购物车
*/
export const deleteCart = (productCode) => {
export const deleteCart = ( productCode) => {
debugger;
var data = {
productCode: productCode
productCode
}
return fetch('cancelCartProductInfo', data, 'POST')
return fetch('cancelCartProductInfo',productCode,'POST')
}
/**
* 购物车批量提交
@@ -188,16 +189,14 @@ export const userquery = (stype,) => {
return fetch('goods?petType=' + stype, data, 'POST')
}
//处方信息
export const userque = (stype, curPage, curRow) => {
if (!curPage)
curPage = 1;
if (!curRow)
curRow = 10;
let queryTail = 'page=' + curPage + '&rows=' + curRow;
if (stype)
queryTail = '?stype=' + queryTail + '&' + queryTail;
else
queryTail = '?' + queryTail;
export const userque = (goodsName, curPage,curRow) => {
if(!curPage)
curPage=1;
if(!curRow)
curRow=10;
let queryTail='page='+curPage+'&rows='+curRow;
if(goodsName)
queryTail = '?goodsName='+goodsName;
var data = {
}
return fetch('goods' + queryTail, data, 'POST')