Data tracking / Revision by 0207 ppt

This commit is contained in:
Vion
2022-02-07 18:12:29 +08:00
parent 28c2614ca3
commit 02b361680b
10 changed files with 340 additions and 203 deletions

View File

@@ -208,17 +208,22 @@ export const userquery = (stype, ) => {
return fetch('goods?petType='+stype, data, 'POST' )
}
//处方信息
export const userque = (goodsName, curPage,curRow) => {
export const userque = (goodsName, petType, curPage,curRow) => {
if(!curPage)
curPage=1;
if(!curRow)
curRow=10;
let queryTail='page='+curPage+'&rows='+curRow;
let queryTail='&page='+curPage+'&rows='+curRow;
let query='?0';
if(goodsName)
queryTail = '?goodsName='+goodsName;
query += '&goodsName='+goodsName;
if(petType!==undefined && petType!=='') {
query += '&petType='+petType;
}
query += queryTail;
var data = {
}
return fetch('goods'+queryTail, data, 'POST' )
return fetch('goods'+query, data, 'POST' )
}