页面修改

This commit is contained in:
THK3121 2023-09-04 14:22:26 +08:00
parent 4ef04aa366
commit dedcc53852
2 changed files with 30 additions and 7 deletions

View File

@ -20,20 +20,42 @@
id: 1, id: 1,
latitude: 28.908447, latitude: 28.908447,
longitude: 105.439304, longitude: 105.439304,
title: "手动升级的话", title: "测试商家名称",
iconPath: "/static/images/GXSC/SJicon.png" iconPath: "/static/images/GXSC/SJicon.png"
}] }, {
id: 2,
latitude: 28.909447,
longitude: 105.439304,
title: "测试商家名称",
iconPath: "/static/images/GXSC/SJicon.png"
}, {
id: 3,
latitude: 28.908447,
longitude: 105.459304,
title: "测试商家名称",
iconPath: "/static/images/GXSC/SJicon.png"
}, ]
} }
} }
, ,
onLoad() { onLoad(options) {
let that = this let that = this
// supAgoodsApi() // supAgoodsApi()
vicinityStoreApi(510502106).then(res => { vicinityStoreApi(options.street_id).then(res => {
console.log(res.data.list) // console.log(res.data.list)
res.data.list.forEach(item => { res.data.list.forEach(item => {
that.markers.push({}) if (!item.lat) return
this.markers = []
// console.log(item)
that.markers.push({
id: item.mer_id,
latitude: item.lat,
longitude: item.long,
title: item.mer_name,
iconPath: "/static/images/GXSC/SJicon.png"
})
}) })
}) })
} }

View File

@ -21,7 +21,8 @@
:showLoading="true" src="/static/images/GXSC/SS.png" width="115.65rpx" :showLoading="true" src="/static/images/GXSC/SS.png" width="115.65rpx"
height="56.82rpx"></u--image> height="56.82rpx"></u--image>
</view> </view>
<view class='iconfont search-right' @click="goMap(`/pages/nongKe/supply_chain/maps`)"> <view class='iconfont search-right'
@click="goMap(`/pages/nongKe/supply_chain/maps?street_id=${street_id}`)">
<u--image :showLoading="true" src="/static/images/GXSC/DW.png" width="50.82rpx" <u--image :showLoading="true" src="/static/images/GXSC/DW.png" width="50.82rpx"
height="50.82rpx"></u--image> height="50.82rpx"></u--image>
</view> </view>