Authored by yyq

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

... ... @@ -61,11 +61,12 @@ const index = (req, res) => {
let data = Object.assign(getData(id), helpModel.menuData());
let nav = [
{
link: global.yoho.config.sitUrl,
link: global.yoho.config.siteUrl,
name: 'YOHO!BLK首页'
},
{
name: '帮助中心'
name: '帮助中心',
link: '/help'
}
];
... ...
... ... @@ -314,6 +314,10 @@ const _getUserOrder = (uid, type, page) => {
item.isRefundOrder = ot === 7;
if (parseInt(item.payLefttime, 10) !== 0) {
item.showLeftTime = true;
}
if (item.isCancel === 'Y') {
item.showBuyBtn = true;
item.statusStr = '已取消';
... ... @@ -511,7 +515,8 @@ const getOrderDetail = (uid, code) => {
detail.createTime = _convertUnixTime(detail.createTime);
if (detail.isCancel === 'N' &&
st === 0) {
st === 0 &&
parseInt(detail.payLefttime, 10) !== 0) {
detail.showLeftTime = true;
}
... ...
... ... @@ -22,7 +22,9 @@
{{#if showPayButton}}
<div class="pay-operation">
{{#if isOnlinePaid}}
{{#if showLeftTime}}
<span class="iconfont hide-when-invalid">&#xe606;</span><p class="left-time" data-left="{{payLefttime}}"></p>
{{/if}}
<a href="{{payUrl}}">
<span class="btn red hide-when-invalid">立即付款</span>
</a>
... ...
... ... @@ -88,10 +88,16 @@ const helpers = {
* @returns {*[]}
*/
genders(gender) {
let defaults = {
'1,3': '男士',
'2,3': '女士'
};
if (gender) {
return Object.keys(gender).map(g => {
return {
name: gender[g],
name: defaults[g],
value: g
};
});
... ...
... ... @@ -52,12 +52,15 @@ const Payment = {
let bankRecord = result[2];
let bankCode = ''; // 暂时写成'', 参考php代码 Payment.php:564
console.log(paymentRecord);
if (!paymentRecord || paymentRecord.code !== 200 || !prePayResult || prePayResult.code !== 200) {
let message = paymentRecord && paymentRecord.message ? paymentRecord.message : '系统繁忙,请稍后再试';
return {code: 400, message: message};
}
if (bankRecord && bankRecord.bankCode) {
return PayData.updateOrderPayBank(order.orderCode, method, bankCode);
} else {
... ...
... ... @@ -106,8 +106,8 @@ if (isProduction) {
Object.assign(module.exports, {
appName: 'www.yohoblk.com for test',
domains: {
api: 'http://testapi.yoho.cn:28078/',
service: 'http://testservice.yoho.cn:28077/',
api: 'http://api-test1.yohops.com:9999/',
service: 'http://service-test1.yohops.com:9999/',
search: 'http://192.168.102.216:8080/yohosearch/'
},
useOneapm: true,
... ... @@ -118,6 +118,9 @@ if (isProduction) {
session: ['127.0.0.1:12111'],
timeout: 1000,
retries: 0
},
pay: {
serviceNotify: 'http://service-test1.yohops.com:9999/'
}
});
}
... ...
... ... @@ -29,6 +29,7 @@ $subsets.click(function() {
$('.smll-category').hide();
$('.subsets').children('.plus').css('background-image', 'url(\'../img/help/plus.png\')');
$child.show();
$subsets.removeClass('open');
$this.addClass('open').children('.plus').css('background-image', 'url(\'../img/help/minus.png\')');
}
});
... ...
... ... @@ -19,7 +19,7 @@
position: relative;
&.bottom-space {
margin-bottom: 15px;
margin-bottom: 20px;
}
&.right-space {
... ... @@ -49,7 +49,7 @@
img {
width: $bigImgWidth;
height: calc($smallImgHeight*2+$space+4px);
height: calc($smallImgHeight*2+$space+10px);
}
}
... ...
... ... @@ -15,6 +15,7 @@
.card {
height: $height;
width: calc($width + $space);
float: left;
position: relative;
box-sizing: border-box;
... ...
... ... @@ -44,6 +44,7 @@
font-size: 14px;
font-weight: 700;
margin-left: 10px;
cursor: pointer;
}
.input-radio label.round-color {
... ...