wzh преди 2 години
родител
ревизия
99db16bbb6
променени са 3 файла, в които са добавени 10 реда и са изтрити 4 реда
  1. 1 1
      manifest.json
  2. 4 1
      pages/index.vue
  3. 5 2
      pages/login.vue

+ 1 - 1
manifest.json

@@ -58,7 +58,7 @@
         "template" : "static/index.html",
         "devServer" : {
             "port" : 443,
-            "https" : true
+            "https" : false
         },
         "title" : "充电助理",
         "router" : {

+ 4 - 1
pages/index.vue

@@ -13,7 +13,7 @@
     </view>
 
     <view class="container">
-      <view class="item">
+      <view class="item" @click="buleTeeth">
         <image :src = "imgUrl+'/index/bluetooth.png'"/>
       </view>
 
@@ -47,6 +47,9 @@
     onShow(){
     },
     methods:{
+      buleTeeth(){
+        this.$modal.showToast('功能开发中~')
+      },
       scan(){
         if(window.location.href.indexOf("localhost") != -1){
           this.scan2();

+ 5 - 2
pages/login.vue

@@ -88,10 +88,10 @@
   </view>
     <view v-show="isLogin">
     <view class="img">
-	    <image style="width: 31px;" :src="imgUrl+'/login/blueTeeth.png'" mode="widthFix"/>
+	    <image @click="buleTeeth()" style="width: 31px;" :src="imgUrl+'/login/blueTeeth.png'" mode="widthFix"/>
 	</view>
 	<view class="blue-text">
-	    <text>蓝牙连接</text>
+	    <text @click="buleTeeth()">蓝牙连接</text>
 	</view>
 	</view>
   </view>
@@ -132,6 +132,9 @@
       this.checkLogin();
     },
     methods: {
+      buleTeeth(){
+        this.$modal.showToast('功能开发中~')
+      },
       checkLogin(){
         let token = getToken()
         if(token){