地图优化
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "qingdao-employment-service",
|
||||
"appid" : "__UNI__2496162",
|
||||
"appid" : "__UNI__C939371",
|
||||
"description" : "招聘",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : "100",
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
:circles="mapCircles"
|
||||
:controls="mapControls"
|
||||
@controltap="handleControl"
|
||||
:scale="mapScale"
|
||||
></map>
|
||||
<view class="nearby-select">
|
||||
<view class="select-view" @click="changeRangeShow">
|
||||
@@ -106,6 +107,7 @@ const tMap = ref();
|
||||
const progress = ref();
|
||||
const mapCovers = ref([]);
|
||||
const mapCircles = ref([]);
|
||||
const mapScale = ref(14.5)
|
||||
const mapControls = ref([
|
||||
{
|
||||
id: 1,
|
||||
@@ -149,6 +151,8 @@ function changeRangeShow() {
|
||||
|
||||
function changeRadius(item) {
|
||||
console.log(item);
|
||||
if(item > 1) mapScale.value = 14.5 - item * 0.3
|
||||
else mapScale.value = 14.5
|
||||
pageState.search.radius = item;
|
||||
rangeShow.value = false;
|
||||
progressChange(item);
|
||||
|
||||
Reference in New Issue
Block a user