Header login link added

This commit is contained in:
Vion
2022-01-21 22:01:11 +08:00
parent 5abe70012d
commit 323ca9bce9
5 changed files with 33 additions and 15 deletions

View File

@@ -180,7 +180,7 @@ export const useredit = (mobile, pet,address) => {
// return fetch('h5/brand/query', data, 'POST' )
// }
//点击商品全部信息
export const userquery = (stype) => {
export const userquery = (stype, ) => {
console.log(stype);
var data = {
@@ -189,13 +189,20 @@ export const userquery = (stype) => {
}
return fetch('goods?petType='+stype, data, 'POST' )
}
//商品全部信息
export const userque = (stype) => {
console.log(stype);
//处方信息
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;
var data = {
}
return fetch('goods', data, 'POST' )
return fetch('goods'+queryTail, data, 'POST' )
}