|
|
@@ -70,6 +70,12 @@ export default {
|
|
|
'Content-Type': 'application/json',
|
|
|
},
|
|
|
});
|
|
|
+ // 提示
|
|
|
+ uni.showToast({
|
|
|
+ title: res?.msg || '',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 3000,
|
|
|
+ });
|
|
|
},
|
|
|
async getDataSource() {
|
|
|
const res = await this.$myRequest({
|
|
|
@@ -117,9 +123,9 @@ export default {
|
|
|
},
|
|
|
toNavigation() {
|
|
|
const roundedLongitude =
|
|
|
- this.deviceInfo.devLngalign || this.deviceInfo.devLng;
|
|
|
+ this.dataSource.devLngalign || this.dataSource.devLng;
|
|
|
const roundedLatitude =
|
|
|
- this.deviceInfo.devLatalign || this.deviceInfo.devLat;
|
|
|
+ this.dataSource.devLatalign || this.dataSource.devLat;
|
|
|
if (!roundedLongitude) {
|
|
|
uni.showToast({
|
|
|
title: '当前设备无定位信息',
|