...
|
...
|
@@ -11,7 +11,7 @@ const _ = require('lodash'); |
|
|
|
|
|
|
|
|
const index = (req, res, next) => {
|
|
|
const uid = global.yoho.uid || '8050560';
|
|
|
const uid = global.yoho.uid || '8050882';
|
|
|
const page = req.query.page;
|
|
|
|
|
|
returns.getUserReturn(uid, page).then(result => {
|
...
|
...
|
@@ -32,7 +32,7 @@ const detail = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
const refund = (req, res, next) => {
|
|
|
let uid = req.user.uid || '8050560';
|
|
|
let uid = req.user.uid || '8050882';
|
|
|
let code = parseInt(req.params.orderCode, 10) || '160192757';
|
|
|
|
|
|
if (!uid || !code) {
|
...
|
...
|
@@ -41,7 +41,7 @@ const refund = (req, res, next) => { |
|
|
|
|
|
returns.getRefundGoodsData(code, uid).then(result => {
|
|
|
res.display('index', {
|
|
|
page: 'returns-refund',
|
|
|
page: 'refund',
|
|
|
content: result
|
|
|
});
|
|
|
}).catch(next);
|
...
|
...
|
@@ -68,7 +68,7 @@ const refundApply = (req, res, next) => { |
|
|
|
|
|
const refundDetail = (req, res, next) => {
|
|
|
let applyId = parseInt(req.params.applyId, 10) || '429528',
|
|
|
uid = req.user.uid || '8050560';
|
|
|
uid = req.user.uid || '8050882';
|
|
|
|
|
|
if (!uid || !applyId) {
|
|
|
return next();
|
...
|
...
|
@@ -76,7 +76,7 @@ const refundDetail = (req, res, next) => { |
|
|
|
|
|
returns.getRefundDetailData(applyId, uid).then(result => {
|
|
|
res.display('index', {
|
|
|
page: 'returns-refund',
|
|
|
page: 'refund-detail',
|
|
|
content: result
|
|
|
});
|
|
|
}).catch(next);
|
...
|
...
|
@@ -84,11 +84,11 @@ const refundDetail = (req, res, next) => { |
|
|
|
|
|
const exchange = (req, res, next) => {
|
|
|
const code = req.params.orderCode;
|
|
|
const uid = req.user.uid || '8050560';
|
|
|
const uid = req.user.uid || '8050882';
|
|
|
|
|
|
returns.getChangeGoodsList(code, uid).then(result => {
|
|
|
res.display('index', {
|
|
|
page: 'returns-change',
|
|
|
page: 'exchange',
|
|
|
isMe: true,
|
|
|
content: Object.assign({
|
|
|
nav: mcHandler.getMeCrumb('我的退/换货'),
|
...
|
...
|
@@ -109,7 +109,7 @@ const getProductInfo = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
const detailExchange = (req, res) => {
|
|
|
// const uid = global.yoho.uid || '8050560';
|
|
|
// const uid = global.yoho.uid || '8050882';
|
|
|
// const page = req.query.page;
|
|
|
|
|
|
res.display('index', {
|
...
|
...
|
|