guotianliang пре 4 година
родитељ
комит
181e298bd7
4 измењених фајлова са 15 додато и 15 уклоњено
  1. 2 1
      components/spacecard/index.wxml
  2. 2 1
      pages/index/index.wxml
  3. 1 7
      project.config.json
  4. 10 6
      utils/auth.js

+ 2 - 1
components/spacecard/index.wxml

@@ -7,7 +7,8 @@
 			<view wx:if="{{!imgShow}}" class="picinit">
 				 <image src="{{picInitUrl}}" lazy-load="{{true}}" wx:if="{{!item.pic}}"/>
 			</view>
-			<image src="{{imgbaseUrl+cardDate.pic}}&width=136&height=108" wx:if="{{cardDate.pic}}" class='{{imgShow ? "" : "before-load"}}'  bindload="imageLoad" lazy-load="{{true}}"></image>
+			<!-- &width=136&height=108 -->
+			<image src="{{imgbaseUrl+cardDate.pic}}" wx:if="{{cardDate.pic}}" class='{{imgShow ? "" : "before-load"}}'  bindload="imageLoad" lazy-load="{{true}}"></image>
 
 		</view>
 		<view class="card_msg">

+ 2 - 1
pages/index/index.wxml

@@ -47,7 +47,8 @@
             <van-swipe-cell right-width="{{60}}" key="{{index}}">
                 <view class="space_item">
                     <view class="space_bg">
-                        <image src="{{imgbaseUrl}}{{item.pic}}&width=1029&height=597" lazy-load="{{true}}" wx:if="{{item.pic}}"/>
+                    <!-- &width=1029&height=597 -->
+                        <image src="{{imgbaseUrl}}{{item.pic}}" lazy-load="{{true}}" wx:if="{{item.pic}}"/>
                         <image src="{{picInitUrl}}" lazy-load="{{true}}" wx:if="{{!item.pic}}"/>
                     </view>
                     <view class="space_msg">

+ 1 - 7
project.config.json

@@ -64,13 +64,6 @@
         },
         {
           "id": -1,
-          "name": "pages/home/index",
-          "pathName": "pages/home/index",
-          "query": "",
-          "scene": null
-        },
-        {
-          "id": -1,
           "name": "pages/adjust/index",
           "pathName": "pages/adjust/index",
           "query": "",
@@ -98,6 +91,7 @@
         {
           "name": "pages/search/index",
           "pathName": "pages/search/index",
+          "query": "",
           "scene": null
         }
       ]

+ 10 - 6
utils/auth.js

@@ -99,13 +99,17 @@ function getLocation(){
         resolve(res)
       },
       fail: function fail(error) {
-        Toast.fail('未定位到您所在位置');
-        that.setData({
-          havePower: {
-            result: "fail",
-            message: "未定位到您的位置"
-          }
+        wx.showToast({
+          title: '未定位到您所在位置',
+          icon: 'none'
         })
+        // Toast.fail('未定位到您所在位置');
+        // this.setData({
+        //   havePower: {
+        //     result: "fail",
+        //     message: "未定位到您的位置"
+        //   }
+        // })
         reject(error);
       },
     })