瀏覽代碼

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
bug修改

1004749546@qq.com 4 年之前
父節點
當前提交
80ce640d1c
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      pages/store/storeDetail.vue

+ 7 - 3
pages/store/storeDetail.vue

@@ -33,7 +33,7 @@
 				<text v-for="item in storeInfo.itemVOList" :key="item.id">{{item.itemName}}</text>
 			</view>
 			<!-- 路线指引 -->
-			<view class="store-rich store-line">
+			<view class="store-rich store-line" v-if="storeInfo&&storeInfo.guidance">
 				<view class="line-title">
 					* 路线指引 *
 				</view>
@@ -42,7 +42,7 @@
 				</view>
 			</view>
 			<!-- 温馨提示 -->
-			<view class="store-rich">
+			<view class="store-rich" v-if="storeInfo&&storeInfo.reminder">
 				<view class="line-title">
 					* 温馨提示 *
 				</view>
@@ -170,6 +170,7 @@
 			// 打开导航位置信息界面
 			openLocation () {
 				let data = this.storeInfo
+				let _this = this
 				uni.getLocation({
 				    type: 'gcj02', //返回可以用于uni.openLocation的经纬度
 				    success: function (res) {
@@ -184,7 +185,10 @@
 								console.log('success');
 							  }
 						})
-				    }
+				    },
+					fail:function(){
+						_this.toashMsg('获取位置信息失败,请先授权开启定位功能!')
+					}
 				});
 			}