修改
This commit is contained in:
parent
82dfbcc9ca
commit
6689c03634
@ -58,9 +58,6 @@
|
|||||||
"es6" : true
|
"es6" : true
|
||||||
},
|
},
|
||||||
"usingComponents" : true,
|
"usingComponents" : true,
|
||||||
"optimization" : {
|
|
||||||
"subPackages" : true
|
|
||||||
},
|
|
||||||
// app.json
|
// app.json
|
||||||
"permission" : {
|
"permission" : {
|
||||||
"scope.userLocation" : {
|
"scope.userLocation" : {
|
||||||
|
|||||||
@ -72,7 +72,7 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
<view class="name">
|
<view class="name">
|
||||||
所在位置
|
所在位置
|
||||||
<view class="selectdata" @tap='getAddress'>
|
<view class="selectdata" @tap='getlocation'>
|
||||||
<text v-if="query.locationName ==''">请选择所在位置</text>
|
<text v-if="query.locationName ==''">请选择所在位置</text>
|
||||||
<text class="testitem"
|
<text class="testitem"
|
||||||
style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{query.locationName}}</text>
|
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
|
this.query.birthDate = e.year + '-' + e.month + '-' + e.day
|
||||||
},
|
},
|
||||||
//获取所在位置
|
//获取所在位置
|
||||||
getAddress() {
|
getlocation() {
|
||||||
var that = this;
|
var that = this;
|
||||||
uni.chooseLocation({
|
uni.chooseLocation({
|
||||||
success: function(location) {
|
success: function(location) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user