Ver código fonte

update pages/index/index.vue

vbea 1 ano atrás
pai
commit
5a09c68447
1 arquivos alterados com 9 adições e 4 exclusões
  1. 9 4
      WebApp-Lite/pages/index/index.vue

+ 9 - 4
WebApp-Lite/pages/index/index.vue

@@ -25,7 +25,7 @@
           v-model="stationId"
           maxlength="25"
           placeholder-class="input-place"
-          placeholder="e.g: CHARGE-AC001-1"/>
+          placeholder="e.g: SG-STATIONID-1"/>
       </view>
       <button
         class="button-next button-anim"
@@ -86,7 +86,7 @@ export default {
         }
       } else {
         uni.showToast({
-          title: "Please enter a valid station id",
+          title: "Please input a valid Station ID",
           icon: "none",
           duration: 2000
         })
@@ -105,11 +105,16 @@ export default {
           }
         }
       }).catch(err => {
-        uni.showToast({
+        uni.showModal({
+          title: "Error",
+          content: err,
+          showCancel: false
+        })
+        /*uni.showToast({
           title: err,
           icon: "none",
           duration: 2000
-        })
+        })*/
       }).finally(() => {
         this.loading = false;
       });