+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Thu Apr 06 2023 12:25:05 GMT+0700 (Indochina Time) */qr-code .qr-output canvas {
/* Sat May 13 2023 13:40:51 GMT+0700 (Indochina Time) */qr-code .qr-output canvas {
max-width: 100%; }

fb-login {
Expand Down Expand Up @@ -38,6 +38,15 @@ qr-code .qr-output canvas {
upload-croppie .cr-boundary {
overflow: hidden; }

media-file-upload img {
max-width: 25vw; }

media-file-upload img {
max-width: 25vw; }

media-file-upload img {
max-width: 25vw; }

/* GENERAL STYLE */
html,
body {
Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/applications/Mixcore/wwwroot/mix-app/css/portal.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

164 changes: 82 additions & 82 deletions src/applications/Mixcore/wwwroot/mix-app/js/app-client.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,52 @@ var cart = angular.module("cart", []);
]);
})(window.angular);

modules.component("addToCartButton", {
templateUrl:
"/mix-app/views/app-client/components/add-to-cart-button/view.html",
bindings: {
cartData: "=",
propertyId: "=",
title: "=",
imageUrl: "=",
price: "=",
quantity: "=?",
},
controller: "AddToCartController",
});
modules.controller("AddToCartController", [
"$rootScope",
"$scope",
"localStorageService",
function ($rootScope, $scope, localStorageService) {
$scope.init = function () {
$scope.quantity = $scope.quantity || 1;
};
$scope.addToCart = function () {
var current = $rootScope.findObjectByKey(
$scope.cartData.items,
"propertyId",
$scope.propertyId
);
if (current) {
current.quantity += parseInt($scope.quantity);
} else {
var item = {
propertyId: $scope.propertyId,
title: $scope.title,
imageUrl: $scope.imageUrl,
price: $scope.price,
quantity: parseInt($scope.quantity) || 1,
};
$scope.cartData.items.push(item);
$scope.cartData.totalItem += 1;
}
$scope.cartData.total += parseInt($scope.price);
localStorageService.set("shoppingCart", $scope.cartData);
};
},
]);

modules.component("booking", {
templateUrl: "/mix-app/views/app-client/components/booking/index.html",
controller: [
Expand Down Expand Up @@ -258,52 +304,6 @@ modules.component("booking", {
},
});

modules.component("addToCartButton", {
templateUrl:
"/mix-app/views/app-client/components/add-to-cart-button/view.html",
bindings: {
cartData: "=",
propertyId: "=",
title: "=",
imageUrl: "=",
price: "=",
quantity: "=?",
},
controller: "AddToCartController",
});
modules.controller("AddToCartController", [
"$rootScope",
"$scope",
"localStorageService",
function ($rootScope, $scope, localStorageService) {
$scope.init = function () {
$scope.quantity = $scope.quantity || 1;
};
$scope.addToCart = function () {
var current = $rootScope.findObjectByKey(
$scope.cartData.items,
"propertyId",
$scope.propertyId
);
if (current) {
current.quantity += parseInt($scope.quantity);
} else {
var item = {
propertyId: $scope.propertyId,
title: $scope.title,
imageUrl: $scope.imageUrl,
price: $scope.price,
quantity: parseInt($scope.quantity) || 1,
};
$scope.cartData.items.push(item);
$scope.cartData.totalItem += 1;
}
$scope.cartData.total += parseInt($scope.price);
localStorageService.set("shoppingCart", $scope.cartData);
};
},
]);

modules.component("fbCustomerChat", {
templateUrl:
"/mix-app/views/app-client/components/fb-customer-chat/view.html",
Expand All @@ -326,31 +326,6 @@ modules.component("fbCustomerChat", {
},
});

modules.component("fbLike", {
templateUrl: "/mix-app/views/app-client/components/fb-like/fb-like.html",
controller: [
"$location",
function ($location) {
var ctrl = this;
ctrl.href = ctrl.href || window.top.location.href;
ctrl.layout = ctrl.layout || "standard";
ctrl.size = ctrl.size || "small";
ctrl.showFaces = ctrl.showFaces || true;
this.$onInit = function () {
setTimeout(() => {
FB.XFBML.parse();
}, 200);
};
},
],
bindings: {
href: "=",
layout: "=",
size: "=",
showFaces: "=",
},
});

modules.component("fbSend", {
templateUrl: "/mix-app/views/app-client/components/fb-send/fb-send.html",
controller: [
Expand All @@ -376,27 +351,28 @@ modules.component("fbSend", {
},
});

modules.component("fbShare", {
templateUrl: "/mix-app/views/app-client/components/fb-share/fb-share.html",
modules.component("fbLike", {
templateUrl: "/mix-app/views/app-client/components/fb-like/fb-like.html",
controller: [
"$location",
function ($location) {
var ctrl = this;
ctrl.href = ctrl.href || window.top.location.href;
ctrl.share = function () {
var href = window.top.location.href;
FB.ui(
{
method: "share",
href: href,
},
function (response) {}
);
ctrl.layout = ctrl.layout || "standard";
ctrl.size = ctrl.size || "small";
ctrl.showFaces = ctrl.showFaces || true;
this.$onInit = function () {
setTimeout(() => {
FB.XFBML.parse();
}, 200);
};
},
],
bindings: {
href: "=",
layout: "=",
size: "=",
showFaces: "=",
},
});

Expand Down Expand Up @@ -643,6 +619,30 @@ modules.component("mixMessagesHubClient", {
],
});

modules.component("fbShare", {
templateUrl: "/mix-app/views/app-client/components/fb-share/fb-share.html",
controller: [
"$location",
function ($location) {
var ctrl = this;
ctrl.href = ctrl.href || window.top.location.href;
ctrl.share = function () {
var href = window.top.location.href;
FB.ui(
{
method: "share",
href: href,
},
function (response) {}
);
};
},
],
bindings: {
href: "=",
},
});

modules.component("serviceHubClient", {
templateUrl:
"/mix-app/views/app-client/components/service-hub-client/view.html",
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载