use.phtml 3.16 KB
<script>
    seajs.use('js/common');
</script>

{{!-- 逛(PLUS+STAR) --}}
{{#if psList}}
<script>
    seajs.use('js/guang/plus-star/list');
</script>
{{/if}}
{{#if psDetail}}
<script>
    seajs.use('js/guang/plus-star/detail');
</script>
{{/if}}
{{#if guangHome}}
<script>
    seajs.use('js/guang/home');
</script>
{{/if}}
{{#if guangList}}
<script>
    seajs.use('js/guang/list');
</script>
{{/if}}
{{#if guangDetail}}
<script>
    seajs.use('js/guang/detail');
</script>
{{/if}}

{{!-- 注册 --}}
{{#if regIndex}}
<script>
    seajs.use('js/passport/register/register');
</script>
{{/if}}
{{#if regCode}}
<script>
    seajs.use('js/passport/register/code');
</script>
{{/if}}
{{#if regPwd}}
<script>
    seajs.use('js/passport/register/password');
</script>
{{/if}}

{{!-- 登陆 --}}
{{#if loginIndex}}
<script>
    seajs.use('js/passport/login/login');
</script>
{{/if}}
{{#if loginInternational}}
    <script>
        seajs.use('js/passport/login/international');
    </script>
{{/if}}

{{!-- 密码找回 --}}
{{#if backEmail}}
<script>
    seajs.use('js/passport/back/email');
</script>
{{/if}}
{{#if backEmailSuccess}}
<script>
    seajs.use('js/passport/back/email-success');
</script>
{{/if}}
{{#if backMobile}}
<script>
    seajs.use('js/passport/back/mobile');
</script>
{{/if}}
{{#if backCode}}
<script>
    seajs.use('js/passport/back/code');
</script>
{{/if}}
{{#if backNewPwd}}
<script>
    seajs.use('js/passport/back/new-password');
</script>
{{/if}}

{{!-- 频道选择页 --}}
{{#if channelPage}}
<script>
    seajs.use('js/index/footer');
</script>
{{/if}}

{{!-- 首页 --}}
{{#if grilsHomePage}}
<script>
    seajs.use('js/home/home');
    seajs.use('js/index/footer');
</script>
{{/if}}
{{#if boysHomePage}}
<script>
    seajs.use('js/home/home');
    seajs.use('js/index/footer');
</script>
{{/if}}
{{#if kidsHomePage}}
<script>
    seajs.use('js/home/home');
    seajs.use('js/index/footer');
</script>
{{/if}}
{{#if lifestyleHomePage}}
<script>
    seajs.use('js/home/home');
    seajs.use('js/index/footer');
</script>
{{/if}}

{{!-- 新品到着 --}}
{{#if newArrivalPage}}
<script>
    seajs.use('js/product/newsale/newarrival');
    seajs.use('js/index/footer');
</script>
{{/if}}

{{!-- 折扣专区 --}}
{{#if discountPage}}
<script>
    seajs.use('js/product/newsale/discount');
    seajs.use('js/index/footer');
</script>
{{/if}}

{{!-- 商品列表 --}}
{{#if goodListPage}}
<script>
    seajs.use('js/product/list');
    seajs.use('js/index/footer');
</script>
{{/if}}

{{!-- 商品详情 --}}
{{#if goodDetail}}
<script>
    seajs.use('js/product/detail/detail');
</script>
{{/if}}

{{!-- 品类 --}}
{{#if categoryPage}}
<script>
    seajs.use('js/category/index');
    seajs.use('js/index/footer');
</script>
{{/if}}

{{!-- 品牌 --}}
{{#if brandPage}}
<script>
    seajs.use('js/category/brand');
    seajs.use('js/index/footer');
</script>
{{/if}}

{{!-- 搜索 --}}
{{#if searchPage}}
<script>
    seajs.use('js/index/search');
    seajs.use('js/index/footer');
</script>
{{/if}}

{{!-- 购物车 --}}
{{#if shoppingCartPage}}
<script>
    seajs.use('js/shopping-cart/cart');
</script>
{{/if}}
{{#if giftAdvancePage}}
<script>
    seajs.use('js/shopping-cart/gift-advance');
</script>
{{/if}}