feat(custom): 地图apiKey更换,订单核销详情新增支付方式
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-29 15:45:16 +08:00
parent 92d7bf1933
commit 896acaef9e
70 changed files with 408 additions and 376 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view>
<view :style="{marginTop: BarHeight + 'px'}"></view>
<view :style="{ marginTop: BarHeight + 'px' }"></view>
<view class="local">
<view class="iconfont icon-dizhi" style="font-size: 20px"></view>
<text class="text-[28px]">{{ address }}</text>
@@ -54,8 +54,8 @@
<script setup lang="ts">
import Taro from '@tarojs/taro';
import {ref} from 'vue';
import {getHomeList} from '@/api/home';
import { ref } from 'vue';
import { getHomeList } from '@/api/home';
import MerList from '@/components/MerList.vue';
import Popup from '@/components/Popup.vue';
@@ -127,8 +127,18 @@ const getUserLocal = async () => {
url: `https://apis.map.qq.com/ws/geocoder/v1/?location=${res.latitude},${res.longitude}&key=S3GBZ-WR26O-IXNW2-SXBOD-LZXV6-WAFNO&get_poi=1`,
method: 'GET',
success: res => {
const data = res.data.result.address_component;
address.value = `${data.district}${data.street_number}`;
switch (res.data.status) {
case 121:
Taro.showToast({
title: res.data.message,
icon: 'none',
});
break;
default:
const data = res.data.result.address_component;
address.value = `${data.district}${data.street_number}`;
break;
}
},
});
},