This commit is contained in:
2024-01-04 17:28:37 +08:00
parent 82dfbcc9ca
commit 6689c03634
2 changed files with 2 additions and 5 deletions

View File

@ -58,9 +58,6 @@
"es6" : true
},
"usingComponents" : true,
"optimization" : {
"subPackages" : true
},
// app.json
"permission" : {
"scope.userLocation" : {

View File

@ -72,7 +72,7 @@
</view> -->
<view class="name">
所在位置
<view class="selectdata" @tap='getAddress'>
<view class="selectdata" @tap='getlocation'>
<text v-if="query.locationName ==''">请选择所在位置</text>
<text class="testitem"
style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{query.locationName}}</text>
@ -502,7 +502,7 @@
this.query.birthDate = e.year + '-' + e.month + '-' + e.day
},
//
getAddress() {
getlocation() {
var that = this;
uni.chooseLocation({
success: function(location) {