|
|
@@ -13,9 +13,16 @@ onLoad((options: any) => {
|
|
|
getShopInfo(Number(options.id))
|
|
|
})
|
|
|
function handleNav() {
|
|
|
+ if (!shopInfo.value) {
|
|
|
+ useGlobalToast().show('商家信息获取失败!')
|
|
|
+ return
|
|
|
+ }
|
|
|
uni.openLocation({
|
|
|
- latitude: Number(shopInfo.value?.shopLat),
|
|
|
- longitude: Number(shopInfo.value?.shopLng),
|
|
|
+ latitude: Number(shopInfo.value.shopLat),
|
|
|
+ longitude: Number(shopInfo.value.shopLng),
|
|
|
+ fail: (e) => {
|
|
|
+ console.log(e, '打开失败')
|
|
|
+ },
|
|
|
})
|
|
|
}
|
|
|
function handlePhone() {
|
|
|
@@ -27,7 +34,7 @@ function handlePhone() {
|
|
|
|
|
|
<template>
|
|
|
<view v-if="shopInfo" class="py20rpx">
|
|
|
- <scroll-view scroll-x class="h165rpx w-full whitespace-nowrap pl24rpx">
|
|
|
+ <scroll-view scroll-x class="box-border h165rpx w-full whitespace-nowrap pl24rpx">
|
|
|
<view class="w-full flex items-center">
|
|
|
<view v-for="item in shopInfo.shopLogo?.split(',')" :key="item" class="mr20rpx h164rpx w280rpx flex-shrink-0">
|
|
|
<image
|
|
|
@@ -51,7 +58,7 @@ function handlePhone() {
|
|
|
营业中 {{ shopInfo.businessTime }}
|
|
|
</view>
|
|
|
<view class="mt20rpx h160rpx flex items-center justify-between bg-cover bg-center px24rpx" :style="{ backgroundImage: `url(${StaticUrl}/djk-shop-nav-bg.png)` }">
|
|
|
- <view class="flex items-center">
|
|
|
+ <view class="line-clamp-2 w450rpx flex items-center">
|
|
|
<image
|
|
|
:src="`${StaticUrl}/location-black.png`"
|
|
|
class="mr16rpx h-33.8rpx min-w-28.97rpx w-28.97rpx"
|