瀏覽代碼

Enquire Now Currency Field Update

master
30117125 4 年之前
父節點
當前提交
b65a8a9525
共有 2 個檔案被更改,包括 16 行新增13 行删除
  1. 12
    12
      src/components/property/enquireNow/contentSection.vue
  2. 4
    1
      src/main.js

+ 12
- 12
src/components/property/enquireNow/contentSection.vue 查看文件

46
             <div class="validation"></div>
46
             <div class="validation"></div>
47
           </div>
47
           </div>
48
           <div class="form-group col-md-6">
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
                 v-model="property.price"
55
                 v-model="property.price"
56
+                id="resPrice"
57
+                class="form-control"
58
                 disabled
58
                 disabled
59
               />
59
               />
60
             </float-label>
60
             </float-label>
88
               <input
88
               <input
89
                 type="text"
89
                 type="text"
90
                 name="name"
90
                 name="name"
91
-                class="form-control"
91
+                class="form-control uniInput"
92
                 id="Name"
92
                 id="Name"
93
                 placeholder="Name"
93
                 placeholder="Name"
94
                 data-rule="minlen:4"
94
                 data-rule="minlen:4"
103
               <input
103
               <input
104
                 type="text"
104
                 type="text"
105
                 name="name"
105
                 name="name"
106
-                class="form-control"
106
+                class="form-control uniInput"
107
                 id="ContactNumber"
107
                 id="ContactNumber"
108
                 placeholder="ContactNumber"
108
                 placeholder="ContactNumber"
109
                 data-rule="minlen:4"
109
                 data-rule="minlen:4"
118
               <input
118
               <input
119
                 type="text"
119
                 type="text"
120
                 name="name"
120
                 name="name"
121
-                class="form-control"
121
+                class="form-control uniInput"
122
                 id="Email"
122
                 id="Email"
123
                 placeholder="Email"
123
                 placeholder="Email"
124
                 data-rule="minlen:4"
124
                 data-rule="minlen:4"
134
                 type="textArea"
134
                 type="textArea"
135
                 style="height:130px"
135
                 style="height:130px"
136
                 name="message"
136
                 name="message"
137
-                class="form-control"
137
+                class="form-control uniInput"
138
                 id="Email"
138
                 id="Email"
139
                 placeholder="Message"
139
                 placeholder="Message"
140
                 data-rule="minlen:4"
140
                 data-rule="minlen:4"

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

37
 Vue.prototype.$axios = axios;
37
 Vue.prototype.$axios = axios;
38
 const pluginOptions = {
38
 const pluginOptions = {
39
   /* see config reference */
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
 Vue.use(VueCurrencyInput, pluginOptions);
45
 Vue.use(VueCurrencyInput, pluginOptions);
43
 Vue.prototype.$http = axios;
46
 Vue.prototype.$http = axios;

Loading…
取消
儲存