index.html 17.1 KB
Newer Older
D
v1.2.0  
devil_gong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
{{include file="public/header" /}}

<!-- nav start -->
{{include file="public/nav" /}}
<!-- nav end -->

<!-- header top nav -->
{{include file="public/header_top_nav" /}}

<!-- search -->
{{include file="public/nav_search" /}}

<!-- header nav -->
{{include file="public/header_nav" /}}

<!-- goods category -->
{{include file="public/goods_category" /}}

<!-- content -->
<div class="am-container user-main">

    <!-- user menu start -->
    {{include file="public/user_menu" /}}
    <!-- user menu end -->

    <!-- content start -->
    <div class="user-content">
        <div class="user-content-body">
29 30 31
            <!-- 用户中心顶部钩子 -->
            {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
                <div class="plugins-tag">
G
gongfuxiang 已提交
32
                    <span>plugins_view_user_center_top</span>
D
v1.2.0  
devil_gong 已提交
33 34
                </div>
            {{/if}}
G
gongfuxiang 已提交
35 36
            {{if !empty($plugins_view_user_center_top_data) and is_array($plugins_view_user_center_top_data)}}
                {{foreach $plugins_view_user_center_top_data as $hook}}
37 38 39 40 41
                    {{if is_string($hook) or is_int($hook)}}
                        {{$hook|raw}}
                    {{/if}}
                {{/foreach}}
            {{/if}}
D
v1.2.0  
devil_gong 已提交
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314

            <!-- 基础信息 -->
            <div class="user-base">
                <div class="user-base-left">
                    <div class="user-avatar">
                        <img src="{{$user.avatar}}" />
                        <p class="user-name">{{$user.user_name_view}}</p>
                    </div>
                    <div class="items">
                        <a href="javascript:;" class="am-icon-camera-retro" data-am-modal="{target:'#user-avatar-popup'}"> 修改头像</a>
                        <a href="{{:MyUrl('index/personal/index')}}" class="am-icon-edit"> 修改资料</a>
                        <a href="{{:MyUrl('index/useraddress/index')}}" class="am-icon-street-view"> 我的地址</a>
                    </div>
                </div>
                <div class="user-base-right">
                    <a href="{{:MyUrl('index/message/index')}}" class="am-icon-bell-o message"> 消息 {{if $common_message_total gt 0}}{{$common_message_total}}{{/if}}</a>
                </div>
                <ul class="user-base-icon">
                    <li>
                        <a href="{{:MyUrl('index/order/index')}}">
                            <p>{{$user_order_count}}</p>
                            <p>订单总数</p>
                        </a>
                    </li>
                    <li>
                        <a href="{{:MyUrl('index/userfavor/goods')}}">
                            <p>{{$user_goods_favor_count}}</p>
                            <p>商品收藏</p>
                        </a>
                    </li>
                    <li>
                        <a href="{{:MyUrl('index/usergoodsbrowse/index')}}">
                            <p>{{$user_goods_browse_count}}</p>
                            <p>我的足迹</p>
                        </a>
                    </li>
                    <li>
                        <a href="{{:MyUrl('index/userintegral/index')}}">
                            <p>{{$user.integral}}</p>
                            <p>我的积分</p>
                        </a>
                    </li>
                </ul>
            </div>

            <!-- 订单信息 -->
            <div class="order-nav">
                <a href="{{:MyUrl('index/order/index')}}">
                    <span class="nav-name">
                        <i class="order-icon"></i>
                        我的订单
                    </span>
                    <span class="am-fr icon-tips">
                        查看全部订单
                        <i class="am-icon-angle-right"></i>
                    </span>
                </a>
            </div>
            {{if !empty($user_order_status)}}
                <ul class="order-base">
                    {{foreach $user_order_status as $v}}
                        {{if in_array($v['status'], [1,2,3])}}
                            <li>
                                <a href="{{:MyUrl('index/order/index', ['is_more'=>1, 'status'=>$v['status']])}}">
                                    <i class="icon-{{$v.status}}"></i>
                                    <p>{{$v.name}}</p>
                                    {{if !empty($v.count)}}
                                        <span class="am-badge am-badge-danger am-round">{{$v.count}}</span>
                                    {{/if}}
                                </a>
                            </li>
                        {{elseif in_array($v['status'], [100]) /}}
                            <li>
                                <a href="{{:MyUrl('index/order/index', ['is_more'=>1, 'is_comments'=>0, 'status'=>4])}}">
                                    <i class="icon-{{$v.status}}"></i>
                                    <p>{{$v.name}}</p>
                                    {{if !empty($v.count)}}
                                        <span class="am-badge am-badge-danger am-round">{{$v.count}}</span>
                                    {{/if}}
                                </a>
                            </li>
                        {{/if}}
                    {{/foreach}}
                </ul>
            {{/if}}

            <!-- 聚合内容 -->
            <div class="am-g various">
                <!-- 进行中的订单 -->
                <div class="am-u-md-8">
                    <div class="am-panel am-panel-default">
                        <div class="am-panel-hd">
                            <i></i>交易提醒
                            {{if !empty($order_list)}}
                                <a class="am-fr more-tips" href="{{:MyUrl('index/order/index')}}" target="_blank">
                                    更多 <span class="am-icon-angle-double-right"></span>
                                </a>
                            {{/if}}
                        </div>
                        <div class="am-panel-bd order-list">
                            {{if !empty($order_list)}}
                                {{foreach $order_list as $order}}
                                    {{foreach $order.items as $key=>$goods}}
                                        {{if $key eq 0}}
                                            <div class="goods-detail">
                                                <a href="{{:MyUrl('index/order/detail', ['id'=>$order['id']])}}" target="_blank">
                                                    <img src="{{$goods.images}}" />
                                                </a>
                                                <div class="goods-base">
                                                    <a href="{{:MyUrl('index/order/detail', ['id'=>$order['id']])}}" target="_blank" class="goods-title ellipsis">{{$goods.title}}</a>
                                                    <ul>
                                                        <li>
                                                            <span>{{$order.add_time_time}}</span>
                                                            <span class="line-price">¥{{$order.price}}</span>
                                                        </li>
                                                        <li>
                                                            <span>{{$order.status_name}}</span>
                                                            {{if $order['items_count'] gt 1}}
                                                                <span class="items-count">等{{$order.items_count}}种商品</span>
                                                            {{/if}}
                                                        </li>
                                                    </ul>
                                                </div>
                                                {{if in_array($order['status'], [1])}}
                                                    <a class="am-btn am-btn-primary am-btn-xs am-radius am-fr order-submit" href="{{:MyUrl('index/order/detail', ['id'=>$order['id'], 'is_pay_auto'=>1])}}" target="_blank">支付</a>
                                                {{/if}}
                                                {{if in_array($order['status'], [3])}}
                                                    <button type="button" class="am-btn am-btn-success am-btn-xs am-radius am-fr order-submit submit-ajax submit-confirm" data-url="{{:MyUrl('index/order/Collect')}}" data-id="{{$order.id}}" data-view="reload" data-msg="请仔细确认已收到货物、确认继续吗?">收货</button>
                                                {{/if}}
                                                {{if in_array($order['status'], [4]) and $order['user_is_comments'] eq 0}}
                                                    <a href="{{:MyUrl('index/order/Comments', ['id'=>$order['id']])}}" target="_blank" class="am-btn am-btn-warning am-btn-xs am-radius am-fr order-submit">评价</a>
                                                {{/if}}
                                            </div>
                                        {{/if}}
                                    {{/foreach}}
                                {{/foreach}}
                            {{/if}}
                            {{if empty($order_list)}}
                                <div class="table-no">
                                    <i class="am-icon-cube am-icon-lg block"></i>
                                    <p class="tips-name">查看全部订单</p>
                                    <p class="tips-msg">交易提醒可帮助您了解订单状态和物流情况</p>
                                </div>
                            {{/if}}
                        </div>
                    </div>
                </div>

                <!-- 购物车 -->
                <div class="am-u-md-4">
                    <div class="am-panel am-panel-default">
                        <div class="am-panel-hd">
                            <i></i>购物车
                            {{if !empty($cart_list)}}
                                <a class="am-fr more-tips" href="{{:MyUrl('index/cart/index')}}" target="_blank">
                                    更多 <span class="am-icon-angle-double-right"></span>
                                </a>
                            {{/if}}
                        </div>
                        <div class="am-panel-bd cart-list">
                            {{if !empty($cart_list)}}
                                {{foreach $cart_list as $key=>$goods}}
                                    {{if $key lt 3}}
                                        <div class="goods-detail">
                                            <a href="{{:MyUrl('index/goods/index', ['id'=>$goods['goods_id']])}}" target="_blank">
                                                <img src="{{$goods.images}}" />
                                            </a>
                                            <div class="goods-base">
                                                <a href="{{:MyUrl('index/goods/index', ['id'=>$goods['goods_id']])}}" target="_blank" class="goods-title ellipsis">{{$goods.title}}</a>
                                                <ul>
                                                    <li>
                                                        <span class="line-price">¥{{$goods.price}}</span>
                                                        <span>x{{$goods.stock}}</span>
                                                    </li>
                                                </ul>
                                            </div>
                                        </div>
                                    {{/if}}
                                {{/foreach}}
                            {{/if}}
                            {{if empty($cart_list)}}
                                <div class="table-no">
                                    <i class="am-icon-opencart am-icon-lg block"></i>
                                    <p class="tips-name">您的购物车还是空的</p>
                                    <p class="tips-msg">将想买的商品放进购物车,一起结算更轻松</p>
                                </div>
                            {{/if}}
                        </div>
                    </div>
                </div>

                <!-- 收藏商品 -->
                <div class="am-u-md-8">
                    <div class="am-panel am-panel-default">
                        <div class="am-panel-hd">
                            <i></i>商品收藏
                            {{if !empty($goods_favor_list)}}
                                <a class="am-fr more-tips" href="{{:MyUrl('index/userfavor/goods')}}" target="_blank">
                                    更多 <span class="am-icon-angle-double-right"></span>
                                </a>
                            {{/if}}
                        </div>
                        <div class="am-panel-bd goods-favor-list">
                            {{if !empty($goods_favor_list)}}
                                <ul data-am-widget="gallery" class="am-gallery am-avg-sm-2 am-avg-md-4 am-gallery-overlay" data-am-gallery="{}">
                                    {{foreach $goods_favor_list as $goods}}
                                        <li>
                                            <div class="am-gallery-item">
                                                <a href="{{:MyUrl('index/goods/index', ['id'=>$goods['goods_id']])}}" target="_blank">
                                                    <img src="{{$goods.images}}" alt="{{$goods.title}}" />
                                                    <h3 class="am-gallery-title">{{$goods.title}}</h3>
                                                    <div class="am-gallery-desc line-price">¥{{$goods.price}}</div>
                                                </a>
                                            </div>
                                        </li>
                                    {{/foreach}}
                                </ul>
                            {{/if}}
                            {{if empty($goods_favor_list)}}
                                <div class="table-no">
                                    <i class="am-icon-heart-o am-icon-lg block"></i>
                                    <p class="tips-name">您还没有收藏商品</p>
                                    <p class="tips-msg">收藏的商品将显示最新的促销活动和降价情况</p>
                                </div>
                            {{/if}}
                        </div>
                    </div>
                </div>

                <!-- 浏览足迹 -->
                <div class="am-u-md-4">
                    <div class="am-panel am-panel-default">
                        <div class="am-panel-hd">
                            <i></i>我的足迹
                            {{if !empty($goods_browse_list)}}
                                <a class="am-fr more-tips" href="{{:MyUrl('index/usergoodsbrowse/index')}}" target="_blank">
                                    更多 <span class="am-icon-angle-double-right"></span>
                                </a>
                            {{/if}}
                        </div>
                        <div class="am-panel-bd goods-browse-list">
                            {{if !empty($goods_browse_list)}}
                                <ul data-am-widget="gallery" class="am-gallery am-avg-sm-3 am-avg-md-3 am-avg-lg-3 am-gallery-default data-am-gallery="{}">
                                    {{foreach $goods_browse_list as $goods}}
                                        <li>
                                            <div class="am-gallery-item">
                                                <a href="{{:MyUrl('index/goods/index', ['id'=>$goods['goods_id']])}}" target="_blank">
                                                    <img src="{{$goods.images}}" alt="{{$goods.title}}" class="am-circle" />
                                                    <h3 class="am-gallery-title">{{$goods.title}}</h3>
                                                </a>
                                                <div class="am-gallery-desc line-price">¥{{$goods.price}}</div>
                                            </div>
                                        </li>
                                    {{/foreach}}
                                </ul>
                            {{/if}}
                            {{if empty($goods_browse_list)}}
                                <div class="table-no">
                                    <i class="am-icon-lastfm am-icon-lg block"></i>
                                    <p class="tips-name">您的商品浏览记录为空</p>
                                    <p class="tips-msg">赶紧去商城看看促销活动吧</p>
                                </div>
                            {{/if}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- content end -->
</div>

{{include file="public/footer" /}}