Authored by yyq

Merge branch 'release/1.0' of git.yoho.cn:fe/yoho-blk into release/1.0

... ... @@ -2,9 +2,8 @@
<div class="slide-wrapper">
<ul>
{{# slider}}
<a href="{{url}}" target= "_blank">
<li class="banner-item" style="{{#if bgColor}}background-color:{{bgColor}}{{/if}}; background-image:url('{{image src 1150 570}}')">
</a>
<li class="banner-item" style="{{#if bgColor}}background-color:{{bgColor}}{{/if}}; background-image:url('{{image src 1150 570}}')">
<a href="{{url}}" target= "_blank"></a>
{{# tips}}
<div class="slide-tips">
<div class="g-mark"></div>
... ...
... ... @@ -36,7 +36,6 @@ const _processListData = (list) => {
});
_.forEach(list.list.artList, (data) => {
// console.log(data)
if (data.author) {
listData = _.assign(listData, {
... ... @@ -230,7 +229,7 @@ const _getRelatedData = (idList) => {
cnAlphabet: data.cn_alphabet
});
});
console.log(productList);
return productList;
} else {
logger.error('推荐商品 cood 不是 200');
... ... @@ -247,6 +246,7 @@ const _getRelatedData = (idList) => {
const _processContentData = (list) => {
list = list || [];
list = camelCase(list);
console.log(list);
let contentData = {
contents: []
... ... @@ -282,6 +282,7 @@ const _processContentData = (list) => {
if (value.goods) {
_.forEach(value.goods.data, function(data) {
console.log(data);
idList += data.id + ',';
related.relatedReco.push(data);
... ... @@ -308,7 +309,10 @@ const _processContentData = (list) => {
if (related.relatedReco) {
_.forEach(related.relatedReco, function(data, index) {
data = _.assign(data, {
// link: `${config.siteUrl}/product/list/pro_${result[index].id}_data.${data.productSkc}`
});
data = _.assign(data, result[index]);
});
result.splice(0, recoLength.length);
... ...
... ... @@ -87,6 +87,7 @@ const favorite = {
ret.content.favorite.data = retData;
ret.content.banner = thumb;
console.log(retData);
}
res.display('index', ret);
... ...
... ... @@ -20,7 +20,10 @@ const getAddressDataAsync = (uid, limit) => {
method: 'app.address.gethidden',
uid: uid,
limit: limit
}).then(result => result);
}).then(result => {
console.log(result);
return result;
});
};
... ...
... ... @@ -21,13 +21,15 @@
<td class="width-opearte">
<div>
<span class="blue opreation update-address" data-id="{{address_id}}">修改</span>
{{#if default}}
<em class="op-sep {{#if default}}hide{{/if}}">|</em>
<span class="blue opreation del-address {{#if default}}hide{{/if}}" data-id="{{address_id}}">删除</span>
{{#if default}}
<span class="btn set-default opreation current-default" data-id={{address_id}}>默认地址</span>
{{else}}
<em class="op-sep">|</em>
<span class="blue opreation del-address" data-id="{{address_id}}">删除</span>
<span class="btn set-default opreation " data-id={{address_id}}>设为默认</span>
{{/if}}
{{else}}
<span class="btn set-default opreation " data-id={{address_id}}>设为默认</span>
{{/if}}
</div>
</td>
</tr>
... ...
... ... @@ -30,7 +30,8 @@
<div class="way">
{{#if takeGoods}}
<p class="contact">我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094" target="_blank"><span class="iconfont">&#xe61c;</span></a>在线客服</p>
<p class="contact">我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094" target="_blank"><span class="iconfont">&#xe61c;</span>在线客服</a>
</p>
{{/if}}
{{#if reminder}}
... ... @@ -50,7 +51,7 @@
{{/if}}
{{#if doubt}}
<p class="contact">如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094" target="_blank"><span class="iconfont">&#xe61c;</span>在线客服</p></a>
<p class="contact">如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094" target="_blank"><span class="iconfont">&#xe61c;</span>在线客服</a></p>
{{/if}}
{{#if auditSuccess}}
... ...
... ... @@ -22,8 +22,8 @@ module.exports = {
},
cookieDomain: 'yohoblk.com',
domains: {
api: 'http://testapi.yoho.cn:28078/', // devapi.yoho.cn:58078 testapi.yoho.cn:28078 devapi.yoho.cn:58078
service: 'http://testservice.yoho.cn:28077/', // testservice.yoho.cn:28077 devservice.yoho.cn:58077
api: 'http://dev-api.yohops.com:9999/', // dev-api.yohops.com:9999 testapi.yoho.cn:28078 devapi.yoho.cn:58078
service: 'http://dev-service.yohops.cn:9999/', // testservice.yoho.cn:28077 devservice.yoho.cn:58077
search: 'http://192.168.102.216:8080/yohosearch/'
},
useOneapm: false,
... ... @@ -106,8 +106,8 @@ if (isProduction) {
Object.assign(module.exports, {
appName: 'www.yohoblk.com for test',
domains: {
api: 'http://api-test1.yohops.com:9999/',
service: 'http://service-test1.yohops.com:9999/',
api: 'http://testapi.yoho.cn:28078/',
service: 'http://testservice.yoho.cn:28077/',
search: 'http://192.168.102.216:8080/yohosearch/'
},
useOneapm: true,
... ... @@ -118,9 +118,6 @@ if (isProduction) {
session: ['127.0.0.1:12111'],
timeout: 1000,
retries: 0
},
pay: {
serviceNotify: 'http://service-test1.yohops.com:9999/'
}
});
}
... ...
... ... @@ -22,6 +22,7 @@ var $commentList = $commentArea.find('.comments-wrap'),
pag = 0;
require('../plugins/share');
require('../common/header');
// require('yoho-unslider');
... ...
... ... @@ -11,6 +11,7 @@ var _alert = dialog.Alert;
require('../common/header');
require('../common/return-top');
require('../common/header');
$('.editorial-index-page').on('click', '.like-icon', function() {
var $this = $(this),
... ... @@ -32,7 +33,7 @@ $('.editorial-index-page').on('click', '.like-icon', function() {
}).then(function(data) {
if (data.code === 200) {
$this.next('b').html(data.data);
$this.toggleClass('liked');
$this.toggleClass('liked');
} else {
new _alert(data.message).show();
}
... ...
... ... @@ -10,6 +10,7 @@ var _alert = dialog.Alert;
require('../common/header');
require('../common/return-top');
require('../common/header');
lazyLoad($('.content-msg img.lazy'));
... ...
... ... @@ -266,8 +266,12 @@ $(function() {
},
success: function(data) {
if (data.code === 200) {
$('.del-address').removeClass('hide');
$('.op-sep').removeClass('hide');
$('.current-default').removeClass('current-default').text('设为默认');
$(self).addClass('current-default').text('默认地址');
$(self).siblings('.del-address').addClass('hide');
$(self).siblings('.op-sep').addClass('hide');
tbody.find('.table-body').eq(0).before('<tr class=\'table-body select-row\'>' + tr.html() +
'</tr>');
tr.remove();
... ... @@ -277,11 +281,12 @@ $(function() {
}
});
});
// 选中某一行
$(document).on('click', '.table-body', function() {
$(document).on('mousemove', '.table-body', function() {
$('.table-body').removeClass('select-row');
$(this).addClass('select-row');
... ...
... ... @@ -166,4 +166,8 @@
padding: 0 10px;
color: #999;
}
.hide {
display: none;
}
}
... ...
... ... @@ -67,16 +67,18 @@
.contact {
line-height: 50px;
height: 50px;
color: #219dd6;
span {
margin-left: 20px;
}
a {
color: #219dd6;
}
.iconfont {
font-size: 12px;
margin-right: 5px;
color: #219dd6;
}
}
}
... ...