上传代码

This commit is contained in:
2025-08-18 09:57:10 +08:00
commit ff52db1edc
560 changed files with 102250 additions and 0 deletions

View File

@ -0,0 +1 @@
<button onTap="{{a}}">获取定位</button>

View File

@ -0,0 +1,24 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "test",
setup(__props) {
const getAddress = () => {
common_vendor.index.chooseLocation({
success: (res) => {
console.log(res);
console.log("位置名称:" + res.name);
console.log("详细地址:" + res.address);
console.log("纬度:" + res.latitude);
console.log("经度:" + res.longitude);
}
});
};
return (_ctx, _cache) => {
return {
a: common_vendor.o(getAddress)
};
};
}
};
my.createPage(_sfc_main);

View File

@ -0,0 +1,5 @@
{
"defaultTitle": "测试",
"titleBarColor": "#5e7dec",
"usingComponents": {}
}