小程序优化

This commit is contained in:
qsh
2023-08-29 10:34:48 +08:00
parent 15622a2e5a
commit dd53612b39
8 changed files with 188 additions and 169 deletions

View File

@@ -157,7 +157,7 @@
</div>
</template>
<!-- eslint-disable no-undef -->
<script>
<script>
import { getFollowRecord } from '@/api/zs/clue';
import { getClassTypes } from '@/api/tool/common';
import { inputtips, regeo, walking } from '@/api/tool/map';
@@ -452,7 +452,8 @@ export default {
// );
if (this.currentPoint.lng && this.currentPoint.lat) {
regeo({
key: 'f2f35d6adc4a16bb879d303cead56237',
// key: 'f2f35d6adc4a16bb879d303cead56237',
key: '0e62be0896c6b8d27d453445f0fb8bc4',
location: this.currentPoint.lng + ',' + this.currentPoint.lat
}).then((resp) => {
if (resp.status === '1') {
@@ -512,7 +513,8 @@ export default {
async getWalkingDistance(start, end) {
if (start && end) {
const resp = await walking({
key: 'f2f35d6adc4a16bb879d303cead56237',
// key: 'f2f35d6adc4a16bb879d303cead56237',
key: '0e62be0896c6b8d27d453445f0fb8bc4',
origin: start[0] + ',' + start[1],
destination: end[0] + ',' + end[1]
});
@@ -554,7 +556,8 @@ export default {
async querySearch(queryString, cb) {
if (queryString) {
const resp = await inputtips({
key: 'f2f35d6adc4a16bb879d303cead56237',
// key: 'f2f35d6adc4a16bb879d303cead56237',
key: '0e62be0896c6b8d27d453445f0fb8bc4',
keywords: queryString
});
cb(resp.tips);
@@ -577,9 +580,9 @@ export default {
}
}
};
</script>
<style lang="scss" scoped>
</script>
<style lang="scss" scoped>
.amap-cavans {
width: 100%;
height: 600px;
@@ -589,6 +592,7 @@ export default {
width: 100%;
height: 400px;
}
.address {
position: absolute;
left: 30px;
@@ -596,6 +600,7 @@ export default {
width: 400px;
background: #fff;
}
.box-card {
position: absolute;
right: 30px;
@@ -613,14 +618,17 @@ export default {
.el-divider--horizontal {
margin: 6px 0;
}
li {
padding: 6px;
.name {
font-size: 12px;
line-height: 16px;
text-overflow: ellipsis;
overflow: hidden;
}
.addr {
line-height: 16px;
font-size: 10px;
@@ -630,6 +638,5 @@ li {
.highlighted .addr {
color: #ddd;
}
}
</style>
}</style>