Plugin Directory

Changeset 2825180


Ignore:
Timestamp:
11/28/2022 11:34:45 AM (3 years ago)
Author:
loymax
Message:

favorite goods method depends on publicapi version

Location:
loymaxapp/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • loymaxapp/trunk/loymax-app.php

    r2818728 r2825180  
    44 * Plugin Name: LoymaxWebApp
    55 * Description: Loymax loyalty program User Portal configuration.
    6  * Version: 3.4.3
     6 * Version: 3.4.4
    77 * Author URI:  https://loymax.ru/
    88 * Author: Loymax solutions
  • loymaxapp/trunk/public/app.min.js

    r2818728 r2825180  
    11/**
    2  * Loymax v2.2.20221115 (http://loymax.ru)
     2 * Loymax v2.2.20221128 (http://loymax.ru)
    33 * Copyright 2011-2022 Loymax, Inc.
    44 * License: MIT
     
    90809080"use strict";!function(o){o.module("lmxApp").directive("favoriteGood",["configurationService",function(o){return{restrict:"E",replace:!0,scope:{favoriteGood:"<",changeGood:"<"},templateUrl:"app/directives/favoriteGoods/favoriteGood/favoriteGood.html",link:function(e){e.favoriteGoodsImagesUrl=o.components.favoriteGoods.favoriteGoodsImagesUrl}}}])}(angular);
    90819081"use strict";!function(o){o.module("lmxApp").directive("lmxFavoriteGoods",["favoriteGoodsService","modalService","userConfirmationService","translateFilter","routingService",function(o,e,t,i,r){return{restrict:"E",replace:!0,scope:!0,templateUrl:"app/directives/favoriteGoods/favoriteGoods.html",link:function(n){function a(){n.inProgress=!0,o.getFavoriteGoodsList({fromDate:new Date,toDate:new Date}).then(function(e){return 0===e.length?void(n.inProgress=!1):(f=e[0],void o.getFavoriteGoods(f.id).then(function(o){n.favoriteGoods=o})["finally"](function(){n.inProgress=!1}))})}function s(e,t){n["goodsInProgres_"+e]=!0,o.changeFavoriteGood(f.id,{position:e,goodsId:t}).then(function(){a()})["finally"](function(){n["goodsInProgres_"+e]=!1})}function d(o,e){var r=i("favoriteGoods.modal.selectFavoriteGood")+' "'+e.name;o.good&&0!==o.good.id&&(r+='" '+i("favoriteGoods.modal.instead")+' "'+o.good.name),r+='"?',t(r,"info").then(function(){s(o.position,e.id)})}function l(o,t){var i={templateUrl:"app/directives/favoriteGoods/modal/"+o+".html",size:"lg",controller:o+"Controller",backdrop:!0,keyboard:!0,windowClass:"modal-favorite-goods",resolve:{goodsGroupId:n.favoriteGoods.goodsGroupId}};e.open(i).result.then(function(o){d(t,o)})}n.inProgress=!0;var f={};n.offersUrl=r.pages.offers,a(),n.changeGood=function(o){l("modalSelectNewFavoriteGood",o)}}}}])}(angular);
    9082 "use strict";!function(t){t.module("lmxApp").service("favoriteGoodsService",["$http","configurationService",function(t,o){function e(t){u=t}function r(o){return t.get(s,{area:u,params:o}).then(function(t){return t.data})}function n(o){return t.get(s+o,{area:u}).then(function(t){return t.data})}function a(o,e){return t.get(c+o+"/catalog",{area:u,params:e}).then(function(t){return t.data})}function i(o,e){var r="?position=";return r+=e.position,r+="&goodsId=",r+=e.goodsId,t.post(s+o+r,{params:e},{area:u}).then(function(t){return t})}var u,s=o.host+"api/user/favoriteGoods/",c=o.host+"api/goodsGroups/";return{setArea:e,getFavoriteGoodsList:r,getFavoriteGoods:n,getCategories:a,changeFavoriteGood:i}}])}(angular);
     9082"use strict";!function(t){t.module("lmxApp").service("favoriteGoodsService",["$http","configurationService",function(t,o){function e(t){s=t}function r(o){return t.get(u,{area:s,params:o}).then(function(t){return t.data})}function n(o){return t.get(u+o,{area:s}).then(function(t){return t.data})}function a(o,e){return t.get(c+o+"/catalog",{area:s,params:e}).then(function(t){return t.data})}function i(o,e){var r="?position=";return r+=e.position,r+="&goodsId=",r+=e.goodsId,t.post(u+o+r,{params:e},{area:s}).then(function(t){return t})}var s,u=o.host+(o.apiVersion>="22.1"?"v1.2/users/favoriteGoods/":"api/user/favoriteGoods/"),c=o.host+"api/goodsGroups/";return{setArea:e,getFavoriteGoodsList:r,getFavoriteGoods:n,getCategories:a,changeFavoriteGood:i}}])}(angular);
    90839083"use strict";!function(o){o.module("lmxApp").directive("goodsOrCategory",["backendTypesService","favoriteGoodsService",function(o,e){return{restrict:"E",replace:!0,scope:{goodsGroupId:"<",goodsOrCategory:"<"},templateUrl:"app/directives/favoriteGoods/modal/goodsOrCategory/goodsOrCategory.html",link:function(r){function t(){if(!r.nodeItems){r.inProgress=!0;var o={parentNodeId:r.goodsOrCategory.id,from:0,count:1e5};e.getCategories(r.goodsGroupId,o).then(function(o){r.nodeItems=o})["finally"](function(){r.inProgress=!1})}}var i=o.enums.goodsCatalog;r.isCategory=r.goodsOrCategory.$type===i.node,r.isShow=!1,r.inProgress=!1,r.changeVisibilityCategoryList=function(){r.isShow=!r.isShow,r.nodeItems||r.inProgress||t()},r.selectNewFavoriteGood=function(){r.$emit("goodSelected",r.goodsOrCategory)}}}}])}(angular);
    90849084"use strict";!function(o){o.module("lmxApp").controller("modalSelectNewFavoriteGoodController",["$scope","$uibModalInstance","favoriteGoodsService","goodsGroupId",function(o,e,n,t){function r(){o.inProgress=!0,n.getCategories(t).then(function(e){var r=e[0],i={parentNodeId:r.id,from:0,count:1e5};n.getCategories(t,i).then(function(e){o.categories=e})["finally"](function(){o.inProgress=!1})},function(){o.inProgress=!1})}o.inProgress=!0,o.categories=[],o.cancel=e.dismiss,o.goodsGroupId=t,o.$on("goodSelected",function(o,n){e.close(n)}),r()}])}(angular);
  • loymaxapp/trunk/public/css/style.min.css

    r2818728 r2825180  
    11/**
    2  * Loymax v2.2.20221115 (http://loymax.ru)
     2 * Loymax v2.2.20221128 (http://loymax.ru)
    33 * Copyright 2011-2022 Loymax, Inc.
    44 * License: MIT
  • loymaxapp/trunk/readme.txt

    r2818728 r2825180  
    3737
    3838== Changelog ==
     39= 3.4.4 =
     40* Метод запроса любимых товаров в зависимости от версии пабликапи
    3941= 3.4.3 =
    4042* Конфигурация для задания версии апи
Note: See TracChangeset for help on using the changeset viewer.