Rx goods modified

This commit is contained in:
Vion
2022-01-22 23:04:56 +08:00
parent 144e0820bf
commit 358f0f66b9
4 changed files with 28 additions and 18 deletions

View File

@@ -188,16 +188,14 @@ export const userquery = (stype, ) => {
return fetch('goods?petType='+stype, data, 'POST' )
}
//处方信息
export const userque = (stype, curPage,curRow) => {
export const userque = (goodsName, 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;
if(goodsName)
queryTail = '?goodsName='+goodsName;
var data = {
}
return fetch('goods'+queryTail, data, 'POST' )