Browse Source

sofortkauf

Johann Woelper 5 years ago
parent
commit
2b190763a4
2 changed files with 15 additions and 6 deletions
  1. 3 6
      webapp/app.js
  2. 12 0
      webapp/index.html

+ 3 - 6
webapp/app.js

@@ -3,7 +3,6 @@ function ts_to_remaining(ts) {
     return moment.unix(ts).fromNow();
 }
 
-
 var app = new Vue({
     el: '#app',
     data: {
@@ -19,6 +18,7 @@ var app = new Vue({
             maxprice: null,
             minprice: null,
             restricted: null,
+            type: null
         }
     },
 
@@ -29,12 +29,7 @@ var app = new Vue({
         splash.style.display = "none";
         // unhide main container after mount
         this.$el.style.display = "block";
-
         this.update();
-
-        
-
-
         window.addEventListener('hashchange', function() {
             self.update()
 
@@ -50,6 +45,8 @@ var app = new Vue({
                     if (this.query.restricted)          {query += "&ewb=1";}
                     if (this.query.maxprice)            {query += "&maxprice=" + this.query.maxprice;}
                     if (this.query.minprice)            {query += "&minprice=" + this.query.minprice;}
+                    if (this.query.type == 1)           {query += "&type=1";}
+                    if (this.query.type == 2)           {query += "&type=2";}
                     return query;
                 } else {
                     return this.query.url

+ 12 - 0
webapp/index.html

@@ -61,6 +61,9 @@
 
         </div>
         <h1>Neue Suche</h1>
+        Suchen sind das Herzstueck dieser Anwendung. Suchen laufen immer, auch wenn Du nicht online bist. Erstelle eine Suche die moeglichst nur das liefert was Dich interessiert. Das Ausschliessen von Sofortkauf-Artikeln, ein Mindestpreis sowie nur Artikel die eine WBK erfordern kann sinnvoll sein. Vergiss nicht am Ende alle zu speichern!
+        <br>
+        <br>
         <form>
           <div class="form-group">
             <label>Suchbegriff(e), durch Leerzeichen getrennt</label>
@@ -77,6 +80,14 @@
           <div class="form-group">
             <input type="checkbox" v-model="query.restricted">
             <label>WBK noetig?</label>
+          </div>
+            <label>Auktionstyp</label>
+            <div class="form-group">
+            <select v-model="query.type">
+              <option v-bind:value="1">Nur Auktionen</option>
+              <option v-bind:value="2">Nur Sofortkauf</option>
+              <option v-bind:value="3">Alles</option>
+            </select>
           </div>
           <div class="form-group">
             <label>Such-URL (Kann man alternativ von eGun-Suche kopieren)</label>
@@ -172,6 +183,7 @@
     </div>
   </div>
 </body>
+<!-- <link rel="stylesheet" href="https://rawgit.com/woelper/lilac/master/lilac.css"> -->
 <link rel="stylesheet" href="https://rawgit.com/woelper/lilac/master/lilac.min.css">
 
 <!-- Moment.js library -->