Authored by 王水玲

有货分期

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