切换导航条
此项目
正在载入...
登录
倪静楠
/
muying
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
倪静楠
4 years ago
提交
44f6e647b0869104ecb8c62293b388c6d2bc2fcc
1 个父辈
24324a98
2/25
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
8 行增加
和
2 行删除
pages/index/index.vue
pages/index/select-location.vue
pages/index/index.vue
查看文件 @
44f6e64
...
...
@@ -401,7 +401,7 @@
success(r) {
uni.setStorageSync('lat', r.latitude)
uni.setStorageSync('lot', r.longitude)
wx.setStorageSync('nowLat', r.l
ong
itude)
wx.setStorageSync('nowLat', r.l
at
itude)
wx.setStorageSync('nowLot', r.longitude)
uni.request({
url: 'https://apis.map.qq.com/ws/geocoder/v1',
...
...
@@ -692,8 +692,11 @@
bindPickerChange: function(e) {
this.index = e.target.value
if (this.tabIndex == 0) {
this.pageNum=1
this.goodsXz()
} else {
this.pageNum=1
this.goodsXy()
}
...
...
@@ -702,8 +705,10 @@
let _that = this
_that.index1 = e.target.value
if (_that.tabIndex == 0) {
this.pageNum=1
_that.goodsXz()
} else {
this.pageNum=1
_that.goodsXy()
}
},
...
...
pages/index/select-location.vue
查看文件 @
44f6e64
...
...
@@ -21,7 +21,7 @@
<view class="current">
<!-- <text @click="geoTapped">{{address}}</text>
<image @click="reloadCurrent" src="../../images/geo.png" /> -->
<view class="" v-for="(item,index) in list" :key="index" @click="addressTapped(item.address,item.lat
,item.lng
)">
<view class="" v-for="(item,index) in list" :key="index" @click="addressTapped(item.address,item.lat
2,item.lng2
)">
{{item.address}}
</view>
</view>
...
...
@@ -122,6 +122,7 @@
});
},
addressTapped: function(title, lat, lot) {
console.log(lat,lot)
// var title = e.currentTarget.dataset.title;
// 取出点中的地址,然后使用WxNotification回传给首页
// WxNotificationCenter.postNotificationName("addressSelectedNotification", title);
...
...
请
注册
或
登录
后发表评论