mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-16 23:53:48 +08:00
Banner update
This commit is contained in:
@@ -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' )
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user