Merge branch 'master' into lh
# Conflicts: # components/publishSlide/publishSlide.vue
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
<template>
|
||||
<view class="slide">
|
||||
<view class="mask" @click.self="quitSlide">
|
||||
<view class="mask" @click="quitSlide">
|
||||
<view class="content" @click.stop>
|
||||
<view class="container">
|
||||
<view class="content-1" @click="enterTransfer">
|
||||
<image src="/static/publish/fb_icon_dpzr.png" mode="aspectFit" class="selecter"></image>
|
||||
<text class="text">店铺转让</text>
|
||||
</view>
|
||||
<view class="content-1" @click="enterAddress">
|
||||
<image src="/static/publish/fb_icon_zdxz.png" mode="aspectFit" class="selecter"></image>
|
||||
<text class="text">找店选址</text>
|
||||
</view>
|
||||
<view class="content-1" @click="enterRent">
|
||||
<image src="/static/publish/fb_icon_dpcz.png" mode="aspectFit" class="selecter"></image>
|
||||
<text class="text">店铺出租</text>
|
||||
</view>
|
||||
<view class="content-1" @click="enterInvestment">
|
||||
<image src="/static/publish/fb_icon_xmzs.png" mode="aspectFit" class="selecter"></image>
|
||||
<text class="text">项目招商</text>
|
||||
</view>
|
||||
<view class="content-1" @click="enterTransfer">
|
||||
<image src="/static/publish/fb_icon_dpzr.png" mode="aspectFit" class="selecter"></image>
|
||||
<text class="text">店铺转让</text>
|
||||
</view>
|
||||
<view class="content-1" @click="enterAddress">
|
||||
<image src="/static/publish/fb_icon_zdxz.png" mode="aspectFit" class="selecter"></image>
|
||||
<text class="text">找店选址</text>
|
||||
</view>
|
||||
<view class="content-1" @click="enterRent">
|
||||
<image src="/static/publish/fb_icon_dpcz.png" mode="aspectFit" class="selecter"></image>
|
||||
<text class="text">店铺出租</text>
|
||||
</view>
|
||||
<view class="content-1" @click="enterInvestment">
|
||||
<image src="/static/publish/fb_icon_xmzs.png" mode="aspectFit" class="selecter"></image>
|
||||
<text class="text">项目招商</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -26,34 +26,34 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default{
|
||||
data(){
|
||||
return{
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
quitSlide(){
|
||||
methods: {
|
||||
quitSlide() {
|
||||
this.$emit("quitSlide")
|
||||
},
|
||||
enterTransfer(){
|
||||
enterTransfer() {
|
||||
uni.navigateTo({
|
||||
url:'/pages/publish/publishTransfer/publishTransfer'
|
||||
url: '/pages/publish/publishTransfer/publishTransfer'
|
||||
})
|
||||
},
|
||||
enterAddress(){
|
||||
enterAddress() {
|
||||
uni.navigateTo({
|
||||
url:'/pages/publish/publishAddress/publishAddress'
|
||||
url: '/pages/publish/publishAddress/publishAddress'
|
||||
})
|
||||
},
|
||||
enterRent(){
|
||||
enterRent() {
|
||||
uni.navigateTo({
|
||||
url:'/pages/publish/publishRent/publishRent'
|
||||
url: '/pages/publish/publishRent/publishRent'
|
||||
})
|
||||
},
|
||||
enterInvestment(){
|
||||
enterInvestment() {
|
||||
uni.navigateTo({
|
||||
url:'/pages/publish/publishInvestment/publishInvestment'
|
||||
url: '/pages/publish/publishInvestment/publishInvestment'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
12
pages.json
12
pages.json
@@ -8,7 +8,7 @@
|
||||
}
|
||||
},
|
||||
"pages": [
|
||||
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||
//pages数组中第一项表示应用启动页
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
@@ -21,6 +21,15 @@
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/map/map",
|
||||
"style": {
|
||||
"navigationBarTitleText": "速配地图",
|
||||
"navigationBarTextStyle": "white",
|
||||
"navigationBarBackgroundColor": "#339967",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/shopTransfer/shopTransfer",
|
||||
"style": {
|
||||
@@ -30,7 +39,6 @@
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
//+
|
||||
{
|
||||
"path": "pages/shopAddress/shopAddress",
|
||||
"style": {
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
<TabBar :current-page="0"></TabBar>
|
||||
<HomeNavCard></HomeNavCard>
|
||||
<view class="news-box">
|
||||
<u-notice-bar :text="newsTextLists" :bg-color="$uni-bg-color"></u-notice-bar>
|
||||
<u-notice-bar :text="newsText" bg-color="#ffffff"></u-notice-bar>
|
||||
</view>
|
||||
|
||||
|
||||
<ShowShopList></ShowShopList>
|
||||
</view>
|
||||
</template>
|
||||
@@ -18,12 +18,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
newsTextLists: [
|
||||
'寒雨连江夜入吴',
|
||||
'平明送客楚山孤',
|
||||
'洛阳亲友如相问',
|
||||
'一片冰心在玉壶'
|
||||
],
|
||||
newsText: '寒雨连江夜入吴'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -40,5 +35,4 @@
|
||||
background-color: $uni-bg-color-grey;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
</style>
|
||||
138
pages/index/map/map.vue
Normal file
138
pages/index/map/map.vue
Normal file
@@ -0,0 +1,138 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="search-box">
|
||||
<view class="search-box-input">
|
||||
<u-input placeholder="热门店铺" placeholder-style="color: #888888" prefixIcon="search"
|
||||
prefixIconStyle="font-size: 24px;color: #888888;" border="true">
|
||||
</u-input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<map id="map" @markertap="markerClick" :markers="marker" :show-location="true" :latitude="lat"
|
||||
:longitude="lng"></map>
|
||||
</view>
|
||||
<view class="down-shop">
|
||||
<ShowShopListItem :shopInfo="shopList"></ShowShopListItem>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
lat: '30.48772',
|
||||
lng: '104.080145',
|
||||
marker: [{
|
||||
id: 1,
|
||||
latitude: 30.488573,
|
||||
longitude: 104.081248,
|
||||
iconPath: '../../../static/map/sp_icon_dw.png',
|
||||
width: '58rpx',
|
||||
height: '72rpx',
|
||||
rotate: 0,
|
||||
alpha: 1
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
latitude: 30.48772,
|
||||
longitude: 104.080145,
|
||||
// iconPath: '../../../static/map/sp_icon_dw.png',
|
||||
width: '58rpx',
|
||||
height: '72rpx',
|
||||
rotate: 0,
|
||||
alpha: 1
|
||||
}
|
||||
],
|
||||
shopList: {
|
||||
imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
|
||||
title: '琴行铺面转让',
|
||||
promotionNum: 23,
|
||||
price: 5000,
|
||||
date: '2023-11-02'
|
||||
}
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
// 地图
|
||||
this._mapContext = uni.createMapContext("map", this);
|
||||
this._mapContext.initMarkerCluster({
|
||||
enableDefaultStyle: false,
|
||||
zoomOnClick: true,
|
||||
gridSize: 60,
|
||||
complete(res) {
|
||||
console.log('initMarkerCluster', res)
|
||||
}
|
||||
});
|
||||
this._mapContext.on("markerClusterCreate", (e) => {
|
||||
console.log("markerClusterCreate", e);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 图标点击
|
||||
markerClick(e) {
|
||||
console.log('标记点击', e);
|
||||
let markerId = e.markerId; //点击标记点, 获取id, 查询店铺详情, 展示在下方
|
||||
this.marker.forEach(item => {
|
||||
if (markerId === item.id) {
|
||||
item.iconPath = ""
|
||||
} else {
|
||||
item.iconPath = "../../../static/map/sp_icon_dw.png"
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.search-box {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 20rpx;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
|
||||
.search-box-input {
|
||||
width: 580rpx;
|
||||
height: 62rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 12rpx;
|
||||
opacity: 0.85;
|
||||
}
|
||||
}
|
||||
|
||||
// 地图
|
||||
.content {
|
||||
width: 100%;
|
||||
height: 460rpx;
|
||||
|
||||
#map {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
}
|
||||
|
||||
.down-shop {
|
||||
width: 710rpx;
|
||||
// background-color: red;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
bottom: 60rpx;
|
||||
left: 10%;
|
||||
transform: translateX(-10%);
|
||||
|
||||
.list-border {
|
||||
margin: 0;
|
||||
padding: 20rpx 20rpx 20rpx 27rpx;
|
||||
width: 94.5%;
|
||||
border-radius: 7rpx;
|
||||
box-shadow: 0rpx 1rpx 2rpx 0rpx rgba(224, 224, 224, 0.5), 0rpx 4rpx 12rpx 1rpx rgba(102, 102, 102, 0.37);
|
||||
|
||||
.rent-and-date text {
|
||||
margin-right: 30rpx !important;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
BIN
static/map/sp_icon_dw.png
Normal file
BIN
static/map/sp_icon_dw.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
BIN
static/map/sp_icon_hdw.png
Normal file
BIN
static/map/sp_icon_hdw.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
Reference in New Issue
Block a user