Authored by zhaoqing

店铺模块化装修

... ... @@ -2,7 +2,7 @@ module.exports = function(app) {
app.get("/shop/modular/decorator", "shop.modular.Index", function(req, res) {
this.$extend={
moduleName:"店铺管理",
pageName:"模块化装修"
pageName:"店铺装修"
}
});
... ...
... ... @@ -1721,6 +1721,18 @@ $(document).on("click",".tabheader .nav-tabs li",function(){
$(this).addClass('active').siblings('li').removeClass('active');
curTemplateType = $(this).attr("data-toggle");
showMain();
if(curTemplateType == '1') {
$('#saveModule').show();
$('#submitModule').show();
}else{
if(curPlatform == 'app'){
$('#saveModule').hide();
$('#submitModule').hide();
}else{
$('#saveModule').show();
$('#submitModule').show();
}
}
});
//pc,app切换
$(document).on("click","input[name=brandLevel]",function(){
... ...
... ... @@ -95,7 +95,11 @@ g = new common.grid({
var HtmArr = [];
HtmArr.push('<div>');
var uri = '/shop/decorator/modulartool?shopId=' + item.shopId;
uri += '&shopName=' + encodeURIComponent(item.shopName);
uri += '&appType=' + (+t.active ? 1 : 0);
HtmArr.push('<a href="' + uri + '" target="_blank" class="btn btn-primary btn-xs">APP装修</a>');
HtmArr.push('<a href="/supplier/store/decorationDetail/'+item.shopId+'/'+item.shopsType+'/editor/" class="btn btn-info btn-xs">PC装修</a>');
if(+item.decoratorStatus == 2) {
// 店铺装修模板发布之后,才涉及开店、关店
if(+item.shopStatus == 1){
... ... @@ -105,12 +109,6 @@ g = new common.grid({
HtmArr.push('<a data-shop-id="'+item.shopId+'" href="javascript:void(0);" class="openshops btn btn-success btn-xs">开店</a>');
}
}
var uri = '/shop/decorator/modulartool?shopId=' + item.shopId;
uri += '&shopName=' + encodeURIComponent(item.shopName);
uri += '&appType=' + (+t.active ? 1 : 0);
HtmArr.push('<a href="' + uri + '" target="_blank" class="btn btn-primary btn-xs">APP装修</a>');
HtmArr.push('<a href="/supplier/store/decorationDetail/'+item.shopId+'/'+item.shopsType+'/editor/" target="_blank" class="btn btn-info btn-xs">PC装修</a>');
HtmArr.push('</div>');
return HtmArr.join('');
}}
... ...