Authored by weiqingting

店铺创建

@@ -285,7 +285,7 @@ edit.prototype={ @@ -285,7 +285,7 @@ edit.prototype={
285 } 285 }
286 }; 286 };
287 callback&&callback(options); 287 callback&&callback(options);
288 - //$.ajax(options); 288 + $.ajax(options);
289 return false; 289 return false;
290 }, 290 },
291 __listen:function(key,o,callback){ 291 __listen:function(key,o,callback){
@@ -375,7 +375,7 @@ var submit=function(callback){ @@ -375,7 +375,7 @@ var submit=function(callback){
375 res=res.data; 375 res=res.data;
376 if(res.code=="200"){ 376 if(res.code=="200"){
377 e.$tip('提交成功',function(){ 377 e.$tip('提交成功',function(){
378 - location.href="/limit/index"; 378 + location.href="/supplier/store/index";
379 },'growl-success'); 379 },'growl-success');
380 }else{ 380 }else{
381 e.$tip(res.message); 381 e.$tip(res.message);
@@ -392,12 +392,12 @@ var submit=function(callback){ @@ -392,12 +392,12 @@ var submit=function(callback){
392 //提交 392 //提交
393 $(".btn-success").click(function(){ 393 $(".btn-success").click(function(){
394 submit(function(item){ 394 submit(function(item){
395 - item.status=200; 395 + item.onCheck=1;
396 }); 396 });
397 }); 397 });
398 //暂存 398 //暂存
399 -$(".btn-success").click(function(){ 399 +$(".btn-cun").click(function(){
400 submit(function(item){ 400 submit(function(item){
401 - item.status=100; 401 + item.onCheck=0;
402 }); 402 });
403 }); 403 });
@@ -24,4 +24,45 @@ $('#basicTable').on('click', '#tongguo', function() { @@ -24,4 +24,45 @@ $('#basicTable').on('click', '#tongguo', function() {
24 24
25 $('#basicTable').on('click', '#bohui', function() { 25 $('#basicTable').on('click', '#bohui', function() {
26 Bll.toast("您确定要驳回审核吗?","/Shops/ShopsRest/checkReject"); 26 Bll.toast("您确定要驳回审核吗?","/Shops/ShopsRest/checkReject");
27 -});  
  27 +});
  28 +
  29 +var Bll={
  30 + addInput:function(label,name){
  31 + var $input=$("<input />");
  32 + $input.attr("type","text");
  33 + $input.attr("name",name);
  34 + $input.attr("placeholder",label);
  35 + $input.addClass("form-control");
  36 + $input.css("margin-bottom","15px");
  37 + $("#"+name).append($input);
  38 + }
  39 +}
  40 +
  41 +var ENUM={
  42 + shopNature:{1:'旗舰店',2:'直营店'},
  43 + shopsType:{1:'单品店',2:'多品店'},
  44 + checkStatus:{100:'暂存',200:'审核中',300:'通过',900:'驳回'}
  45 +}
  46 +for(var key in ENUM){
  47 + var me=$("#"+key);
  48 + me.parent("div").html(ENUM[key][me.val()]);
  49 +}
  50 +$("#otherUrl").add("#websiteUrl").add("#shopAddress").each(function(){
  51 + var data=JSON.parse($(this).val());
  52 + var me=$(this).parent();
  53 + $.each(data,function(i,item){
  54 + me.append("<p>"+item+"</p>");
  55 + });
  56 +});
  57 +
  58 +var g2=new common.grid({
  59 + el:"#updateBrand",
  60 + columns:[
  61 + {display:"品牌","name":"brandName"},
  62 + {display:"供应商","name":"supplierName"}
  63 + ]
  64 +});
  65 +if($("#shopRelation").val()){
  66 + var a=JSON.parse($("#shopRelation").val());
  67 + g2.init();
  68 +}
@@ -62,3 +62,5 @@ var $ = require('jquery'), @@ -62,3 +62,5 @@ var $ = require('jquery'),
62 return Bll.model({isFreeze:"N"}); 62 return Bll.model({isFreeze:"N"});
63 }); 63 });
64 }); 64 });
  65 +
  66 +
1 -ul{margin-top:0}.admin-icon-yellow{color:#ffbe40}.admin-header{font-size:1.4rem;margin-bottom:0}.admin-header-list a:hover :after{content:none}.admin-main{background:#f3f3f3}.admin-menu{position:fixed;z-index:10;bottom:30px;right:20px}.admin-sidebar{width:260px;min-height:100%;float:left;border-right:1px solid #cecece}.admin-sidebar-list{margin-bottom:0}.admin-sidebar-list li a{color:#5c5c5c;padding-left:24px}.admin-sidebar-list li:first-child{border-top:none}.admin-sidebar-sub{margin-top:0;margin-bottom:0;box-shadow:0 16px 8px -15px #e2e2e2 inset;background:#ececec;padding-left:24px}.admin-sidebar-sub li:first-child{border-top:1px solid #dedede}.admin-sidebar-panel{margin:10px}.admin-content{width:auto;overflow:hidden;height:100%;background:#fff}.admin-content-list{border:1px solid #e9ecf1;margin-top:0}.admin-content-list li{border:1px solid #e9ecf1;border-width:0 1px;margin-left:-1px}.admin-content-list li:first-child{border-left:none}.admin-content-list li:last-child{border-right:none}.admin-content-table a{color:#535353}.admin-content-file{margin-bottom:0;color:#666}.admin-content-file p{margin:0 0 5px 0;font-size:1.4rem}.admin-content-file li{padding:10px 0}.admin-content-file li:first-child{border-top:none}.admin-content-file li:last-child{border-bottom:none}.admin-content-file li .am-progress{margin-bottom:4px}.admin-content-file li .am-progress-bar{line-height:14px}.admin-content-task{margin-bottom:0}.admin-content-task li{padding:5px 0;border-color:#eee}.admin-content-task li:first-child{border-top:none}.admin-content-task li:last-child{border-bottom:none}.admin-task-meta{font-size:1.2rem;color:#999}.admin-task-bd{font-size:1.4rem;margin-bottom:5px}.admin-content-comment{margin-bottom:0}.admin-content-comment .am-comment-bd{font-size:1.4rem}.admin-content-pagination{margin-bottom:0}.admin-content-pagination li a{padding:4px 8px}@media only screen and (min-width: 641px){.admin-sidebar{display:block;position:static;background:none}.admin-offcanvas-bar{position:static;width:auto;background:none;-webkit-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.admin-offcanvas-bar:after{content:none}}@media only screen and (max-width: 640px){.admin-sidebar{width:inherit}.admin-offcanvas-bar{background:#f3f3f3}.admin-offcanvas-bar:after{background:#BABABA}.admin-sidebar-list a:hover,.admin-sidebar-list a:active{-webkit-transition:background-color .3s ease;transition:background-color .3s ease;background:#E4E4E4}.admin-content-list li{padding:10px;border-width:1px 0;margin-top:-1px}.admin-content-list li:first-child{border-top:none}.admin-content-list li:last-child{border-bottom:none}.admin-form-text{text-align:left !important}}.user-info{margin-bottom:15px}.user-info .am-progress{margin-bottom:4px}.user-info p{margin:5px}.user-info-order{font-size:1.4rem}.error-log .am-pre-scrollable{max-height:40rem}.table-main{font-size:1.4rem;padding:.5rem}.table-main button{background:#fff}.table-check{width:30px}.table-id{width:50px}@media only screen and (max-width: 640px){.table-select{margin-top:10px;margin-left:5px}}.gallery-list li{padding:10px}.gallery-list a{color:#666}.gallery-list a:hover{color:#3bb4f2}.gallery-title{margin-top:6px;font-size:1.4rem}.gallery-desc{font-size:1.2rem;margin-top:4px}.page-404{background:#fff;border:none;width:200px;margin:0 auto}.fixed-layout,.fixed-layout body{height:100%;overflow:hidden}.fixed-layout .admin-header{position:fixed;top:0;left:0;right:0;z-index:1500}.fixed-layout .admin-main{position:relative;height:100%;padding-top:51px}.fixed-layout .admin-content,.fixed-layout .admin-sidebar{height:100%;overflow-x:hidden;overflow-y:scroll}.fixed-layout .admin-sidebar.am-active{z-index:1600}input[type=file]{display:block;opacity:0;height:60px;width:100px;position:absolute;z-index:99}.form-horizontal .form-group{margin-left:0px;margin-right:0px}.datepicker{display:none;position:absolute;padding:4px;margin-top:1px;direction:ltr}.datepicker.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;list-style:none;background-color:#fff;border:1px solid rgba(0,0,0,0.2);border-radius:5px;box-shadow:0 5px 10px rgba(0,0,0,0.2);background-clip:padding-box;*border-right-width:2px;*border-bottom-width:2px;color:#333;font-size:13px;line-height:18px}.datepicker.dropdown-menu th{padding:4px 5px}.datepicker.dropdown-menu td{padding:4px 5px}.datepicker table{border:0;margin:0;width:auto}.datepicker table tr td span{display:block;width:23%;height:54px;line-height:54px;float:left;margin:1%;cursor:pointer}.datepicker td{text-align:center;width:20px;height:20px;border:0;font-size:12px;padding:4px 8px;background:#fff;cursor:pointer}.datepicker td.active.day,.datepicker td.active.year{background:#2ba6cb}.datepicker td.old,.datepicker td.new{color:#999}.datepicker td span.active{background:#2ba6cb}.datepicker td.day.disabled{color:#ccc}.datepicker th{text-align:center;width:20px;height:20px;border:0;font-size:12px;padding:4px 8px;background:#fff;cursor:pointer}.datepicker th.active.day,.datepicker th.active.year{background:#2ba6cb}.datepicker th.date-switch{width:145px}.datepicker th span.active{background:#2ba6cb}.datepicker .cw{font-size:10px;width:12px;padding:0 2px 0 5px;vertical-align:middle}.datepicker.days div.datepicker-days{display:block}.datepicker.months div.datepicker-months{display:block}.datepicker.years div.datepicker-years{display:block}.datepicker thead tr:first-child th{cursor:pointer}.datepicker thead tr:first-child th.cw{cursor:default;background-color:transparent}.datepicker tfoot tr:first-child th{cursor:pointer}.datepicker-inline{width:220px}.datepicker-rtl{direction:rtl}.datepicker-rtl table tr td span{float:right}.datepicker-dropdown{top:0;left:0}.datepicker-dropdown:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:1px solid rgba(0,0,0,0.2);position:absolute;top:-7px;left:6px}.datepicker-dropdown:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:7px}.datepicker>div,.datepicker-dropdown::before,.datepicker-dropdown::after{display:none}.datepicker-close{position:absolute;top:-30px;right:0;width:15px;height:30px;padding:0;display:none}.table-striped .datepicker table tr td,.table-striped .datepicker table tr th{background-color:transparent}.panel-default .panel-heading{border-top:1px solid #e7e7e7}.red{color:red;font-family:bold}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{line-height:0 !important}.show-grid{padding:10px}.brandBtn-group{width:150px;float:left;margin-right:8px}.brandBtn-group-lg{width:280px}.contentpanel td a{margin:0 3px}.mainwrapper .toggle-table tr{cursor:pointer}.mainwrapper .toggle-table tr.level1 td:nth-of-type(1){text-indent:2px}.mainwrapper .toggle-table tr.level2 td:nth-of-type(1){text-indent:15px}.mainwrapper .toggle-table tr.level3 td:nth-of-type(1){text-indent:30px}.pattrscroll{background:#F7F7F7}.pattrscroll ul{padding-left:0}.pattrscroll li{cursor:pointer}.mainwrapper .list-group-item.level1{text-indent:2px}.mainwrapper .list-group-item.level2{text-indent:15px}.mainwrapper .list-group-item.level3{text-indent:30px}.attr-item-active{background:#428bca;color:#fff}.pannel-scroll{height:500px;overflow-y:scroll;overflow-x:hidden}.attr-select{display:block;height:40px;line-height:40px;border:1px solid #ccc;border-radius:3px}#limit-table-box table{vertical-align:middle}#limit-table-box table th,#limit-table-box table td{text-align:center;vertical-align:middle}#limit-table-box table div.checkbox label{height:13px}#limit-table-box table .cover-img{width:100px}#limit-table-box table .width50{width:50px;text-align:center}.height40{height:40px;line-height:40px}.edit-cover-img{width:100px;margin:0 15px;float:left}.quota-text,.quota-img,.quota-video{width:300px;margin-bottom:15px}.quota-text img,.quota-img img,.quota-video img{width:100%}#text-editor{width:100%;max-width:100%;min-width:100%;height:300px;max-height:300px;min-height:300px}.product-detail input[type="text"]{width:100px}.main-table{-display:none}.bulk-import{display:none}#upload-input{display:inline-block;position:static;opacity:1;width:auto;height:auto}.excel-model{display:inline-block;width:110px;height:48px;line-height:48px;padding:0 0 0 50px;margin:0 200px;background:url(../images/excel.png) no-repeat left center}.panel-input{display:inline-block;width:100%}.panel-col,.panel-col2{float:left;width:150px;margin:0 10px}.panel-col2{width:280px} 1 +ul{margin-top:0}.admin-icon-yellow{color:#ffbe40}.admin-header{font-size:1.4rem;margin-bottom:0}.admin-header-list a:hover :after{content:none}.admin-main{background:#f3f3f3}.admin-menu{position:fixed;z-index:10;bottom:30px;right:20px}.admin-sidebar{width:260px;min-height:100%;float:left;border-right:1px solid #cecece}.admin-sidebar-list{margin-bottom:0}.admin-sidebar-list li a{color:#5c5c5c;padding-left:24px}.admin-sidebar-list li:first-child{border-top:none}.admin-sidebar-sub{margin-top:0;margin-bottom:0;box-shadow:0 16px 8px -15px #e2e2e2 inset;background:#ececec;padding-left:24px}.admin-sidebar-sub li:first-child{border-top:1px solid #dedede}.admin-sidebar-panel{margin:10px}.admin-content{width:auto;overflow:hidden;height:100%;background:#fff}.admin-content-list{border:1px solid #e9ecf1;margin-top:0}.admin-content-list li{border:1px solid #e9ecf1;border-width:0 1px;margin-left:-1px}.admin-content-list li:first-child{border-left:none}.admin-content-list li:last-child{border-right:none}.admin-content-table a{color:#535353}.admin-content-file{margin-bottom:0;color:#666}.admin-content-file p{margin:0 0 5px 0;font-size:1.4rem}.admin-content-file li{padding:10px 0}.admin-content-file li:first-child{border-top:none}.admin-content-file li:last-child{border-bottom:none}.admin-content-file li .am-progress{margin-bottom:4px}.admin-content-file li .am-progress-bar{line-height:14px}.admin-content-task{margin-bottom:0}.admin-content-task li{padding:5px 0;border-color:#eee}.admin-content-task li:first-child{border-top:none}.admin-content-task li:last-child{border-bottom:none}.admin-task-meta{font-size:1.2rem;color:#999}.admin-task-bd{font-size:1.4rem;margin-bottom:5px}.admin-content-comment{margin-bottom:0}.admin-content-comment .am-comment-bd{font-size:1.4rem}.admin-content-pagination{margin-bottom:0}.admin-content-pagination li a{padding:4px 8px}@media only screen and (min-width: 641px){.admin-sidebar{display:block;position:static;background:none}.admin-offcanvas-bar{position:static;width:auto;background:none;-webkit-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.admin-offcanvas-bar:after{content:none}}@media only screen and (max-width: 640px){.admin-sidebar{width:inherit}.admin-offcanvas-bar{background:#f3f3f3}.admin-offcanvas-bar:after{background:#BABABA}.admin-sidebar-list a:hover,.admin-sidebar-list a:active{-webkit-transition:background-color 0.3s ease;transition:background-color 0.3s ease;background:#E4E4E4}.admin-content-list li{padding:10px;border-width:1px 0;margin-top:-1px}.admin-content-list li:first-child{border-top:none}.admin-content-list li:last-child{border-bottom:none}.admin-form-text{text-align:left !important}}.user-info{margin-bottom:15px}.user-info .am-progress{margin-bottom:4px}.user-info p{margin:5px}.user-info-order{font-size:1.4rem}.error-log .am-pre-scrollable{max-height:40rem}.table-main{font-size:1.4rem;padding:.5rem}.table-main button{background:#fff}.table-check{width:30px}.table-id{width:50px}@media only screen and (max-width: 640px){.table-select{margin-top:10px;margin-left:5px}}.gallery-list li{padding:10px}.gallery-list a{color:#666}.gallery-list a:hover{color:#3bb4f2}.gallery-title{margin-top:6px;font-size:1.4rem}.gallery-desc{font-size:1.2rem;margin-top:4px}.page-404{background:#fff;border:none;width:200px;margin:0 auto}.fixed-layout,.fixed-layout body{height:100%;overflow:hidden}.fixed-layout .admin-header{position:fixed;top:0;left:0;right:0;z-index:1500}.fixed-layout .admin-main{position:relative;height:100%;padding-top:51px}.fixed-layout .admin-content,.fixed-layout .admin-sidebar{height:100%;overflow-x:hidden;overflow-y:scroll}.fixed-layout .admin-sidebar.am-active{z-index:1600}input[type=file]{display:block;opacity:0;height:60px;width:100px;position:absolute;z-index:99}.form-horizontal .form-group{margin-left:0px;margin-right:0px}.datepicker{display:none;position:absolute;padding:4px;margin-top:1px;direction:ltr}.datepicker.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;list-style:none;background-color:#fff;border:1px solid rgba(0,0,0,0.2);border-radius:5px;box-shadow:0 5px 10px rgba(0,0,0,0.2);background-clip:padding-box;*border-right-width:2px;*border-bottom-width:2px;color:#333;font-size:13px;line-height:18px}.datepicker.dropdown-menu th{padding:4px 5px}.datepicker.dropdown-menu td{padding:4px 5px}.datepicker table{border:0;margin:0;width:auto}.datepicker table tr td span{display:block;width:23%;height:54px;line-height:54px;float:left;margin:1%;cursor:pointer}.datepicker td{text-align:center;width:20px;height:20px;border:0;font-size:12px;padding:4px 8px;background:#fff;cursor:pointer}.datepicker td.active.day,.datepicker td.active.year{background:#2ba6cb}.datepicker td.old,.datepicker td.new{color:#999}.datepicker td span.active{background:#2ba6cb}.datepicker td.day.disabled{color:#ccc}.datepicker th{text-align:center;width:20px;height:20px;border:0;font-size:12px;padding:4px 8px;background:#fff;cursor:pointer}.datepicker th.active.day,.datepicker th.active.year{background:#2ba6cb}.datepicker th.date-switch{width:145px}.datepicker th span.active{background:#2ba6cb}.datepicker .cw{font-size:10px;width:12px;padding:0 2px 0 5px;vertical-align:middle}.datepicker.days div.datepicker-days{display:block}.datepicker.months div.datepicker-months{display:block}.datepicker.years div.datepicker-years{display:block}.datepicker thead tr:first-child th{cursor:pointer}.datepicker thead tr:first-child th.cw{cursor:default;background-color:transparent}.datepicker tfoot tr:first-child th{cursor:pointer}.datepicker-inline{width:220px}.datepicker-rtl{direction:rtl}.datepicker-rtl table tr td span{float:right}.datepicker-dropdown{top:0;left:0}.datepicker-dropdown:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:1px solid rgba(0,0,0,0.2);position:absolute;top:-7px;left:6px}.datepicker-dropdown:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:7px}.datepicker>div,.datepicker-dropdown::before,.datepicker-dropdown::after{display:none}.datepicker-close{position:absolute;top:-30px;right:0;width:15px;height:30px;padding:0;display:none}.table-striped .datepicker table tr td,.table-striped .datepicker table tr th{background-color:transparent}.panel-default .panel-heading{border-top:1px solid #e7e7e7}.red{color:red;font-family:bold}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{line-height:0 !important}.show-grid{padding:10px}.brandBtn-group{width:150px;float:left;margin-right:8px}.brandBtn-group-lg{width:280px}.contentpanel td a{margin:0 3px}.mainwrapper .toggle-table tr{cursor:pointer}.mainwrapper .toggle-table tr.level1 td:nth-of-type(1){text-indent:2px}.mainwrapper .toggle-table tr.level2 td:nth-of-type(1){text-indent:15px}.mainwrapper .toggle-table tr.level3 td:nth-of-type(1){text-indent:30px}.pattrscroll{background:#F7F7F7}.pattrscroll ul{padding-left:0}.pattrscroll li{cursor:pointer}.mainwrapper .list-group-item.level1{text-indent:2px}.mainwrapper .list-group-item.level2{text-indent:15px}.mainwrapper .list-group-item.level3{text-indent:30px}.attr-item-active{background:#428bca;color:#fff}.pannel-scroll{height:500px;overflow-y:scroll;overflow-x:hidden}.attr-select{display:block;height:40px;line-height:40px;border:1px solid #ccc;border-radius:3px}#limit-table-box table{vertical-align:middle}#limit-table-box table th,#limit-table-box table td{text-align:center;vertical-align:middle}#limit-table-box table div.checkbox label{height:13px}#limit-table-box table .cover-img{width:100px}#limit-table-box table .width50{width:50px;text-align:center}.height40{height:40px;line-height:40px}.edit-cover-img{width:100px;margin:0 15px;float:left}.quota-text,.quota-img,.quota-video{width:300px;margin-bottom:15px}.quota-text img,.quota-img img,.quota-video img{width:100%}#text-editor{width:100%;max-width:100%;min-width:100%;height:300px;max-height:300px;min-height:300px}.product-detail input[type="text"]{width:100px}.main-table{-display:none}.bulk-import{display:none}#upload-input{display:inline-block;position:static;opacity:1;width:auto;height:auto}.excel-model{display:inline-block;width:110px;height:48px;line-height:48px;padding:0 0 0 50px;margin:0 200px;background:url(../images/excel.png) no-repeat left center}.panel-input{display:inline-block;width:100%}.panel-col,.panel-col2{float:left;width:150px;margin:0 10px}.panel-col2{width:280px}
@@ -149,14 +149,14 @@ exports.res = [{ @@ -149,14 +149,14 @@ exports.res = [{
149 {name:"shopsId",type:"Number"}, 149 {name:"shopsId",type:"Number"},
150 {name:"shopName",type:"String"}, 150 {name:"shopName",type:"String"},
151 {name:"shopDomain",type:"String"}, 151 {name:"shopDomain",type:"String"},
152 - {name:"shopNature",type:"String"}, 152 + {name:"shopNature",type:"Number"},
153 153
154 {name:"websiteUrl",type:"String"}, 154 {name:"websiteUrl",type:"String"},
155 {name:"otherUrl",type:"String"}, 155 {name:"otherUrl",type:"String"},
156 {name:"shopAddress",type:"String"}, 156 {name:"shopAddress",type:"String"},
157 157
158 {name:"createPid",type:"Number"}, 158 {name:"createPid",type:"Number"},
159 - 159 +
160 {name:"shopsType",type:"Number"}, 160 {name:"shopsType",type:"Number"},
161 {name:"shopLogo",type:"String"}, 161 {name:"shopLogo",type:"String"},
162 {name:"shopIntro",type:"String"}, 162 {name:"shopIntro",type:"String"},
@@ -175,7 +175,9 @@ exports.res = [{ @@ -175,7 +175,9 @@ exports.res = [{
175 data:{ 175 data:{
176 pageTitel:"创建店铺", 176 pageTitel:"创建店铺",
177 action:'/store/add', 177 action:'/store/add',
178 - data:{} 178 + data:{
  179 + shopId:0
  180 + }
179 } 181 }
180 }, {// 新增店铺数据 182 }, {// 新增店铺数据
181 route: '/store/add', 183 route: '/store/add',
@@ -183,9 +185,10 @@ exports.res = [{ @@ -183,9 +185,10 @@ exports.res = [{
183 url: '/ShopsRest/addShops', 185 url: '/ShopsRest/addShops',
184 isJsonRaw: true, 186 isJsonRaw: true,
185 params:[ 187 params:[
  188 + {name:"shopId",type:"Number",def:0},
186 {name:"shopName",type:"String"}, 189 {name:"shopName",type:"String"},
187 {name:"shopDomain",type:"String"}, 190 {name:"shopDomain",type:"String"},
188 - {name:"shopNature",type:"String"}, 191 + {name:"shopNature",type:"Number"},
189 {name:"createPid",type:"Number"}, 192 {name:"createPid",type:"Number"},
190 {name:"shopsType",type:"Number"}, 193 {name:"shopsType",type:"Number"},
191 {name:"shopLogo",type:"String"}, 194 {name:"shopLogo",type:"String"},
@@ -145,7 +145,7 @@ @@ -145,7 +145,7 @@
145 </div> 145 </div>
146 146
147 <button type="button" data-oncheck='1' class="check btn btn-success">提交审核</button> 147 <button type="button" data-oncheck='1' class="check btn btn-success">提交审核</button>
148 - <button type="button" data-oncheck='2' class="check btn btn-info">暂存</button> 148 + <button type="button" data-oncheck='2' class="check btn btn-info btn-cun">暂存</button>
149 <button onclick="history.go(-1);" type="button" class="btn btn-danger">取消</button> 149 <button onclick="history.go(-1);" type="button" class="btn btn-danger">取消</button>
150 </div> 150 </div>
151 </div> 151 </div>
@@ -32,7 +32,9 @@ @@ -32,7 +32,9 @@
32 32
33 <div class="row show-grid"> 33 <div class="row show-grid">
34 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺性质:</div> 34 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺性质:</div>
35 - <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"></div> 35 + <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  36 + <input type="hidden" id="shopNature" value="{{shopNature}}" />
  37 + </div>
36 </div> 38 </div>
37 <div class="row show-grid"> 39 <div class="row show-grid">
38 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺域名:</div> 40 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺域名:</div>
@@ -40,22 +42,25 @@ @@ -40,22 +42,25 @@
40 </div> 42 </div>
41 <div class="row show-grid"> 43 <div class="row show-grid">
42 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">官网地址:</div> 44 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">官网地址:</div>
43 - <div id='otherUrlValue' class="col-xs-8 col-sm-8 col-md-8 col-lg-8"></div>  
44 - <input id="otherUrl" type="hidden" value="{{ otherUrl}}"> 45 + <div id='otherUrlValue' class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  46 + <input id="otherUrl" type="hidden" value="{{ otherUrl}}">
  47 + </div>
45 </div> 48 </div>
46 <div class="row show-grid"> 49 <div class="row show-grid">
47 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">其他平台网址:</div> 50 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">其他平台网址:</div>
48 - <div id="websiteUrlValue" class="col-xs-8 col-sm-8 col-md-8 col-lg-8"></div>  
49 - <input id="websiteUrl" type="hidden" value="{{ websiteUrl}}"> 51 + <div id="websiteUrlValue" class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  52 + <input id="websiteUrl" type="hidden" value="{{ websiteUrl}}">
  53 + </div>
50 </div> 54 </div>
51 <div class="row show-grid"> 55 <div class="row show-grid">
52 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">代表实体店:</div> 56 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">代表实体店:</div>
53 - <div id="shopAddressValue" class="col-xs-8 col-sm-8 col-md-8 col-lg-8"></div>  
54 - <input id="shopAddress" type="hidden" value="{{ shopAddress}}"> 57 + <div id="shopAddressValue" class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  58 + <input id="shopAddress" type="hidden" value="{{ shopAddress}}">
  59 + </div>
55 </div> 60 </div>
56 <div class="row show-grid"> 61 <div class="row show-grid">
57 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺logo:</div> 62 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺logo:</div>
58 - <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"><img src="{{ shopLogo}}"></div> 63 + <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8"><img src="{{ shopLogo}}" width="120" height="80"></div>
59 </div> 64 </div>
60 <div class="row show-grid"> 65 <div class="row show-grid">
61 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺简介:</div> 66 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺简介:</div>
@@ -63,31 +68,19 @@ @@ -63,31 +68,19 @@
63 </div> 68 </div>
64 <div class="row show-grid"> 69 <div class="row show-grid">
65 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺状态:</div> 70 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺状态:</div>
66 - <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">{{ shopsType}}</div> 71 + <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  72 + <input id="checkStatus" type="hidden" value="{{ checkStatus}}">
  73 + </div>
67 </div> 74 </div>
68 <div class="row show-grid"> 75 <div class="row show-grid">
69 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺模式:</div> 76 <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">店铺模式:</div>
70 - <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">{{ shopNature}}</div> 77 + <div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
  78 + <input id="shopsType" type="hidden" value="{{ shopsType}}">
  79 + </div>
71 </div> 80 </div>
72 <div class="row show-grid"> 81 <div class="row show-grid">
73 - <div class="col-xs-9 col-sm-9 col-md-9 col-lg-9">  
74 - <table class="table table-bordered">  
75 - <thead>  
76 - <tr>  
77 - <th>品牌</th>  
78 - <th>供应商</th>  
79 - </tr>  
80 - </thead>  
81 - <tbody>  
82 - {{# shopRelationList}}  
83 - <tr>  
84 - <td>{{ brandName}}</td>  
85 - <td>{{ supplierName}}</td>  
86 - </tr>  
87 - {{/ shopRelationList}}  
88 - </tbody>  
89 - </table>  
90 - </div> 82 + <div id="baseTable"></div>
  83 + <input type="hidden" id="shopRelation" value="{{shopRelation}}" />
91 </div> 84 </div>
92 {{# btn}} 85 {{# btn}}
93 <a class="btn btn-primary btn-xs" id="tongguo">审核通过</a> 86 <a class="btn btn-primary btn-xs" id="tongguo">审核通过</a>
@@ -99,38 +92,3 @@ @@ -99,38 +92,3 @@
99 </div> 92 </div>
100 </div> 93 </div>
101 {{/data}} 94 {{/data}}
102 -<!-- <div class="modal fade" id="modal-id">  
103 - <div class="modal-dialog">  
104 - <div class="modal-content">  
105 - <div class="modal-header">  
106 - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>  
107 - <h4 class="modal-title">温馨提示</h4>  
108 - </div>  
109 - <div class="modal-body">  
110 - 您确定要通过审核吗?  
111 - </div>  
112 - <div class="modal-footer">  
113 - <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>  
114 - <button type="button" class="btn btn-primary">确定</button>  
115 - </div>  
116 - </div>  
117 - </div>  
118 -</div>  
119 -  
120 -<div class="modal fade" id="modal-id">  
121 - <div class="modal-dialog">  
122 - <div class="modal-content">  
123 - <div class="modal-header">  
124 - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>  
125 - <h4 class="modal-title">温馨提示</h4>  
126 - </div>  
127 - <div class="modal-body">  
128 - 您确定要驳回审核吗?  
129 - </div>  
130 - <div class="modal-footer">  
131 - <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>  
132 - <button type="button" class="btn btn-primary">确定</button>  
133 - </div>  
134 - </div>  
135 - </div>  
136 -</div> -->