...
|
...
|
@@ -90,8 +90,8 @@ webpackJsonp([163],{ |
|
|
Bll.loadMain();
|
|
|
},
|
|
|
columns: [
|
|
|
{name: "all", display: '<img src="/static/assets/images/decorator/platform-pc-logo.png"><span class="platform-title">PC店铺装修</span>'},
|
|
|
{name: "1", display: '<img src="/static/assets/images/decorator/platform-app-logo.png"><span class="platform-title">移动店铺装修</span>'}
|
|
|
{name: "1", display: '<img src="/static/assets/images/decorator/platform-pc-logo.png"><span class="platform-title">PC店铺装修</span>'},
|
|
|
{name: "all", display: '<img src="/static/assets/images/decorator/platform-app-logo.png"><span class="platform-title">移动店铺装修</span>'}
|
|
|
],
|
|
|
innerHtml: '<ul class="nav navbar-nav"></ul>',
|
|
|
}).init({});
|
...
|
...
|
@@ -121,9 +121,9 @@ webpackJsonp([163],{ |
|
|
|
|
|
// 重选渲染模板内容
|
|
|
if(+t.active) {
|
|
|
Bll.renderDecoratorAppTemplate();
|
|
|
} else {
|
|
|
Bll.renderDecoratorPCTemplate();
|
|
|
} else {
|
|
|
Bll.renderDecoratorAppTemplate();
|
|
|
}
|
|
|
Bll.addEditorIcon();
|
|
|
|
...
|
...
|
@@ -137,9 +137,9 @@ webpackJsonp([163],{ |
|
|
// index: 重载模板前,操作的模块在列表中的索引,用于调整滚动条至操作模块的位置
|
|
|
reloadMain: function(index) {
|
|
|
if(+t.active) {
|
|
|
Bll.renderDecoratorAppTemplate();
|
|
|
} else {
|
|
|
Bll.renderDecoratorPCTemplate();
|
|
|
} else {
|
|
|
Bll.renderDecoratorAppTemplate();
|
|
|
}
|
|
|
|
|
|
Bll.addEditorIcon();
|
...
|
...
|
@@ -148,6 +148,8 @@ webpackJsonp([163],{ |
|
|
var editor = $('.modular-editor').get(index - 1);
|
|
|
var offset = $(editor).offset();
|
|
|
if(+t.active) {
|
|
|
// 处理PC
|
|
|
} else {
|
|
|
$('.app-template').animate({
|
|
|
scrollTop: offset.top
|
|
|
}, 0);
|
...
|
...
|
@@ -187,7 +189,7 @@ webpackJsonp([163],{ |
|
|
url: '/shop/ModularDecoratorRest/findDecoratorTemplates',
|
|
|
data: {
|
|
|
shopId: Bll.shopId,
|
|
|
platform: +t.active ? 1 : 0,
|
|
|
platform: +t.active ? 0 : 1,
|
|
|
appType: Bll.appType
|
|
|
},
|
|
|
async: false
|
...
|
...
|
@@ -1210,7 +1212,7 @@ webpackJsonp([163],{ |
|
|
url: '/shop/ModularDecoratorRest/saveDecoratorTemplate',
|
|
|
data: {
|
|
|
shopId: Bll.shopId,
|
|
|
platform: +t.active ? 1 : 0,
|
|
|
platform: +t.active ? 0 : 1,
|
|
|
appType: Bll.appType,
|
|
|
templateName: name,
|
|
|
modules: JSON.stringify(Bll.moduleDataList),
|
...
|
...
|
|