Blame view

template/www.yohobuy.com/partials/layout/use.phtml 1.73 KB
xuqi authored
1 2 3 4 5
<script>
    seajs.use('js/common');
</script>
{{!-- 首页 --}}
{{#if boysHomePage}}
xuqi authored
6
    <script>
7
        seajs.use('js/home/home');
xuqi authored
8 9 10 11 12 13
    </script>
{{/if}}

{{!-- 搜索 --}}
{{#if searchListPage}}
    <script>
14 15 16
        seajs.use(['js/product/list', 'js/product/product'], function (list, product) {
            product.init(5);
        });
xuqi authored
17
    </script>
18 19 20 21
{{/if}}

{{!-- 列表 --}}
{{#if productListPage}}
xuqi authored
22 23 24 25 26 27 28
    <script>
        seajs.use(['js/product/list', 'js/product/product'], function (list, product) {
            product.init(4);
        });
    </script>
{{/if}}
xuqi authored
29 30 31 32 33 34 35
{{!-- 商品详情页 --}}
{{#if productDetailPage}}
    <script>
        seajs.use('js/product/item');
    </script>
{{/if}}
xuqi authored
36 37 38 39 40
{{!-- 逛 --}}
{{#if guangIndexPage}}
    <script>
        seajs.use('js/guang/index');
    </script>
unknown authored
41 42 43 44 45 46 47
{{/if}}

{{!-- 逛详情页 --}}
{{#if guangDetailPage}}
    <script>
        seajs.use('js/guang/detail');
    </script>
unknown authored
48 49
{{/if}}
50
{{!-- 逛列表页 --}}
xuqi authored
51 52 53
{{#if guangListPage}}
    <script>
        seajs.use('js/guang/list');
unknown authored
54
    </script>
55 56
{{/if}}
xuqi authored
57 58 59 60 61
{{!-- 登录注册找回密码--}}
{{#if loginPage}}
    <script>
        seajs.use('js/passport/login');
    </script>
lore-w authored
62 63 64 65
{{/if}}

{{!-- 注册页--}}
{{#if registerPage}}
66 67 68
    <script>
        seajs.use('js/passport/reg');
    </script>
69 70
{{/if}}
unknown authored
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
{{!-- 找回密码--}}
{{#if backPage}}
    <script>
        seajs.use('js/passport/back');
    </script>
{{/if}}

{{!-- 重置密码--}}
{{#if resetPage}}
    <script>
        seajs.use('js/passport/reset');
    </script>
{{/if}}

{{!-- 验证手机 --}}
{{#if vertificationPage}}
    <script>
        seajs.use('js/passport/vertification');
    </script>
unknown authored
90 91 92 93 94 95 96
{{/if}}

{{!-- 热销排行--}}
{{#if hotrankPage}}
    <script>
        seajs.use('js/product/hotrank');
    </script>
unknown authored
97
{{/if}}