|
|
|
@ -8,20 +8,23 @@ |
|
|
|
|
<view class="u-status-bar" :style="{ height: statusBarHeight + 'px' }"></view> |
|
|
|
|
<view class="home_title" :style="[navTitleStyle, navTitleColor]">首页</view> |
|
|
|
|
<view class="u-navbar-inner"> |
|
|
|
|
<view class="u-back-wrap" @tap=" |
|
|
|
|
<view class="u-back-wrap"> |
|
|
|
|
<view class="u-back-text u-line-1" :style="[navTitleStyle, navTitleColor]" @tap=" |
|
|
|
|
jump('/pages/order/express/store-address2', { |
|
|
|
|
lat: locationInfo.latitude, |
|
|
|
|
lng: locationInfo.longitude, |
|
|
|
|
storeId: storeInfo ? storeInfo.id : 0, |
|
|
|
|
}) |
|
|
|
|
"> |
|
|
|
|
<view class="u-back-text u-line-1" :style="[navTitleStyle, navTitleColor]"> |
|
|
|
|
<view style="display: flex;align-items: center;"> |
|
|
|
|
<u-icon name="map-fill" size="33" :color="navTitleColor.color"></u-icon> |
|
|
|
|
<view style="font-size: 36rpx;margin-left:16rpx;">{{ navTitle || '' }}</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view style="font-size: 26rpx;margin-top:18rpx;margin-left: 50rpx;">距离您{{distance}}</view> --> |
|
|
|
|
</view> |
|
|
|
|
<view class="dingwei" @tap="setLocation"> |
|
|
|
|
定位 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view |
|
|
|
|
hover-class="hover-search" |
|
|
|
@ -99,7 +102,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
navTitle: { |
|
|
|
|
type: String, |
|
|
|
|
default: '焦福记' |
|
|
|
|
default: '蓝鲸鲜森' |
|
|
|
|
}, |
|
|
|
|
distance: { |
|
|
|
|
type: String, |
|
|
|
@ -175,6 +178,17 @@ export default { |
|
|
|
|
this.navBgImage = this.list[0].image; |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
setLocation(){ |
|
|
|
|
if(JSON.stringify(this.locationInfo)=="{}"){ |
|
|
|
|
this.$emit("setLocation") |
|
|
|
|
}else{ |
|
|
|
|
this.jump('/pages/order/express/store-address2', { |
|
|
|
|
lat: this.locationInfo.latitude, |
|
|
|
|
lng: this.locationInfo.longitude, |
|
|
|
|
storeId: this.storeInfo ? this.storeInfo.id : 0, |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
jump(path, parmas) { |
|
|
|
|
this.$Router.push({ |
|
|
|
|
path: path, |
|
|
|
@ -337,4 +351,13 @@ export default { |
|
|
|
|
align-items: center; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.dingwei{ |
|
|
|
|
// background-color: rgba(23,193,97,0.5); |
|
|
|
|
background-color: rgba(255, 255, 255, 0.6); |
|
|
|
|
border-radius:20rpx; |
|
|
|
|
font-size:22rpx; |
|
|
|
|
padding: 3rpx 10rpx; |
|
|
|
|
color:#ffffff; |
|
|
|
|
margin-left:20rpx; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|