Selaa lähdekoodia

Enquire Now Currency Field Update

master
30117125 4 vuotta sitten
vanhempi
commit
b65a8a9525
2 muutettua tiedostoa jossa 16 lisäystä ja 13 poistoa
  1. 12
    12
      src/components/property/enquireNow/contentSection.vue
  2. 4
    1
      src/main.js

+ 12
- 12
src/components/property/enquireNow/contentSection.vue Näytä tiedosto

@@ -46,15 +46,15 @@
46 46
             <div class="validation"></div>
47 47
           </div>
48 48
           <div class="form-group col-md-6">
49
-            <float-label>
50
-              <input
51
-                type="text"
52
-                name="name"
53
-                class="form-control"
54
-                id="Price"
55
-                placeholder="Price"
56
-                data-rule="minlen:4"
49
+            <float-label label="PRICE">
50
+              <currency-input
51
+                onclick="this.setSelectionRange(0, this.value.length)"
52
+                name="resPrice"
53
+                :value="property.price"
54
+                @input="property.price = $event"
57 55
                 v-model="property.price"
56
+                id="resPrice"
57
+                class="form-control"
58 58
                 disabled
59 59
               />
60 60
             </float-label>
@@ -88,7 +88,7 @@
88 88
               <input
89 89
                 type="text"
90 90
                 name="name"
91
-                class="form-control"
91
+                class="form-control uniInput"
92 92
                 id="Name"
93 93
                 placeholder="Name"
94 94
                 data-rule="minlen:4"
@@ -103,7 +103,7 @@
103 103
               <input
104 104
                 type="text"
105 105
                 name="name"
106
-                class="form-control"
106
+                class="form-control uniInput"
107 107
                 id="ContactNumber"
108 108
                 placeholder="ContactNumber"
109 109
                 data-rule="minlen:4"
@@ -118,7 +118,7 @@
118 118
               <input
119 119
                 type="text"
120 120
                 name="name"
121
-                class="form-control"
121
+                class="form-control uniInput"
122 122
                 id="Email"
123 123
                 placeholder="Email"
124 124
                 data-rule="minlen:4"
@@ -134,7 +134,7 @@
134 134
                 type="textArea"
135 135
                 style="height:130px"
136 136
                 name="message"
137
-                class="form-control"
137
+                class="form-control uniInput"
138 138
                 id="Email"
139 139
                 placeholder="Message"
140 140
                 data-rule="minlen:4"

+ 4
- 1
src/main.js Näytä tiedosto

@@ -37,7 +37,10 @@ axios.defaults.baseURL = "http://training.provision-sa.com:82";
37 37
 Vue.prototype.$axios = axios;
38 38
 const pluginOptions = {
39 39
   /* see config reference */
40
-  globalOptions: { currency: ["ZAR", null, { prefix: "R" }][2] }
40
+  globalOptions: {
41
+    currency: ["ZAR", null, { prefix: "R" }][2],
42
+    precision: 0
43
+  }
41 44
 };
42 45
 Vue.use(VueCurrencyInput, pluginOptions);
43 46
 Vue.prototype.$http = axios;

Loading…
Peruuta
Tallenna