Authored by ccbikai(👎🏻🍜)

购物车问题修改

... ... @@ -5,6 +5,7 @@
*/
'use strict';
const helpers = global.yoho.helpers;
module.exports = () => {
return (req, res, next) => {
... ... @@ -31,6 +32,8 @@ module.exports = () => {
res.set('Access-Control-Allow-Origin', '*');
}
res.locals.cartUrl = helpers.urlFormat('/cart/index/index');
next();
};
};
... ...
<div id="suspend-cart" class="suspend-cart">
<a href={{cartUrl}}>
<a href="{{@root.cartUrl}}">
<span class="iconfont">&#xe62c;</span>
</a>
<span class="cart-count hide">0</span>
</div>
\ No newline at end of file
</div>
... ...