码迷,mamicode.com
首页 > 其他好文 > 详细

shop--8.店铺管理页面的开发

时间:2018-07-30 14:43:59      阅读:318      评论:0      收藏:0      [点我收藏+]

标签:status   pid   doctype   value   query   ini   charset   public   src   

技术分享图片

 

 

shopmanagement.html

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>商店管理</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
    <link rel="stylesheet" href="../resources/css/shop/shopmanagement.css">
</head>
<body>
<header class="bar bar-nav">
    <h1 class="title">商店管理</h1>
</header>
<div class="content">
    <div class="content-block">
        <div class="row">
            <div class="col-50 mb">
                <a id="shopInfo" href="/o2o/shopadmin/shopoperation" class="button button-big button-fill">商铺信息</a>
            </div>
            <div class="col-50 mb">
                <a href="/o2o/shop/productmanage" class="button button-big button-fill">商品管理</a>
            </div>
            <div class="col-50 mb">
                <a href="/o2o/shop/productcategorymanage" class="button button-big button-fill">类别管理</a>
            </div>
            <div class="col-50 mb">
                <a href="/o2o/shop/awardmanage" class="button button-big button-fill">奖品管理</a>
            </div>
            <div class="col-50 mb">
                <a href="/o2o/shop/productbuycheck" class="button button-big button-fill">消费记录</a>
            </div>
            <div class="col-50 mb">
                <a href="/o2o/shop/awarddelivercheck" class="button button-big button-fill">积分对换</a>
            </div>
            <div class="col-50 mb">
                <a href="/o2o/shop/usershopcheck" class="button button-big button-fill">顾客积分</a>
            </div>
            <div class="col-50 mb">
                <a href="/o2o/shop/shopauthmanage" class="button button-big button-fill">授权管理</a>
            </div>
            <div class="col-100 mb">
                <a href="/o2o/shop/shoplist" class="button button-big button-fill button-danger">返回</a>
            </div>
        </div>
    </div>
</div>
 
 
 
<script type=‘text/javascript‘ src=‘//g.alicdn.com/sj/lib/zepto/zepto.min.js‘ charset=‘utf-8‘></script>
<script type=‘text/javascript‘ src=‘//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js‘ charset=‘utf-8‘></script>
<script type=‘text/javascript‘ src=‘//g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js‘ charset=‘utf-8‘></script>
<script type=‘text/javascript‘ src=‘../resources/js/shop/shopmanagement.js‘ charset=‘utf-8‘></script>
    <script type=‘text/javascript‘ src=‘../resources/js/common/common.js‘
        charset=‘utf-8‘></script>
</body>
</html>

 

 

shopmanegement.js

$(function(){
   var shopId = getQueryString(‘shopId‘);
   var shopInfoUrl = ‘/o2o/shopadmin/getshopmanagementinfo?shopId=‘ + shopId;
    $.getJSON(shopInfoUrl, function(data){
        if(data.redirect){
            window.location.href=data.url;
        } else{
            if(data.shopId != undefined && data.shopId != null){
                shopId = data.shopId;
            }
            //如果有shopId时,点击shopInfo是修改店铺信息,要不然就是注册(默认)
            $(‘#shopInfo‘).attr(‘href‘,‘/o2o/shopadmin/shopoperation?shopId=‘ + shopId);
        }
    });
});

 

 

shopmanegement.css

.mb {
    margin-bottom: .5rem;
}

 

 路由

1     @RequestMapping(value = "/shopmanagement")
2     public String shopManagement() {
3         return "shop/shopmanagement";
4     }

 

shop--8.店铺管理页面的开发

标签:status   pid   doctype   value   query   ini   charset   public   src   

原文地址:https://www.cnblogs.com/windbag7/p/9390072.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!