浏览代码

Restaurant Details Screen + Functions

master
George Williams 4 年前
父节点
当前提交
6a77caa254

+ 40
- 40
public/css/style.css 查看文件

@@ -18,7 +18,7 @@ a {
18 18
 }
19 19
 
20 20
 a:hover {
21
-    color: #60CBEB;
21
+    color: #24aae1;
22 22
     text-decoration: none;
23 23
 }
24 24
 
@@ -80,7 +80,7 @@ a:hover {
80 80
 }
81 81
 
82 82
 .color-b {
83
-    color: #60CBEB;
83
+    color: #24aae1;
84 84
 }
85 85
 
86 86
 .color-d {
@@ -119,7 +119,7 @@ a:hover {
119 119
     bottom: -1px;
120 120
     width: 100%;
121 121
     height: 2px;
122
-    background-color: #60CBEB;
122
+    background-color: #24aae1;
123 123
     z-index: 2;
124 124
 }
125 125
 
@@ -174,7 +174,7 @@ a:hover {
174 174
 .pagination-a .pagination .page-link:hover,
175 175
 .pagination-a .pagination .page-link:active,
176 176
 .pagination-a .pagination .page-link:focus {
177
-    background-color: #60CBEB;
177
+    background-color: #24aae1;
178 178
 }
179 179
 
180 180
 .pagination-a .pagination .page-link span {
@@ -201,11 +201,11 @@ a:hover {
201 201
 }
202 202
 
203 203
 .pagination-a .pagination .page-item.active .page-link {
204
-    background-color: #60CBEB;
204
+    background-color: #24aae1;
205 205
 }
206 206
 
207 207
 .a {
208
-    color: #60CBEB;
208
+    color: #24aae1;
209 209
     font-size: 1.3rem;
210 210
 }
211 211
 
@@ -292,7 +292,7 @@ a:hover {
292 292
     position: absolute;
293 293
     width: 70px;
294 294
     height: 4px;
295
-    background-color: #60CBEB;
295
+    background-color: #24aae1;
296 296
     bottom: 20px;
297 297
     left: 0;
298 298
 }
@@ -363,11 +363,11 @@ a:hover {
363 363
 }
364 364
 
365 365
 .owl-theme .owl-dots .owl-dot:hover span {
366
-    background-color: #60CBEB;
366
+    background-color: #24aae1;
367 367
 }
368 368
 
369 369
 .owl-theme .owl-dots .owl-dot.active span {
370
-    background-color: #60CBEB;
370
+    background-color: #24aae1;
371 371
     width: 35px;
372 372
 }
373 373
 
@@ -417,7 +417,7 @@ a:hover {
417 417
     display: inline-block;
418 418
     transition: all 0.6s ease-in-out;
419 419
     color: #ffffff;
420
-    background-color: #60CBEB;
420
+    background-color: #24aae1;
421 421
     opacity: .9;
422 422
 }
423 423
 
@@ -429,7 +429,7 @@ a:hover {
429 429
 
430 430
 .nav-arrow-b .owl-arrow .owl-nav .owl-prev:hover,
431 431
 .nav-arrow-b .owl-arrow .owl-nav .owl-next:hover {
432
-    background-color: #089bf0;
432
+    background-color: #25335d;
433 433
 }
434 434
 
435 435
 .nav-arrow-b .owl-arrow .owl-nav .owl-next {
@@ -449,7 +449,7 @@ a:hover {
449 449
 .back-to-top {
450 450
     position: fixed;
451 451
     display: none;
452
-    background: #60CBEB;
452
+    background: #24aae1;
453 453
     color: #fff;
454 454
     width: 44px;
455 455
     height: 44px;
@@ -488,7 +488,7 @@ a:hover {
488 488
     top: calc(50% - 30px);
489 489
     left: calc(50% - 30px);
490 490
     border: 6px solid #f2f2f2;
491
-    border-top: 6px solid #60CBEB;
491
+    border-top: 6px solid #24aae1;
492 492
     border-radius: 50%;
493 493
     width: 60px;
494 494
     height: 60px;
@@ -579,7 +579,7 @@ a:hover {
579 579
     width: 100%;
580 580
     height: 2px;
581 581
     z-index: 0;
582
-    background-color: #60CBEB;
582
+    background-color: #24aae1;
583 583
     -webkit-transform: scaleX(0);
584 584
     transform: scaleX(0);
585 585
     -webkit-transform-origin: right;
@@ -615,7 +615,7 @@ a:hover {
615 615
 }
616 616
 
617 617
 .navbar-default.navbar-trans .nav-link:before {
618
-    background-color: #60CBEB;
618
+    background-color: #24aae1;
619 619
 }
620 620
 
621 621
 .navbar-default.navbar-trans .nav-link:hover {
@@ -640,7 +640,7 @@ a:hover {
640 640
 }
641 641
 
642 642
 .navbar-default.navbar-reduce .nav-link:before {
643
-    background-color: #60CBEB;
643
+    background-color: #24aae1;
644 644
 }
645 645
 
646 646
 .navbar-default.navbar-reduce .nav-link:hover {
@@ -660,7 +660,7 @@ a:hover {
660 660
 
661 661
 .navbar-default .dropdown .dropdown-menu {
662 662
     border-top: 0;
663
-    border-left: 4px solid #60CBEB;
663
+    border-left: 4px solid #24aae1;
664 664
     border-right: 0;
665 665
     border-bottom: 0;
666 666
     -webkit-transform: translate3d(0px, -40px, 0px);
@@ -683,13 +683,13 @@ a:hover {
683 683
 
684 684
 .navbar-default .dropdown .dropdown-menu .dropdown-item:hover {
685 685
     background-color: #ffffff;
686
-    color: #60CBEB;
686
+    color: #24aae1;
687 687
     transition: all 500ms ease;
688 688
 }
689 689
 
690 690
 .navbar-default .dropdown .dropdown-menu .dropdown-item.active {
691 691
     background-color: #ffffff;
692
-    color: #60CBEB;
692
+    color: #24aae1;
693 693
 }
694 694
 
695 695
 .navbar-default .dropdown:hover .dropdown-menu {
@@ -888,11 +888,11 @@ a:hover {
888 888
 }
889 889
 
890 890
 .intro .owl-theme .owl-dots .owl-dot:hover span {
891
-    background-color: #60CBEB;
891
+    background-color: #24aae1;
892 892
 }
893 893
 
894 894
 .intro .owl-theme .owl-dots .owl-dot.active span {
895
-    background-color: #60CBEB;
895
+    background-color: #24aae1;
896 896
 }
897 897
 
898 898
 .intro .intro-item {
@@ -919,7 +919,7 @@ a:hover {
919 919
 .intro .intro-body .price-a {
920 920
     color: #ffffff;
921 921
     padding: 1rem 1.5rem;
922
-    border: 2px solid #60CBEB;
922
+    border: 2px solid #24aae1;
923 923
     border-radius: 50px;
924 924
     text-transform: uppercase;
925 925
     letter-spacing: 0.030em;
@@ -970,7 +970,7 @@ a:hover {
970 970
 }
971 971
 
972 972
 .intro-single .title-single-box {
973
-    border-left: 3px solid #60CBEB;
973
+    border-left: 3px solid #24aae1;
974 974
 }
975 975
 
976 976
 .intro-single .title-single-box .title-single {
@@ -1074,7 +1074,7 @@ a:hover {
1074 1074
 .price-a {
1075 1075
     color: #ffffff;
1076 1076
     padding: .6rem .8rem;
1077
-    border: 2px solid #60CBEB;
1077
+    border: 2px solid #24aae1;
1078 1078
     border-radius: 50px;
1079 1079
     text-transform: uppercase;
1080 1080
     letter-spacing: 0.030em;
@@ -1084,7 +1084,7 @@ a:hover {
1084 1084
     width: 100%;
1085 1085
     position: absolute;
1086 1086
     z-index: 2;
1087
-    background-color: #60CBEB;
1087
+    background-color: #24aae1;
1088 1088
 }
1089 1089
 
1090 1090
 .card-info {
@@ -1184,7 +1184,7 @@ a:hover {
1184 1184
 
1185 1185
 .card-header-b .category-b {
1186 1186
     font-size: .9rem;
1187
-    background-color: #60CBEB;
1187
+    background-color: #24aae1;
1188 1188
     padding: .3rem .7rem;
1189 1189
     color: #313131;
1190 1190
     letter-spacing: 0.030em;
@@ -1236,7 +1236,7 @@ a:hover {
1236 1236
 
1237 1237
 .post-content .blockquote {
1238 1238
     padding: 1rem 3rem 1.7rem 3rem;
1239
-    border-left: 3px solid #60CBEB;
1239
+    border-left: 3px solid #24aae1;
1240 1240
     color: #000000;
1241 1241
 }
1242 1242
 
@@ -1325,7 +1325,7 @@ a:hover {
1325 1325
 
1326 1326
 .card-box-ico {
1327 1327
     padding: 1rem 3rem 1rem 2.5rem;
1328
-    border: 5px solid #60CBEB;
1328
+    border: 5px solid #24aae1;
1329 1329
 }
1330 1330
 
1331 1331
 .card-box-ico span {
@@ -1387,7 +1387,7 @@ a:hover {
1387 1387
 }
1388 1388
 
1389 1389
 .card-box-d:hover .card-overlay-hover {
1390
-    background-color: #60CBEB;
1390
+    background-color: #24aae1;
1391 1391
     opacity: .9;
1392 1392
 }
1393 1393
 
@@ -1435,7 +1435,7 @@ a:hover {
1435 1435
 }
1436 1436
 
1437 1437
 .sinse-box {
1438
-    background-color: #60CBEB;
1438
+    background-color: #24aae1;
1439 1439
     padding: 1rem 2rem;
1440 1440
     position: absolute;
1441 1441
     left: 15px;
@@ -1490,7 +1490,7 @@ a:hover {
1490 1490
 
1491 1491
 .testimonial-ico span {
1492 1492
     font-size: 1.8rem;
1493
-    background-color: #60CBEB;
1493
+    background-color: #24aae1;
1494 1494
     color: #ffffff;
1495 1495
     padding: .4rem 1rem;
1496 1496
     border-radius: 50px;
@@ -1548,7 +1548,7 @@ a:hover {
1548 1548
 .section-footer .item-list-a i {
1549 1549
     font-size: 18px;
1550 1550
     padding-right: 4px;
1551
-    color: #60CBEB;
1551
+    color: #24aae1;
1552 1552
 }
1553 1553
 
1554 1554
 .section-footer .widget-a .w-title-a {
@@ -1614,8 +1614,8 @@ footer .credits {
1614 1614
 
1615 1615
 
1616 1616
 .form-a #sendmessage {
1617
-    color: #60CBEB;
1618
-    border: 1px solid #089bf0;
1617
+    color: #24aae1;
1618
+    border: 1px solid #25335d;
1619 1619
     display: none;
1620 1620
     text-align: center;
1621 1621
     padding: 15px;
@@ -1668,7 +1668,7 @@ footer .credits {
1668 1668
 
1669 1669
 .form-a .form-control:focus {
1670 1670
     box-shadow: none;
1671
-    border-color: #60CBEB;
1671
+    border-color: #24aae1;
1672 1672
 }
1673 1673
 
1674 1674
 
@@ -1693,12 +1693,12 @@ footer .credits {
1693 1693
 }
1694 1694
 
1695 1695
 .btn.btn-a:hover {
1696
-    background-color: #60CBEB;
1696
+    background-color: #24aae1;
1697 1697
     color: #000000;
1698 1698
 }
1699 1699
 
1700 1700
 .btn.btn-b {
1701
-    background-color: #60CBEB;
1701
+    background-color: #24aae1;
1702 1702
     color: #000000;
1703 1703
 }
1704 1704
 
@@ -1708,13 +1708,13 @@ footer .credits {
1708 1708
 }
1709 1709
 
1710 1710
 .btn.btn-b-n {
1711
-    background-color: #60CBEB;
1711
+    background-color: #24aae1;
1712 1712
     color: #ffffff;
1713 1713
     border-radius: 0;
1714 1714
 }
1715 1715
 
1716 1716
 .btn.btn-b-n:hover {
1717
-    background-color: #089bf0;
1717
+    background-color: #25335d;
1718 1718
     color: #ffffff;
1719 1719
 }
1720 1720
 
@@ -1764,7 +1764,7 @@ footer .credits {
1764 1764
     }
1765 1765
 
1766 1766
     .navbar-default .dropdown .dropdown-menu {
1767
-        border-top: 4px solid #60CBEB;
1767
+        border-top: 4px solid #24aae1;
1768 1768
         border-left: 0;
1769 1769
         display: block;
1770 1770
         position: absolute;

+ 9
- 9
src/App.vue 查看文件

@@ -34,11 +34,11 @@ button:hover {
34 34
   cursor: pointer;
35 35
 }
36 36
 hr {
37
-  background-color: #60cbeb;
37
+  background-color: #24aae1;
38 38
 }
39 39
 .my-btn {
40 40
   margin: 2px;
41
-  color: #60cbeb;
41
+  color: #24aae1;
42 42
 }
43 43
 .title-img {
44 44
   width: 800px;
@@ -51,12 +51,12 @@ hr {
51 51
   border-radius: 15px;
52 52
 }
53 53
 .myBackground {
54
-  border-color: #60cbeb;
55
-  background-color: #60cbeb;
54
+  border-color: #24aae1;
55
+  background-color: #24aae1;
56 56
 }
57 57
 .myFill {
58
-  fill: #60cbeb;
59
-  color: #60cbeb;
58
+  fill: #24aae1;
59
+  color: #24aae1;
60 60
 }
61 61
 .mySuccess {
62 62
   border-color: rgba(2, 184, 117, 0.5);
@@ -78,7 +78,7 @@ a {
78 78
   cursor: pointer;
79 79
 }
80 80
 a:hover {
81
-  color: #60cbeb;
81
+  color: #24aae1;
82 82
 }
83 83
 #app {
84 84
   font-family: "Avenir", Helvetica, Arial, sans-serif;
@@ -99,7 +99,7 @@ html {
99 99
   margin: 0;
100 100
 }
101 101
 .isSelected {
102
-  border-color: white white #60cbeb white;
102
+  border-color: white white #24aae1 white;
103 103
 }
104 104
 .isUnSelected {
105 105
   border-color: white white white white;
@@ -118,7 +118,7 @@ html {
118 118
   color: white;
119 119
 }
120 120
 .normalText {
121
-  background-color: #60cbeb;
121
+  background-color: #24aae1;
122 122
 }
123 123
 .pendingOffer {
124 124
   background-color: #ff8344;

+ 4
- 4
src/components/accounts/login.vue 查看文件

@@ -12,7 +12,7 @@
12 12
           <div class="input-group mb-3">
13 13
             <div class="input-group-prepend">
14 14
               <span class="input-group-text">
15
-                <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
15
+                <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
16 16
               </span>
17 17
               <input
18 18
                 class="form-control"
@@ -26,7 +26,7 @@
26 26
           <div class="input-group mb-3">
27 27
             <div class="input-group-prepend">
28 28
               <span class="input-group-text">
29
-                <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
29
+                <eva-icon name="lock-outline" fill="#24aae1"></eva-icon>
30 30
               </span>
31 31
               <input
32 32
                 class="form-control"
@@ -38,8 +38,8 @@
38 38
               />
39 39
               <div class="input-group-append">
40 40
                 <span class="input-group-text" @click="togglePassword()">
41
-                  <eva-icon v-if="showPassword" name="eye-off-outline" fill="#60CBEB"></eva-icon>
42
-                  <eva-icon v-else name="eye-outline" fill="#60CBEB"></eva-icon>
41
+                  <eva-icon v-if="showPassword" name="eye-off-outline" fill="#24aae1"></eva-icon>
42
+                  <eva-icon v-else name="eye-outline" fill="#24aae1"></eva-icon>
43 43
                 </span>
44 44
               </div>
45 45
             </div>

+ 8
- 8
src/components/accounts/register.vue 查看文件

@@ -14,7 +14,7 @@
14 14
             <label>Name</label>
15 15
             <div class="input-group-prepend">
16 16
               <span class="input-group-text">
17
-                <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
17
+                <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
18 18
               </span>
19 19
               <input class="form-control" type="text" name="name" v-model="userContainer.firstName" />
20 20
             </div>
@@ -25,7 +25,7 @@
25 25
             <label>Surname</label>
26 26
             <div class="input-group-prepend">
27 27
               <span class="input-group-text">
28
-                <eva-icon name="book-outline" fill="#60CBEB"></eva-icon>
28
+                <eva-icon name="book-outline" fill="#24aae1"></eva-icon>
29 29
               </span>
30 30
               <input
31 31
                 class="form-control"
@@ -41,7 +41,7 @@
41 41
             <label>Email Address</label>
42 42
             <div class="input-group-prepend">
43 43
               <span class="input-group-text">
44
-                <eva-icon name="email-outline" fill="#60CBEB"></eva-icon>
44
+                <eva-icon name="email-outline" fill="#24aae1"></eva-icon>
45 45
               </span>
46 46
               <input
47 47
                 class="form-control"
@@ -57,7 +57,7 @@
57 57
             <label>Cellphone</label>
58 58
             <div class="input-group-prepend">
59 59
               <span class="input-group-text">
60
-                <eva-icon name="phone-outline" fill="#60CBEB"></eva-icon>
60
+                <eva-icon name="phone-outline" fill="#24aae1"></eva-icon>
61 61
               </span>
62 62
               <input
63 63
                 class="form-control"
@@ -73,7 +73,7 @@
73 73
             <label>Password</label>
74 74
             <div class="input-group-prepend">
75 75
               <span class="input-group-text">
76
-                <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
76
+                <eva-icon name="lock-outline" fill="#24aae1"></eva-icon>
77 77
               </span>
78 78
               <input
79 79
                 class="form-control"
@@ -91,7 +91,7 @@
91 91
             <label>Confirm Password</label>
92 92
             <div class="input-group-prepend">
93 93
               <span class="input-group-text">
94
-                <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
94
+                <eva-icon name="lock-outline" fill="#24aae1"></eva-icon>
95 95
               </span>
96 96
               <input
97 97
                 class="form-control"
@@ -107,10 +107,10 @@
107 107
                     <eva-icon
108 108
                       v-if="showPassword"
109 109
                       name="eye-off-outline"
110
-                      fill="#60CBEB"
110
+                      fill="#24aae1"
111 111
                       @click="togglePassword()"
112 112
                     ></eva-icon>
113
-                    <eva-icon v-else name="eye-outline" fill="#60CBEB" @click="togglePassword()"></eva-icon>
113
+                    <eva-icon v-else name="eye-outline" fill="#24aae1" @click="togglePassword()"></eva-icon>
114 114
                   </span>
115 115
                 </div>
116 116
               </div>

+ 14
- 20
src/components/accounts/restaurantRegistration.vue 查看文件

@@ -19,7 +19,7 @@
19 19
             <label>Name</label>
20 20
             <div class="input-group-prepend">
21 21
               <span class="input-group-text">
22
-                <eva-icon name="edit-2-outline" fill="#60CBEB"></eva-icon>
22
+                <eva-icon name="edit-2-outline" fill="#24aae1"></eva-icon>
23 23
               </span>
24 24
               <input
25 25
                 class="form-control"
@@ -61,7 +61,7 @@
61 61
             <label>Delivery Fee</label>
62 62
             <div class="input-group-prepend">
63 63
               <span class="input-group-text">
64
-                <eva-icon name="credit-card-outline" fill="#60CBEB"></eva-icon>
64
+                <eva-icon name="credit-card-outline" fill="#24aae1"></eva-icon>
65 65
               </span>
66 66
               <input
67 67
                 class="form-control"
@@ -77,7 +77,7 @@
77 77
             <label>Delivery Radius (KM)</label>
78 78
             <div class="input-group-prepend">
79 79
               <span class="input-group-text">
80
-                <eva-icon name="pin-outline" fill="#60CBEB"></eva-icon>
80
+                <eva-icon name="pin-outline" fill="#24aae1"></eva-icon>
81 81
               </span>
82 82
               <input
83 83
                 class="form-control"
@@ -93,7 +93,7 @@
93 93
             <label>Delivery Time (Minutes)</label>
94 94
             <div class="input-group-prepend">
95 95
               <span class="input-group-text">
96
-                <eva-icon name="clock-outline" fill="#60CBEB"></eva-icon>
96
+                <eva-icon name="clock-outline" fill="#24aae1"></eva-icon>
97 97
               </span>
98 98
               <input
99 99
                 class="form-control"
@@ -130,7 +130,7 @@
130 130
             <label>Shopping Centre</label>
131 131
             <div class="input-group-prepend">
132 132
               <span class="input-group-text">
133
-                <eva-icon name="shopping-cart-outline" fill="#60CBEB"></eva-icon>
133
+                <eva-icon name="shopping-cart-outline" fill="#24aae1"></eva-icon>
134 134
               </span>
135 135
               <input
136 136
                 class="form-control"
@@ -146,7 +146,7 @@
146 146
             <label>Shop Number</label>
147 147
             <div class="input-group-prepend">
148 148
               <span class="input-group-text">
149
-                <eva-icon name="hash-outline" fill="#60CBEB"></eva-icon>
149
+                <eva-icon name="hash-outline" fill="#24aae1"></eva-icon>
150 150
               </span>
151 151
               <input
152 152
                 class="form-control"
@@ -207,7 +207,7 @@
207 207
             <label>First Name</label>
208 208
             <div class="input-group-prepend">
209 209
               <span class="input-group-text">
210
-                <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
210
+                <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
211 211
               </span>
212 212
               <input
213 213
                 class="form-control"
@@ -221,7 +221,7 @@
221 221
             <label>Surname</label>
222 222
             <div class="input-group-prepend">
223 223
               <span class="input-group-text">
224
-                <eva-icon name="book-outline" fill="#60CBEB"></eva-icon>
224
+                <eva-icon name="book-outline" fill="#24aae1"></eva-icon>
225 225
               </span>
226 226
               <input
227 227
                 class="form-control"
@@ -235,7 +235,7 @@
235 235
             <label>Email Address</label>
236 236
             <div class="input-group-prepend">
237 237
               <span class="input-group-text">
238
-                <eva-icon name="email-outline" fill="#60CBEB"></eva-icon>
238
+                <eva-icon name="email-outline" fill="#24aae1"></eva-icon>
239 239
               </span>
240 240
               <input
241 241
                 class="form-control"
@@ -251,7 +251,7 @@
251 251
             <label>Password</label>
252 252
             <div class="input-group-prepend">
253 253
               <span class="input-group-text">
254
-                <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
254
+                <eva-icon name="lock-outline" fill="#24aae1"></eva-icon>
255 255
               </span>
256 256
               <input
257 257
                 class="form-control"
@@ -267,7 +267,7 @@
267 267
             <label>Confirm Password</label>
268 268
             <div class="input-group-prepend">
269 269
               <span class="input-group-text">
270
-                <eva-icon name="lock-outline" fill="#60CBEB"></eva-icon>
270
+                <eva-icon name="lock-outline" fill="#24aae1"></eva-icon>
271 271
               </span>
272 272
               <input
273 273
                 class="form-control"
@@ -283,10 +283,10 @@
283 283
                     <eva-icon
284 284
                       v-if="showPassword"
285 285
                       name="eye-off-outline"
286
-                      fill="#60CBEB"
286
+                      fill="#24aae1"
287 287
                       @click="togglePassword()"
288 288
                     ></eva-icon>
289
-                    <eva-icon v-else name="eye-outline" fill="#60CBEB" @click="togglePassword()"></eva-icon>
289
+                    <eva-icon v-else name="eye-outline" fill="#24aae1" @click="togglePassword()"></eva-icon>
290 290
                   </span>
291 291
                 </div>
292 292
               </div>
@@ -344,13 +344,6 @@ export default {
344 344
     return {
345 345
       selectedMops: [],
346 346
       chain: false,
347
-      mops: [
348
-        { name: "Credit Card" },
349
-        { name: "EFT" },
350
-        { name: "Account" },
351
-        { name: "Cash On Delivery" },
352
-        { name: "Instant EFT" }
353
-      ],
354 347
       tradingHours: [],
355 348
       categories: [],
356 349
       hasError: false,
@@ -450,6 +443,7 @@ export default {
450 443
   },
451 444
   computed: {
452 445
     ...mapState("registration", ["restaurantContainer"]),
446
+    ...mapState("mop", ["mops"]),
453 447
     resultString() {
454 448
       return this.restaurantContainer.result;
455 449
     }

+ 3
- 3
src/components/accounts/tradingHours.vue 查看文件

@@ -17,7 +17,7 @@
17 17
       <div class="col-md-12" style="margin-bottom: 1em">
18 18
         <label>Description</label>
19 19
         <div class="input-group-prepend">
20
-          <span class="input-group-text" style="color: #60CBEB">
20
+          <span class="input-group-text" style="color: #24aae1">
21 21
             <b>D</b>
22 22
           </span>
23 23
           <input class="form-control" type="text" v-model="tradingData.description" />
@@ -28,7 +28,7 @@
28 28
       <div class="col-md-6" style="margin-bottom: 1em">
29 29
         <label>From</label>
30 30
         <div class="input-group-prepend">
31
-          <span class="input-group-text" style="color: #60CBEB">
31
+          <span class="input-group-text" style="color: #24aae1">
32 32
             <b>F</b>
33 33
           </span>
34 34
           <VueTimepicker v-model="tradingData.from" :disabled="EnableTime"></VueTimepicker>
@@ -37,7 +37,7 @@
37 37
       <div class="col-md-6" style="margin-bottom: 1em">
38 38
         <label>To</label>
39 39
         <div class="input-group-prepend">
40
-          <span class="input-group-text" style="color: #60CBEB">
40
+          <span class="input-group-text" style="color: #24aae1">
41 41
             <b>T</b>
42 42
           </span>
43 43
           <VueTimepicker v-model="tradingData.to" :disabled="EnableTime"></VueTimepicker>

+ 15
- 12
src/components/customer/customerDetails.vue 查看文件

@@ -16,7 +16,7 @@
16 16
             <label>Name</label>
17 17
             <div class="input-group-prepend">
18 18
               <span class="input-group-text">
19
-                <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
19
+                <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
20 20
               </span>
21 21
               <input class="form-control" type="text" name="FirstName" v-model="user.firstName" />
22 22
             </div>
@@ -25,7 +25,7 @@
25 25
             <label>Surname</label>
26 26
             <div class="input-group-prepend">
27 27
               <span class="input-group-text">
28
-                <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
28
+                <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
29 29
               </span>
30 30
               <input class="form-control" type="text" name="Surname" v-model="user.surname" />
31 31
             </div>
@@ -36,7 +36,7 @@
36 36
             <label>Eamil Addres</label>
37 37
             <div class="input-group-prepend">
38 38
               <span class="input-group-text">
39
-                <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
39
+                <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
40 40
               </span>
41 41
               <input
42 42
                 class="form-control"
@@ -50,7 +50,7 @@
50 50
             <label>Cellphone</label>
51 51
             <div class="input-group-prepend">
52 52
               <span class="input-group-text">
53
-                <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
53
+                <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
54 54
               </span>
55 55
               <input class="form-control" type="text" name="cellphone" v-model="user.cellphone" />
56 56
             </div>
@@ -99,7 +99,7 @@
99 99
             <label>Complex Name</label>
100 100
             <div class="input-group-prepend">
101 101
               <span class="input-group-text">
102
-                <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
102
+                <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
103 103
               </span>
104 104
               <input
105 105
                 class="form-control"
@@ -113,7 +113,7 @@
113 113
             <label>Unit Number</label>
114 114
             <div class="input-group-prepend">
115 115
               <span class="input-group-text">
116
-                <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
116
+                <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
117 117
               </span>
118 118
               <input
119 119
                 class="form-control"
@@ -131,7 +131,7 @@
131 131
                 <label>Street Number</label>
132 132
                 <div class="input-group-prepend">
133 133
                   <span class="input-group-text">
134
-                    <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
134
+                    <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
135 135
                   </span>
136 136
                   <input
137 137
                     class="form-control"
@@ -148,7 +148,7 @@
148 148
                 <label>Street Name</label>
149 149
                 <div class="input-group-prepend">
150 150
                   <span class="input-group-text">
151
-                    <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
151
+                    <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
152 152
                   </span>
153 153
                   <input
154 154
                     class="form-control"
@@ -165,7 +165,7 @@
165 165
                 <label>Suburb</label>
166 166
                 <div class="input-group-prepend">
167 167
                   <span class="input-group-text">
168
-                    <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
168
+                    <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
169 169
                   </span>
170 170
                   <input
171 171
                     class="form-control"
@@ -182,7 +182,7 @@
182 182
                 <label>City</label>
183 183
                 <div class="input-group-prepend">
184 184
                   <span class="input-group-text">
185
-                    <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
185
+                    <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
186 186
                   </span>
187 187
                   <input
188 188
                     class="form-control"
@@ -199,7 +199,7 @@
199 199
                 <label>Province</label>
200 200
                 <div class="input-group-prepend">
201 201
                   <span class="input-group-text">
202
-                    <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
202
+                    <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
203 203
                   </span>
204 204
                   <input
205 205
                     class="form-control"
@@ -216,7 +216,7 @@
216 216
                 <label>Postal Code</label>
217 217
                 <div class="input-group-prepend">
218 218
                   <span class="input-group-text">
219
-                    <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
219
+                    <eva-icon name="person-outline" fill="#24aae1"></eva-icon>
220 220
                   </span>
221 221
                   <input
222 222
                     class="form-control"
@@ -300,6 +300,9 @@ export default {
300 300
       this.user.addresses = [];
301 301
       this.user.addresses.push(this.userAddress);
302 302
       this.updateUser(this.user);
303
+    },
304
+    Close() {
305
+      this.$router.push("/");
303 306
     }
304 307
   },
305 308
   computed: {

+ 2
- 2
src/components/restaurants/restaurantCategory.vue 查看文件

@@ -10,7 +10,7 @@
10 10
         <label>Description</label>
11 11
         <div class="input-group-prepend">
12 12
           <span class="input-group-text">
13
-            <eva-icon name="credit-card-outline" fill="#60CBEB"></eva-icon>
13
+            <eva-icon name="credit-card-outline" fill="#24aae1"></eva-icon>
14 14
           </span>
15 15
           <input class="form-control" type="text" name="description" v-model="category.description" />
16 16
         </div>
@@ -47,7 +47,7 @@
47 47
         <img :src="category.image" style="height:200px; width:200px; object-fit: cover;" />
48 48
         <br />
49 49
         <span class="input-group-text" align="center" style="width:150px" @click="removeImage()">
50
-          <eva-icon name="trash-2-outline" fill="#60CBEB"></eva-icon>Delete
50
+          <eva-icon name="trash-2-outline" fill="#24aae1"></eva-icon>Delete
51 51
         </span>
52 52
       </div>
53 53
     </div>

+ 3
- 4
src/components/restaurants/restaurantCategorySelect.vue 查看文件

@@ -13,7 +13,6 @@
13 13
           :hideSearch="false"
14 14
           :deleteable="false"
15 15
           :displayColumn="columns"
16
-          :sortKey="Description"
17 16
           :showNew="false"
18 17
           @onRowClick="onRowClick"
19 18
         />
@@ -34,11 +33,11 @@ export default {
34 33
   },
35 34
   data() {
36 35
     return {
37
-      columns: ["Description"]
36
+      columns: ["id", "description"]
38 37
     };
39 38
   },
40 39
   methods: {
41
-    ...mapActions("restaurantCategories", ["getCategories"]),
40
+    ...mapActions("restaurantCategories", ["getSelectCategories"]),
42 41
     onRowClick(item) {
43 42
       this.$emit("selected", item);
44 43
     }
@@ -47,7 +46,7 @@ export default {
47 46
     ...mapState("restaurantCategories", ["restaurantsCategories"])
48 47
   },
49 48
   mounted() {
50
-    this.getCategories();
49
+    this.getSelectCategories();
51 50
   }
52 51
 };
53 52
 </script>

+ 517
- 0
src/components/restaurants/restaurantDetails.vue 查看文件

@@ -0,0 +1,517 @@
1
+<template>
2
+  <!-- eslint-disable max-len -->
3
+  <div class="container">
4
+    <br />
5
+    <div class="container col-md-12">
6
+      <div class="col-sm-12">
7
+        <div class="about-img-box">
8
+          <img
9
+            :src="restaurant.logo"
10
+            alt="Restaurant Details"
11
+            class="img-fluid"
12
+            style="width:800px;height:400px; border-radius:10px"
13
+          />
14
+        </div>
15
+        <div class="sinse-box" style="border-radius:10px">
16
+          <h3 class="sinse-title">Restaurant Details</h3>
17
+        </div>
18
+      </div>
19
+      <br />
20
+      <div class="row" style="text-align:left">
21
+        <div class="col-md-6" style="margin-bottomL 1em">
22
+          <div class="row" style="text-align:left">
23
+            <div class="col-md-12" style="margin-bottom: 1em">
24
+              <label>Update Logo</label>
25
+              <div class="input-group-prepend">
26
+                <span class="input-group-text" style="cursor: pointer;" @click="UpdateLogo">
27
+                  <eva-icon @click="UpdateLogo" name="image-outline" fill="#24aae1"></eva-icon>
28
+                </span>
29
+              </div>
30
+            </div>
31
+          </div>
32
+        </div>
33
+      </div>
34
+      <div class="row" style="text-align:left">
35
+        <!--Column 1 -->
36
+        <div class="col-md-6" style="margin-bottomL 1em">
37
+          <div class="row" style="text-align:left">
38
+            <div class="col-md-12" style="margin-bottom: 1em">
39
+              <label>Name</label>
40
+              <div class="input-group-prepend">
41
+                <span class="input-group-text">
42
+                  <eva-icon name="edit-2-outline" fill="#24aae1"></eva-icon>
43
+                </span>
44
+                <input class="form-control" type="text" name="rname" v-model="restaurant.name" />
45
+              </div>
46
+            </div>
47
+          </div>
48
+          <div class="row" style="text-align:left">
49
+            <div class="col-md-12" style="margin-bottom: 1em">
50
+              <div class="input-group-prepend">
51
+                <label>Methods Of Payment</label>
52
+                <ul>
53
+                  <li v-for="(mop, i) in mops" :key="i">
54
+                    <input type="checkbox" :id="mop.name" :value="mop.name" v-model="selectedMops" />
55
+                    <label :for="mop.name">{{ mop.name }}</label>
56
+                  </li>
57
+                </ul>
58
+              </div>
59
+            </div>
60
+          </div>
61
+          <div class="row" style="text-align:left">
62
+            <div class="col-md-12" style="margin-bottom: 1em">
63
+              <label>Delivery Fee</label>
64
+              <div class="input-group-prepend">
65
+                <span class="input-group-text">
66
+                  <eva-icon name="credit-card-outline" fill="#24aae1"></eva-icon>
67
+                </span>
68
+                <input
69
+                  class="form-control"
70
+                  type="number"
71
+                  name="deliveryFee"
72
+                  v-model="restaurant.deliveryFee"
73
+                />
74
+              </div>
75
+            </div>
76
+          </div>
77
+          <div class="row" style="text-align:left">
78
+            <div class="col-md-12" style="margin-bottom: 1em">
79
+              <label>Delivery Radius (KM)</label>
80
+              <div class="input-group-prepend">
81
+                <span class="input-group-text">
82
+                  <eva-icon name="pin-outline" fill="#24aae1"></eva-icon>
83
+                </span>
84
+                <input
85
+                  class="form-control"
86
+                  type="number"
87
+                  name="deliveryRadius"
88
+                  v-model="restaurant.deliveryRadius"
89
+                />
90
+              </div>
91
+            </div>
92
+          </div>
93
+          <div class="row" style="text-align:left">
94
+            <div class="col-md-12" style="margin-bottom: 1em">
95
+              <label>Delivery Time (Minutes)</label>
96
+              <div class="input-group-prepend">
97
+                <span class="input-group-text">
98
+                  <eva-icon name="clock-outline" fill="#24aae1"></eva-icon>
99
+                </span>
100
+                <input
101
+                  class="form-control"
102
+                  type="number"
103
+                  name="deliveryRadius"
104
+                  placeholder="From"
105
+                  v-model="restaurant.deliveryFrom"
106
+                />
107
+                <input
108
+                  class="form-control"
109
+                  type="number"
110
+                  name="deliveryRadius"
111
+                  placeholder="To"
112
+                  v-model="restaurant.deliveryTo"
113
+                />
114
+              </div>
115
+            </div>
116
+          </div>
117
+        </div>
118
+        <!--Column 2 -->
119
+        <div class="col-md-6" style="margin-bottomL 1em">
120
+          <div class="row" style="text-align:left">
121
+            <div class="col-md-12" style="margin-bottom: 1em">
122
+              <label>Trading Hours</label>
123
+              <ListView
124
+                :items="tradingHours"
125
+                :showColumnChooser="false"
126
+                :hideSearch="true"
127
+                :deleteable="true"
128
+                :displayColumn="thColumns"
129
+                @onDelete="Delete"
130
+                @onNew="New"
131
+              />
132
+            </div>
133
+          </div>
134
+          <div class="row" style="text-align:left">
135
+            <div class="col-md-12" style="margin-bottom: 1em">
136
+              <label>Categories</label>
137
+              <ListView
138
+                :items="categories"
139
+                :showColumnChooser="false"
140
+                :hideSearch="true"
141
+                :deleteable="true"
142
+                :displayColumn="columns"
143
+                :sortKey="Description"
144
+                @onDelete="DeleteCat"
145
+                @onNew="NewCat"
146
+              />
147
+            </div>
148
+          </div>
149
+        </div>
150
+      </div>
151
+      <div class="row">
152
+        <div class="col-md-12 col-lg-8">
153
+          <div class="title-box-d">
154
+            <br />
155
+            <h3 class="title-d" style="text-align:left;">Address</h3>
156
+          </div>
157
+        </div>
158
+      </div>
159
+      <div class="row" style="text-align:left">
160
+        <!--Column 1 -->
161
+        <div class="col-md-6" style="margin-bottomL 1em">
162
+          <div class="row" style="text-align:left">
163
+            <div class="col-md-12" style="margin-bottom: 1em">
164
+              <label>Shopping Centre</label>
165
+              <div class="input-group-prepend">
166
+                <span class="input-group-text">
167
+                  <eva-icon name="shopping-cart-outline" fill="#24aae1"></eva-icon>
168
+                </span>
169
+                <input
170
+                  class="form-control"
171
+                  type="text"
172
+                  name="shopName"
173
+                  v-model="restaurant.shoppingCentre"
174
+                />
175
+              </div>
176
+            </div>
177
+          </div>
178
+          <div class="row" style="text-align:left">
179
+            <div class="col-md-12" style="margin-bottom: 1em">
180
+              <label>Shop Number</label>
181
+              <div class="input-group-prepend">
182
+                <span class="input-group-text">
183
+                  <eva-icon name="hash-outline" fill="#24aae1"></eva-icon>
184
+                </span>
185
+                <input
186
+                  class="form-control"
187
+                  type="text"
188
+                  name="shopNo"
189
+                  v-model="restaurant.shopNumber"
190
+                />
191
+              </div>
192
+            </div>
193
+          </div>
194
+          <div class="row" style="text-align:left">
195
+            <div class="col-md-12" style="margin-bottom: 1em">
196
+              <label>Street Number</label>
197
+              <div class="input-group-prepend">
198
+                <span class="input-group-text">
199
+                  <eva-icon name="navigation-2-outline" fill="#24aae1"></eva-icon>
200
+                </span>
201
+                <input
202
+                  class="form-control"
203
+                  type="text"
204
+                  name="FirstName"
205
+                  v-model="restaurant.streetNumber"
206
+                  disabled
207
+                />
208
+              </div>
209
+            </div>
210
+          </div>
211
+          <div class="row" style="text-align:left">
212
+            <div class="col-md-12" style="margin-bottom: 1em">
213
+              <label>Street Name</label>
214
+              <div class="input-group-prepend">
215
+                <span class="input-group-text">
216
+                  <eva-icon name="navigation-2-outline" fill="#24aae1"></eva-icon>
217
+                </span>
218
+                <input
219
+                  class="form-control"
220
+                  type="text"
221
+                  name="FirstName"
222
+                  v-model="restaurant.streetName"
223
+                  disabled
224
+                />
225
+              </div>
226
+            </div>
227
+          </div>
228
+          <div class="row" style="text-align:left">
229
+            <div class="col-md-12" style="margin-bottom: 1em">
230
+              <label>Suburb</label>
231
+              <div class="input-group-prepend">
232
+                <span class="input-group-text">
233
+                  <eva-icon name="navigation-2-outline" fill="#24aae1"></eva-icon>
234
+                </span>
235
+                <input
236
+                  class="form-control"
237
+                  type="text"
238
+                  name="FirstName"
239
+                  v-model="restaurant.suburb"
240
+                  disabled
241
+                />
242
+              </div>
243
+            </div>
244
+          </div>
245
+          <div class="row" style="text-align:left">
246
+            <div class="col-md-12" style="margin-bottom: 1em">
247
+              <label>City</label>
248
+              <div class="input-group-prepend">
249
+                <span class="input-group-text">
250
+                  <eva-icon name="navigation-2-outline" fill="#24aae1"></eva-icon>
251
+                </span>
252
+                <input
253
+                  class="form-control"
254
+                  type="text"
255
+                  name="FirstName"
256
+                  v-model="restaurant.city"
257
+                  disabled
258
+                />
259
+              </div>
260
+            </div>
261
+          </div>
262
+          <div class="row" style="text-align:left">
263
+            <div class="col-md-12" style="margin-bottom: 1em">
264
+              <label>Province</label>
265
+              <div class="input-group-prepend">
266
+                <span class="input-group-text">
267
+                  <eva-icon name="navigation-2-outline" fill="#24aae1"></eva-icon>
268
+                </span>
269
+                <input
270
+                  class="form-control"
271
+                  type="text"
272
+                  name="FirstName"
273
+                  v-model="restaurant.province"
274
+                  disabled
275
+                />
276
+              </div>
277
+            </div>
278
+          </div>
279
+          <div class="row" style="text-align:left">
280
+            <div class="col-md-12" style="margin-bottom: 1em">
281
+              <label>Postal Code</label>
282
+              <div class="input-group-prepend">
283
+                <span class="input-group-text">
284
+                  <eva-icon name="navigation-2-outline" fill="#24aae1"></eva-icon>
285
+                </span>
286
+                <input
287
+                  class="form-control"
288
+                  type="text"
289
+                  name="FirstName"
290
+                  v-model="restaurant.postalCode"
291
+                  disabled
292
+                />
293
+              </div>
294
+            </div>
295
+          </div>
296
+        </div>
297
+        <!--Column 2 -->
298
+        <div class="col-md-6" style="margin-bottomL 1em">
299
+          <div class="row" style="text-align:left">
300
+            <div class="col-md-4" style="margin-bottom: 1em">
301
+              <button
302
+                @click="ShowMap()"
303
+                class="btn btn-b-n"
304
+                type="button"
305
+                data-dismiss="modal"
306
+              >Update Address</button>
307
+            </div>
308
+          </div>
309
+          <Map :showAutoComplete="false" :showLocationLabel="false" :setLocation="mapCoords" />
310
+        </div>
311
+      </div>
312
+      <div class="row offset-md-5">
313
+        <div class="col-md-2">
314
+          <button @click="Save()" class="btn btn-b-n" type="button" data-dismiss="modal">Save</button>
315
+        </div>
316
+        <div class="col-md-2">
317
+          <button @click="Close()" class="btn btn-b-n" type="button" data-dismiss="modal">Close</button>
318
+        </div>
319
+      </div>
320
+    </div>
321
+    <!-- need to still gey this working -->
322
+    <modal name="loadImage" :width="600" :height="100">
323
+      <div class="container">
324
+        <div class="row" style="text-align:left">
325
+          <div class="col-md-12" style="margin-bottom: 1em">
326
+            <label>Select Image</label>
327
+            <div class="input-group-prepend">
328
+              <image-uploader
329
+                :preview="true"
330
+                :className="['fileinput', { 'fileinput--loaded': hasImage }]"
331
+                capture="environment"
332
+                :debug="1"
333
+                doNotResize="gif"
334
+                :autoRotate="true"
335
+                outputFormat="verbose"
336
+                @input="setImage"
337
+              >
338
+                <label for="fileInput" slot="upload-label">
339
+                  <figure>
340
+                    <path
341
+                      class="path1"
342
+                      d="M9.5 19c0 3.59 2.91 6.5 6.5 6.5s6.5-2.91 6.5-6.5-2.91-6.5-6.5-6.5-6.5 2.91-6.5 6.5zM30 8h-7c-0.5-2-1-4-3-4h-8c-2 0-2.5 2-3 4h-7c-1.1 0-2 0.9-2 2v18c0 1.1 0.9 2 2 2h28c1.1 0 2-0.9 2-2v-18c0-1.1-0.9-2-2-2zM16 27.875c-4.902 0-8.875-3.973-8.875-8.875s3.973-8.875 8.875-8.875c4.902 0 8.875 3.973 8.875 8.875s-3.973 8.875-8.875 8.875zM30 14h-4v-2h4v2z"
343
+                    ></path>
344
+                  </figure>
345
+                </label>
346
+              </image-uploader>
347
+            </div>
348
+          </div>
349
+        </div>
350
+      </div>
351
+    </modal>
352
+    <modal name="map" :width="600" :height="620">
353
+      <div class="container">
354
+        <h2>Update Location</h2>
355
+        <br />
356
+        <Map :showLocationLabel="false" @GoogleAddress="UpdateAddress" />
357
+        <div class="row" style="text-align:left">
358
+          <div class="col-md-4" style="margin-bottom: 1em">
359
+            <button @click="HideMap()" class="btn btn-b-n" type="button" data-dismiss="modal">Close</button>
360
+          </div>
361
+        </div>
362
+      </div>
363
+    </modal>
364
+    <modal name="tradingHours" :width="600" :height="380">
365
+      <TradingHours @tradingUpdate="TradingUpdate" />
366
+    </modal>
367
+    <modal name="Categories" :width="600" :height="500">
368
+      <Categories @selected="selectedCategory" />
369
+    </modal>
370
+    <div v-if="wait" id="preloader"></div>
371
+  </div>
372
+</template>
373
+
374
+<script>
375
+import { mapState, mapActions } from "vuex";
376
+import Map from "../shared/mapSetLocation";
377
+import ListView from "../shared/listView";
378
+import Categories from "../restaurants/restaurantCategorySelect";
379
+import TradingHours from "../accounts/tradingHours";
380
+import ImageUploader from "vue-image-upload-resize";
381
+
382
+export default {
383
+  name: "RestaurantDetails",
384
+  components: {
385
+    Map,
386
+    ListView,
387
+    Categories,
388
+    TradingHours,
389
+    ImageUploader
390
+  },
391
+  data() {
392
+    return {
393
+      thColumns: [
394
+        "description",
395
+        "openingTime",
396
+        "closingTime",
397
+        "closed",
398
+        "opened24H"
399
+      ],
400
+      wait: false,
401
+      selectedMops: [],
402
+      hasImage: false
403
+    };
404
+  },
405
+  methods: {
406
+    ...mapActions("restaurant", [
407
+      "getRestaurant",
408
+      "updateRestaurant",
409
+      "removeTradingHours"
410
+    ]),
411
+    Save() {
412
+      this.wait = true;
413
+
414
+      var mops = "";
415
+      for (let i = 0; i < this.selectedMops.length; i++) {
416
+        mops = mops + this.selectedMops[i] + "|";
417
+      }
418
+
419
+      var cats = "";
420
+      for (let i = 0; i < this.categories.length; i++) {
421
+        cats = cats + this.categories[i].description + "|";
422
+      }
423
+
424
+      this.restaurant.savedTradingHours = this.tradingHours;
425
+      this.restaurant.categories = cats;
426
+      this.restaurant.methodsOfPayment = mops;
427
+
428
+      this.updateRestaurant(this.restaurant)
429
+        .then(fulfilled => {
430
+          this.$router.push("/");
431
+        })
432
+        .catch(error => {
433
+          console.log(error.message);
434
+        });
435
+    },
436
+
437
+    Close() {
438
+      this.$router.push("/");
439
+    },
440
+    ShowMap() {
441
+      this.$modal.show("map");
442
+    },
443
+    HideMap() {
444
+      this.$modal.hide("map");
445
+    },
446
+    New() {
447
+      this.$modal.show("tradingHours");
448
+    },
449
+    NewCat() {
450
+      this.$modal.show("Categories");
451
+    },
452
+    UpdateAddress(address) {
453
+      this.restaurant.streetNumber = address.streetNumber;
454
+      this.restaurant.streetName = address.streetName;
455
+      this.restaurant.suburb = address.suburb;
456
+      this.restaurant.city = address.city;
457
+      this.restaurant.province = address.province;
458
+      this.restaurant.country = address.country;
459
+      this.restaurant.postalCode = address.postalCode;
460
+      this.restaurant.googleMapUrl = address.url;
461
+      this.restaurant.latitude = address.coordinates.lat;
462
+      this.restaurant.longitude = address.coordinates.lng;
463
+    },
464
+    TradingUpdate(item) {
465
+      this.tradingHours.push(item);
466
+      this.$modal.hide("tradingHours");
467
+    },
468
+    selectedCategory(item) {
469
+      this.categories.push(item[0]);
470
+      this.$modal.hide("Categories");
471
+    },
472
+    DeleteCat(item) {
473
+      this.categories.pop(item);
474
+    },
475
+    Delete(item) {
476
+      this.removeTradingHours(item.id);
477
+      this.tradingHours.pop(item);
478
+    },
479
+    UpdateLogo() {
480
+      this.$modal.show("loadImage");
481
+    },
482
+    setImage: function(output) {
483
+      this.$modal.hide("loadImage");
484
+      this.restaurant.logo = output.dataUrl;
485
+    }
486
+  },
487
+  computed: {
488
+    ...mapState("restaurant", ["restaurant"]),
489
+    ...mapState("mop", ["mops"]),
490
+    mapCoords() {
491
+      var coords = {
492
+        lat: this.restaurant.latitude,
493
+        lng: this.restaurant.longitude
494
+      };
495
+      return coords;
496
+    },
497
+    tradingHours() {
498
+      return this.restaurant.savedTradingHours;
499
+    },
500
+    categories() {
501
+      return this.restaurant.savedCategories;
502
+    },
503
+    SavedMops() {
504
+      this.selectedMops = this.restaurant.selectedMethodsOfPayments;
505
+    }
506
+  },
507
+  mounted() {
508
+    this.wait = false;
509
+    this.getRestaurant(5);
510
+  },
511
+  watch: {
512
+    SavedMops() {
513
+      alert("bla");
514
+    }
515
+  }
516
+};
517
+</script>

+ 10
- 12
src/components/shared/autoComplete.vue 查看文件

@@ -7,9 +7,7 @@
7 7
         :key="i"
8 8
         class="autocomplete-result"
9 9
         @click="setResult(result)"
10
-      >
11
-        {{ result }}
12
-      </li>
10
+      >{{ result }}</li>
13 11
     </ul>
14 12
   </div>
15 13
 </template>
@@ -20,14 +18,14 @@ export default {
20 18
     items: {
21 19
       type: Array,
22 20
       required: false,
23
-      default: () => [],
24
-    },
21
+      default: () => []
22
+    }
25 23
   },
26 24
   data() {
27 25
     return {
28
-      search: '',
26
+      search: "",
29 27
       results: [],
30
-      isOpen: false,
28
+      isOpen: false
31 29
     };
32 30
   },
33 31
   methods: {
@@ -41,15 +39,15 @@ export default {
41 39
     },
42 40
     filterResults() {
43 41
       this.results = this.items.filter(
44
-        item => item.toLowerCase().indexOf(this.search.toLowerCase()) > -1,
42
+        item => item.toLowerCase().indexOf(this.search.toLowerCase()) > -1
45 43
       );
46 44
     },
47 45
     setResult(result) {
48 46
       this.search = result;
49 47
       this.isOpen = false;
50
-      this.$emit('selection', this.search);
51
-    },
52
-  },
48
+      this.$emit("selection", this.search);
49
+    }
50
+  }
53 51
 };
54 52
 </script>
55 53
 
@@ -75,7 +73,7 @@ export default {
75 73
 }
76 74
 
77 75
 .autocomplete-result:hover {
78
-  background-color: #60cbeb;
76
+  background-color: #24aae1;
79 77
   color: white;
80 78
 }
81 79
 </style>

+ 26
- 26
src/components/shared/fieldEditor.vue 查看文件

@@ -6,9 +6,9 @@
6 6
         v-if="mayEdit"
7 7
         @click="EditClick()"
8 8
         class="input-group-text spanCursor"
9
-        style="color: #60CBEB"
9
+        style="color: #24aae1"
10 10
       >
11
-        <eva-icon name="edit-outline" fill="#60CBEB"></eva-icon>
11
+        <eva-icon name="edit-outline" fill="#24aae1"></eva-icon>
12 12
       </span>
13 13
     </div>
14 14
     <div v-if="edit" class="input-group-prepend">
@@ -31,12 +31,12 @@
31 31
         v-if="edit"
32 32
         @click="UpdateValue()"
33 33
         class="input-group-text spanCursor"
34
-        style="color: #60CBEB"
34
+        style="color: #24aae1"
35 35
       >
36
-        <eva-icon name="checkmark-outline" fill="#60CBEB"></eva-icon>
36
+        <eva-icon name="checkmark-outline" fill="#24aae1"></eva-icon>
37 37
       </span>
38
-      <span v-if="edit" @click="Close()" class="input-group-text spanCursor" style="color: #60CBEB">
39
-        <eva-icon name="close-outline" fill="#60CBEB"></eva-icon>
38
+      <span v-if="edit" @click="Close()" class="input-group-text spanCursor" style="color: #24aae1">
39
+        <eva-icon name="close-outline" fill="#24aae1"></eva-icon>
40 40
       </span>
41 41
     </div>
42 42
   </div>
@@ -45,26 +45,26 @@
45 45
 <script>
46 46
 export default {
47 47
   props: [
48
-    'value',
49
-    'type',
50
-    'mayEdit',
51
-    'selectOptions',
52
-    'selectValue',
53
-    'selectText',
54
-    'display',
48
+    "value",
49
+    "type",
50
+    "mayEdit",
51
+    "selectOptions",
52
+    "selectValue",
53
+    "selectText",
54
+    "display"
55 55
   ],
56 56
   data() {
57 57
     return {
58 58
       edit: false,
59
-      myDisplay: '',
59
+      myDisplay: ""
60 60
     };
61 61
   },
62 62
   methods: {
63 63
     UpdateValue() {
64 64
       this.edit = false;
65
-      if (this.type !== 'select' && this.value) {
66
-        this.$emit('input', this.value);
67
-        this.$emit('change', this.value);
65
+      if (this.type !== "select" && this.value) {
66
+        this.$emit("input", this.value);
67
+        this.$emit("change", this.value);
68 68
       }
69 69
     },
70 70
     EditClick() {
@@ -82,16 +82,16 @@ export default {
82 82
         }
83 83
         if (this.selectOptions[item.target.options.selectedIndex - 1]) {
84 84
           this.$emit(
85
-            'input',
86
-            this.selectOptions[item.target.options.selectedIndex - 1],
85
+            "input",
86
+            this.selectOptions[item.target.options.selectedIndex - 1]
87 87
           );
88 88
           this.$emit(
89
-            'change',
90
-            this.selectOptions[item.target.options.selectedIndex - 1],
89
+            "change",
90
+            this.selectOptions[item.target.options.selectedIndex - 1]
91 91
           );
92 92
         }
93 93
       }
94
-    },
94
+    }
95 95
   },
96 96
   mounted() {
97 97
     if (this.value) {
@@ -105,7 +105,7 @@ export default {
105 105
     if (this.display) {
106 106
       this.myDisplay = this.display;
107 107
     }
108
-    if (this.type === 'date') {
108
+    if (this.type === "date") {
109 109
       this.myDisplay = this.$options.filters.toDate(this.value);
110 110
     }
111 111
   },
@@ -124,12 +124,12 @@ export default {
124 124
         // eslint-disable-next-line vue/no-side-effects-in-computed-properties
125 125
         this.myDisplay = this.display;
126 126
       }
127
-    },
127
+    }
128 128
   },
129 129
   watch: {
130 130
     checkValue() {
131 131
       return null;
132
-    },
133
-  },
132
+    }
133
+  }
134 134
 };
135 135
 </script>

+ 1
- 1
src/components/shared/imageLoader.vue 查看文件

@@ -21,7 +21,7 @@
21 21
         <img :src="img" style="height:200px; width:150px; object-fit: cover;" />
22 22
         <br />
23 23
         <span class="input-group-text" align="center" style="width:150px" @click="removeImage(key)">
24
-          <eva-icon name="trash-2-outline" fill="#60CBEB"></eva-icon>Delete
24
+          <eva-icon name="trash-2-outline" fill="#24aae1"></eva-icon>Delete
25 25
         </span>
26 26
       </div>
27 27
       <br />

+ 1
- 1
src/components/shared/mapSetLocation.vue 查看文件

@@ -3,7 +3,7 @@
3 3
     <label v-if="showLocationLabel">Location</label>
4 4
     <div v-if="showAutoComplete" class="input-group-prepend">
5 5
       <span class="input-group-text">
6
-        <eva-icon name="map" fill="#60CBEB"></eva-icon>
6
+        <eva-icon name="map" fill="#24aae1"></eva-icon>
7 7
       </span>
8 8
       <gmap-autocomplete class="form-control" @place_changed="setPlace"></gmap-autocomplete>
9 9
       <button class="btn btn-primary btn-l" @click="addMarker">Add</button>

+ 7
- 6
src/components/shared/navBar.vue 查看文件

@@ -38,7 +38,7 @@
38 38
         <div class="input-group-prepend">
39 39
           <input type="text" placeholder="search" />
40 40
           <span class="input-group-text" @click="Search">
41
-            <i class="fa fa-search" style="color:#60CBEB"></i>
41
+            <i class="fa fa-search" style="color:#24aae1"></i>
42 42
           </span>
43 43
         </div>
44 44
       </div>
@@ -92,14 +92,15 @@
92 92
                 class="dropdown-menu"
93 93
                 aria-labelledby="navbarDropdown"
94 94
               >
95
+                <a class="dropdown-item cursor-pointer" @click="routerGoTo('/Restaurant')">Details</a>
95 96
                 <a
96 97
                   class="dropdown-item cursor-pointer"
97
-                  @click="routerGoTo('/status/list')"
98
-                >Restaurant Details</a>
98
+                  @click="routerGoTo('/status/timeshareAdmin')"
99
+                >Menu</a>
99 100
                 <a
100 101
                   class="dropdown-item cursor-pointer"
101 102
                   @click="routerGoTo('/status/timeshareAdmin')"
102
-                >Menu</a>
103
+                >Orders</a>
103 104
                 <hr />
104 105
                 <a
105 106
                   class="dropdown-item cursor-pointer"
@@ -171,8 +172,8 @@ export default {
171 172
     },
172 173
     SystemRole() {
173 174
       //return "Customer";
174
-      return "SuperAdmin";
175
-      //return "RestaurantAdmin";
175
+      //return "SuperAdmin";
176
+      return "RestaurantAdmin";
176 177
     },
177 178
     // eslint-disable-next-line vue/return-in-computed-property
178 179
     Logout() {

+ 0
- 1
src/main.js 查看文件

@@ -24,7 +24,6 @@ Vue.component("VueFontawesome", require("vue-fontawesome-icon/VueFontawesome.vue
24 24
 Vue.use(EvaIcons);
25 25
 
26 26
 Vue.config.productionTip = false;
27
-// axios.defaults.baseURL = 'http://localhost:57260/';
28 27
 Vue.prototype.$axios = axios;
29 28
 
30 29
 Vue.prototype.$http = axios;

+ 6
- 0
src/router/index.js 查看文件

@@ -11,6 +11,7 @@ import RegistrationPage from "../components/accounts/registrationPage.vue";
11 11
 import RestaurantCategory from "../components/restaurants/restaurantCategories.vue";
12 12
 import RestaurantSearch from "../components/home/restaurantSearch.vue";
13 13
 import RestuarantList from "../components/restaurants/restaurantList.vue";
14
+import Restaurant from "../components/restaurants/restaurantDetails.vue";
14 15
 import CustomerDetails from "../components/customer/customerDetails.vue";
15 16
 import CustomerOrders from "../components/customer/customerOrders.vue";
16 17
 import CustomerList from "../components/customer/customerList.vue";
@@ -79,6 +80,11 @@ export default new Router({
79 80
       path: "/CustomerList",
80 81
       name: "CustomerList",
81 82
       component: CustomerList
83
+    },
84
+    {
85
+      path: "/Restaurant",
86
+      name: "Restaurant",
87
+      component: Restaurant
82 88
     }
83 89
   ]
84 90
 });

+ 3
- 1
src/store/index.js 查看文件

@@ -6,6 +6,7 @@ import Authentication from './modules/accounts/authentication';
6 6
 import RestaurantSearch from './modules/restaurants/restaurantSearch';
7 7
 import RestaurantCategories from './modules/restaurants/restaurantCategories';
8 8
 import Restaurant from './modules/restaurants/restaurant';
9
+import MOPs from './modules/shared/restaurantMOP'
9 10
 import User from './modules/users/user';
10 11
 
11 12
 Vue.use(Vuex);
@@ -18,6 +19,7 @@ export default new Vuex.Store({
18 19
     restaurantSearch: RestaurantSearch,
19 20
     restaurantCategories: RestaurantCategories,
20 21
     restaurant: Restaurant,
21
-    user: User
22
+    user: User,
23
+    mop: MOPs
22 24
   },
23 25
 });

+ 41
- 3
src/store/modules/restaurants/restaurant.js 查看文件

@@ -1,14 +1,25 @@
1 1
 import axios from 'axios'
2
+import {
3
+  result
4
+} from 'lodash';
2 5
 
3 6
 export default {
4 7
   namespaced: true,
5 8
   state: {
6 9
     restaurants: [],
7
-    restaurant: {}
10
+    restaurant: {},
11
+    tradingHour: {},
12
+    tradingHours: []
8 13
   },
9 14
   mutations: {
10 15
     setRestaurants(state, restaurants) {
11
-      state.restaurants = restaurants
16
+      state.restaurants = restaurants;
17
+    },
18
+    setRestaurant(state, restaurant) {
19
+      state.restaurant = restaurant;
20
+    },
21
+    setTradingHours(state, thours) {
22
+      state.tradingHours = thours;
12 23
     }
13 24
   },
14 25
   getters: {},
@@ -18,7 +29,34 @@ export default {
18 29
     }) {
19 30
       axios
20 31
         .get('/api/restaurant/getrestaurants')
21
-        .then(result => commit("setRestaurants", result.data))
32
+        .then(result => commit("setRestaurants", result.data));
33
+    },
34
+    getRestaurant({
35
+      commit
36
+    }, id) {
37
+      axios
38
+        .get(`/api/restaurant/${id}`)
39
+        .then(result => commit("setRestaurant", result.data));
40
+    },
41
+    getTradingHours({
42
+      commit
43
+    }, id) {
44
+      axios
45
+        .get(`/api/restaurant/GetTradingHours/${id}`)
46
+        .then(result => commit("setTradingHours", result.data));
47
+    },
48
+    updateRestaurant({
49
+      commit
50
+    }, restaurant) {
51
+      axios
52
+        .put('/api/Restaurant', restaurant)
53
+        .then(result => commit("setRestaurant", restaurant))
54
+    },
55
+    removeTradingHours({
56
+      commit
57
+    }, id) {
58
+      axios
59
+        .delete(`/api/Restaurant/RemoveTradingHours/${id}`)
22 60
     }
23 61
   }
24 62
 }

+ 10
- 0
src/store/modules/restaurants/restaurantCategories.js 查看文件

@@ -1,4 +1,7 @@
1 1
 import axios from 'axios';
2
+import {
3
+  result
4
+} from 'lodash';
2 5
 
3 6
 export default {
4 7
   namespaced: true,
@@ -53,6 +56,13 @@ export default {
53 56
       axios
54 57
         .delete(`/api/RestaurantCategory/${id}`)
55 58
         .then(result => commit('removeCategories', id));
59
+    },
60
+    getSelectCategories({
61
+      commit
62
+    }) {
63
+      axios
64
+        .get('/api/RestaurantCategory/GetSelectCategories')
65
+        .then(result => commit("setRestaurantsCategories", result.data));
56 66
     }
57 67
   }
58 68
 }

+ 24
- 0
src/store/modules/shared/restaurantMOP.js 查看文件

@@ -0,0 +1,24 @@
1
+export default {
2
+  namespaced: true,
3
+  state: {
4
+    mops: [{
5
+        name: "Credit Card"
6
+      },
7
+      {
8
+        name: "EFT"
9
+      },
10
+      {
11
+        name: "Account"
12
+      },
13
+      {
14
+        name: "Cash On Delivery"
15
+      },
16
+      {
17
+        name: "Instant EFT"
18
+      }
19
+    ],
20
+  },
21
+  mutations: {},
22
+  getters: {},
23
+  actions: {}
24
+}

正在加载...
取消
保存