Changeset 2825180
- Timestamp:
- 11/28/2022 11:34:45 AM (3 years ago)
- Location:
- loymaxapp/trunk
- Files:
-
- 4 edited
-
loymax-app.php (modified) (1 diff)
-
public/app.min.js (modified) (2 diffs)
-
public/css/style.min.css (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
loymaxapp/trunk/loymax-app.php
r2818728 r2825180 4 4 * Plugin Name: LoymaxWebApp 5 5 * Description: Loymax loyalty program User Portal configuration. 6 * Version: 3.4. 36 * Version: 3.4.4 7 7 * Author URI: https://loymax.ru/ 8 8 * Author: Loymax solutions -
loymaxapp/trunk/public/app.min.js
r2818728 r2825180 1 1 /** 2 * Loymax v2.2.202211 15(http://loymax.ru)2 * Loymax v2.2.20221128 (http://loymax.ru) 3 3 * Copyright 2011-2022 Loymax, Inc. 4 4 * License: MIT … … 9080 9080 "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); 9081 9081 "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); 9083 9083 "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); 9084 9084 "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 1 1 /** 2 * Loymax v2.2.202211 15(http://loymax.ru)2 * Loymax v2.2.20221128 (http://loymax.ru) 3 3 * Copyright 2011-2022 Loymax, Inc. 4 4 * License: MIT -
loymaxapp/trunk/readme.txt
r2818728 r2825180 37 37 38 38 == Changelog == 39 = 3.4.4 = 40 * Метод запроса любимых товаров в зависимости от версии пабликапи 39 41 = 3.4.3 = 40 42 * Конфигурация для задания версии апи
Note: See TracChangeset
for help on using the changeset viewer.