Authored by 周奇琪

Merge branch 'develop' of git.dev.yoho.cn:platform/yohobuy-portal-fe into develop

@@ -116,7 +116,6 @@ function __ajax(options,callback){ @@ -116,7 +116,6 @@ function __ajax(options,callback){
116 }); 116 });
117 var pagecm = Handlebars.compile($("#pagenation-template").html().replace(/\\/g, '')); 117 var pagecm = Handlebars.compile($("#pagenation-template").html().replace(/\\/g, ''));
118 118
119 - ;  
120 $('#pagewrapper').html(pagecm({ 119 $('#pagewrapper').html(pagecm({
121 totalPages: $('#totalPages').text(), 120 totalPages: $('#totalPages').text(),
122 number:$('#number').text() 121 number:$('#number').text()
@@ -28,6 +28,10 @@ exports.init=function(){ @@ -28,6 +28,10 @@ exports.init=function(){
28 callback&&callback(); 28 callback&&callback();
29 } 29 }
30 }); 30 });
  31 + setTimeout(function(){
  32 + location.href="/supplier/storeadmin/index";
  33 + },800)
  34 +
31 } else { 35 } else {
32 $.gritter.add({ 36 $.gritter.add({
33 title: '提交失败', 37 title: '提交失败',
@@ -11,7 +11,7 @@ exports.init=function(){ @@ -11,7 +11,7 @@ exports.init=function(){
11 var g=new grid({ 11 var g=new grid({
12 el:'#storeadmin_Tabel', 12 el:'#storeadmin_Tabel',
13 columns:[ 13 columns:[
14 - {display:"ID",name:"shopsId"}, 14 + {display:"ID",name:"id"},
15 {display:"店铺名称",name:"shopName"}, 15 {display:"店铺名称",name:"shopName"},
16 {display:"店铺管理员",name:"adminName"}, 16 {display:"店铺管理员",name:"adminName"},
17 {display:"创建时间",name:"createTime"}, 17 {display:"创建时间",name:"createTime"},
@@ -19,12 +19,19 @@ exports.res = [{ @@ -19,12 +19,19 @@ exports.res = [{
19 },{ 19 },{
20 // 新增颜色 20 // 新增颜色
21 route: '/erpproduct/size/addColor', 21 route: '/erpproduct/size/addColor',
22 - method: 'POST',  
23 - url:"/product/addSize",  
24 - isJsonRaw:true, 22 + method: 'GET',
  23 + view:'pages/product/addColor',
  24 + src:'/product/color'
  25 +},{
  26 + // 新增颜色
  27 + route: '/erpproduct/size/addColor/:id',
  28 + method: 'GET',
  29 + view:'pages/product/addColor',
  30 + isJsonRaw:true,
25 params:[ 31 params:[
26 - {name: 'colorName', type: 'String'}  
27 - ] 32 + {name: 'id', type: 'Number'}
  33 + ],
  34 + src:'/product/color'
28 },{ 35 },{
29 // 修改颜色 36 // 修改颜色
30 route: '/erpproduct/size/updateColor', 37 route: '/erpproduct/size/updateColor',
@@ -5,9 +5,8 @@ exports.res = [{ @@ -5,9 +5,8 @@ exports.res = [{
5 // 产品管理【尺寸】页面渲染 5 // 产品管理【尺寸】页面渲染
6 route: '/erpproduct/size/index', 6 route: '/erpproduct/size/index',
7 method: 'GET', 7 method: 'GET',
8 - view: 'pages/product/siez-chart', 8 + view: 'pages/product/siezChart',
9 url:'/product/querySizeList', 9 url:'/product/querySizeList',
10 - noApi: true,  
11 params: [ 10 params: [
12 {name: 'curPage', type: 'Number',def:1}, 11 {name: 'curPage', type: 'Number',def:1},
13 {name: 'pageSize', type: 'Number',def:10} 12 {name: 'pageSize', type: 'Number',def:10}
@@ -17,7 +16,7 @@ exports.res = [{ @@ -17,7 +16,7 @@ exports.res = [{
17 // 产品管理【尺寸】页面分页渲染 16 // 产品管理【尺寸】页面分页渲染
18 route: '/erpproduct/size/index/:curPage', 17 route: '/erpproduct/size/index/:curPage',
19 method: 'GET', 18 method: 'GET',
20 - view: 'pages/product/siez-chart', 19 + view: 'pages/product/siezChart',
21 url:'/product/querySizeList', 20 url:'/product/querySizeList',
22 noApi: true, 21 noApi: true,
23 params: [ 22 params: [
  1 +<div class="pageheader">
  2 + <div class="media">
  3 + <div class="pageicon pull-left">
  4 + <i class="fa fa-th-list"></i>
  5 + </div>
  6 + <div class="media-body">
  7 + <ul class="breadcrumb">
  8 + <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
  9 + <li><a href="">颜色管理</a></li>
  10 + <li>颜色管理</li>
  11 + </ul>
  12 +
  13 + <div>
  14 + <div style="width: 30%;float: left;">
  15 + <h4>添加颜色</h4>
  16 + </div>
  17 + </div>
  18 + </div>
  19 + </div>
  20 +</div>
  21 +
  22 +
  23 +<div class="contentpanel">
  24 + <div class="panel panel-default" style="margin-bottom:10px;">
  25 + <div class="container" style="margin-top:10px;">
  26 + <div class="row" style="margin-bottom:10px;">
  27 + <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
  28 + <div class="form-group">
  29 + <label for="input" class="col-sm-2 control-label">颜色名称:</label>
  30 + <div class="col-sm-8">
  31 + <input type="text" name="" id="siezName" class="form-control" value="" required="required" pattern="" title="">
  32 + </div>
  33 + </div>
  34 + <div class="form-group">
  35 + <label for="input" class="col-sm-2 control-label">颜色代码:</label>
  36 + <div class="col-sm-8">
  37 + <input type="text" name="" id="siezName" class="form-control" value="" required="required" pattern="" title="">
  38 + </div>
  39 + </div>
  40 + <div class="form-group">
  41 + <label for="input" class="col-sm-2 control-label">颜色值:</label>
  42 + <div class="col-sm-8">
  43 + </div>
  44 + </div>
  45 + <button type="button" class="col-sm-offset-3 btn btn-info">保存</button>
  46 + </div>
  47 + </div>
  48 + </div>
  49 + </div>
  50 +</div>
@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 <div class="panel panel-default" style="margin-bottom:10px;"> 23 <div class="panel panel-default" style="margin-bottom:10px;">
24 <div class="panel-body"> 24 <div class="panel-body">
25 <div class="row"> 25 <div class="row">
26 - <a class="btn btn-info" >添加颜色</a> 26 + <a href="/erpproduct/size/addColor" class="btn btn-info" >添加颜色</a>
27 </div> 27 </div>
28 </div> 28 </div>
29 <table class="table table-striped table-bordered responsive dataTable no-footer"> 29 <table class="table table-striped table-bordered responsive dataTable no-footer">
@@ -44,7 +44,7 @@ @@ -44,7 +44,7 @@
44 <td>{{colorName}}</td> 44 <td>{{colorName}}</td>
45 <td>{{colorCode}}</td> 45 <td>{{colorCode}}</td>
46 <td><img src="{{colorValue}}"></td> 46 <td><img src="{{colorValue}}"></td>
47 - <td><a class="btn btn-info getsize" data-id="{{id}}" >操作</a></td> 47 + <td><a href="/erpproduct/size/addColor/{{id}}" class="btn btn-info getsize" >操作</a></td>
48 </tr> 48 </tr>
49 {{/data.list}} 49 {{/data.list}}
50 </tbody> 50 </tbody>