Authored by zhaoqing

店铺链接优化

... ... @@ -7,25 +7,25 @@ module.exports = function(app) {
});
// 店铺装修工具
app.get("/shop/decorator/modulartool", "shop.modular.Decorator");
app.get("/shops-proxy/decorator/modulartool", "shop.modular.Decorator");
//店铺列表
app.post("/shop/ModularDecoratorRest/findShopsDecorator","modularDecorator_findShopDecorator");
app.post("/shops-proxy/ModularDecoratorRest/findShopsDecorator","modularDecorator_findShopDecorator");
// 存储装修模板
app.post("/shop/ModularDecoratorRest/saveDecoratorTemplate", "modularDecorator_saveDecoratorTemplate");
// 查询店铺装修模板列表
app.post("/shop/ModularDecoratorRest/findDecoratorTemplates", "modularDecorator_findShopDecoratorTemplates");
app.post("/shops-proxy/ModularDecoratorRest/findDecoratorTemplates", "modularDecorator_findShopDecoratorTemplates");
// 查询装修模板内容
app.post("/shop/ModularDecoratorRest/queryTemplateResource", "modularDecorator_queryDecoratorTemplateResource");
app.post("/shops-proxy/ModularDecoratorRest/queryTemplateResource", "modularDecorator_queryDecoratorTemplateResource");
// 删除装修模板
app.post("/shop/ModularDecoratorRest/deleteDecoratorTemplate", "modularDecorator_deleteDecoratorTemplate");
app.post("/shops-proxy/ModularDecoratorRest/deleteDecoratorTemplate", "modularDecorator_deleteDecoratorTemplate");
// 发布装修模板
app.post("/shop/ModularDecoratorRest/publishDecoratorTemplate", "modularDecorator_publishDecoratorTemplate");
app.post("/shops-proxy/ModularDecoratorRest/publishDecoratorTemplate", "modularDecorator_publishDecoratorTemplate");
// 更新装修模板
app.post("/shop/ModularDecoratorRest/updateDecoratorTemplate", "modularDecorator_updateDecoratorTemplate");
... ...
module.exports = function(app) {
// 存储装修模板
app.post("/shop/sellerDecoratorRest/saveDecoratorTemplate", "sellerDecorator_saveDecoratorTemplate");
app.post("/shops-proxy/sellerDecoratorRest/saveDecoratorTemplate", "sellerDecorator_saveDecoratorTemplate");
// 更新装修模板
app.post("/shop/sellerDecoratorRest/updateDecoratorTemplate", "sellerDecorator_updateDecoratorTemplate");
app.post("/shops-proxy/sellerDecoratorRest/updateDecoratorTemplate", "sellerDecorator_updateDecoratorTemplate");
//店铺装修保存
app.post("/shop/sellerDecoratorRest/saveShopsDecorator","sellerDecorator_saveShopsDecorator");
... ...
... ... @@ -157,7 +157,7 @@ var Bll = {
// 查询模板列表
getTemplates: function() {
common.util.__ajax({
url: '/shop/ModularDecoratorRest/findDecoratorTemplates',
url: '/shops-proxy/ModularDecoratorRest/findDecoratorTemplates',
data: {
shopId: Bll.shopId,
platform: +t.active ? 0 : 1,
... ... @@ -200,7 +200,7 @@ var Bll = {
var templateId = $(curTemplate).data('id');
common.util.__ajax({
url: '/shop/ModularDecoratorRest/queryTemplateResource',
url: '/shops-proxy/ModularDecoratorRest/queryTemplateResource',
data: {
templateId: templateId
},
... ... @@ -1880,7 +1880,7 @@ var saveTemplate = function(flag, name, cb) {
}
common.util.__ajax({
url: '/shop/sellerDecoratorRest/saveDecoratorTemplate',
url: '/shops-proxy/sellerDecoratorRest/saveDecoratorTemplate',
data: {
shopId: Bll.shopId,
platform: +t.active ? 0 : 1,
... ... @@ -1983,7 +1983,7 @@ $(document).on('click', '#updateBtn', function() {
});
common.util.__ajax({
url: "/shop/sellerDecoratorRest/updateDecoratorTemplate",
url: "/shops-proxy/sellerDecoratorRest/updateDecoratorTemplate",
data: {
templateId: templateId,
shopId: Bll.shopId,
... ... @@ -2015,7 +2015,7 @@ var publishDecoratorTemplate = function() {
}
common.util.__ajax({
url: "/shop/ModularDecoratorRest/publishDecoratorTemplate",
url: "/shops-proxy/ModularDecoratorRest/publishDecoratorTemplate",
data: {
templateId: templateId
}
... ... @@ -2225,7 +2225,7 @@ $(document).on('click', '.template-del-icon', function() {
common.dialog.confirm("温馨提示", "确认删除装修模板[" + templateName + "]?模板删除,装修数据会同时删除,且不可恢复!", function() {
common.util.__ajax({
url: '/shop/ModularDecoratorRest/deleteDecoratorTemplate',
url: '/shops-proxy/ModularDecoratorRest/deleteDecoratorTemplate',
data: {
templateId: templateId,
platformType: 2
... ...
... ... @@ -95,7 +95,7 @@ g = new common.grid({
var HtmArr = [];
HtmArr.push('<div>');
var uri = '/shop/decorator/modulartool?shopId=' + item.shopId;
var uri = '/shops-proxy/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>');
... ... @@ -119,7 +119,7 @@ g = new common.grid({
$('#filter-btn').on('click', function () {
g.reload(1);
});
g.init('/shop/ModularDecoratorRest/findShopsDecorator');
g.init('/shops-proxy/ModularDecoratorRest/findShopsDecorator');
$(document).on('mouseover', '.hover-me', function() {
$(this).parent().find('.brand-tips').show();
... ...