|
@@ -85,10 +85,14 @@
|
|
|
navBar,
|
|
navBar,
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
|
|
+ //#ifdef H5
|
|
|
this.getLatOrLng(); //获取经纬度
|
|
this.getLatOrLng(); //获取经纬度
|
|
|
|
|
+ //#endif
|
|
|
this.getRmCityList(); //热门城市
|
|
this.getRmCityList(); //热门城市
|
|
|
this.getCitysList();
|
|
this.getCitysList();
|
|
|
this.type=options&&options.type
|
|
this.type=options&&options.type
|
|
|
|
|
+ if(this.$queue.getData('city'))
|
|
|
|
|
+ this.city=this.$queue.getData('city')
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
/**
|
|
/**
|
|
@@ -141,14 +145,13 @@
|
|
|
'获取您的位置用于推荐附近的求职岗位', // 提示文案也无需区分系统(统一表述即可)
|
|
'获取您的位置用于推荐附近的求职岗位', // 提示文案也无需区分系统(统一表述即可)
|
|
|
this
|
|
this
|
|
|
);
|
|
);
|
|
|
-
|
|
|
|
|
|
|
+ console.log(hasPermission)
|
|
|
if (!hasPermission) {
|
|
if (!hasPermission) {
|
|
|
uni.showToast({ title: '未获取定位权限,无法推荐附近岗位', icon: 'none' });
|
|
uni.showToast({ title: '未获取定位权限,无法推荐附近岗位', icon: 'none' });
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
// #endif
|
|
// #endif
|
|
|
|
|
|
|
|
-
|
|
|
|
|
uni.getLocation({
|
|
uni.getLocation({
|
|
|
type: "wgs84", //wgs84 gcj02
|
|
type: "wgs84", //wgs84 gcj02
|
|
|
success: function(res) {
|
|
success: function(res) {
|