审查视图

public/themes/simpleboot3/portal/index/index.html 10.3 KB
anyv authored
1 2 3 4 5 6 7 8
<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>学考无忧-首页</title>
anyv authored
9
    <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
anyv authored
10 11
    <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
1  
anyv authored
12 13 14 15 16
    <style>
        .in_search1 input{
            outline: none;
            font-size: 0.26rem;
            margin-left: 0.2rem;
1  
anyv authored
17 18
        }
        .in_search1 input::placeholder{
1  
anyv authored
19 20
            color: rgba(204, 204, 204, 1);
        }
1  
anyv authored
21
        .in_search_no input{
1  
anyv authored
22 23 24 25 26
            color: white;
            border: 0;
            outline: none;
            font-size: 0.28rem;
            margin-left: 0.16rem;
1  
anyv authored
27
            background: none;
1  
anyv authored
28
        }
王晓刚 authored
29 30 31 32 33 34 35 36 37 38 39
        .in_cam_shopName span{
            padding: 0.02rem 0.12rem 0.01rem 0.12rem;
            box-sizing: border-box;
            font-size: 0.2rem;
            cursor: pointer;
            color: white;
            line-height: 1;
            background: rgba(255, 119, 0, 1);
            border-radius: 0.04rem;
            margin-right: 0.04rem;
        }
1  
anyv authored
40
    </style>
anyv authored
41 42 43 44 45 46
</head>

<body>
<!-- index -->
<div class="in_box">
    <!-- search -->
anyv authored
47
 <!--   <form action="{:url('Index/search_salesman_goods')}" method="post">-->
anyv authored
48 49
        <div class="in_search">
            <div class="in_search1">
1  
anyv authored
50 51
                <img src="__TMPL__/public/assets/images/1.png" alt="">
                <input type="text" name="book_name" placeholder="输入书籍名称">
1  
anyv authored
52
            </div>
anyv authored
53
            <div class="in_search_no" onclick="sousuo()"><!--<input type="submit" placeholder="搜索" value="搜索">-->搜索</div>
anyv authored
54
        </div>
anyv authored
55
 <!--   </form>-->
anyv authored
56 57 58
    <!-- banner -->
    <div class="in_banner swiper-container">
        <ul class="swiper-wrapper">
anyv authored
59
            <volist name="slideshow" id="vo">
5  
anyv authored
60
                <li class="swiper-slide" style="width: 4.2rem;height: 3.1rem;">
anyv authored
61
                    <a href="{$vo.url}">
5  
anyv authored
62
                    <img src="{:cmf_get_image_url($vo.image)}" alt="" style="width: 100%;height: 100%;">
anyv authored
63 64 65
                    </a>
                </li>
            </volist>
anyv authored
66 67 68 69 70 71
        </ul>
        <div class="swiper-pagination"></div>
    </div>
    <!-- nav -->
    <div class="in_nav">
        <ul>
anyv authored
72
            <volist name="data_classif" id="vo">
anyv authored
73 74
                <if condition="empty($vo.thumbnail)">
                    <else/>
anyv authored
75
                    <a href="{:url('Classify/classify',array('classify_id'=>$vo.id))}">
anyv authored
76 77
                        <li>
                            <div class="in_navImg">
anyv authored
78
                                <img src="{:cmf_get_image_url($vo.thumbnail)}" alt="">
anyv authored
79 80 81 82 83 84
                            </div>
                            <p class="in_navTxt">{$vo.name}</p>
                        </li>
                    </a>
                </if>
            </volist>
anyv authored
85
            <a href="{:url('Classify/classify')}">
anyv authored
86 87 88 89 90 91 92
                <li>
                    <div class="in_navImg">
                        <img src="__TMPL__/public/assets/images/7.png" alt="">
                    </div>
                    <p class="in_navTxt">更多</p>
                </li>
            </a>
anyv authored
93 94 95 96 97 98 99 100
        </ul>
    </div>
    <!-- 校园团购 -->
    <div class="in_campus">
        <!-- 顶部 -->
        <div class="in_campusTitle">
            <div class="in_campusTitle1"></div>
            <div class="in_campusTitle2">校园团购</div>
