Browse Source

feat():首页2

geek 4 years ago
parent
commit
04d5be7095
2 changed files with 2 additions and 3 deletions
  1. 1 2
      pages/index/index.js
  2. 1 1
      pages/index/index.wxml

+ 1 - 2
pages/index/index.js

@@ -214,7 +214,6 @@ Page({
   },
   getLocation: function(){
     const self = this
-    console.log('sss')
     wx.getLocation({
       type: 'wgs84',
       success (res) {
@@ -227,6 +226,6 @@ Page({
           isLocation: true
         })
       }
-     })     
+     })
   }
 })

+ 1 - 1
pages/index/index.wxml

@@ -52,7 +52,7 @@
       </navigator>
       </view>
       <view class="user-location-btn" wx:if="{{!locationFlag}}" >
-        <button class="location-btn" open-type="getLocation" bindtap="getLocation" >授权获取附近门店</button>
+        <button class="location-btn" open-type="getLocation"    bindtap="getLocation" >授权获取附近门店</button>
       </view>
     </view>
     <!-- 产品信息 -->