<section class="padding-60-0-100 position-relative eee-bg">
    <div class="container">
        <div class="sub-pricing container-fluid">
            <div class="ware-content">
                <div class="row content">
                    <div class="col-xs-12 col-sm-12 col-md-8">
<pre><code>                    &lt;div class=&quot;card&quot;&gt;
                        &lt;div class=&quot;card-header&quot;&gt;
                            基本配置
                        &lt;/div&gt;
                        &lt;div class=&quot;card-body&quot;&gt;
                            &lt;!-- 商品分类 --&gt;
                            &lt;div class=&quot;row&quot;&gt;
                                &lt;div class=&quot;col-xs-12 col-sm-12 col-md-2&quot;&gt;
                                    &lt;!-- &lt;label for=&quot;&quot;&gt;主机类型:&lt;/label&gt; --&gt;
                                &lt;/div&gt;
                                &lt;div class=&quot;col-xs-12 col-sm-12 col-md-10&quot;&gt;
                                    &lt;div class=&quot;button-group&quot; id=&quot;vhostBtn&quot;&gt;
                                        &lt;!-- 主机类型 --&gt;
                                        {foreach name=&quot;wareSort&quot; id=&quot;sort&quot;}
                                        &lt;button data-val=&quot;{$key}&quot; data-class=&quot;.{$sort}&quot;
                                            data-sort=&quot;{$sort}&quot;&gt;{$sort}&lt;/button&gt;
                                        {/foreach}

                                    &lt;/div&gt;
                                &lt;/div&gt;

                            &lt;/div&gt;


                            &lt;!-- 机房 --&gt;
                            &lt;!-- &lt;div class=&quot;row&quot;&gt;
                        &lt;div class=&quot;col-xs-12 col-sm-12 col-md-2&quot;&gt;
                            &lt;label for=&quot;&quot;&gt;机房:&lt;/label&gt;
                        &lt;/div&gt;
                        &lt;div class=&quot;col-xs-12 col-sm-12 col-md-10&quot;&gt;
                            &lt;div class=&quot;button-group&quot; id=&quot;localBtn&quot;&gt;
                                {volist name=&quot;wareList&quot; id=&quot;local&quot;}
                                &lt;button class=&quot;{$local.os} {$local.type} local ware&quot;
                                    data-class=&quot;.{$local.local}&quot;&gt;{$local.local}&lt;/button&gt;
                                {/volist}
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;  --&gt;
                            &lt;!-- 产品名 --&gt;
                            &lt;div class=&quot;row&quot;&gt;
                                &lt;div class=&quot;col-xs-12 col-sm-12 col-md-2&quot;&gt;
                                    &lt;label for=&quot;&quot;&gt;产品名称:&lt;/label&gt;
                                &lt;/div&gt;
                                &lt;div class=&quot;col-xs-12 col-sm-12 col-md-10&quot;&gt;
                                    &lt;div class=&quot;button-group&quot; id=&quot;wareBtn&quot;&gt;
                                        &lt;!-- 产品列表 --&gt;
                                        {volist name=&quot;wareList&quot; id=&quot;ware&quot;}
                                        &lt;button
                                            class=&quot;{if $Request.param.wid==$ware.wid}active{/if} {$ware.os} {$ware.sort} {$ware.local} local ware locals&quot;
                                            data-class=&quot;.{$ware.os}&quot; data-sid=&quot;{$ware.wid}&quot;&gt;{$ware.name}&lt;/button&gt;
                                        {/volist}
                                        &lt;!-- 自定义产品列表 --&gt;
                                        {volist name=&quot;customize&quot; id=&quot;cust&quot;}
                                        &lt;button
                                            class=&quot;{if $Request.param.wid==$cust.wid}active{/if} {$cust.sort} local customize&quot;
                                            data-sid=&quot;{$cust.wid}&quot;&gt;{$cust.name}&lt;/button&gt;
                                        {/volist}
                                    &lt;/div&gt;
                                    &lt;!-- 产品描述 --&gt;
                                    &lt;div class=&quot;wareInfo&quot;&gt;
                                        &lt;ul&gt;
                                            &lt;li&gt;10GB Storage&lt;/li&gt;
                                            &lt;li&gt;1 Domain name&lt;/li&gt;
                                            &lt;li&gt;512Mb Ram&lt;/li&gt;
                                            &lt;li&gt;5GB Bandwidth&lt;/li&gt;
                                            &lt;li&gt;10 Emails&lt;/li&gt;
                                        &lt;/ul&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                            &lt;!-- 操作系统 --&gt;
                            &lt;div class=&quot;row os&quot;&gt;
                                &lt;div class=&quot;col-xs-12 col-sm-12 col-md-2&quot;&gt;
                                    &lt;label for=&quot;&quot;&gt;操作系统:&lt;/label&gt;
                                &lt;/div&gt;
                                &lt;div class=&quot;col-xs-12 col-sm-12 col-md-10&quot;&gt;
                                    &lt;div class=&quot;button-group&quot; id=&quot;osBtn&quot;&gt;
                                        &lt;!-- 操作系统 --&gt;
                                        {volist name=&quot;osType&quot; id=&quot;os&quot;}
                                        &lt;button class=&quot;{$os} os&quot; data-val=&quot;{$os}&quot;&gt;{$os}&lt;/button&gt;
                                        {/volist}
                                    &lt;/div&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&quot;col-xs-12 col-sm-12 col-md-4&quot;&gt;
                    &lt;div class=&quot;card&quot;&gt;
                        &lt;div class=&quot;card-header&quot;&gt;
                            当前配置
                        &lt;/div&gt;
                        &lt;div class=&quot;card-body&quot;&gt;
                            &lt;div class=&quot;shoppingInfo&quot;&gt;
                                &lt;!-- 当前配置汇总 --&gt;
                                &lt;ul&gt;
                                    &lt;li&gt;
                                        &lt;span class=&quot;vhost-info-key&quot;&gt;主机类型:&lt;/span&gt;
                                        &lt;span class=&quot;vhost-info-value&quot;&gt;&lt;/span&gt;
                                    &lt;/li&gt;
                                    &lt;!-- &lt;li&gt;
                                &lt;span class=&quot;local-info-key&quot;&gt;机房:&lt;/span&gt;
                                &lt;span class=&quot;local-info-value&quot;&gt;&lt;/span&gt;
                            &lt;/li&gt; --&gt;
                                    &lt;li&gt;
                                        &lt;span class=&quot;ware-info-key&quot;&gt;产品名称:&lt;/span&gt;
                                        &lt;span class=&quot;ware-info-value&quot;&gt;&lt;/span&gt;
                                    &lt;/li&gt;
                                    &lt;li&gt;
                                        &lt;span class=&quot;os-info-key&quot;&gt;操作系统:&lt;/span&gt;
                                        &lt;span class=&quot;os-info-value&quot;&gt;&lt;/span&gt;
                                    &lt;/li&gt;
                                    &lt;li&gt;
                                        &lt;span class=&quot;number-info-key&quot;&gt;时长:&lt;/span&gt;
                                        &lt;span class=&quot;number-info-value&quot;&gt;&lt;/span&gt;
                                    &lt;/li&gt;
                                &lt;/ul&gt;
                                &lt;!-- 主机其他说明 --&gt;
                                &lt;div class=&quot;presell_desc&quot;&gt;

                                &lt;/div&gt;
                                &lt;!-- 促销 --&gt;
                                &lt;div class=&quot;promotion_desc&quot;&gt;

                                &lt;/div&gt;
                                &lt;!-- 自定义域名 --&gt;
                                &lt;div class=&quot;custom_domain&quot;&gt;

                                &lt;/div&gt;
                                &lt;hr&gt;
                                &lt;div class=&quot;price-info&quot;&gt;
                                    &lt;div class=&quot;price-title&quot;&gt;总配置费用:&lt;/div&gt;
                                    &lt;!-- 总计费用及优惠价格 --&gt;
                                    &lt;div class=&quot;total-price&quot;&gt;
                                        ¥&lt;b class=&quot;new-money&quot;&gt;0&lt;/b&gt;
                                        &lt;span class=&quot;price-save&quot;&gt;节省¥&lt;span class=&quot;price-money&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                                &lt;!-- 最终商品的信息 --&gt;
                                &lt;form id=&quot;orderInfo&quot;&gt;
                                    &lt;input type=&quot;hidden&quot; value=&quot;&quot; id=&quot;wareId&quot; name=&quot;wid&quot;&gt;
                                    &lt;input type=&quot;hidden&quot; value=&quot;&quot; id=&quot;buyTime&quot; name=&quot;time&quot;&gt;
                                    &lt;input type=&quot;hidden&quot; value=&quot;&quot; id=&quot;custom_domain&quot; name=&quot;custom_domain&quot;&gt;
                                    {:token()}
                                &lt;/form&gt;

                                &lt;div class=&quot;build-button&quot;&gt;
                                    {if $user.id==''}
                                    &lt;button id=&quot;buildOrder&quot; disabled=&quot;&quot; class=&quot;disabled&quot; title=&quot;请登录后下单&quot;&gt; 立即购买
                                    &lt;/button&gt;
                                    {else/}
                                    &lt;button id=&quot;buildOrder&quot;&gt; 立即购买 &lt;/button&gt;
                                    {/if}
                                &lt;/div&gt;
                                &lt;!-- 判断是否登录 --&gt;
                                &lt;div class=&quot;description&quot;&gt;
                                    {if $user.id==''}请&lt;a href=&quot;{:url('index/user/login')}&quot; class=&quot;text-info&quot;
                                        title=&quot;点击登录&quot;&gt;登录&lt;/a&gt;查看更多优惠{/if}
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&quot;col-xs-12 col-sm-12 col-md-8&quot;&gt;
                    &lt;div class=&quot;card&quot;&gt;
                        &lt;div class=&quot;card-header&quot;&gt;
                            购买时长
                        &lt;/div&gt;
                        &lt;div class=&quot;card-body default-button&quot;&gt;
                            &lt;div class=&quot;row&quot;&gt;
                                &lt;div class=&quot;col-xs-2 col-sm-12 col-md-2&quot;&gt;
                                    &lt;label for=&quot;&quot;&gt;时长:&lt;/label&gt;
                                &lt;/div&gt;
                                &lt;div class=&quot;col-xs-10 col-sm-12 col-md-10&quot;&gt;
                                    &lt;!-- 最小、最大可购买份数 --&gt;
                                    &lt;div class=&quot;button-group&quot; id=&quot;numberBtn&quot;&gt;
                                        &lt;select name=&quot;numberBtn_select&quot; id=&quot;numberBtn_select&quot; class=&quot;form-control&quot;&gt;
                                            &lt;option value=&quot;1&quot;&gt;1个月&lt;/option&gt;
                                        &lt;/select&gt;
                                        &lt;button class=&quot;active&quot;&gt;1个月&lt;/button&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;

            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>
</section>
<script>
    // 首次访问时隐藏全部商品,只显示分类
    $(document).ready(function () {
        $("#wareBtn button").hide();
        $("#wareBtn button.locals").show();
    });

    // 根据主机类型切换显示对应的商品
    $("#vhostBtn button").click(function () {
        var val = $(this).data("val");
        $("#wareBtn button").hide();
        $("#wareBtn button." + val).show();
    });
</script>
云服务器价格 - 高性价比云主机租用

原文地址: https://www.cveoy.top/t/topic/bX7j 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录