5  
anyv authored
101 102 103

        </div>
        <!-- 小标题 -->
1  
anyv authored
104 105
        <a href="{:url('Index/salesman_goods')}">
5  
anyv authored
106
        <div class="xiaoyuan_tuangou">
1  
anyv authored
107 108 109
                <div class="in_campust2">限量优惠天天抢</div>
                <div class="in_campusTitle3">
                    更多
5  
anyv authored
110
                    <img src="__TMPL__/public/assets/images/8.png" alt="" >
1  
anyv authored
111
                </div>
anyv authored
112
        </div>
1  
anyv authored
113 114
        </a>
anyv authored
115 116
        <!-- 商品 -->
        <div class="in_cam_shop">
anyv authored
117
            <volist name="data_goods" id="vo">
anyv authored
118
                <a href="{:url('Goodsdetails/Goods_details',array('goods_id'=>$vo.id))}">
anyv authored
119 120
                    <div class="in_cam_shopLi">
                        <div class="in_cam_shopImg">
5  
anyv authored
121
                            <img src="{:cmf_get_image_url($vo.show_img)}" alt="" style="width: 100%;height: 100%;">
anyv authored
122
                        </div>
王晓刚 authored
123
                        <h1 class="in_cam_shopName txt-cut"><span>{$vo.grade}</span>{$vo.book_name}</h1>
anyv authored
124
                        <div class="in_cam_shopPrice">
anyv authored
125 126 127 128 129 130
                            <div class="in_cam_shopN">¥{$vo.price}</div>
                            <div class="in_cam_shopY">¥{$vo.pricing}</div>
                        </div>
                    </div>
                </a>
            </volist>
王晓刚 authored
131 132 133 134 135 136 137 138 139 140 141 142 143 144
            <!--<volist name="data_goods_recommend_new" id="vo">-->
                <!--<a href="{:url('Goodsdetails/Goods_details',array('goods_id'=>$vo.id))}">-->
                    <!--<div class="in_cam_shopLi">-->
                        <!--<div class="in_cam_shopImg">-->
                            <!--<img src="{:cmf_get_image_url($vo.show_img)}" alt="">-->
                        <!--</div>-->
                        <!--<h1 class="in_cam_shopName txt-cut">{$vo.book_name}</h1>-->
                        <!--<div class="in_cam_shopPrice">-->
                            <!--<div class="in_cam_shopN">¥{$vo.price}</div>-->
                            <!--<div class="in_cam_shopY">¥{$vo.pricing}</div>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</a>-->
            <!--</volist>-->
anyv authored
145 146 147 148 149 150 151
        </div>
    </div>
    <!-- 热门推荐 -->
    <div class="in_hot">
        <!-- 顶部 -->
        <div class="in_campusTitle">
            <div class="in_hot_Img">
anyv authored
152
                <img src="__TMPL__/public/assets/images/12.png" alt="">
anyv authored
153 154
            </div>
            <div class="in_campusTitle2">热门推荐</div>
5  
anyv authored
155 156 157

        </div>
        <!-- 小标题 -->
1  
anyv authored
158 159
        <a href="{:url('Index/hot_goods')}">
5  
anyv authored
160
        <div class="xiaoyuan_tuangou">
1  
anyv authored
161 162 163
               <div class="in_campust2">好货上新,火热开抢!</div>
               <div class="in_campusTitle3">
                   更多
5  
anyv authored
164
1  
anyv authored
165
                   <img src="__TMPL__/public/assets/images/8.png" alt="" />
5  
anyv authored
166
1  
anyv authored
167
               </div>
anyv authored
168
        </div>
1  
anyv authored
169 170
        </a>
anyv authored
171 172
        <!-- 商品 -->
        <div class="in_hot_shop">
anyv authored
173
            <volist name="data_goods_hot" id="vo">
anyv authored
174
                <div class="in_hotLi">
anyv authored
175
                    <a href="{:url('Goodsdetails/Goods_details',array('goods_id'=>$vo.id))}">
