Commit 36bd4cbc authored by 琉璃丶c's avatar 琉璃丶c

1.加入地图数据请求的提示

parent 09663878
...@@ -8,6 +8,14 @@ ...@@ -8,6 +8,14 @@
<!-- 高德地图 --> <!-- 高德地图 -->
<a-map-view :transport="sendType" :point-list="mapPointList" :drive-point="driveLine" <a-map-view :transport="sendType" :point-list="mapPointList" :drive-point="driveLine"
v-if="mapPointList&&mapPointList.length > 0"/> v-if="mapPointList&&mapPointList.length > 0"/>
<div style="height:300px;
background-color:#fff;
line-height:300px;
text-align:center;
border-bottom: 1px solid #eeeeee"
v-else-if="(!shoppingLoading)">
{{ mapDataLoadingText }}
</div>
<!-- 物流主信息 --> <!-- 物流主信息 -->
<div class="logistics-header"> <div class="logistics-header">
<van-skeleton avatar :row="3" :loading="shoppingLoading" <van-skeleton avatar :row="3" :loading="shoppingLoading"
...@@ -81,6 +89,7 @@ export default { ...@@ -81,6 +89,7 @@ export default {
orderInfo: this.$route.query, orderInfo: this.$route.query,
temperatureActive: 0, temperatureActive: 0,
shoppingLoading: true, shoppingLoading: true,
mapDataLoadingText: '地图数据加载中...',
icons: { icons: {
logo: require('@/assets/img/u48.png'), logo: require('@/assets/img/u48.png'),
call: require('@/assets/img/ic_call.png') call: require('@/assets/img/ic_call.png')
...@@ -241,11 +250,14 @@ export default { ...@@ -241,11 +250,14 @@ export default {
} else { } else {
if (res.code === 500) { if (res.code === 500) {
this.$toast(res.msg) this.$toast(res.msg)
this.mapDataLoadingText = res.msg
} }
this.mapDataLoadingText = '定位数据请求失败'
} }
}).catch(err => { }).catch(err => {
console.log('GPS信息', err) console.log('GPS信息', err)
this.$toast('GIS信息获取失败') this.mapDataLoadingText = '定位数据请求失败'
this.$toast('定位数据请求失败')
}) })
}, },
/* 获取温度变化趋势数据 */ /* 获取温度变化趋势数据 */
...@@ -281,6 +293,7 @@ export default { ...@@ -281,6 +293,7 @@ export default {
.logistics-header { .logistics-header {
background-color: #fff; background-color: #fff;
border-bottom: 1px solid $line; border-bottom: 1px solid $line;
.header-title { .header-title {
padding: 10px; padding: 10px;
display: flex; display: flex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment