Просмотр исходного кода

Merge branch 'deploy' of http://git.chelingzhu.com/chelingzhu-web/qhsxKx-mini-html into deploy

lilei 4 лет назад
Родитель
Сommit
610e8c6090
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('获取位置信息失败,请先授权开启定位功能!')
+					}
 				});
 			}