2026-02-26 23:28:24 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="shop-detail">
|
|
|
|
|
|
<div class="header-bg"></div>
|
2026-05-21 18:43:59 +08:00
|
|
|
|
|
2026-02-26 23:28:24 +08:00
|
|
|
|
<header class="header">
|
|
|
|
|
|
<a-button class="back-btn" type="text" @click="handleBackClick">
|
|
|
|
|
|
<LeftOutlined :style="{ fontSize: '20px' }" />
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
<h1>店铺详情</h1>
|
|
|
|
|
|
<div class="header-placeholder"></div>
|
|
|
|
|
|
</header>
|
2026-05-21 18:43:59 +08:00
|
|
|
|
|
|
|
|
|
|
<main class="shop-content">
|
2026-02-26 23:28:24 +08:00
|
|
|
|
<a-card :bordered="false" class="shop-card">
|
2026-05-21 18:43:59 +08:00
|
|
|
|
<section class="shop-header">
|
|
|
|
|
|
<div class="shop-icon-wrapper">
|
|
|
|
|
|
<ShopOutlined class="shop-icon" />
|
2026-02-26 23:28:24 +08:00
|
|
|
|
</div>
|
2026-05-21 18:43:59 +08:00
|
|
|
|
<div class="shop-header-content">
|
|
|
|
|
|
<h2 class="shop-name" @click="copyToClipboard(shopInfo.shopName, '店名')">
|
|
|
|
|
|
{{ shopInfo.shopName || '店铺' }}
|
|
|
|
|
|
<CopyOutlined class="copy-icon" />
|
|
|
|
|
|
</h2>
|
|
|
|
|
|
<p class="shop-address" @click="copyToClipboard(shopInfo.address, '地址')">
|
|
|
|
|
|
{{ shopInfo.address || '暂未设置详细地址' }}
|
|
|
|
|
|
<CopyOutlined v-if="shopInfo.address" class="copy-icon" />
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<p v-if="distanceText" class="shop-distance">{{ distanceText }}</p>
|
2026-02-26 23:28:24 +08:00
|
|
|
|
</div>
|
2026-05-21 18:43:59 +08:00
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<section class="shop-details">
|
2026-05-23 21:56:18 +08:00
|
|
|
|
<div v-if="trustProfile" class="trust-grid">
|
|
|
|
|
|
<div class="trust-card">
|
|
|
|
|
|
<strong>{{ formatRating(trustProfile.stats?.averageRating) }}</strong>
|
|
|
|
|
|
<span>{{ Number(trustProfile.stats?.reviewCount || 0) }} 条评价</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="trust-card">
|
|
|
|
|
|
<strong>{{ Number(trustProfile.stats?.productCount || 0) }}</strong>
|
|
|
|
|
|
<span>在售作品</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="trust-card">
|
|
|
|
|
|
<strong>{{ trustProfile.businessStatusText || '可浏览' }}</strong>
|
|
|
|
|
|
<span>{{ trustProfile.availabilitySummary?.summaryText || '预约前会再次确认档期' }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-05-21 18:43:59 +08:00
|
|
|
|
<div class="detail-item">
|
|
|
|
|
|
<div class="detail-label">营业时间</div>
|
2026-05-23 21:56:18 +08:00
|
|
|
|
<div class="detail-value">{{ trustProfile?.businessHoursText || shopInfo.businessHours || '暂未设置' }}</div>
|
2026-05-21 18:43:59 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="detail-item">
|
|
|
|
|
|
<div class="detail-label">店铺描述</div>
|
|
|
|
|
|
<div class="detail-value">{{ shopInfo.description || '暂无描述' }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<section class="action-area">
|
|
|
|
|
|
<a-button type="primary" block @click="openManagerContact">一键联系店长</a-button>
|
|
|
|
|
|
<template v-if="hasLocation">
|
2026-05-18 09:46:11 +08:00
|
|
|
|
<a-button block @click="openMapPreview">查看地图位置</a-button>
|
2026-05-21 18:43:59 +08:00
|
|
|
|
<div class="navigation-actions">
|
|
|
|
|
|
<a-button block @click="openNavigation('TENCENT')">腾讯地图导航</a-button>
|
|
|
|
|
|
<a-button block @click="openNavigation('AMAP')">高德地图导航</a-button>
|
2026-02-26 23:28:24 +08:00
|
|
|
|
</div>
|
2026-05-21 18:43:59 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<a-alert v-else type="info" show-icon message="店铺暂未设置地图位置" />
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<section v-if="shopImages.length > 0" class="shop-images">
|
|
|
|
|
|
<h3 class="section-title">店铺环境图</h3>
|
|
|
|
|
|
<div class="image-carousel">
|
|
|
|
|
|
<a-carousel autoplay :autoplay-speed="3000" dots>
|
|
|
|
|
|
<div v-for="(url, index) in shopImages" :key="url" class="carousel-item" @click="showImageModal(url)">
|
|
|
|
|
|
<img :src="url" :alt="`店铺环境图 ${index + 1}`" class="carousel-image" />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</a-carousel>
|
2026-02-26 23:28:24 +08:00
|
|
|
|
</div>
|
2026-05-21 18:43:59 +08:00
|
|
|
|
</section>
|
2026-05-23 21:56:18 +08:00
|
|
|
|
|
|
|
|
|
|
<section v-if="trustProfile?.featuredProducts?.length" class="shop-trust-section">
|
|
|
|
|
|
<h3 class="section-title">可预约作品</h3>
|
|
|
|
|
|
<div class="featured-products">
|
|
|
|
|
|
<button
|
|
|
|
|
|
v-for="product in trustProfile.featuredProducts"
|
|
|
|
|
|
:key="product.id"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
class="featured-product"
|
|
|
|
|
|
@click="openProduct(product.id)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<img v-if="product.imageUrl" :src="product.imageUrl" :alt="product.title || '作品'" />
|
|
|
|
|
|
<div v-else class="featured-product__placeholder">作</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<strong>{{ product.title || '美甲作品' }}</strong>
|
|
|
|
|
|
<span>¥{{ Number(product.price || 0).toFixed(2) }}</span>
|
|
|
|
|
|
<small>{{ product.bookingHint || '下单前选择美甲师和时间' }}</small>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<section v-if="trustProfile?.recentReviews?.length" class="shop-trust-section">
|
|
|
|
|
|
<h3 class="section-title">近期评价</h3>
|
|
|
|
|
|
<div class="recent-reviews">
|
|
|
|
|
|
<article v-for="review in trustProfile.recentReviews" :key="review.id" class="recent-review">
|
|
|
|
|
|
<div class="recent-review__head">
|
|
|
|
|
|
<strong>{{ review.productTitle || '订单评价' }}</strong>
|
|
|
|
|
|
<span>{{ formatRating(review.ratingScore) }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<p>{{ review.content || '用户已完成评价' }}</p>
|
|
|
|
|
|
<small>{{ formatTime(review.submittedAt) }}</small>
|
|
|
|
|
|
</article>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
2026-02-26 23:28:24 +08:00
|
|
|
|
</a-card>
|
2026-05-21 18:43:59 +08:00
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
|
|
<a-modal v-model:open="imageModalVisible" title="店铺环境图" :width="800" :footer="null" @cancel="handleImageCancel">
|
|
|
|
|
|
<img :src="selectedImage" alt="店铺环境图" class="modal-image" />
|
|
|
|
|
|
</a-modal>
|
|
|
|
|
|
|
|
|
|
|
|
<a-modal v-model:open="contactOpen" title="一键联系" :footer="null">
|
|
|
|
|
|
<div class="contact-box">
|
|
|
|
|
|
<p class="contact-name">{{ contactInfo.contactName || contactInfo.roleLabel || '联系人' }}</p>
|
|
|
|
|
|
<p>电话联系:{{ contactInfo.phoneAvailable ? contactInfo.phone : '暂无电话' }}</p>
|
|
|
|
|
|
<a-button v-if="contactInfo.phoneAvailable" type="primary" block :href="`tel:${contactInfo.phone}`">拨打电话</a-button>
|
|
|
|
|
|
<a-button block disabled>{{ contactInfo.platformContactText || '平台联系暂未接入' }}</a-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</a-modal>
|
|
|
|
|
|
|
|
|
|
|
|
<a-modal v-model:open="mapOpen" title="店铺位置" :width="900" :footer="null" class="map-modal">
|
|
|
|
|
|
<div class="map-panel">
|
|
|
|
|
|
<div class="map-summary">
|
|
|
|
|
|
<strong>{{ shopInfo.shopName }}</strong>
|
|
|
|
|
|
<span>{{ shopInfo.address }}</span>
|
|
|
|
|
|
<span v-if="distanceText">{{ distanceText }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<iframe v-if="mapPreviewUrl" class="map-frame" :src="mapPreviewUrl" title="店铺地图位置"></iframe>
|
|
|
|
|
|
<div class="navigation-actions">
|
|
|
|
|
|
<a-button type="primary" block @click="openNavigation('TENCENT')">腾讯地图导航</a-button>
|
|
|
|
|
|
<a-button block @click="openNavigation('AMAP')">高德地图导航</a-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</a-modal>
|
2026-02-26 23:28:24 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2026-05-21 18:43:59 +08:00
|
|
|
|
import { computed, onMounted, ref } from 'vue'
|
|
|
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
|
|
|
import { CopyOutlined, LeftOutlined, ShopOutlined } from '@ant-design/icons-vue'
|
2026-03-05 16:28:05 +08:00
|
|
|
|
import { message } from 'ant-design-vue'
|
2026-03-04 10:14:45 +08:00
|
|
|
|
import { fileApi } from '@/api/file'
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: ShopVO supports ShopDetailView.vue by holding or executing the shop vo page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this type from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-23 21:56:18 +08:00
|
|
|
|
import { shopApi, type ShopTrustProfileVO, type ShopVO } from '@/api/shop'
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: ContactInfoVO supports ShopDetailView.vue by holding or executing the contact info vo page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this type from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-18 09:46:11 +08:00
|
|
|
|
import { userApi, type ContactInfoVO } from '@/api/user'
|
2026-03-27 14:55:41 +08:00
|
|
|
|
import { toOptionalIdString } from '@/utils/id'
|
2026-02-26 23:28:24 +08:00
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: router supports ShopDetailView.vue by holding or executing the router page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-02-26 23:28:24 +08:00
|
|
|
|
const router = useRouter()
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: route supports ShopDetailView.vue by holding or executing the route page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-02-26 23:28:24 +08:00
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: shopInfo supports ShopDetailView.vue by holding or executing the shop info page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-02-26 23:28:24 +08:00
|
|
|
|
const shopInfo = ref<ShopVO>({
|
2026-03-27 14:55:41 +08:00
|
|
|
|
id: '',
|
2026-02-26 23:28:24 +08:00
|
|
|
|
shopName: '',
|
|
|
|
|
|
description: '',
|
|
|
|
|
|
address: '',
|
2026-05-18 09:46:11 +08:00
|
|
|
|
mapProvider: 'TENCENT',
|
|
|
|
|
|
longitude: '',
|
|
|
|
|
|
latitude: '',
|
2026-02-26 23:28:24 +08:00
|
|
|
|
businessHours: '',
|
2026-03-02 10:13:20 +08:00
|
|
|
|
imageFileIds: '',
|
|
|
|
|
|
createTime: '',
|
|
|
|
|
|
updateTime: ''
|
2026-02-26 23:28:24 +08:00
|
|
|
|
})
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: shopImages supports ShopDetailView.vue by holding or executing the shop images page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-02-26 23:28:24 +08:00
|
|
|
|
const shopImages = ref<string[]>([])
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: imageModalVisible supports ShopDetailView.vue by holding or executing the image modal visible page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-03-04 10:14:45 +08:00
|
|
|
|
const imageModalVisible = ref(false)
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: selectedImage supports ShopDetailView.vue by holding or executing the selected image page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-03-04 10:14:45 +08:00
|
|
|
|
const selectedImage = ref('')
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: contactOpen supports ShopDetailView.vue by holding or executing the contact open page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-18 09:46:11 +08:00
|
|
|
|
const contactOpen = ref(false)
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: contactInfo supports ShopDetailView.vue by holding or executing the contact info page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-18 09:46:11 +08:00
|
|
|
|
const contactInfo = ref<ContactInfoVO>({})
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: mapOpen supports ShopDetailView.vue by holding or executing the map open page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-21 18:43:59 +08:00
|
|
|
|
const mapOpen = ref(false)
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: distanceText supports ShopDetailView.vue by holding or executing the distance text page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-18 09:46:11 +08:00
|
|
|
|
const distanceText = ref('')
|
2026-05-23 21:56:18 +08:00
|
|
|
|
/** trustProfile stores public confidence signals for this shop. */
|
|
|
|
|
|
const trustProfile = ref<ShopTrustProfileVO | null>(null)
|
2026-03-04 10:14:45 +08:00
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: hasLocation supports ShopDetailView.vue by holding or executing the has location page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-21 18:43:59 +08:00
|
|
|
|
const hasLocation = computed(() => Boolean(shopInfo.value.longitude && shopInfo.value.latitude))
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: mapPreviewUrl supports ShopDetailView.vue by holding or executing the map preview url page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-21 18:43:59 +08:00
|
|
|
|
const mapPreviewUrl = computed(() => shopInfo.value.navigationUrls?.BROWSER || shopInfo.value.navigationUrls?.TENCENT || '')
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: handleBackClick supports ShopDetailView.vue by holding or executing the handle back click page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-02-26 23:28:24 +08:00
|
|
|
|
const handleBackClick = () => {
|
|
|
|
|
|
router.back()
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: showImageModal supports ShopDetailView.vue by holding or executing the show image modal page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-03-04 10:14:45 +08:00
|
|
|
|
const showImageModal = (imageUrl: string) => {
|
|
|
|
|
|
selectedImage.value = imageUrl
|
|
|
|
|
|
imageModalVisible.value = true
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: handleImageCancel supports ShopDetailView.vue by holding or executing the handle image cancel page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-21 18:43:59 +08:00
|
|
|
|
const handleImageCancel = () => {
|
2026-03-04 10:14:45 +08:00
|
|
|
|
imageModalVisible.value = false
|
|
|
|
|
|
selectedImage.value = ''
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: openManagerContact supports ShopDetailView.vue by holding or executing the open manager contact page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-18 09:46:11 +08:00
|
|
|
|
const openManagerContact = async () => {
|
|
|
|
|
|
try {
|
|
|
|
|
|
contactInfo.value = await userApi.getShopManagerContact(shopInfo.value.id)
|
|
|
|
|
|
contactOpen.value = true
|
|
|
|
|
|
} catch (error: any) {
|
|
|
|
|
|
message.error(error?.message || '获取联系方式失败')
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: openMapPreview supports ShopDetailView.vue by holding or executing the open map preview page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-18 09:46:11 +08:00
|
|
|
|
const openMapPreview = () => {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
if (!mapPreviewUrl.value) {
|
2026-05-18 09:46:11 +08:00
|
|
|
|
message.warning('店铺暂未设置地图位置')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
2026-05-21 18:43:59 +08:00
|
|
|
|
mapOpen.value = true
|
2026-05-18 09:46:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: openNavigation supports ShopDetailView.vue by holding or executing the open navigation page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-18 09:46:11 +08:00
|
|
|
|
const openNavigation = (provider: 'TENCENT' | 'AMAP') => {
|
|
|
|
|
|
const url = shopInfo.value.navigationUrls?.[provider]
|
|
|
|
|
|
if (!url) {
|
|
|
|
|
|
message.warning('店铺暂未设置地图位置')
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
window.open(url, '_blank')
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 21:56:18 +08:00
|
|
|
|
/** openProduct routes from shop trust cards to the product detail page. */
|
|
|
|
|
|
const openProduct = (productId: string | number) => {
|
|
|
|
|
|
router.push(`/product/${productId}`)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** formatRating renders trust scores without exposing backend numeric details. */
|
|
|
|
|
|
const formatRating = (value: unknown) => {
|
|
|
|
|
|
const rating = Number(value || 0)
|
|
|
|
|
|
return rating > 0 ? rating.toFixed(1) : '暂无'
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** formatTime renders review timestamps for the trust section. */
|
|
|
|
|
|
const formatTime = (value?: string) => {
|
|
|
|
|
|
if (!value) return ''
|
|
|
|
|
|
return String(value).replace('T', ' ').slice(0, 16)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: calculateDistanceText supports ShopDetailView.vue by holding or executing the calculate distance text page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-18 09:46:11 +08:00
|
|
|
|
const calculateDistanceText = (currentLat: number, currentLng: number) => {
|
|
|
|
|
|
const shopLat = Number(shopInfo.value.latitude)
|
|
|
|
|
|
const shopLng = Number(shopInfo.value.longitude)
|
|
|
|
|
|
if (!Number.isFinite(currentLat) || !Number.isFinite(currentLng) || !Number.isFinite(shopLat) || !Number.isFinite(shopLng)) {
|
|
|
|
|
|
distanceText.value = ''
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
2026-05-21 18:43:59 +08:00
|
|
|
|
|
2026-05-18 09:46:11 +08:00
|
|
|
|
const toRad = (value: number) => value * Math.PI / 180
|
|
|
|
|
|
const earthRadius = 6371000
|
|
|
|
|
|
const dLat = toRad(shopLat - currentLat)
|
|
|
|
|
|
const dLng = toRad(shopLng - currentLng)
|
|
|
|
|
|
const a = Math.sin(dLat / 2) ** 2 + Math.cos(toRad(currentLat)) * Math.cos(toRad(shopLat)) * Math.sin(dLng / 2) ** 2
|
|
|
|
|
|
const meters = 2 * earthRadius * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a))
|
|
|
|
|
|
distanceText.value = meters >= 1000 ? `距你约 ${(meters / 1000).toFixed(1)} km` : `距你约 ${Math.round(meters)} m`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: loadCurrentDistance supports ShopDetailView.vue by holding or executing the load current distance page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-05-18 09:46:11 +08:00
|
|
|
|
const loadCurrentDistance = () => {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
if (!hasLocation.value || !navigator.geolocation) return
|
2026-05-18 09:46:11 +08:00
|
|
|
|
navigator.geolocation.getCurrentPosition(
|
|
|
|
|
|
position => calculateDistanceText(position.coords.latitude, position.coords.longitude),
|
|
|
|
|
|
() => {
|
|
|
|
|
|
distanceText.value = ''
|
|
|
|
|
|
},
|
|
|
|
|
|
{ enableHighAccuracy: false, timeout: 8000, maximumAge: 300000 }
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: copyToClipboard supports ShopDetailView.vue by holding or executing the copy to clipboard page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-03-04 10:14:45 +08:00
|
|
|
|
const copyToClipboard = async (text: string, type: string) => {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
if (!text) return
|
2026-03-04 10:14:45 +08:00
|
|
|
|
try {
|
|
|
|
|
|
await navigator.clipboard.writeText(text)
|
|
|
|
|
|
message.success(`${type}已复制到剪贴板`)
|
2026-05-21 18:43:59 +08:00
|
|
|
|
} catch {
|
2026-03-04 10:14:45 +08:00
|
|
|
|
message.error('复制失败,请手动复制')
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: loadShopImages supports ShopDetailView.vue by holding or executing the load shop images page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-02-26 23:28:24 +08:00
|
|
|
|
const loadShopImages = async () => {
|
2026-03-04 10:14:45 +08:00
|
|
|
|
try {
|
|
|
|
|
|
const imageFileIds = shopInfo.value.imageFileIds
|
2026-05-21 18:43:59 +08:00
|
|
|
|
if (!imageFileIds) return
|
2026-05-23 21:56:18 +08:00
|
|
|
|
if (shopImages.value.length > 0) return
|
2026-05-21 18:43:59 +08:00
|
|
|
|
|
|
|
|
|
|
const fileIds = imageFileIds.split(',').map(id => id.trim()).filter(Boolean)
|
|
|
|
|
|
const results = await Promise.all(fileIds.map(fileId => fileApi.getSignedUrl(fileId).catch(() => null)))
|
|
|
|
|
|
shopImages.value = results
|
|
|
|
|
|
.filter(Boolean)
|
|
|
|
|
|
.map(url => String(url).replace(/[`]/g, '').trim())
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
shopImages.value = []
|
2026-03-04 10:14:45 +08:00
|
|
|
|
}
|
2026-02-26 23:28:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 18:44:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* Purpose: fetchShopDetail supports ShopDetailView.vue by holding or executing the fetch shop detail page or API role.
|
|
|
|
|
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
|
|
|
|
|
*/
|
2026-02-26 23:28:24 +08:00
|
|
|
|
const fetchShopDetail = async () => {
|
|
|
|
|
|
try {
|
2026-03-27 14:55:41 +08:00
|
|
|
|
const shopId = toOptionalIdString(route.params.id || localStorage.getItem('userShopId'))
|
2026-02-26 23:28:24 +08:00
|
|
|
|
if (!shopId) {
|
|
|
|
|
|
message.error('店铺ID不存在')
|
|
|
|
|
|
router.back()
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
2026-05-21 18:43:59 +08:00
|
|
|
|
|
|
|
|
|
|
shopInfo.value = await shopApi.getShopById(shopId)
|
2026-05-23 21:56:18 +08:00
|
|
|
|
trustProfile.value = await shopApi.getTrustProfile(shopId).catch(() => null)
|
|
|
|
|
|
if (trustProfile.value?.environmentImages?.length) {
|
|
|
|
|
|
shopImages.value = trustProfile.value.environmentImages.filter(Boolean)
|
|
|
|
|
|
}
|
2026-02-26 23:28:24 +08:00
|
|
|
|
await loadShopImages()
|
2026-05-18 09:46:11 +08:00
|
|
|
|
loadCurrentDistance()
|
2026-05-21 18:43:59 +08:00
|
|
|
|
} catch (error: any) {
|
|
|
|
|
|
message.error(error?.message || '获取店铺详情失败')
|
2026-02-26 23:28:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-21 18:43:59 +08:00
|
|
|
|
onMounted(fetchShopDetail)
|
2026-02-26 23:28:24 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.shop-detail {
|
|
|
|
|
|
min-height: 100vh;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
background: var(--bg-color);
|
2026-02-26 23:28:24 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-bg {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
height: 120px;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
background: var(--theme-gradient);
|
2026-02-26 23:28:24 +08:00
|
|
|
|
z-index: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
padding: 10px 15px;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-21 18:43:59 +08:00
|
|
|
|
.back-btn,
|
|
|
|
|
|
.header-placeholder {
|
2026-02-26 23:28:24 +08:00
|
|
|
|
width: 40px;
|
|
|
|
|
|
height: 40px;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.back-btn {
|
2026-02-26 23:28:24 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header h1 {
|
|
|
|
|
|
font-size: 18px;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
font-weight: 700;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
margin: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-content {
|
|
|
|
|
|
padding: 100px 15px 20px;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-card {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
border-radius: 16px;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
overflow: hidden;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
|
2026-02-26 23:28:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-card :deep(.ant-card-body) {
|
|
|
|
|
|
padding: 24px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-icon-wrapper {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
width: 76px;
|
|
|
|
|
|
height: 76px;
|
|
|
|
|
|
background: var(--theme-gradient);
|
2026-02-26 23:28:24 +08:00
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-icon {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
font-size: 34px;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-header-content {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
min-width: 0;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
flex: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-name {
|
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
font-weight: 700;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
margin: 0 0 8px;
|
|
|
|
|
|
color: #172033;
|
|
|
|
|
|
cursor: pointer;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-address {
|
|
|
|
|
|
font-size: 14px;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
color: #667085;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
margin: 0;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
cursor: pointer;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-18 09:46:11 +08:00
|
|
|
|
.shop-distance {
|
|
|
|
|
|
margin: 6px 0 0;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
color: var(--theme-primary);
|
2026-05-18 09:46:11 +08:00
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-04 10:14:45 +08:00
|
|
|
|
.copy-icon {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
font-size: 13px;
|
2026-03-04 10:14:45 +08:00
|
|
|
|
margin-left: 6px;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
color: #8a94a6;
|
2026-03-04 10:14:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-26 23:28:24 +08:00
|
|
|
|
.shop-details {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
display: grid;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
gap: 16px;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
margin-top: 22px;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 21:56:18 +08:00
|
|
|
|
.trust-grid {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.trust-card {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
min-height: 74px;
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
border: 1px solid var(--theme-border);
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
background: var(--theme-primary-soft);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.trust-card strong {
|
|
|
|
|
|
color: var(--theme-primary);
|
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.trust-card span {
|
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
line-height: 1.35;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-26 23:28:24 +08:00
|
|
|
|
.detail-label {
|
|
|
|
|
|
font-size: 13px;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
color: #8a94a6;
|
|
|
|
|
|
font-weight: 600;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.detail-value {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
margin-top: 6px;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
font-size: 16px;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
color: #172033;
|
|
|
|
|
|
line-height: 1.55;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-area {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
margin-top: 22px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-area .navigation-actions {
|
|
|
|
|
|
display: contents;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-area :deep(.ant-btn) {
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-area :deep(.ant-alert) {
|
|
|
|
|
|
grid-column: 1 / -1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.navigation-actions {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-images {
|
|
|
|
|
|
margin-top: 24px;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 21:56:18 +08:00
|
|
|
|
.shop-trust-section {
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.featured-products {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.featured-product {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: 84px minmax(0, 1fr);
|
|
|
|
|
|
gap: 12px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
border: 1px solid var(--theme-border);
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.featured-product img,
|
|
|
|
|
|
.featured-product__placeholder {
|
|
|
|
|
|
width: 84px;
|
|
|
|
|
|
height: 84px;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
|
background: var(--theme-primary-soft);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.featured-product__placeholder {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
color: var(--theme-primary);
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.featured-product strong,
|
|
|
|
|
|
.featured-product span,
|
|
|
|
|
|
.featured-product small {
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.featured-product strong {
|
|
|
|
|
|
color: #172033;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.featured-product span {
|
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
|
color: var(--theme-primary);
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.featured-product small {
|
|
|
|
|
|
margin-top: 6px;
|
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.recent-reviews {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.recent-review {
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
border: 1px solid var(--theme-border);
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.recent-review__head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
color: #172033;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.recent-review__head span {
|
|
|
|
|
|
color: var(--theme-primary);
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.recent-review p {
|
|
|
|
|
|
margin: 8px 0 6px;
|
|
|
|
|
|
color: #475467;
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.recent-review small {
|
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-26 23:28:24 +08:00
|
|
|
|
.section-title {
|
|
|
|
|
|
font-size: 16px;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: #172033;
|
|
|
|
|
|
margin: 0 0 12px;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-04 10:14:45 +08:00
|
|
|
|
.image-carousel {
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
overflow: hidden;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
box-shadow: 0 4px 12px rgba(31, 41, 55, 0.12);
|
2026-03-04 10:14:45 +08:00
|
|
|
|
width: 100%;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
height: 220px;
|
2026-03-04 10:14:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.carousel-item {
|
|
|
|
|
|
width: 100%;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
height: 220px;
|
2026-03-04 10:14:45 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.carousel-image {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
|
transition: transform 0.3s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.carousel-item:hover .carousel-image {
|
2026-05-21 18:43:59 +08:00
|
|
|
|
transform: scale(1.04);
|
2026-03-04 10:14:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.image-carousel :deep(.slick-dots) {
|
|
|
|
|
|
bottom: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.image-carousel :deep(.slick-dots li button) {
|
|
|
|
|
|
width: 8px;
|
|
|
|
|
|
height: 8px;
|
|
|
|
|
|
border-radius: 50%;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
background: rgba(255, 255, 255, 0.65);
|
2026-03-04 10:14:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.image-carousel :deep(.slick-dots li.slick-active button) {
|
|
|
|
|
|
width: 20px;
|
|
|
|
|
|
border-radius: 4px;
|
2026-05-21 18:43:59 +08:00
|
|
|
|
background: white;
|
2026-03-04 10:14:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.modal-image {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
max-height: 600px;
|
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
|
border-radius: 8px;
|
2026-02-26 23:28:24 +08:00
|
|
|
|
}
|
2026-03-24 09:50:55 +08:00
|
|
|
|
|
2026-05-21 18:43:59 +08:00
|
|
|
|
.contact-box,
|
|
|
|
|
|
.map-panel {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.contact-name {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: #172033;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.map-summary {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
color: #475467;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.map-frame {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 420px;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
background: #eef2f7;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 640px) {
|
|
|
|
|
|
.shop-card :deep(.ant-card-body) {
|
|
|
|
|
|
padding: 18px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-header {
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-icon-wrapper {
|
|
|
|
|
|
width: 60px;
|
|
|
|
|
|
height: 60px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shop-name {
|
|
|
|
|
|
font-size: 19px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.navigation-actions {
|
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-23 21:56:18 +08:00
|
|
|
|
.trust-grid {
|
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-21 18:43:59 +08:00
|
|
|
|
.map-frame {
|
|
|
|
|
|
height: 320px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-24 09:59:52 +08:00
|
|
|
|
@media (min-width: 992px) {
|
|
|
|
|
|
.shop-content {
|
|
|
|
|
|
max-width: 1040px;
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
padding: 100px 24px 24px;
|
2026-03-24 09:50:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|