Authored by biao

fix cancel apply bug

... ... @@ -158,7 +158,7 @@ const exchangeDeatail = (req, res) => {
* 换货申请提交
*/
const exchangeSubmit = (req, res, next) => {
const uid = req.user.uid || '8050882';
const uid = req.user.uid;
returns.submitChange(req.query, uid).then(result => {
res.json(result);
... ...
... ... @@ -20,7 +20,9 @@
</div>
<div class="common-column special-border operation">
{{#isY canCancel}}
<p class="subtext cancel-apply" data-type="{{method}}" data-apply-id="{{id}}">取消申请</p>
{{# ../this}}
<p class="subtext cancel-apply" data-type="{{type}}" data-apply-id="{{id}}">取消申请</p>
{{/ ../this}}
{{/isY}}
<a href="{{detailUrl}}">
<p class="subtext">查看详情</p>
... ...