Authored by 周奇琪

Merge branch 'release/1.6' of git.dev.yoho.cn:platform/yohobuy-portal-fe into release/1.6

@@ -180,7 +180,7 @@ var g = new common.grid({ @@ -180,7 +180,7 @@ var g = new common.grid({
180 }, { 180 }, {
181 display: '售价', 181 display: '售价',
182 render: function(item) { 182 render: function(item) {
183 - var vip = item.isVIP ? ENUM.isVIP[item.isVIP] : '', 183 + var vip = ENUM.isVIP[item.isVIP] ? ENUM.isVIP[item.isVIP] : '',
184 retailPrice = item.retailPrice ? item.retailPrice : '', 184 retailPrice = item.retailPrice ? item.retailPrice : '',
185 salesPrice = item.salesPrice ? item.salesPrice : ''; 185 salesPrice = item.salesPrice ? item.salesPrice : '';
186 return '<p><strong>吊牌价:</strong>' + retailPrice + '</p>' + 186 return '<p><strong>吊牌价:</strong>' + retailPrice + '</p>' +
@@ -196,13 +196,13 @@ var g = new common.grid({ @@ -196,13 +196,13 @@ var g = new common.grid({
196 render: function(item) { 196 render: function(item) {
197 var html = ''; 197 var html = '';
198 198
199 - if (item.ageLevel) { 199 + if (ENUM.ageLevel[item.ageLevel]) {
200 html += ENUM.ageLevel[item.ageLevel]; 200 html += ENUM.ageLevel[item.ageLevel];
201 if (item.gender) { 201 if (item.gender) {
202 html += '/'; 202 html += '/';
203 } 203 }
204 } 204 }
205 - if (item.gender) { 205 + if (ENUM.gender[item.gender]) {
206 html += ENUM.gender[item.gender] 206 html += ENUM.gender[item.gender]
207 } 207 }
208 return html; 208 return html;
@@ -45,7 +45,12 @@ GOLABDATA.on("LYaddInfo", function() { @@ -45,7 +45,12 @@ GOLABDATA.on("LYaddInfo", function() {
45 } 45 }
46 46
47 }); 47 });
48 - return JSON.stringify(arr); 48 + if (arr.length > 0) {
  49 + return JSON.stringify(arr);
  50 + } else {
  51 + return '';
  52 + }
  53 +
49 } 54 }
50 option.debug = true; 55 option.debug = true;
51 }); 56 });
@@ -70,6 +75,7 @@ $.ajax({ @@ -70,6 +75,7 @@ $.ajax({
70 data.makeCrafts = productExtBo.makeCrafts; 75 data.makeCrafts = productExtBo.makeCrafts;
71 data.salesPhrase = productExtBo.salesPhrase; 76 data.salesPhrase = productExtBo.salesPhrase;
72 data.isHostsell = productExtBo.isHostsell; 77 data.isHostsell = productExtBo.isHostsell;
  78 +
73 $.each(data, function(key, value) { 79 $.each(data, function(key, value) {
74 if (value) { 80 if (value) {
75 data[key] = value; 81 data[key] = value;
@@ -97,7 +97,7 @@ var g = new common.grid({ @@ -97,7 +97,7 @@ var g = new common.grid({
97 }, { 97 }, {
98 display: "发表时间", 98 display: "发表时间",
99 render: function(item) { 99 render: function(item) {
100 - return common.util.__dateFormat(new Date(item.createTime), "yyyy-MM-dd hh:mm:ss"); 100 + return common.util.__dateFormat(new Date(item.createTime * 1000), "yyyy-MM-dd hh:mm:ss");
101 } 101 }
102 }, { 102 }, {
103 display: "操作", 103 display: "操作",
This diff could not be displayed because it is too large.
@@ -27,7 +27,7 @@ a:focus { @@ -27,7 +27,7 @@ a:focus {
27 min-height: 60px; 27 min-height: 60px;
28 position: fixed; 28 position: fixed;
29 width: 100%; 29 width: 100%;
30 - z-index: 99999; 30 + z-index: 1000;
31 } 31 }
32 32
33 .headerwrapper:after { 33 .headerwrapper:after {
@@ -66,8 +66,8 @@ input[type=date], input[type=time], input[type=datetime-local], input[type=month @@ -66,8 +66,8 @@ input[type=date], input[type=time], input[type=datetime-local], input[type=month
66 } 66 }
67 .poseditimg{ 67 .poseditimg{
68 position: relative; 68 position: relative;
69 - width: 700px;  
70 - height: 600px; 69 + width: 100%;
  70 + height: auto;
71 img{ 71 img{
72 display: block; 72 display: block;
73 width: 100%; 73 width: 100%;
@@ -96,6 +96,10 @@ input[type=date], input[type=time], input[type=datetime-local], input[type=month @@ -96,6 +96,10 @@ input[type=date], input[type=time], input[type=datetime-local], input[type=month
96 top: 20%; 96 top: 20%;
97 z-index: 1000; 97 z-index: 1000;
98 98
  99 + ul {
  100 + padding: 0;
  101 + }
  102 +
99 li { 103 li {
100 width: 150px; 104 width: 150px;
101 line-height: 40px; 105 line-height: 40px;
@@ -5,51 +5,7 @@ exports.domain = require('../config/common.js').domain; @@ -5,51 +5,7 @@ exports.domain = require('../config/common.js').domain;
5 //exports.domain = 'http://172.16.6.197:8080/yohobuy-platform-web'; //耿超 5 //exports.domain = 'http://172.16.6.197:8080/yohobuy-platform-web'; //耿超
6 6
7 //商品管理路由配置 7 //商品管理路由配置
8 -exports.res = [  
9 - /*{  
10 - //商品审核  
11 - route: '/supplier/baseaudit/index',  
12 - method: 'GET',  
13 - view: 'pages/goods/index',  
14 - data: {  
15 - bottons: '{"detail":true}',  
16 - gridurl: '/goods/review/getList',  
17 - searchStatus: [{  
18 - name: "未审核",  
19 - value: "100"  
20 - }, {  
21 - name: "已通过",  
22 - value: "200"  
23 - }, {  
24 - name: "驳回",  
25 - value: "300"  
26 - }],  
27 - searchJIT: true,  
28 - pageTitle: "商品审核"  
29 - },  
30 - src: '/goods/index'  
31 - }, {  
32 - route: '/goods/review/getList',  
33 - method: 'POST',  
34 - url: '/goods/review/getReviewList',  
35 - params: [{  
36 - name: 'skn',  
37 - type: 'String'  
38 - }, {  
39 - name: 'brandName',  
40 - type: 'String'  
41 - }, {  
42 - name: 'storeName',  
43 - type: 'String'  
44 - }, {  
45 - name: 'status',  
46 - type: 'String'  
47 - }, {  
48 - name: 'jit',  
49 - type: 'String'  
50 - }]  
51 - }, */  
52 - { 8 +exports.res = [{
53 //网销信息 -> 网销信息页面渲染 9 //网销信息 -> 网销信息页面渲染
54 route: '/goods/netsale/index', 10 route: '/goods/netsale/index',
55 method: 'GET', 11 method: 'GET',
1 -exports.domain = 'http://172.16.9.8:8080/yohobuy-platform-web'; 1 +//exports.domain = 'http://172.16.9.8:8080/yohobuy-platform-web';
  2 +exports.domain = require('../config/common.js').domain;
2 exports.res = [{ 3 exports.res = [{
3 //网销信息 -> 逛关联 4 //网销信息 -> 逛关联
4 route: '/goods/article/queryArticlesBySKN', 5 route: '/goods/article/queryArticlesBySKN',