mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-21 18:06:52 +08:00
Merge branch 'sit-Carl' of gitee.com:carl_Ming_1/smart-admin into sit-He-v3
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user