Authored by 周少峰

Merge branch 'hotfix/studentsIE'

@@ -61,7 +61,7 @@ module.exports = { @@ -61,7 +61,7 @@ module.exports = {
61 udp: { // send by udp 61 udp: { // send by udp
62 measurement: 'yohobuy_node_log', 62 measurement: 'yohobuy_node_log',
63 level: 'debug', // logger level 63 level: 'debug', // logger level
64 - host: 'influxdblog.yohoops.org', // influxdb host 64 + host: 'influxdblog.web.yohoops.org', // influxdb host
65 port: '4444' // influxdb port 65 port: '4444' // influxdb port
66 }, 66 },
67 console: { 67 console: {
@@ -126,7 +126,7 @@ if (isProduction) { @@ -126,7 +126,7 @@ if (isProduction) {
126 open: false, 126 open: false,
127 url: 'http://123.206.2.55/strategy' 127 url: 'http://123.206.2.55/strategy'
128 }, 128 },
129 - zookeeperServer: '10.66.1.97:2181' 129 + zookeeperServer: 'zookeeper.web.yohoops.org:2181'
130 }); 130 });
131 } else if (isTest) { 131 } else if (isTest) {
132 Object.assign(module.exports, { 132 Object.assign(module.exports, {
1 { 1 {
2 "name": "yohobuy-node", 2 "name": "yohobuy-node",
3 - "version": "5.1.3", 3 + "version": "5.1.4",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -53,8 +53,8 @@ @@ -53,8 +53,8 @@
53 "request-ip": "^1.2.2", 53 "request-ip": "^1.2.2",
54 "serve-favicon": "^2.3.0", 54 "serve-favicon": "^2.3.0",
55 "uuid": "^2.0.2", 55 "uuid": "^2.0.2",
56 - "yoho-node-lib": "0.1.29",  
57 - "yoho-zookeeper": "^1.0.3" 56 + "yoho-node-lib": "0.1.30",
  57 + "yoho-zookeeper": "^1.0.4"
58 }, 58 },
59 "devDependencies": { 59 "devDependencies": {
60 "autoprefixer": "^6.3.6", 60 "autoprefixer": "^6.3.6",
@@ -162,6 +162,7 @@ function clearSelectUl($a, code) { @@ -162,6 +162,7 @@ function clearSelectUl($a, code) {
162 $input.val($a.html()); 162 $input.val($a.html());
163 } 163 }
164 $ul.empty(); 164 $ul.empty();
  165 + $ul.addClass('hide');
165 $wrap.removeClass('active'); 166 $wrap.removeClass('active');
166 } 167 }
167 168
@@ -227,6 +228,7 @@ function loadSelectLi(jsonData, param) { @@ -227,6 +228,7 @@ function loadSelectLi(jsonData, param) {
227 if (data.code === 200) { 228 if (data.code === 200) {
228 fnJson[jsonData.keyData] = data.data; 229 fnJson[jsonData.keyData] = data.data;
229 jsonData.$ul.html(provFn(fnJson)); 230 jsonData.$ul.html(provFn(fnJson));
  231 + jsonData.$ul.removeClass('hide');
230 } else if (data.code === 403) { 232 } else if (data.code === 403) {
231 location.href = data.data.url; 233 location.href = data.data.url;
232 } 234 }
@@ -426,6 +428,7 @@ $stuYear.on('click', function() { @@ -426,6 +428,7 @@ $stuYear.on('click', function() {
426 for (i = year - 7; i <= year; i++) { 428 for (i = year - 7; i <= year; i++) {
427 yearArr.push(i); 429 yearArr.push(i);
428 } 430 }
  431 + $ul.removeClass('hide');
429 $ul.html(provFn({ 432 $ul.html(provFn({
430 yearData: yearArr 433 yearData: yearArr
431 })); 434 }));
@@ -170,6 +170,10 @@ exports.processProductList = (list, options) => { @@ -170,6 +170,10 @@ exports.processProductList = (list, options) => {
170 // 判别默认的商品是否将默认的图片URL赋值到skn 170 // 判别默认的商品是否将默认的图片URL赋值到skn
171 let flag = false; 171 let flag = false;
172 172
  173 + _.remove(product.goods_list, function(n) {
  174 + return !+n.status;
  175 + });
  176 +
173 // 如果设置了默认图片,就取默认的图片 177 // 如果设置了默认图片,就取默认的图片
174 _.forEach(product.goods_list, (goods) => { 178 _.forEach(product.goods_list, (goods) => {
175 if (flag) { 179 if (flag) {