Authored by shuaiguo

fix(一件代发): 数据兼容&接口字段定义

... ... @@ -44,7 +44,8 @@ module.exports={
{name: 'smallSortId',type: 'Number'},
{name: 'page',type: 'Number'},
{name: 'size',type: 'Number'},
{name: 'productStatusStr',type: 'String'},
{name: 'productStatusStr',type: 'String'},
{name: 'isOneSend',type: 'String'},
]
},
updateProductSknStatus:{
... ...
... ... @@ -23,8 +23,7 @@ module.exports = function (app){
if(rs.data && rs.data.shopsAddressInfo) {
rs.data.shopsAddressInfo = JSON.stringify(rs.data.shopsAddressInfo);
}
console.log('------------data------------', JSON.stringify(rs.data))
this.$extend={
moduleName:"店铺管理",
pageName:"店铺编辑",
... ...
... ... @@ -297,9 +297,10 @@ var g = new common.grid({
display: "年龄层/性别",
render: function(item) {
var html = [];
var ageLevel=common.config.__ageLevel(item.ageLevel);
var ageLevel=common.config.__ageLevel(item.ageLevel|| '');
var gender = GenderEnum.gender[item.gender];
html.push("<p>" + ageLevel + " / " + gender + "</p>");
const ageLevelText = ageLevel ? ageLevel + " / " : ''
html.push("<p>" + ageLevelText + gender + "</p>");
return html.join('');
}
... ...
... ... @@ -10,7 +10,7 @@ var goodsInfo=window.ViewModel || {};
goodsInfo = goodsInfo.data || {};
goodsInfo.attribute={"1":"普通商品","2":"赠品","3":"虚拟商品","4":"组合商品"}[""+goodsInfo.attribute];
goodsInfo.ageLevel=common.config.__ageLevel(goodsInfo.ageLevel);//goodsInfo.ageLevel.replace("1","成人").replace("2","大童").replace("3","小童");
goodsInfo.ageLevel=common.config.__ageLevel(goodsInfo.ageLevel|| '');//goodsInfo.ageLevel.replace("1","成人").replace("2","大童").replace("3","小童");
goodsInfo.gender={"1":"男","2":"女","3":"通用"}[""+goodsInfo.gender];
goodsInfo.grade={"0":"否","1":"是"}[""+goodsInfo.grade];
goodsInfo.goodsSeason={"0":"四季","1":"春","2":"夏","3":"秋","4":"冬","5":"春夏","6":"秋冬"}[""+goodsInfo.goodsSeason];
... ...