This commit is contained in:
952108534@qq.com
2022-01-07 19:48:22 +08:00
parent bd6e653dc1
commit a49efd47b2
22 changed files with 2039 additions and 211 deletions

View File

@@ -131,11 +131,11 @@ export const mostAddClass = (id) => {
/**
* 筛选标签
*/
export const userstype = (mobile, pet,address) => {
export const userstype = (stype, pet,address) => {
var data = {
petType:0,
}
return fetch('productSearchTag/query', data, 'POST' )
return fetch('productSearchTag/query?petType=' + 0, data, 'POST' )
}
/**
* 登录
@@ -201,18 +201,62 @@ export const userque = (stype) => {
//标品全部信息
export const biaomessage = (stype) => {
export const biaomessage = (stype,name) => {
console.log(stype);
var data = {
petType:stype
petType:stype,
page:1,
row:10
}
return fetch('product/query?petType='+stype, data, 'POST' )
}
export const searchchanpin = (stype,categoryName,tagUsedAge,tagFunction,tagBreed) => {
console.log(stype);
var data = {
petType:stype,
page:1,
row:10
}
// return fetch('product/query?petType='+stype+'&categoryName='+categoryName+'&tagUsedAge='+tagUsedAge+'&tagFunction='+tagFunction+'&tagBreed='+tagBreed, data, 'POST' )
}
//查询订单
export const userindent = (phoneNumber,orderNumber,) => {
var data = {
phoneNumber:'18112621098',
orderNumber:orderNumber,
}
return fetch('orderMaster/?type=query', data, 'POST' )
}
//查询订单详情
export const userin = (orderNumber,) => {
var data = {
orderNumber:orderNumber,
}
return fetch('orderMaster/?type=query', data, 'POST' )
}
//取消订单
export const canceldanhao = (orderNumber) => {
var data = {
orderNumber:orderNumber,
}
return fetch('cancelOrder/', data, 'POST' )
}
export const biaomessa = (stype) => {
console.log(stype);
var data = {
name:stype
name:stype,
page:1,
row:10
}
return fetch('product/query', data, 'POST' )
}
@@ -356,7 +400,6 @@ export const goodsmessage = (productCode) => {
//用户领取的优惠券
export const getdraw = (mobile,states) => {
var data = {
channelSecurity:'H5@2021',
mobile:mobile,
status:states
}
@@ -403,17 +446,17 @@ export const goodsmessage = (productCode) => {
//用户订单的查询
export const customerorders = (memberId,channelSecurity,mobile) => {
var data = {
productName:'幼猫全价粮',
buyCount:'2',
productId:'210352',
payAmount:'517',
memberId:'844350',
phoneNumber:'18112621098',
}
return fetch('generateOrderWX', data, 'POST' )
}
// export const customerorders = (memberId,channelSecurity,mobile) => {
// var data = {
// productName:'幼猫全价粮',
// buyCount:'2',
// productId:'210352',
// payAmount:'517',
// memberId:'844350',
// phoneNumber:'18112621098',
// }
// return fetch('generateOrderWX', data, 'POST' )
// }
//地址的查询