Authored by 王水玲

有货分期

... ... @@ -14,7 +14,7 @@ const _reviewStatus = (uid, status, next) => {
if (status === '1') {
return {
review: {
url: helpers.urlFormat('/product/new')
url: helpers.appUrlFormat('/product/new', 'go.new')
}
};
} else if (status === '2') {
... ... @@ -35,7 +35,7 @@ const _reviewStatus = (uid, status, next) => {
} else if (status === '3') {
return {
error: {
url: helpers.urlFormat('/product/new')
url: helpers.appUrlFormat('/product/new', 'go.new')
}
};
}
... ...
... ... @@ -8,6 +8,7 @@ const utils = '../../../utils';
const productProcess = require(`${utils}/product-process`);
const resourcesProcess = require(`${utils}/resources-process`);
const _ = require('lodash');
const helpers = global.yoho.helpers;
const api = global.yoho.API;
const serviceAPI = global.yoho.ServiceAPI;
const logger = global.yoho.logger;
... ... @@ -270,7 +271,9 @@ const getSearchIntallment = (params) => {
let goods = productProcess.processProductList(result.data.product_list);
_.forEach(goods, (data) => {
data.url = data.url + `?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":${data.productSkn}}}`;//eslint-disable-line
data.url = helpers.appUrlFormat(data.url, 'go.productDetail', {
product_skn: data.productSkn
});
});
return goods;
... ...
... ... @@ -4,7 +4,7 @@
<div class="no-result">
<i class="result-icon"></i>
<p class="txt">暂无待还款订单</p>
<a href="/product/new" class="guang-btn">去逛逛</a>
<a href='/product/new?openby:yohobuy={"action":"go.new"}' class="guang-btn">去逛逛</a>
</div>
{{else}}
<ul class="repay-list">
... ...