anyv authored
176 177 178 179
                        <div class="in_hotImg">
                            <img src="{:cmf_get_image_url($vo.show_img)}" alt="">
                        </div>
                        <div class="in_hotText">
anyv authored
180
                            <div class="in_hotName txt-cut"><span>{$vo.grade}</span>{$vo.book_name}</div>
anyv authored
181 182 183
                            <div class="in_cam_shopPrice">
                                <div class="in_hotPrice1"><span>{$vo.price0}</span>.{$vo.price1}</div>
                                <div class="in_cam_shopY">¥{$vo.pricing}</div>
anyv authored
184
                            </div>
anyv authored
185 186 187
                        </div>
                    </a>
                </div>
anyv authored
188
            </volist>
anyv authored
189 190 191 192 193 194 195 196
        </div>
    </div>
    <!-- 底部更多 -->
    <div class="in_what">—— 已经到底了哦 ——</div>
    <!-- 底部一级导航 -->
    <div class="in_bottom">
        <ul>
            <li>
anyv authored
197
                <img src="__TMPL__/public/assets/images/15.png" alt="">
anyv authored
198 199
                <p style="color:#FF7700;">首页</p>
            </li>
anyv authored
200 201 202 203 204 205
            <a href="{:url('Classify/classify')}">
                <li>
                    <img src="__TMPL__/public/assets/images/16.png" alt="">
                    <p>分类</p>
                </li>
            </a>
8  
anyv authored
206 207 208 209 210 211
            <a href="{:url('Shopcart/shop_cart')}">
                <li>
                    <img src="__TMPL__/public/assets/images/17.png" alt="">
                    <p>购物车</p>
                </li>
            </a>
7  
anyv authored
212
            <a href="{:url('Personalcenter/Personal_center')}">
9  
anyv authored
213 214 215 216 217
                <li>
                    <img src="__TMPL__/public/assets/images/18.png" alt="">
                    <p>我的</p>
                </li>
            </a>
anyv authored
218 219 220
        </ul>
    </div>
</div>
anyv authored
221 222
<script src="__TMPL__/public/assets/js/base.js"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js"></script>
anyv authored
223
<script src="__TMPL__/public/assets/js/jquery.js"></script>
王晓刚 authored
224 225 226 227 228 229
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    wx.config({$jssdk});
    wx.ready(function () {
        wx.onMenuShareAppMessage({
            title: '学考无忧',
王晓刚 authored
230
            desc: "学考无忧",
王晓刚 authored
231
            link: '{$url}',
王晓刚 authored
232
            imgUrl: "http://xkeasy.w.bronet.cn/logo.jpg", // 分享图标
王晓刚 authored
233 234 235 236 237 238 239 240 241 242 243 244 245 246
            type: 'link', // 分享类型,music、video或link,不填默认为link
            dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
            success: function (res) {

                //分享成功返回信息
            },
            fail: function (res) {
                alert(JSON.stringify(res));
            }
        });
        wx.onMenuShareTimeline({
            title: '学考无忧',
            desc: "学考无忧",
            link: '{$url}',
王晓刚 authored
247
            imgUrl: "http://xkeasy.w.bronet.cn/logo.jpg", // 分享图标
王晓刚 authored
248 249 250 251 252 253 254 255 256 257 258
            type: 'link', // 分享类型,music、video或link,不填默认为link
            dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
            success: function (res) {
                //分享成功返回信息
            },
            fail: function (res) {
                alert(JSON.stringify(res));
            }
        });
    });
</script>
anyv authored
259 260 261 262 263 264 265 266 267
<script>
    /**
     *点击搜索
     */
    function sousuo(){
        book_name = $("input[name='book_name']").val();
        window.location.href = "{:url('Index/search_salesman_goods')}?book_name="+book_name;
    }
</script>
anyv authored
268 269 270 271 272 273 274 275 276
<script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        centeredSlides: true,
        autoplay: 2500,
        loop: true,
        autoplayDisableOnInteraction: false
    });
</script>
王晓刚 authored
277 278 279
<script>

</script>
anyv authored
280 281 282
</body>

</html>