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