Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-portal-fe into develop
Showing
1 changed file
with
14 additions
and
5 deletions
@@ -46,6 +46,13 @@ var GoodsTypeEnum = { | @@ -46,6 +46,13 @@ var GoodsTypeEnum = { | ||
46 | } | 46 | } |
47 | 47 | ||
48 | 48 | ||
49 | +var YNEnum = { | ||
50 | + enum:{ | ||
51 | + "Y":"是", | ||
52 | + "N":"否" | ||
53 | + } | ||
54 | +} | ||
55 | + | ||
49 | /*下拉选择*/ | 56 | /*下拉选择*/ |
50 | new common.dropDown({el:"#shopId",ajax:"queryShop"}); | 57 | new common.dropDown({el:"#shopId",ajax:"queryShop"}); |
51 | new common.dropDown({el:"#brandId",ajax:"queryBrand"}); | 58 | new common.dropDown({el:"#brandId",ajax:"queryBrand"}); |
@@ -91,9 +98,12 @@ var g = new common.grid({ | @@ -91,9 +98,12 @@ var g = new common.grid({ | ||
91 | }}, | 98 | }}, |
92 | {display:"商品信息",render:function(item){ | 99 | {display:"商品信息",render:function(item){ |
93 | var html=[]; | 100 | var html=[]; |
101 | + | ||
102 | + var catgory = item.maxSortName; | ||
103 | + | ||
94 | html.push("<p>名称:"+item.productName+"</p>"); | 104 | html.push("<p>名称:"+item.productName+"</p>"); |
95 | - html.push("<p>品牌:"+item.productName+"</p>"); | ||
96 | - html.push("<p>品类:"+item.productName+"</p>"); | 105 | + html.push("<p>品牌:"+item.brandName+"</p>"); |
106 | + html.push("<p>品类:"+catgory+"</p>"); | ||
97 | return html.join(''); | 107 | return html.join(''); |
98 | }}, | 108 | }}, |
99 | 109 | ||
@@ -105,11 +115,10 @@ var g = new common.grid({ | @@ -105,11 +115,10 @@ var g = new common.grid({ | ||
105 | 115 | ||
106 | //待审核和驳回列表中只显示吊牌价和销售价,通过的列表中显示四种 | 116 | //待审核和驳回列表中只显示吊牌价和销售价,通过的列表中显示四种 |
107 | if (item.isAuditing === 200) { | 117 | if (item.isAuditing === 200) { |
108 | - html.push("<p>是否VIP:"+item.productName+"</p>"); | ||
109 | - html.push("<p>yoho币:"+item.productName+"</p>"); | 118 | + html.push("<p>是否VIP:"+YNEnum.enum(item.isVip)+"</p>"); |
119 | + html.push("<p>yoho币:"+item.yohoCoin+"</p>"); | ||
110 | } | 120 | } |
111 | 121 | ||
112 | - | ||
113 | return html.join(''); | 122 | return html.join(''); |
114 | }}, | 123 | }}, |
115 | 124 |
-
Please register or login to post a comment