瀏覽代碼

修复多次跳转

XWookey 2 年之前
父節點
當前提交
82e56e528e
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      pages/index/index.js
  2. 1 1
      pages/index/index.wxml

+ 1 - 1
pages/index/index.js

@@ -611,7 +611,7 @@ Page({
         });
       }
     });
-
+    return;
   },
   //回到当前位置
   click_location_control(e) {

+ 1 - 1
pages/index/index.wxml

@@ -48,7 +48,7 @@
       <text class='inline border'>服务费:{{textData.serviceprice == null? '暂无服务费' : textData.serviceprice + ' 元/度'}}</text>
       <!-- <text class='inline border'>停车费:{{textData.stopprice}}元/小时</text> -->
     </view>
-    <view class='navigationTap' bindtap="getRoute"></view>
+    <view class='navigationTap' catchtap="getRoute"></view>
     <view class='navigation_info'>
       <view class='navigation'>
         <image src='/images/navigation.png'></image>