邓洁:地理位置
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="nav-card">
|
||||
<u-grid :col="4" customStyle="height: 334rpx;align-content: normal" >
|
||||
<u-grid :col="4" customStyle="height: 334rpx;align-content: normal">
|
||||
<u-grid-item v-for="(item, index) in navItems" :key="item.icon" @click="handleItemClick(index)">
|
||||
<u-icon :name="item.icon" :size="46"></u-icon>
|
||||
<view class="grid-text">{{ item.text }}</view>
|
||||
@@ -54,6 +54,11 @@
|
||||
// 在这里处理点击事件,并使用下标值
|
||||
console.log(`项目 ${index} 被点击了`);
|
||||
// 或者执行其他需要的操作
|
||||
if (index == 5) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/map/map'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
:longitude="lng"></map>
|
||||
</view>
|
||||
<view class="down-shop">
|
||||
<ShowShopListItem :shopInfo="shopList"></ShowShopListItem>
|
||||
<ShowShopListItem :shopInfo="shopList" :is-adshow="true" :show-style="0"></ShowShopListItem>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -45,11 +45,19 @@
|
||||
}
|
||||
],
|
||||
shopList: {
|
||||
shopid: 1,
|
||||
imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
|
||||
title: '琴行铺面转让',
|
||||
promotionNum: 23,
|
||||
price: 5000,
|
||||
date: '2023-11-02'
|
||||
price: 6000,
|
||||
date: '2023-11-02',
|
||||
pos: '锦江区',
|
||||
exactPos: '锦江区-汇源南路366号',
|
||||
sqr: 100,
|
||||
zrfText: "转让费:20万",
|
||||
category: '餐饮美食',
|
||||
uname: "张先生",
|
||||
phoneNum: 13348946108,
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -119,8 +127,8 @@
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: 60rpx;
|
||||
left: 10%;
|
||||
transform: translateX(-10%);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
|
||||
.list-border {
|
||||
margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user