...
|
...
|
@@ -34,7 +34,7 @@ const index = (req, res, next) => { |
|
|
*/
|
|
|
const refund = (req, res, next) => {
|
|
|
let uid = req.user.uid;
|
|
|
let code = parseInt(req.params.orderCode, 10);
|
|
|
let code = parseInt(req.query.orderCode, 10);
|
|
|
|
|
|
if (!uid || !code) {
|
|
|
return next();
|
...
|
...
|
@@ -75,7 +75,7 @@ const refundApply = (req, res, next) => { |
|
|
* 退货详情页
|
|
|
*/
|
|
|
const refundDetail = (req, res, next) => {
|
|
|
let applyId = parseInt(req.params.applyId, 10),
|
|
|
let applyId = parseInt(req.query.orderCode, 10),
|
|
|
uid = req.user.uid;
|
|
|
|
|
|
if (!uid || !applyId) {
|
...
|
...
|
@@ -94,7 +94,7 @@ const refundDetail = (req, res, next) => { |
|
|
* 换货申请页
|
|
|
*/
|
|
|
const exchange = (req, res, next) => {
|
|
|
const code = req.params.orderCode;
|
|
|
const code = parseInt(req.query.orderCode, 10);
|
|
|
const uid = req.user.uid;
|
|
|
|
|
|
returns.getChangeGoodsList(code, uid).then(result => {
|
...
|
...
|
@@ -130,7 +130,7 @@ const getProductInfo = (req, res, next) => { |
|
|
* 换货详情页
|
|
|
*/
|
|
|
const exchangeDeatail = (req, res) => {
|
|
|
let id = parseInt(req.params.applyId, 10),
|
|
|
let id = parseInt(req.query.orderCode, 10),
|
|
|
uid = req.user.uid;
|
|
|
|
|
|
returns.getExchangeDetailData(id, uid).then(result => {
|
...
|
...
|
|