提交 ebb3cb41 编写于 作者: Q qiang

fix(App): coordsType

上级 cb8b95c3
export const API_GET_LOCATION = 'getLocation'
export type API_TYPE_GET_LOCATION = typeof uni.getLocation
const coordTypes = ['WGS84', 'GCJ02']
const coordTypes = ['wgs84', 'gcj02']
export const GetLocationOptions: ApiOptions<API_TYPE_GET_LOCATION> = {
formatArgs: {
type(value, params) {
value = (value || '').toUpperCase()
value = (value || '').toLowerCase()
if (coordTypes.indexOf(value) === -1) {
params.type = coordTypes[0]
} else {
......
......@@ -11800,11 +11800,11 @@ var serviceContext = (function (vue) {
};
const API_GET_LOCATION = 'getLocation';
const coordTypes = ['WGS84', 'GCJ02'];
const coordTypes = ['wgs84', 'gcj02'];
const GetLocationOptions = {
formatArgs: {
type(value, params) {
value = (value || '').toUpperCase();
value = (value || '').toLowerCase();
if (coordTypes.indexOf(value) === -1) {
params.type = coordTypes[0];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册