|
|
@@ -1,25 +1,39 @@
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
- <map class="map" id="map"
|
|
|
- subkey="YO4BZ-G75L5-CWJIV-QDPOY-77OIH-LGFMT"
|
|
|
- layer-style="1"
|
|
|
- :longitude="center.longitude" :latitude="center.latitude"
|
|
|
- scale="9"
|
|
|
- :polyline="polyline"
|
|
|
- :markers="markers"
|
|
|
- @markertap="markerTap">
|
|
|
+ <map
|
|
|
+ class="map"
|
|
|
+ id="map"
|
|
|
+ subkey="YO4BZ-G75L5-CWJIV-QDPOY-77OIH-LGFMT"
|
|
|
+ layer-style="1"
|
|
|
+ :longitude="center.longitude"
|
|
|
+ :latitude="center.latitude"
|
|
|
+ scale="13"
|
|
|
+ :polyline="polyline"
|
|
|
+ :markers="markers"
|
|
|
+ @markertap="markerTap"
|
|
|
+ >
|
|
|
<cover-view class="header" :style="{paddingTop: sysInfo.statusBarHeight+'px'}">
|
|
|
<cover-image class="bg" src="/static/images/bg_nav.png"></cover-image>
|
|
|
<cover-view class="content" :style="{top: sysInfo.statusBarHeight+'px'}">
|
|
|
<cover-view class="title">
|
|
|
- <cover-image src="/static/images/icon_back_white.png" class="icon-back" @click="back"></cover-image>Ta的资料
|
|
|
+ <cover-image
|
|
|
+ src="/static/images/icon_back_white.png"
|
|
|
+ class="icon-back"
|
|
|
+ @click="back"
|
|
|
+ ></cover-image>Ta的资料
|
|
|
</cover-view>
|
|
|
<cover-view class="card">
|
|
|
<cover-view class="user">
|
|
|
- <cover-image class="avatar" :src="userInfo.avatar||'https://microball.oss-cn-hangzhou.aliyuncs.com/awesomeAdmin/user.png'"></cover-image>
|
|
|
+ <cover-image
|
|
|
+ class="avatar"
|
|
|
+ :src="userInfo.avatar||'https://microball.oss-cn-hangzhou.aliyuncs.com/awesomeAdmin/user.png'"
|
|
|
+ ></cover-image>
|
|
|
<cover-view class="name">{{userInfo.nickname}}</cover-view>
|
|
|
<cover-image class="level-icon" :src="level.icon"></cover-image>
|
|
|
- <cover-view class="level-name" :style="{color:level.color}">{{level.name}}</cover-view>
|
|
|
+ <cover-view
|
|
|
+ class="level-name"
|
|
|
+ :style="{color:level.color}"
|
|
|
+ >{{level.name}}</cover-view>
|
|
|
</cover-view>
|
|
|
<cover-view class="profile">
|
|
|
<cover-view class="row">
|
|
|
@@ -45,10 +59,18 @@
|
|
|
</cover-view>
|
|
|
<cover-view class="btns">
|
|
|
<cover-view class="btn-wrapper">
|
|
|
- <cover-image class="btn" src="/static/images/btn_view_member.png" @click="viewMember"></cover-image>
|
|
|
+ <cover-image
|
|
|
+ class="btn"
|
|
|
+ src="/static/images/btn_view_member.png"
|
|
|
+ @click="viewMember"
|
|
|
+ ></cover-image>
|
|
|
</cover-view>
|
|
|
<cover-view class="btn-wrapper">
|
|
|
- <cover-image class="btn" :src="canHire?'/static/images/btn_hire.png':'/static/images/btn_hired.png'" @click="hire"></cover-image>
|
|
|
+ <cover-image
|
|
|
+ class="btn"
|
|
|
+ :src="canHire?'/static/images/btn_hire.png':'/static/images/btn_hired.png'"
|
|
|
+ @click="hire"
|
|
|
+ ></cover-image>
|
|
|
</cover-view>
|
|
|
</cover-view>
|
|
|
</cover-view>
|
|
|
@@ -148,10 +170,10 @@ export default {
|
|
|
nickname: res.data.nickname,
|
|
|
level: res.data.level,
|
|
|
avatar: res.data.avatar,
|
|
|
- price: Number((res.data.totalSteps * Constants.HIRE_PRICE_RATE).toFixed(1)),
|
|
|
walkCities: res.data.walkCities,
|
|
|
todaySteps: res.data.todaySteps,
|
|
|
totalSteps: res.data.totalSteps,
|
|
|
+ price: res.data.price,
|
|
|
};
|
|
|
}
|
|
|
});
|
|
|
@@ -201,7 +223,7 @@ export default {
|
|
|
},
|
|
|
];
|
|
|
this.center = {
|
|
|
- latitude: points2[points2.length - 1].latitude + 0.1,
|
|
|
+ latitude: points2[points2.length - 1].latitude + 0.01,
|
|
|
longitude: points2[points2.length - 1].longitude,
|
|
|
};
|
|
|
cvsCtx.font = 'normal normal 12px arial';
|
|
|
@@ -211,8 +233,8 @@ export default {
|
|
|
iconPath: '/static/images/marker_origin.png',
|
|
|
latitude: res.data.origin.latitude,
|
|
|
longitude: res.data.origin.longitude,
|
|
|
- width: 44,
|
|
|
- height: 47,
|
|
|
+ width: 52,
|
|
|
+ height: 56,
|
|
|
label: {
|
|
|
content: ` ${res.data.origin.name} `,
|
|
|
color: '#000000',
|
|
|
@@ -230,8 +252,8 @@ export default {
|
|
|
iconPath: '/static/images/marker_gift_active.png',
|
|
|
latitude: res.data.destination.latitude,
|
|
|
longitude: res.data.destination.longitude,
|
|
|
- width: 44,
|
|
|
- height: 47,
|
|
|
+ width: 52,
|
|
|
+ height: 56,
|
|
|
anchor: {
|
|
|
x: 0.5,
|
|
|
y: 0.8,
|
|
|
@@ -253,8 +275,8 @@ export default {
|
|
|
iconPath: `http://walk-china.oss-cn-hangzhou.aliyuncs.com/marker/user/${this.userInfo ? this.userInfo.id : ''}.png`,
|
|
|
latitude: points2[points2.length - 1].latitude,
|
|
|
longitude: points2[points2.length - 1].longitude,
|
|
|
- width: 44,
|
|
|
- height: 47,
|
|
|
+ width: 52,
|
|
|
+ height: 56,
|
|
|
anchor: {
|
|
|
x: 0.5,
|
|
|
y: 0.8,
|
|
|
@@ -275,8 +297,8 @@ export default {
|
|
|
iconPath: i.received ? '/static/images/marker_gift.png' : '/static/images/marker_gift_active.png',
|
|
|
latitude: i.latitude,
|
|
|
longitude: i.longitude,
|
|
|
- width: 44,
|
|
|
- height: 47,
|
|
|
+ width: 52,
|
|
|
+ height: 56,
|
|
|
anchor: { x: 0.5, y: 0.9 },
|
|
|
};
|
|
|
if (i.showLabel) {
|
|
|
@@ -287,7 +309,7 @@ export default {
|
|
|
bgColor: '#0000009E',
|
|
|
borderRadius: 18,
|
|
|
fontSize: 10,
|
|
|
- anchorY: -60,
|
|
|
+ anchorY: -68,
|
|
|
anchorX: -cvsCtx.measureText(i.labelContent).width / 2 - 1,
|
|
|
};
|
|
|
} else if (this.progress >= i.needProgress * 100 && !i.received) {
|
|
|
@@ -296,14 +318,14 @@ export default {
|
|
|
marker.anchor = { x: 0.5, y: 0.8 };
|
|
|
marker.iconPath = '/static/images/marker_gift_active_light.png';
|
|
|
marker.label = {
|
|
|
- content: ' 领奖金 ',
|
|
|
+ content: ' 偷奖金 ',
|
|
|
color: '#ffffff',
|
|
|
textAlign: 'left',
|
|
|
bgColor: '#FF9500',
|
|
|
borderRadius: 18,
|
|
|
fontSize: 10,
|
|
|
- anchorY: -65,
|
|
|
- anchorX: -cvsCtx.measureText(' 领奖金 ').width / 2,
|
|
|
+ anchorY: -68,
|
|
|
+ anchorX: -cvsCtx.measureText(' 偷奖金 ').width / 2,
|
|
|
};
|
|
|
}
|
|
|
markers.push(marker);
|
|
|
@@ -336,8 +358,8 @@ export default {
|
|
|
let marker = {
|
|
|
...this.markers[index],
|
|
|
iconPath: '/static/images/marker_gift.png',
|
|
|
- width: 44,
|
|
|
- height: 47,
|
|
|
+ width: 52,
|
|
|
+ height: 56,
|
|
|
anchor: { x: 0.5, y: 0.9 },
|
|
|
label: {},
|
|
|
};
|
|
|
@@ -502,7 +524,7 @@ export default {
|
|
|
.btns {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- margin-top: 10px;
|
|
|
+ margin-top: 17px;
|
|
|
margin-bottom: 8px;
|
|
|
.btn-wrapper {
|
|
|
flex-basis: 0;
|