Banner update

This commit is contained in:
Vion
2022-03-02 19:06:41 +08:00
parent 63e6b94656
commit 6c60d6296d
7 changed files with 52 additions and 18 deletions

View File

@@ -425,10 +425,13 @@ export const dogquery = (productCode,type) => {
//查询商品信息
export const productQuery = (productCode) => {
var data = {
productCode:productCode
}
return fetch('product/query', data, 'POST' )
let url = 'product/query';
if(productCode) {
url += '?productCode='+encodeURI(productCode);
}
var data = {
}
return fetch(url, data, 'POST' )
}

View File

@@ -75,6 +75,21 @@ let util = {
return mapping[paytype];
return '';
},
getAgeMapping(tagAgeStr){
let mapping = {
"1":'<4月龄,离乳期', //奶糕
"2":'4-12月龄,幼年',//幼年
"3":'1-7岁,成年',//成年
"4":'>7岁,老年',//老年
};
for(let id in mapping) {
let item = mapping[id];
if(item.indexOf(tagAgeStr)>-1) {
return id;
}
}
return false;
},
/*
couponDisplayFilter(couponList,filterObj,returnRequirement){
//Dictionary : filterObj {}