阅读背景:

layer结合art实现弹出功能

来源:互联网 

模板

<!-- 模板 -->
<script id="render-tpl" type="text/html">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th>产品ID</th>
            <th>图片</th>
            <th>标题</th>
            <th>折扣</th>
            <th>原价</th>
            <th>价格</th>
            <th>数量</th>
        </tr>
        </thead>
        <tbody>
        {{ each data.product_list }}
        <tr>
            <th scope="row">{{ $value['product_id'] }}</th>
            <td><img src="{{ $value['title_img'] }}" width="50"></td>
            <td>{{ $value['title'] }}</td>
            <td>{{ $value['discount'] }}</td>
            <td>{{ $value['product_original_price'] }}</td>
            <td>{{ $value['product_price'] }}</td>
            <td>{{ $value['count'] }}</td>
        </tr>
        {{ /each }}

        </tbody>
    </table>

    {{ if data.address_info.length !== 0 }}
    <div class="jumbotron">
        <h4>&nbsp;&nbsp;地址信息:{{ data.address_info['consignee'] }},{{ data.address_info['telephone'] }}
            {{ data.address_info['province_str'] }}
            {{ data.address_info['city_str'] }}
            {{ data.address_info['district_str'] }}
            {{ data.address_info['detail'] }}
        </h4>
    </div>
    {{ /if }}
</script><!-- 模板 -->
<script id="render-tpl" type="



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: